@zyzgroup/core-vue 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,33 +1,33 @@
1
- var YZCustomElement=function(Qe){"use strict";/**
1
+ var YZCustomElement=function(Ze){"use strict";/**
2
2
  * @vue/shared v3.4.25
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function Un(t,e){const n=new Set(t.split(","));return e?s=>n.has(s.toLowerCase()):s=>n.has(s)}const $e={}.NODE_ENV!=="production"?Object.freeze({}):{},Yn={}.NODE_ENV!=="production"?Object.freeze([]):[],Je=()=>{},sh=()=>!1,is=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),zs=t=>t.startsWith("onUpdate:"),je=Object.assign,oo=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},ih=Object.prototype.hasOwnProperty,be=(t,e)=>ih.call(t,e),re=Array.isArray,En=t=>Gs(t)==="[object Map]",na=t=>Gs(t)==="[object Set]",de=t=>typeof t=="function",Ye=t=>typeof t=="string",Sn=t=>typeof t=="symbol",Oe=t=>t!==null&&typeof t=="object",ro=t=>(Oe(t)||de(t))&&de(t.then)&&de(t.catch),sa=Object.prototype.toString,Gs=t=>sa.call(t),ao=t=>Gs(t).slice(8,-1),ia=t=>Gs(t)==="[object Object]",lo=t=>Ye(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,os=Un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oh=Un("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),js=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},rh=/-(\w)/g,Ut=js(t=>t.replace(rh,(e,n)=>n?n.toUpperCase():"")),ah=/\B([A-Z])/g,Tt=js(t=>t.replace(ah,"-$1").toLowerCase()),Bs=js(t=>t.charAt(0).toUpperCase()+t.slice(1)),kn=js(t=>t?`on${Bs(t)}`:""),un=(t,e)=>!Object.is(t,e),rs=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},oa=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},lh=t=>{const e=parseFloat(t);return isNaN(e)?t:e},ra=t=>{const e=Ye(t)?Number(t):NaN;return isNaN(e)?t:e};let aa;const co=()=>aa||(aa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function B(t){if(re(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],i=Ye(s)?dh(s):B(s);if(i)for(const o in i)e[o]=i[o]}return e}else if(Ye(t)||Oe(t))return t}const ch=/;(?![^(]*\))/g,uh=/:([^]+)/,hh=/\/\*[^]*?\*\//g;function dh(t){const e={};return t.replace(hh,"").split(ch).forEach(n=>{if(n){const s=n.split(uh);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function xt(t){let e="";if(Ye(t))e=t;else if(re(t))for(let n=0;n<t.length;n++){const s=xt(t[n]);s&&(e+=s+" ")}else if(Oe(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const fh=Un("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function la(t){return!!t||t===""}const ge=t=>Ye(t)?t:t==null?"":re(t)||Oe(t)&&(t.toString===sa||!de(t.toString))?JSON.stringify(t,ca,2):String(t),ca=(t,e)=>e&&e.__v_isRef?ca(t,e.value):En(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,i],o)=>(n[uo(s,o)+" =>"]=i,n),{})}:na(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>uo(n))}:Sn(e)?uo(e):Oe(e)&&!re(e)&&!ia(e)?String(e):e,uo=(t,e="")=>{var n;return Sn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function qn(n,e){const t=new Set(n.split(","));return e?s=>t.has(s.toLowerCase()):s=>t.has(s)}const Ae={}.NODE_ENV!=="production"?Object.freeze({}):{},Kn={}.NODE_ENV!=="production"?Object.freeze([]):[],Qe=()=>{},rh=()=>!1,cs=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&(n.charCodeAt(2)>122||n.charCodeAt(2)<97),Xs=n=>n.startsWith("onUpdate:"),He=Object.assign,ho=(n,e)=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)},ah=Object.prototype.hasOwnProperty,Ce=(n,e)=>ah.call(n,e),ce=Array.isArray,On=n=>qs(n)==="[object Map]",la=n=>qs(n)==="[object Set]",fe=n=>typeof n=="function",qe=n=>typeof n=="string",Nn=n=>typeof n=="symbol",$e=n=>n!==null&&typeof n=="object",fo=n=>($e(n)||fe(n))&&fe(n.then)&&fe(n.catch),ca=Object.prototype.toString,qs=n=>ca.call(n),po=n=>qs(n).slice(8,-1),ua=n=>qs(n)==="[object Object]",mo=n=>qe(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,us=qn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lh=qn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ks=n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))},ch=/-(\w)/g,Xt=Ks(n=>n.replace(ch,(e,t)=>t?t.toUpperCase():"")),uh=/\B([A-Z])/g,Pt=Ks(n=>n.replace(uh,"-$1").toLowerCase()),Zs=Ks(n=>n.charAt(0).toUpperCase()+n.slice(1)),In=Ks(n=>n?`on${Zs(n)}`:""),fn=(n,e)=>!Object.is(n,e),hs=(n,e)=>{for(let t=0;t<n.length;t++)n[t](e)},ha=(n,e,t)=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value:t})},hh=n=>{const e=parseFloat(n);return isNaN(e)?n:e},da=n=>{const e=qe(n)?Number(n):NaN;return isNaN(e)?n:e};let fa;const go=()=>fa||(fa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function B(n){if(ce(n)){const e={};for(let t=0;t<n.length;t++){const s=n[t],i=qe(s)?mh(s):B(s);if(i)for(const o in i)e[o]=i[o]}return e}else if(qe(n)||$e(n))return n}const dh=/;(?![^(]*\))/g,fh=/:([^]+)/,ph=/\/\*[^]*?\*\//g;function mh(n){const e={};return n.replace(ph,"").split(dh).forEach(t=>{if(t){const s=t.split(fh);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Et(n){let e="";if(qe(n))e=n;else if(ce(n))for(let t=0;t<n.length;t++){const s=Et(n[t]);s&&(e+=s+" ")}else if($e(n))for(const t in n)n[t]&&(e+=t+" ");return e.trim()}const gh=qn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function pa(n){return!!n||n===""}const _e=n=>qe(n)?n:n==null?"":ce(n)||$e(n)&&(n.toString===ca||!fe(n.toString))?JSON.stringify(n,ma,2):String(n),ma=(n,e)=>e&&e.__v_isRef?ma(n,e.value):On(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[s,i],o)=>(t[vo(s,o)+" =>"]=i,t),{})}:la(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>vo(t))}:Nn(e)?vo(e):$e(e)&&!ce(e)&&!ua(e)?String(e):e,vo=(n,e="")=>{var t;return Nn(n)?`Symbol(${(t=n.description)!=null?t:e})`:n};/**
6
6
  * @vue/reactivity v3.4.25
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function hn(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let $t;class ph{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$t,!e&&$t&&(this.index=($t.scopes||($t.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=$t;try{return $t=this,e()}finally{$t=n}}else({}).NODE_ENV!=="production"&&hn("cannot run an inactive effect scope.")}on(){$t=this}off(){$t=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function mh(t,e=$t){e&&e.active&&e.effects.push(t)}function gh(){return $t}let Tn;class ho{constructor(e,n,s,i){this.fn=e,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,mh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Yt();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(vh(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Xt()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=dn,n=Tn;try{return dn=!0,Tn=this,this._runnings++,ua(this),this.fn()}finally{ha(this),this._runnings--,Tn=n,dn=e}}stop(){var e;this.active&&(ua(this),ha(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function vh(t){return t.value}function ua(t){t._trackId++,t._depsLength=0}function ha(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)da(t.deps[e],t);t.deps.length=t._depsLength}}function da(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let dn=!0,fo=0;const fa=[];function Yt(){fa.push(dn),dn=!1}function Xt(){const t=fa.pop();dn=t===void 0?!0:t}function po(){fo++}function mo(){for(fo--;!fo&&go.length;)go.shift()()}function pa(t,e,n){var s;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const i=t.deps[t._depsLength];i!==e?(i&&da(i,t),t.deps[t._depsLength++]=e):t._depsLength++,{}.NODE_ENV!=="production"&&((s=t.onTrack)==null||s.call(t,je({effect:t},n)))}}const go=[];function ma(t,e,n){var s;po();for(const i of t.keys()){let o;i._dirtyLevel<e&&(o??(o=t.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(o??(o=t.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((s=i.onTrigger)==null||s.call(i,je({effect:i},n))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&go.push(i.scheduler)))}mo()}const ga=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},vo=new WeakMap,Pn=Symbol({}.NODE_ENV!=="production"?"iterate":""),yo=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ot(t,e,n){if(dn&&Tn){let s=vo.get(t);s||vo.set(t,s=new Map);let i=s.get(n);i||s.set(n,i=ga(()=>s.delete(n))),pa(Tn,i,{}.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function Vt(t,e,n,s,i,o){const r=vo.get(t);if(!r)return;let l=[];if(e==="clear")l=[...r.values()];else if(n==="length"&&re(t)){const a=Number(s);r.forEach((c,u)=>{(u==="length"||!Sn(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(r.get(n)),e){case"add":re(t)?lo(n)&&l.push(r.get("length")):(l.push(r.get(Pn)),En(t)&&l.push(r.get(yo)));break;case"delete":re(t)||(l.push(r.get(Pn)),En(t)&&l.push(r.get(yo)));break;case"set":En(t)&&l.push(r.get(Pn));break}po();for(const a of l)a&&ma(a,4,{}.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:s,oldValue:i,oldTarget:o}:void 0);mo()}const yh=Un("__proto__,__v_isRef,__isVue"),va=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Sn)),ya=_h();function _h(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=ve(this);for(let o=0,r=this.length;o<r;o++)ot(s,"get",o+"");const i=s[e](...n);return i===-1||i===!1?s[e](...n.map(ve)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){Yt(),po();const s=ve(this)[e].apply(this,n);return mo(),Xt(),s}}),t}function bh(t){Sn(t)||(t=String(t));const e=ve(this);return ot(e,"has",t),e.hasOwnProperty(t)}class _a{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?Oa:Na:o?Pa:Ta).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const r=re(e);if(!i){if(r&&be(ya,n))return Reflect.get(ya,n,s);if(n==="hasOwnProperty")return bh}const l=Reflect.get(e,n,s);return(Sn(n)?va.has(n):yh(n))||(i||ot(e,"get",n),o)?l:rt(l)?r&&lo(n)?l:l.value:Oe(l)?i?Ia(l):nt(l):l}}class ba extends _a{constructor(e=!1){super(!1,e)}set(e,n,s,i){let o=e[n];if(!this._isShallow){const a=Nn(o);if(!On(s)&&!Nn(s)&&(o=ve(o),s=ve(s)),!re(e)&&rt(o)&&!rt(s))return a?!1:(o.value=s,!0)}const r=re(e)&&lo(n)?Number(n)<e.length:be(e,n),l=Reflect.set(e,n,s,i);return e===ve(i)&&(r?un(s,o)&&Vt(e,"set",n,s,o):Vt(e,"add",n,s)),l}deleteProperty(e,n){const s=be(e,n),i=e[n],o=Reflect.deleteProperty(e,n);return o&&s&&Vt(e,"delete",n,void 0,i),o}has(e,n){const s=Reflect.has(e,n);return(!Sn(n)||!va.has(n))&&ot(e,"has",n),s}ownKeys(e){return ot(e,"iterate",re(e)?"length":Pn),Reflect.ownKeys(e)}}class xa extends _a{constructor(e=!1){super(!0,e)}set(e,n){return{}.NODE_ENV!=="production"&&hn(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return{}.NODE_ENV!=="production"&&hn(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const xh=new ba,wh=new xa,Ch=new ba(!0),Eh=new xa(!0),_o=t=>t,Hs=t=>Reflect.getPrototypeOf(t);function Ws(t,e,n=!1,s=!1){t=t.__v_raw;const i=ve(t),o=ve(e);n||(un(e,o)&&ot(i,"get",e),ot(i,"get",o));const{has:r}=Hs(i),l=s?_o:n?xo:as;if(r.call(i,e))return l(t.get(e));if(r.call(i,o))return l(t.get(o));t!==i&&t.get(e)}function Us(t,e=!1){const n=this.__v_raw,s=ve(n),i=ve(t);return e||(un(t,i)&&ot(s,"has",t),ot(s,"has",i)),t===i?n.has(t):n.has(t)||n.has(i)}function Ys(t,e=!1){return t=t.__v_raw,!e&&ot(ve(t),"iterate",Pn),Reflect.get(t,"size",t)}function wa(t){t=ve(t);const e=ve(this);return Hs(e).has.call(e,t)||(e.add(t),Vt(e,"add",t,t)),this}function Ca(t,e){e=ve(e);const n=ve(this),{has:s,get:i}=Hs(n);let o=s.call(n,t);o?{}.NODE_ENV!=="production"&&ka(n,s,t):(t=ve(t),o=s.call(n,t));const r=i.call(n,t);return n.set(t,e),o?un(e,r)&&Vt(n,"set",t,e,r):Vt(n,"add",t,e),this}function Ea(t){const e=ve(this),{has:n,get:s}=Hs(e);let i=n.call(e,t);i?{}.NODE_ENV!=="production"&&ka(e,n,t):(t=ve(t),i=n.call(e,t));const o=s?s.call(e,t):void 0,r=e.delete(t);return i&&Vt(e,"delete",t,void 0,o),r}function Sa(){const t=ve(this),e=t.size!==0,n={}.NODE_ENV!=="production"?En(t)?new Map(t):new Set(t):void 0,s=t.clear();return e&&Vt(t,"clear",void 0,void 0,n),s}function Xs(t,e){return function(s,i){const o=this,r=o.__v_raw,l=ve(r),a=e?_o:t?xo:as;return!t&&ot(l,"iterate",Pn),r.forEach((c,u)=>s.call(i,a(c),a(u),o))}}function qs(t,e,n){return function(...s){const i=this.__v_raw,o=ve(i),r=En(o),l=t==="entries"||t===Symbol.iterator&&r,a=t==="keys"&&r,c=i[t](...s),u=n?_o:e?xo:as;return!e&&ot(o,"iterate",a?yo:Pn),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:l?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function fn(t){return function(...e){if({}.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";hn(`${Bs(t)} operation ${n}failed: target is readonly.`,ve(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function Sh(){const t={get(o){return Ws(this,o)},get size(){return Ys(this)},has:Us,add:wa,set:Ca,delete:Ea,clear:Sa,forEach:Xs(!1,!1)},e={get(o){return Ws(this,o,!1,!0)},get size(){return Ys(this)},has:Us,add:wa,set:Ca,delete:Ea,clear:Sa,forEach:Xs(!1,!0)},n={get(o){return Ws(this,o,!0)},get size(){return Ys(this,!0)},has(o){return Us.call(this,o,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Xs(!0,!1)},s={get(o){return Ws(this,o,!0,!0)},get size(){return Ys(this,!0)},has(o){return Us.call(this,o,!0)},add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear"),forEach:Xs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=qs(o,!1,!1),n[o]=qs(o,!0,!1),e[o]=qs(o,!1,!0),s[o]=qs(o,!0,!0)}),[t,n,e,s]}const[kh,Th,Ph,Nh]=Sh();function Ks(t,e){const n=e?t?Nh:Ph:t?Th:kh;return(s,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?s:Reflect.get(be(n,i)&&i in s?n:s,i,o)}const Oh={get:Ks(!1,!1)},Ih={get:Ks(!1,!0)},$h={get:Ks(!0,!1)},Dh={get:Ks(!0,!0)};function ka(t,e,n){const s=ve(n);if(s!==n&&e.call(t,s)){const i=ao(t);hn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Ta=new WeakMap,Pa=new WeakMap,Na=new WeakMap,Oa=new WeakMap;function Mh(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rh(t){return t.__v_skip||!Object.isExtensible(t)?0:Mh(ao(t))}function nt(t){return Nn(t)?t:Zs(t,!1,xh,Oh,Ta)}function Ah(t){return Zs(t,!1,Ch,Ih,Pa)}function Ia(t){return Zs(t,!0,wh,$h,Na)}function qt(t){return Zs(t,!0,Eh,Dh,Oa)}function Zs(t,e,n,s,i){if(!Oe(t))return{}.NODE_ENV!=="production"&&hn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const r=Rh(t);if(r===0)return t;const l=new Proxy(t,r===2?s:n);return i.set(t,l),l}function Xn(t){return Nn(t)?Xn(t.__v_raw):!!(t&&t.__v_isReactive)}function Nn(t){return!!(t&&t.__v_isReadonly)}function On(t){return!!(t&&t.__v_isShallow)}function bo(t){return t?!!t.__v_raw:!1}function ve(t){const e=t&&t.__v_raw;return e?ve(e):t}function Lh(t){return Object.isExtensible(t)&&oa(t,"__v_skip",!0),t}const as=t=>Oe(t)?nt(t):t,xo=t=>Oe(t)?Ia(t):t,Fh="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class $a{constructor(e,n,s,i){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ho(()=>e(this._value),()=>Qs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=ve(this);return(!e._cacheable||e.effect.dirty)&&un(e._value,e._value=e.effect.run())&&Qs(e,4),Da(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&hn(Fh,`
9
+ **/function pn(n,...e){console.warn(`[Vue warn] ${n}`,...e)}let Mt;class vh{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Mt,!e&&Mt&&(this.index=(Mt.scopes||(Mt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Mt;try{return Mt=this,e()}finally{Mt=t}}else({}).NODE_ENV!=="production"&&pn("cannot run an inactive effect scope.")}on(){Mt=this}off(){Mt=this.parent}stop(e){if(this._active){let t,s;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].stop();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function yh(n,e=Mt){e&&e.active&&e.effects.push(n)}function _h(){return Mt}let Dn;class yo{constructor(e,t,s,i){this.fn=e,this.trigger=t,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,yh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,qt();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(bh(t.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Kt()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=mn,t=Dn;try{return mn=!0,Dn=this,this._runnings++,ga(this),this.fn()}finally{va(this),this._runnings--,Dn=t,mn=e}}stop(){var e;this.active&&(ga(this),va(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function bh(n){return n.value}function ga(n){n._trackId++,n._depsLength=0}function va(n){if(n.deps.length>n._depsLength){for(let e=n._depsLength;e<n.deps.length;e++)ya(n.deps[e],n);n.deps.length=n._depsLength}}function ya(n,e){const t=n.get(e);t!==void 0&&e._trackId!==t&&(n.delete(e),n.size===0&&n.cleanup())}let mn=!0,_o=0;const _a=[];function qt(){_a.push(mn),mn=!1}function Kt(){const n=_a.pop();mn=n===void 0?!0:n}function bo(){_o++}function xo(){for(_o--;!_o&&wo.length;)wo.shift()()}function ba(n,e,t){var s;if(e.get(n)!==n._trackId){e.set(n,n._trackId);const i=n.deps[n._depsLength];i!==e?(i&&ya(i,n),n.deps[n._depsLength++]=e):n._depsLength++,{}.NODE_ENV!=="production"&&((s=n.onTrack)==null||s.call(n,He({effect:n},t)))}}const wo=[];function xa(n,e,t){var s;bo();for(const i of n.keys()){let o;i._dirtyLevel<e&&(o??(o=n.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(o??(o=n.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((s=i.onTrigger)==null||s.call(i,He({effect:i},t))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&wo.push(i.scheduler)))}xo()}const wa=(n,e)=>{const t=new Map;return t.cleanup=n,t.computed=e,t},Eo=new WeakMap,$n=Symbol({}.NODE_ENV!=="production"?"iterate":""),Co=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ct(n,e,t){if(mn&&Dn){let s=Eo.get(n);s||Eo.set(n,s=new Map);let i=s.get(t);i||s.set(t,i=wa(()=>s.delete(t))),ba(Dn,i,{}.NODE_ENV!=="production"?{target:n,type:e,key:t}:void 0)}}function Gt(n,e,t,s,i,o){const r=Eo.get(n);if(!r)return;let a=[];if(e==="clear")a=[...r.values()];else if(t==="length"&&ce(n)){const l=Number(s);r.forEach((c,u)=>{(u==="length"||!Nn(u)&&u>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(r.get(t)),e){case"add":ce(n)?mo(t)&&a.push(r.get("length")):(a.push(r.get($n)),On(n)&&a.push(r.get(Co)));break;case"delete":ce(n)||(a.push(r.get($n)),On(n)&&a.push(r.get(Co)));break;case"set":On(n)&&a.push(r.get($n));break}bo();for(const l of a)l&&xa(l,4,{}.NODE_ENV!=="production"?{target:n,type:e,key:t,newValue:s,oldValue:i,oldTarget:o}:void 0);xo()}const xh=qn("__proto__,__v_isRef,__isVue"),Ea=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Nn)),Ca=wh();function wh(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const s=be(this);for(let o=0,r=this.length;o<r;o++)ct(s,"get",o+"");const i=s[e](...t);return i===-1||i===!1?s[e](...t.map(be)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{n[e]=function(...t){qt(),bo();const s=be(this)[e].apply(this,t);return xo(),Kt(),s}}),n}function Eh(n){Nn(n)||(n=String(n));const e=be(this);return ct(e,"has",n),e.hasOwnProperty(n)}class Sa{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,s){const i=this._isReadonly,o=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return o;if(t==="__v_raw")return s===(i?o?Aa:Ra:o?Ma:$a).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const r=ce(e);if(!i){if(r&&Ce(Ca,t))return Reflect.get(Ca,t,s);if(t==="hasOwnProperty")return Eh}const a=Reflect.get(e,t,s);return(Nn(t)?Ea.has(t):xh(t))||(i||ct(e,"get",t),o)?a:ut(a)?r&&mo(t)?a:a.value:$e(a)?i?La(a):ot(a):a}}class ka extends Sa{constructor(e=!1){super(!1,e)}set(e,t,s,i){let o=e[t];if(!this._isShallow){const l=Mn(o);if(!Rn(s)&&!Mn(s)&&(o=be(o),s=be(s)),!ce(e)&&ut(o)&&!ut(s))return l?!1:(o.value=s,!0)}const r=ce(e)&&mo(t)?Number(t)<e.length:Ce(e,t),a=Reflect.set(e,t,s,i);return e===be(i)&&(r?fn(s,o)&&Gt(e,"set",t,s,o):Gt(e,"add",t,s)),a}deleteProperty(e,t){const s=Ce(e,t),i=e[t],o=Reflect.deleteProperty(e,t);return o&&s&&Gt(e,"delete",t,void 0,i),o}has(e,t){const s=Reflect.has(e,t);return(!Nn(t)||!Ea.has(t))&&ct(e,"has",t),s}ownKeys(e){return ct(e,"iterate",ce(e)?"length":$n),Reflect.ownKeys(e)}}class Ta extends Sa{constructor(e=!1){super(!0,e)}set(e,t){return{}.NODE_ENV!=="production"&&pn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return{}.NODE_ENV!=="production"&&pn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const Ch=new ka,Sh=new Ta,kh=new ka(!0),Th=new Ta(!0),So=n=>n,Qs=n=>Reflect.getPrototypeOf(n);function Js(n,e,t=!1,s=!1){n=n.__v_raw;const i=be(n),o=be(e);t||(fn(e,o)&&ct(i,"get",e),ct(i,"get",o));const{has:r}=Qs(i),a=s?So:t?To:ds;if(r.call(i,e))return a(n.get(e));if(r.call(i,o))return a(n.get(o));n!==i&&n.get(e)}function ei(n,e=!1){const t=this.__v_raw,s=be(t),i=be(n);return e||(fn(n,i)&&ct(s,"has",n),ct(s,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function ti(n,e=!1){return n=n.__v_raw,!e&&ct(be(n),"iterate",$n),Reflect.get(n,"size",n)}function Pa(n){n=be(n);const e=be(this);return Qs(e).has.call(e,n)||(e.add(n),Gt(e,"add",n,n)),this}function Oa(n,e){e=be(e);const t=be(this),{has:s,get:i}=Qs(t);let o=s.call(t,n);o?{}.NODE_ENV!=="production"&&Da(t,s,n):(n=be(n),o=s.call(t,n));const r=i.call(t,n);return t.set(n,e),o?fn(e,r)&&Gt(t,"set",n,e,r):Gt(t,"add",n,e),this}function Na(n){const e=be(this),{has:t,get:s}=Qs(e);let i=t.call(e,n);i?{}.NODE_ENV!=="production"&&Da(e,t,n):(n=be(n),i=t.call(e,n));const o=s?s.call(e,n):void 0,r=e.delete(n);return i&&Gt(e,"delete",n,void 0,o),r}function Ia(){const n=be(this),e=n.size!==0,t={}.NODE_ENV!=="production"?On(n)?new Map(n):new Set(n):void 0,s=n.clear();return e&&Gt(n,"clear",void 0,void 0,t),s}function ni(n,e){return function(s,i){const o=this,r=o.__v_raw,a=be(r),l=e?So:n?To:ds;return!n&&ct(a,"iterate",$n),r.forEach((c,u)=>s.call(i,l(c),l(u),o))}}function si(n,e,t){return function(...s){const i=this.__v_raw,o=be(i),r=On(o),a=n==="entries"||n===Symbol.iterator&&r,l=n==="keys"&&r,c=i[n](...s),u=t?So:e?To:ds;return!e&&ct(o,"iterate",l?Co:$n),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:a?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function gn(n){return function(...e){if({}.NODE_ENV!=="production"){const t=e[0]?`on key "${e[0]}" `:"";pn(`${Zs(n)} operation ${t}failed: target is readonly.`,be(this))}return n==="delete"?!1:n==="clear"?void 0:this}}function Ph(){const n={get(o){return Js(this,o)},get size(){return ti(this)},has:ei,add:Pa,set:Oa,delete:Na,clear:Ia,forEach:ni(!1,!1)},e={get(o){return Js(this,o,!1,!0)},get size(){return ti(this)},has:ei,add:Pa,set:Oa,delete:Na,clear:Ia,forEach:ni(!1,!0)},t={get(o){return Js(this,o,!0)},get size(){return ti(this,!0)},has(o){return ei.call(this,o,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:ni(!0,!1)},s={get(o){return Js(this,o,!0,!0)},get size(){return ti(this,!0)},has(o){return ei.call(this,o,!0)},add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear"),forEach:ni(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=si(o,!1,!1),t[o]=si(o,!0,!1),e[o]=si(o,!1,!0),s[o]=si(o,!0,!0)}),[n,t,e,s]}const[Oh,Nh,Ih,Dh]=Ph();function ii(n,e){const t=e?n?Dh:Ih:n?Nh:Oh;return(s,i,o)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?s:Reflect.get(Ce(t,i)&&i in s?t:s,i,o)}const $h={get:ii(!1,!1)},Mh={get:ii(!1,!0)},Rh={get:ii(!0,!1)},Ah={get:ii(!0,!0)};function Da(n,e,t){const s=be(t);if(s!==t&&e.call(n,s)){const i=po(n);pn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const $a=new WeakMap,Ma=new WeakMap,Ra=new WeakMap,Aa=new WeakMap;function Lh(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fh(n){return n.__v_skip||!Object.isExtensible(n)?0:Lh(po(n))}function ot(n){return Mn(n)?n:oi(n,!1,Ch,$h,$a)}function Vh(n){return oi(n,!1,kh,Mh,Ma)}function La(n){return oi(n,!0,Sh,Rh,Ra)}function Zt(n){return oi(n,!0,Th,Ah,Aa)}function oi(n,e,t,s,i){if(!$e(n))return{}.NODE_ENV!=="production"&&pn(`value cannot be made reactive: ${String(n)}`),n;if(n.__v_raw&&!(e&&n.__v_isReactive))return n;const o=i.get(n);if(o)return o;const r=Fh(n);if(r===0)return n;const a=new Proxy(n,r===2?s:t);return i.set(n,a),a}function Zn(n){return Mn(n)?Zn(n.__v_raw):!!(n&&n.__v_isReactive)}function Mn(n){return!!(n&&n.__v_isReadonly)}function Rn(n){return!!(n&&n.__v_isShallow)}function ko(n){return n?!!n.__v_raw:!1}function be(n){const e=n&&n.__v_raw;return e?be(e):n}function zh(n){return Object.isExtensible(n)&&ha(n,"__v_skip",!0),n}const ds=n=>$e(n)?ot(n):n,To=n=>$e(n)?La(n):n,Gh="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class Fa{constructor(e,t,s,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new yo(()=>e(this._value),()=>ri(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const e=be(this);return(!e._cacheable||e.effect.dirty)&&fn(e._value,e._value=e.effect.run())&&ri(e,4),Va(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&pn(Gh,`
10
10
 
11
- getter: `,this.getter),Qs(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Vh(t,e,n=!1){let s,i;const o=de(t);o?(s=t,i={}.NODE_ENV!=="production"?()=>{hn("Write operation failed: computed value is readonly")}:Je):(s=t.get,i=t.set);const r=new $a(s,i,o||!i,n);return{}.NODE_ENV!=="production"&&e&&!n&&(r.effect.onTrack=e.onTrack,r.effect.onTrigger=e.onTrigger),r}function Da(t){var e;dn&&Tn&&(t=ve(t),pa(Tn,(e=t.dep)!=null?e:t.dep=ga(()=>t.dep=void 0,t instanceof $a?t:void 0),{}.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function Qs(t,e=4,n){t=ve(t);const s=t.dep;s&&ma(s,e,{}.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n}:void 0)}function rt(t){return!!(t&&t.__v_isRef===!0)}function $(t){return zh(t,!1)}function zh(t,e){return rt(t)?t:new Gh(t,e)}class Gh{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:ve(e),this._value=n?e:as(e)}get value(){return Da(this),this._value}set value(e){const n=this.__v_isShallow||On(e)||Nn(e);e=n?e:ve(e),un(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:as(e),Qs(this,4,e))}}function _e(t){return rt(t)?t.value:t}const jh={get:(t,e,n)=>_e(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return rt(i)&&!rt(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function Ma(t){return Xn(t)?t:new Proxy(t,jh)}/**
11
+ getter: `,this.getter),ri(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function jh(n,e,t=!1){let s,i;const o=fe(n);o?(s=n,i={}.NODE_ENV!=="production"?()=>{pn("Write operation failed: computed value is readonly")}:Qe):(s=n.get,i=n.set);const r=new Fa(s,i,o||!i,t);return{}.NODE_ENV!=="production"&&e&&!t&&(r.effect.onTrack=e.onTrack,r.effect.onTrigger=e.onTrigger),r}function Va(n){var e;mn&&Dn&&(n=be(n),ba(Dn,(e=n.dep)!=null?e:n.dep=wa(()=>n.dep=void 0,n instanceof Fa?n:void 0),{}.NODE_ENV!=="production"?{target:n,type:"get",key:"value"}:void 0))}function ri(n,e=4,t){n=be(n);const s=n.dep;s&&xa(s,e,{}.NODE_ENV!=="production"?{target:n,type:"set",key:"value",newValue:t}:void 0)}function ut(n){return!!(n&&n.__v_isRef===!0)}function $(n){return Bh(n,!1)}function Bh(n,e){return ut(n)?n:new Hh(n,e)}class Hh{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:be(e),this._value=t?e:ds(e)}get value(){return Va(this),this._value}set value(e){const t=this.__v_isShallow||Rn(e)||Mn(e);e=t?e:be(e),fn(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ds(e),ri(this,4,e))}}function Ee(n){return ut(n)?n.value:n}const Wh={get:(n,e,t)=>Ee(Reflect.get(n,e,t)),set:(n,e,t,s)=>{const i=n[e];return ut(i)&&!ut(t)?(i.value=t,!0):Reflect.set(n,e,t,s)}};function za(n){return Zn(n)?n:new Proxy(n,Wh)}/**
12
12
  * @vue/runtime-core v3.4.25
13
13
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
14
14
  * @license MIT
15
- **/const In=[];function Js(t){In.push(t)}function ei(){In.pop()}function Y(t,...e){Yt();const n=In.length?In[In.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=Bh();if(s)Kt(s,n,11,[t+e.map(o=>{var r,l;return(l=(r=o.toString)==null?void 0:r.call(o))!=null?l:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${yi(n,o.type)}>`).join(`
16
- `),i]);else{const o=[`[Vue warn]: ${t}`,...e];i.length&&o.push(`
17
- `,...Hh(i)),console.warn(...o)}Xt()}function Bh(){let t=In[In.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}function Hh(t){const e=[];return t.forEach((n,s)=>{e.push(...s===0?[]:[`
18
- `],...Wh(n))}),e}function Wh({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",s=t.component?t.component.parent==null:!1,i=` at <${yi(t.component,t.type,s)}`,o=">"+n;return t.props?[i,...Uh(t.props),o]:[i+o]}function Uh(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(s=>{e.push(...Ra(s,t[s]))}),n.length>3&&e.push(" ..."),e}function Ra(t,e,n){return Ye(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:rt(e)?(e=Ra(t,ve(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):de(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=ve(e),n?e:[`${t}=`,e])}const wo={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. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Kt(t,e,n,s){try{return s?t(...s):t()}catch(i){ls(i,e,n)}}function Dt(t,e,n,s){if(de(t)){const i=Kt(t,e,n,s);return i&&ro(i)&&i.catch(o=>{ls(o,e,n)}),i}if(re(t)){const i=[];for(let o=0;o<t.length;o++)i.push(Dt(t[o],e,n,s));return i}else({}).NODE_ENV!=="production"&&Y(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`)}function ls(t,e,n,s=!0){const i=e?e.vnode:null;if(e){let o=e.parent;const r=e.proxy,l={}.NODE_ENV!=="production"?wo[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,r,l)===!1)return}o=o.parent}const a=e.appContext.config.errorHandler;if(a){Yt(),Kt(a,null,10,[t,r,l]),Xt();return}}Yh(t,n,i,s)}function Yh(t,e,n,s=!0){if({}.NODE_ENV!=="production"){const i=wo[e];if(n&&Js(n),Y(`Unhandled error${i?` during execution of ${i}`:""}`),n&&ei(),s)throw t;console.error(t)}else console.error(t)}let cs=!1,Co=!1;const ut=[];let zt=0;const qn=[];let Zt=null,pn=0;const Aa=Promise.resolve();let Eo=null;const Xh=100;function ti(t){const e=Eo||Aa;return t?e.then(this?t.bind(this):t):e}function qh(t){let e=zt+1,n=ut.length;for(;e<n;){const s=e+n>>>1,i=ut[s],o=us(i);o<t||o===t&&i.pre?e=s+1:n=s}return e}function ni(t){(!ut.length||!ut.includes(t,cs&&t.allowRecurse?zt+1:zt))&&(t.id==null?ut.push(t):ut.splice(qh(t.id),0,t),La())}function La(){!cs&&!Co&&(Co=!0,Eo=Aa.then(Ga))}function Kh(t){const e=ut.indexOf(t);e>zt&&ut.splice(e,1)}function Fa(t){re(t)?qn.push(...t):(!Zt||!Zt.includes(t,t.allowRecurse?pn+1:pn))&&qn.push(t),La()}function Va(t,e,n=cs?zt+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);n<ut.length;n++){const s=ut[n];if(s&&s.pre){if(t&&s.id!==t.uid||{}.NODE_ENV!=="production"&&So(e,s))continue;ut.splice(n,1),n--,s()}}}function za(t){if(qn.length){const e=[...new Set(qn)].sort((n,s)=>us(n)-us(s));if(qn.length=0,Zt){Zt.push(...e);return}for(Zt=e,{}.NODE_ENV!=="production"&&(t=t||new Map),pn=0;pn<Zt.length;pn++)({}).NODE_ENV!=="production"&&So(t,Zt[pn])||Zt[pn]();Zt=null,pn=0}}const us=t=>t.id==null?1/0:t.id,Zh=(t,e)=>{const n=us(t)-us(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Ga(t){Co=!1,cs=!0,{}.NODE_ENV!=="production"&&(t=t||new Map),ut.sort(Zh);const e={}.NODE_ENV!=="production"?n=>So(t,n):Je;try{for(zt=0;zt<ut.length;zt++){const n=ut[zt];if(n&&n.active!==!1){if({}.NODE_ENV!=="production"&&e(n))continue;Kt(n,null,14)}}}finally{zt=0,ut.length=0,za(t),cs=!1,Eo=null,(ut.length||qn.length)&&Ga(t)}}function So(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>Xh){const s=e.ownerInstance,i=s&&Al(s.type);return ls(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else t.set(e,n+1)}}let $n=!1;const Kn=new Set;({}).NODE_ENV!=="production"&&(co().__VUE_HMR_RUNTIME__={createRecord:ko(ja),rerender:ko(ed),reload:ko(td)});const Dn=new Map;function Qh(t){const e=t.type.__hmrId;let n=Dn.get(e);n||(ja(e,t.type),n=Dn.get(e)),n.instances.add(t)}function Jh(t){Dn.get(t.type.__hmrId).instances.delete(t)}function ja(t,e){return Dn.has(t)?!1:(Dn.set(t,{initialDef:hs(e),instances:new Set}),!0)}function hs(t){return Ll(t)?t.__vccOpts:t}function ed(t,e){const n=Dn.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(s=>{e&&(s.render=e,hs(s.type).render=e),s.renderCache=[],$n=!0,s.effect.dirty=!0,s.update(),$n=!1}))}function td(t,e){const n=Dn.get(t);if(!n)return;e=hs(e),Ba(n.initialDef,e);const s=[...n.instances];for(const i of s){const o=hs(i.type);Kn.has(o)||(o!==n.initialDef&&Ba(o,e),Kn.add(o)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Kn.add(o),i.ceReload(e.styles),Kn.delete(o)):i.parent?(i.parent.effect.dirty=!0,ni(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Fa(()=>{for(const i of s)Kn.delete(hs(i.type))})}function Ba(t,e){je(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function ko(t){return(e,n)=>{try{return t(e,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Gt,ds=[],To=!1;function fs(t,...e){Gt?Gt.emit(t,...e):To||ds.push({event:t,args:e})}function Ha(t,e){var n,s;Gt=t,Gt?(Gt.enabled=!0,ds.forEach(({event:i,args:o})=>Gt.emit(i,...o)),ds=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Ha(o,e)}),setTimeout(()=>{Gt||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,To=!0,ds=[])},3e3)):(To=!0,ds=[])}function nd(t,e){fs("app:init",t,e,{Fragment:De,Text:ys,Comment:Ct,Static:fi})}function sd(t){fs("app:unmount",t)}const id=Po("component:added"),Wa=Po("component:updated"),od=Po("component:removed"),rd=t=>{Gt&&typeof Gt.cleanupBuffer=="function"&&!Gt.cleanupBuffer(t)&&od(t)};/*! #__NO_SIDE_EFFECTS__ */function Po(t){return e=>{fs(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const ad=Ua("perf:start"),ld=Ua("perf:end");function Ua(t){return(e,n,s)=>{fs(t,e.appContext.app,e.uid,e,n,s)}}function cd(t,e,n){fs("component:emit",t.appContext.app,t,e,n)}function ud(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||$e;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=t;if(u)if(!(e in u))(!h||!(kn(e)in h))&&Y(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${kn(e)}" prop.`);else{const d=u[e];de(d)&&(d(...n)||Y(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=n;const o=e.startsWith("update:"),r=o&&e.slice(7);if(r&&r in s){const u=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:d}=s[u]||$e;d&&(i=n.map(f=>Ye(f)?f.trim():f)),h&&(i=n.map(lh))}if({}.NODE_ENV!=="production"&&cd(t,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&s[kn(u)]&&Y(`Event "${u}" is emitted in component ${yi(t,t.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Tt(e)}" instead of "${e}".`)}let l,a=s[l=kn(e)]||s[l=kn(Ut(e))];!a&&o&&(a=s[l=kn(Tt(e))]),a&&Dt(a,t,6,i);const c=s[l+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,Dt(c,t,6,i)}}function Ya(t,e,n=!1){const s=e.emitsCache,i=s.get(t);if(i!==void 0)return i;const o=t.emits;let r={},l=!1;if(!de(t)){const a=c=>{const u=Ya(c,e,!0);u&&(l=!0,je(r,u))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!o&&!l?(Oe(t)&&s.set(t,null),null):(re(o)?o.forEach(a=>r[a]=null):je(r,o),Oe(t)&&s.set(t,r),r)}function si(t,e){return!t||!is(e)?!1:(e=e.slice(2).replace(/Once$/,""),be(t,e[0].toLowerCase()+e.slice(1))||be(t,Tt(e))||be(t,e))}let tt=null,ii=null;function oi(t){const e=tt;return tt=t,ii=t&&t.type.__scopeId||null,e}function Mn(t){ii=t}function Rn(){ii=null}function Te(t,e=tt,n){if(!e||t._n)return t;const s=(...i)=>{s._d&&El(-1);const o=oi(e);let r;try{r=t(...i)}finally{oi(o),s._d&&El(1)}return{}.NODE_ENV!=="production"&&Wa(e),r};return s._n=!0,s._c=!0,s._d=!0,s}let No=!1;function ri(){No=!0}function Oo(t){const{type:e,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:l,emit:a,render:c,renderCache:u,props:h,data:d,setupState:f,ctx:m,inheritAttrs:v}=t,y=oi(t);let w,E;({}).NODE_ENV!=="production"&&(No=!1);try{if(n.shapeFlag&4){const D=i||s,N={}.NODE_ENV!=="production"&&f.__isScriptSetup?new Proxy(D,{get(R,ae,le){return Y(`Property '${String(ae)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(R,ae,le)}}):D;w=Rt(c.call(N,D,u,{}.NODE_ENV!=="production"?qt(h):h,f,d,m)),E=l}else{const D=e;({}).NODE_ENV!=="production"&&l===h&&ri(),w=Rt(D.length>1?D({}.NODE_ENV!=="production"?qt(h):h,{}.NODE_ENV!=="production"?{get attrs(){return ri(),l},slots:r,emit:a}:{attrs:l,slots:r,emit:a}):D({}.NODE_ENV!=="production"?qt(h):h,null)),E=e.props?l:hd(l)}}catch(D){_s.length=0,ls(D,t,1),w=se(Ct)}let C=w,S;if({}.NODE_ENV!=="production"&&w.patchFlag>0&&w.patchFlag&2048&&([C,S]=Xa(w)),E&&v!==!1){const D=Object.keys(E),{shapeFlag:N}=C;if(D.length){if(N&7)o&&D.some(zs)&&(E=dd(E,o)),C=vn(C,E);else if({}.NODE_ENV!=="production"&&!No&&C.type!==Ct){const R=Object.keys(l),ae=[],le=[];for(let he=0,Ne=R.length;he<Ne;he++){const ke=R[he];is(ke)?zs(ke)||ae.push(ke[2].toLowerCase()+ke.slice(3)):le.push(ke)}le.length&&Y(`Extraneous non-props attributes (${le.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ae.length&&Y(`Extraneous non-emits event listeners (${ae.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&({}.NODE_ENV!=="production"&&!qa(C)&&Y("Runtime directive used on component with non-element root node. The directives will not function as intended."),C=vn(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&({}.NODE_ENV!=="production"&&!qa(C)&&Y("Component inside <Transition> renders non-element root node that cannot be animated."),C.transition=n.transition),{}.NODE_ENV!=="production"&&S?S(C):w=C,oi(y),w}const Xa=t=>{const e=t.children,n=t.dynamicChildren,s=Io(e,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return Xa(s)}else return[t,void 0];const i=e.indexOf(s),o=n?n.indexOf(s):-1,r=l=>{e[i]=l,n&&(o>-1?n[o]=l:l.patchFlag>0&&(t.dynamicChildren=[...n,l]))};return[Rt(s),r]};function Io(t,e=!0){let n;for(let s=0;s<t.length;s++){const i=t[s];if(Zn(i)){if(i.type!==Ct||i.children==="v-if"){if(n)return;if(n=i,{}.NODE_ENV!=="production"&&e&&n.patchFlag>0&&n.patchFlag&2048)return Io(n.children)}}else return}return n}const hd=t=>{let e;for(const n in t)(n==="class"||n==="style"||is(n))&&((e||(e={}))[n]=t[n]);return e},dd=(t,e)=>{const n={};for(const s in t)(!zs(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n},qa=t=>t.shapeFlag&7||t.type===Ct;function fd(t,e,n){const{props:s,children:i,component:o}=t,{props:r,children:l,patchFlag:a}=e,c=o.emitsOptions;if({}.NODE_ENV!=="production"&&(i||l)&&$n||e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ka(s,r,c):!!r;if(a&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(r[d]!==s[d]&&!si(c,d))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===r?!1:s?r?Ka(s,r,c):!0:!!r;return!1}function Ka(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(e[o]!==t[o]&&!si(n,o))return!0}return!1}function pd({vnode:t,parent:e},n){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=n,e=e.parent;else break}}const md=Symbol.for("v-ndc"),gd=t=>t.__isSuspense;function vd(t,e){e&&e.pendingBranch?re(t)?e.effects.push(...t):e.effects.push(t):Fa(t)}const yd=Symbol.for("v-scx"),_d=()=>{{const t=ui(yd);return t||{}.NODE_ENV!=="production"&&Y("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}};function Za(t,e){return $o(t,null,e)}const ai={};function me(t,e,n){return{}.NODE_ENV!=="production"&&!de(e)&&Y("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),$o(t,e,n)}function $o(t,e,{immediate:n,deep:s,flush:i,once:o,onTrack:r,onTrigger:l}=$e){if(e&&o){const R=e;e=(...ae)=>{R(...ae),N()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&Y('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(n!==void 0&&Y('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&Y('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Y('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=R=>{Y("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=st,u=R=>s===!0?R:An(R,s===!1?1:void 0);let h,d=!1,f=!1;if(rt(t)?(h=()=>t.value,d=On(t)):Xn(t)?(h=()=>u(t),d=!0):re(t)?(f=!0,d=t.some(R=>Xn(R)||On(R)),h=()=>t.map(R=>{if(rt(R))return R.value;if(Xn(R))return u(R);if(de(R))return Kt(R,c,2);({}).NODE_ENV!=="production"&&a(R)})):de(t)?e?h=()=>Kt(t,c,2):h=()=>(m&&m(),Dt(t,c,3,[v])):(h=Je,{}.NODE_ENV!=="production"&&a(t)),e&&s){const R=h;h=()=>An(R())}let m,v=R=>{m=S.onStop=()=>{Kt(R,c,4),m=S.onStop=void 0}},y;if(gi)if(v=Je,e?n&&Dt(e,c,3,[h(),f?[]:void 0,v]):h(),i==="sync"){const R=_d();y=R.__watcherHandles||(R.__watcherHandles=[])}else return Je;let w=f?new Array(t.length).fill(ai):ai;const E=()=>{if(!(!S.active||!S.dirty))if(e){const R=S.run();(s||d||(f?R.some((ae,le)=>un(ae,w[le])):un(R,w)))&&(m&&m(),Dt(e,c,3,[R,w===ai?void 0:f&&w[0]===ai?[]:w,v]),w=R)}else S.run()};E.allowRecurse=!!e;let C;i==="sync"?C=E:i==="post"?C=()=>wt(E,c&&c.suspense):(E.pre=!0,c&&(E.id=c.uid),C=()=>ni(E));const S=new ho(h,Je,C),D=gh(),N=()=>{S.stop(),D&&oo(D.effects,S)};return{}.NODE_ENV!=="production"&&(S.onTrack=r,S.onTrigger=l),e?n?E():w=S.run():i==="post"?wt(S.run.bind(S),c&&c.suspense):S.run(),y&&y.push(N),N}function bd(t,e,n){const s=this.proxy,i=Ye(t)?t.includes(".")?Qa(s,t):()=>s[t]:t.bind(s,s);let o;de(e)?o=e:(o=e.handler,n=e);const r=ws(this),l=$o(i,o.bind(s),n);return r(),l}function Qa(t,e){const n=e.split(".");return()=>{let s=t;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function An(t,e,n=0,s){if(!Oe(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(s=s||new Set,s.has(t))return t;if(s.add(t),rt(t))An(t.value,e,n,s);else if(re(t))for(let i=0;i<t.length;i++)An(t[i],e,n,s);else if(na(t)||En(t))t.forEach(i=>{An(i,e,n,s)});else if(ia(t))for(const i in t)An(t[i],e,n,s);return t}function Ja(t){oh(t)&&Y("Do not use built-in directive ids as custom directive id: "+t)}function Do(t,e){if(tt===null)return{}.NODE_ENV!=="production"&&Y("withDirectives can only be used inside render functions."),t;const n=vi(tt)||tt.proxy,s=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,r,l,a=$e]=e[i];o&&(de(o)&&(o={mounted:o,updated:o}),o.deep&&An(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:l,modifiers:a}))}return t}function Ln(t,e,n,s){const i=t.dirs,o=e&&e.dirs;for(let r=0;r<i.length;r++){const l=i[r];o&&(l.oldValue=o[r].value);let a=l.dir[s];a&&(Yt(),Dt(a,n,8,[t.el,l,t,e]),Xt())}}/*! #__NO_SIDE_EFFECTS__ */function Z(t,e){return de(t)?(()=>je({name:t.name},e,{setup:t}))():t}const ps=t=>!!t.type.__asyncLoader,Mo=t=>t.type.__isKeepAlive;function xd(t,e){el(t,"a",e)}function wd(t,e){el(t,"da",e)}function el(t,e,n=st){const s=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(li(e,s,n),n){let i=n.parent;for(;i&&i.parent;)Mo(i.parent.vnode)&&Cd(s,e,n,i),i=i.parent}}function Cd(t,e,n,s){const i=li(e,t,s,!0);Re(()=>{oo(s[e],i)},n)}function li(t,e,n=st,s=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;Yt();const l=ws(n),a=Dt(e,n,t,r);return l(),Xt(),a});return s?i.unshift(o):i.push(o),o}else if({}.NODE_ENV!=="production"){const i=kn(wo[t].replace(/ hook$/,""));Y(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Qt=t=>(e,n=st)=>(!gi||t==="sp")&&li(t,(...s)=>e(...s),n),Ed=Qt("bm"),mn=Qt("m"),Sd=Qt("bu"),kd=Qt("u"),Td=Qt("bum"),Re=Qt("um"),Pd=Qt("sp"),Nd=Qt("rtg"),Od=Qt("rtc");function Id(t,e=st){li("ec",t,e)}function ft(t,e,n,s){let i;const o=n&&n[s];if(re(t)||Ye(t)){i=new Array(t.length);for(let r=0,l=t.length;r<l;r++)i[r]=e(t[r],r,void 0,o&&o[r])}else if(typeof t=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(t)&&Y(`The v-for range expect an integer value but got ${t}.`),i=new Array(t);for(let r=0;r<t;r++)i[r]=e(r+1,r,void 0,o&&o[r])}else if(Oe(t))if(t[Symbol.iterator])i=Array.from(t,(r,l)=>e(r,l,void 0,o&&o[l]));else{const r=Object.keys(t);i=new Array(r.length);for(let l=0,a=r.length;l<a;l++){const c=r[l];i[l]=e(t[c],c,l,o&&o[l])}}else i=[];return n&&(n[s]=i),i}function Ae(t,e,n={},s,i){if(tt.isCE||tt.parent&&ps(tt.parent)&&tt.parent.isCE)return e!=="default"&&(n.name=e),se("slot",n,s&&s());let o=t[e];({}).NODE_ENV!=="production"&&o&&o.length>1&&(Y("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),o=()=>[]),o&&o._c&&(o._d=!1),I();const r=o&&tl(o(n)),l=Xe(De,{key:n.key||r&&r.key||`_${e}`},r||(s?s():[]),r&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function tl(t){return t.some(e=>Zn(e)?!(e.type===Ct||e.type===De&&!tl(e.children)):!0)?t:null}const Ro=t=>t?Il(t)?vi(t)||t.proxy:Ro(t.parent):null,Fn=je(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>({}).NODE_ENV!=="production"?qt(t.props):t.props,$attrs:t=>({}).NODE_ENV!=="production"?qt(t.attrs):t.attrs,$slots:t=>({}).NODE_ENV!=="production"?qt(t.slots):t.slots,$refs:t=>({}).NODE_ENV!=="production"?qt(t.refs):t.refs,$parent:t=>Ro(t.parent),$root:t=>Ro(t.root),$emit:t=>t.emit,$options:t=>Vo(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,ni(t.update)}),$nextTick:t=>t.n||(t.n=ti.bind(t.proxy)),$watch:t=>bd.bind(t)}),Ao=t=>t==="_"||t==="$",Lo=(t,e)=>t!==$e&&!t.__isScriptSetup&&be(t,e),nl={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:l,appContext:a}=t;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const f=r[e];if(f!==void 0)switch(f){case 1:return s[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(Lo(s,e))return r[e]=1,s[e];if(i!==$e&&be(i,e))return r[e]=2,i[e];if((c=t.propsOptions[0])&&be(c,e))return r[e]=3,o[e];if(n!==$e&&be(n,e))return r[e]=4,n[e];Fo&&(r[e]=0)}}const u=Fn[e];let h,d;if(u)return e==="$attrs"?(ot(t.attrs,"get",""),{}.NODE_ENV!=="production"&&ri()):{}.NODE_ENV!=="production"&&e==="$slots"&&ot(t,"get",e),u(t);if((h=l.__cssModules)&&(h=h[e]))return h;if(n!==$e&&be(n,e))return r[e]=4,n[e];if(d=a.config.globalProperties,be(d,e))return d[e];({}).NODE_ENV!=="production"&&tt&&(!Ye(e)||e.indexOf("__v")!==0)&&(i!==$e&&Ao(e[0])&&be(i,e)?Y(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===tt&&Y(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:s,setupState:i,ctx:o}=t;return Lo(i,e)?(i[e]=n,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&be(i,e)?(Y(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==$e&&be(s,e)?(s[e]=n,!0):be(t.props,e)?({}.NODE_ENV!=="production"&&Y(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?({}.NODE_ENV!=="production"&&Y(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:n}):o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let l;return!!n[r]||t!==$e&&be(t,r)||Lo(e,r)||(l=o[0])&&be(l,r)||be(s,r)||be(Fn,r)||be(i.config.globalProperties,r)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:be(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};({}).NODE_ENV!=="production"&&(nl.ownKeys=t=>(Y("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function $d(t){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>t}),Object.keys(Fn).forEach(n=>{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:()=>Fn[n](t),set:Je})}),e}function Dd(t){const{ctx:e,propsOptions:[n]}=t;n&&Object.keys(n).forEach(s=>{Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>t.props[s],set:Je})})}function Md(t){const{ctx:e,setupState:n}=t;Object.keys(ve(n)).forEach(s=>{if(!n.__isScriptSetup){if(Ao(s[0])){Y(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:Je})}})}function Rd(){return Ad().slots}function Ad(){const t=Nl();return{}.NODE_ENV!=="production"&&!t&&Y("useContext() called without active instance."),t.setupContext||(t.setupContext=Rl(t))}function sl(t){return re(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Ld(){const t=Object.create(null);return(e,n)=>{t[n]?Y(`${e} property "${n}" is already defined in ${t[n]}.`):t[n]=e}}let Fo=!0;function Fd(t){const e=Vo(t),n=t.proxy,s=t.ctx;Fo=!1,e.beforeCreate&&il(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:r,watch:l,provide:a,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:f,updated:m,activated:v,deactivated:y,beforeDestroy:w,beforeUnmount:E,destroyed:C,unmounted:S,render:D,renderTracked:N,renderTriggered:R,errorCaptured:ae,serverPrefetch:le,expose:he,inheritAttrs:Ne,components:ke,directives:qe,filters:Ke}=e,ze={}.NODE_ENV!=="production"?Ld():null;if({}.NODE_ENV!=="production"){const[ce]=t.propsOptions;if(ce)for(const M in ce)ze("Props",M)}if(c&&Vd(c,s,ze),r)for(const ce in r){const M=r[ce];de(M)?({}.NODE_ENV!=="production"?Object.defineProperty(s,ce,{value:M.bind(n),configurable:!0,enumerable:!0,writable:!0}):s[ce]=M.bind(n),{}.NODE_ENV!=="production"&&ze("Methods",ce)):{}.NODE_ENV!=="production"&&Y(`Method "${ce}" has type "${typeof M}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!de(i)&&Y("The data option must be a function. Plain object usage is no longer supported.");const ce=i.call(n,n);if({}.NODE_ENV!=="production"&&ro(ce)&&Y("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Oe(ce))({}).NODE_ENV!=="production"&&Y("data() should return an object.");else if(t.data=nt(ce),{}.NODE_ENV!=="production")for(const M in ce)ze("Data",M),Ao(M[0])||Object.defineProperty(s,M,{configurable:!0,enumerable:!0,get:()=>ce[M],set:Je})}if(Fo=!0,o)for(const ce in o){const M=o[ce],W=de(M)?M.bind(n,n):de(M.get)?M.get.bind(n,n):Je;({}).NODE_ENV!=="production"&&W===Je&&Y(`Computed property "${ce}" has no getter.`);const j=!de(M)&&de(M.set)?M.set.bind(n):{}.NODE_ENV!=="production"?()=>{Y(`Write operation failed: computed property "${ce}" is readonly.`)}:Je,fe=Cf({get:W,set:j});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>fe.value,set:te=>fe.value=te}),{}.NODE_ENV!=="production"&&ze("Computed",ce)}if(l)for(const ce in l)ol(l[ce],s,n,ce);if(a){const ce=de(a)?a.call(n):a;Reflect.ownKeys(ce).forEach(M=>{Wd(M,ce[M])})}u&&il(u,t,"c");function Ce(ce,M){re(M)?M.forEach(W=>ce(W.bind(n))):M&&ce(M.bind(n))}if(Ce(Ed,h),Ce(mn,d),Ce(Sd,f),Ce(kd,m),Ce(xd,v),Ce(wd,y),Ce(Id,ae),Ce(Od,N),Ce(Nd,R),Ce(Td,E),Ce(Re,S),Ce(Pd,le),re(he))if(he.length){const ce=t.exposed||(t.exposed={});he.forEach(M=>{Object.defineProperty(ce,M,{get:()=>n[M],set:W=>n[M]=W})})}else t.exposed||(t.exposed={});D&&t.render===Je&&(t.render=D),Ne!=null&&(t.inheritAttrs=Ne),ke&&(t.components=ke),qe&&(t.directives=qe)}function Vd(t,e,n=Je){re(t)&&(t=zo(t));for(const s in t){const i=t[s];let o;Oe(i)?"default"in i?o=ui(i.from||s,i.default,!0):o=ui(i.from||s):o=ui(i),rt(o)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[s]=o,{}.NODE_ENV!=="production"&&n("Inject",s)}}function il(t,e,n){Dt(re(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function ol(t,e,n,s){const i=s.includes(".")?Qa(n,s):()=>n[s];if(Ye(t)){const o=e[t];de(o)?me(i,o):{}.NODE_ENV!=="production"&&Y(`Invalid watch handler specified by key "${t}"`,o)}else if(de(t))me(i,t.bind(n));else if(Oe(t))if(re(t))t.forEach(o=>ol(o,e,n,s));else{const o=de(t.handler)?t.handler.bind(n):e[t.handler];de(o)?me(i,o,t):{}.NODE_ENV!=="production"&&Y(`Invalid watch handler specified by key "${t.handler}"`,o)}else({}).NODE_ENV!=="production"&&Y(`Invalid watch option: "${s}"`,t)}function Vo(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=t.appContext,l=o.get(e);let a;return l?a=l:!i.length&&!n&&!s?a=e:(a={},i.length&&i.forEach(c=>ci(a,c,r,!0)),ci(a,e,r)),Oe(e)&&o.set(e,a),a}function ci(t,e,n,s=!1){const{mixins:i,extends:o}=e;o&&ci(t,o,n,!0),i&&i.forEach(r=>ci(t,r,n,!0));for(const r in e)if(s&&r==="expose")({}).NODE_ENV!=="production"&&Y('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=zd[r]||n&&n[r];t[r]=l?l(t[r],e[r]):e[r]}return t}const zd={data:rl,props:al,emits:al,methods:ms,computed:ms,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:ms,directives:ms,watch:jd,provide:rl,inject:Gd};function rl(t,e){return e?t?function(){return je(de(t)?t.call(this,this):t,de(e)?e.call(this,this):e)}:e:t}function Gd(t,e){return ms(zo(t),zo(e))}function zo(t){if(re(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function pt(t,e){return t?[...new Set([].concat(t,e))]:e}function ms(t,e){return t?je(Object.create(null),t,e):e}function al(t,e){return t?re(t)&&re(e)?[...new Set([...t,...e])]:je(Object.create(null),sl(t),sl(e??{})):e}function jd(t,e){if(!t)return e;if(!e)return t;const n=je(Object.create(null),t);for(const s in e)n[s]=pt(t[s],e[s]);return n}function ll(){return{app:null,config:{isNativeTag:sh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bd=0;function Hd(t,e){return function(s,i=null){de(s)||(s=je({},s)),i!=null&&!Oe(i)&&({}.NODE_ENV!=="production"&&Y("root props passed to app.mount() must be an object."),i=null);const o=ll(),r=new WeakSet;let l=!1;const a=o.app={_uid:Bd++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:Fl,get config(){return o.config},set config(c){({}).NODE_ENV!=="production"&&Y("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return r.has(c)?{}.NODE_ENV!=="production"&&Y("Plugin has already been applied to target app."):c&&de(c.install)?(r.add(c),c.install(a,...u)):de(c)?(r.add(c),c(a,...u)):{}.NODE_ENV!=="production"&&Y('A plugin must either be a function or an object with an "install" function.'),a},mixin(c){return o.mixins.includes(c)?{}.NODE_ENV!=="production"&&Y("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):o.mixins.push(c),a},component(c,u){return{}.NODE_ENV!=="production"&&qo(c,o.config),u?({}.NODE_ENV!=="production"&&o.components[c]&&Y(`Component "${c}" has already been registered in target app.`),o.components[c]=u,a):o.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Ja(c),u?({}.NODE_ENV!=="production"&&o.directives[c]&&Y(`Directive "${c}" has already been registered in target app.`),o.directives[c]=u,a):o.directives[c]},mount(c,u,h){if(l)({}).NODE_ENV!=="production"&&Y("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&Y("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=se(s,i);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(o.reload=()=>{t(vn(d),c,h)}),u&&e?e(d,c):t(d,c,h),l=!0,a._container=c,c.__vue_app__=a,{}.NODE_ENV!=="production"&&(a._instance=d.component,nd(a,Fl)),vi(d.component)||d.component.proxy}},unmount(){l?(t(null,a._container),{}.NODE_ENV!=="production"&&(a._instance=null,sd(a)),delete a._container.__vue_app__):{}.NODE_ENV!=="production"&&Y("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in o.provides&&Y(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),o.provides[c]=u,a},runWithContext(c){const u=gs;gs=a;try{return c()}finally{gs=u}}};return a}}let gs=null;function Wd(t,e){if(!st)({}).NODE_ENV!=="production"&&Y("provide() can only be used inside setup().");else{let n=st.provides;const s=st.parent&&st.parent.provides;s===n&&(n=st.provides=Object.create(s)),n[t]=e}}function ui(t,e,n=!1){const s=st||tt;if(s||gs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:gs._context.provides;if(i&&t in i)return i[t];if(arguments.length>1)return n&&de(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&Y(`injection "${String(t)}" not found.`)}else({}).NODE_ENV!=="production"&&Y("inject() can only be used inside setup() or functional components.")}const cl={},ul=()=>Object.create(cl),hl=t=>Object.getPrototypeOf(t)===cl;function Ud(t,e,n,s=!1){const i={},o=ul();t.propsDefaults=Object.create(null),dl(t,e,i,o);for(const r in t.propsOptions[0])r in i||(i[r]=void 0);({}).NODE_ENV!=="production"&&vl(e||{},i,t),n?t.props=s?i:Ah(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function Yd(t){for(;t;){if(t.type.__hmrId)return!0;t=t.parent}}function Xd(t,e,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=t,l=ve(i),[a]=t.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Yd(t))&&(s||r>0)&&!(r&16)){if(r&8){const u=t.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(si(t.emitsOptions,d))continue;const f=e[d];if(a)if(be(o,d))f!==o[d]&&(o[d]=f,c=!0);else{const m=Ut(d);i[m]=Go(a,l,m,f,t,!1)}else f!==o[d]&&(o[d]=f,c=!0)}}}else{dl(t,e,i,o)&&(c=!0);let u;for(const h in l)(!e||!be(e,h)&&((u=Tt(h))===h||!be(e,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(i[h]=Go(a,l,h,void 0,t,!0)):delete i[h]);if(o!==l)for(const h in o)(!e||!be(e,h))&&(delete o[h],c=!0)}c&&Vt(t.attrs,"set",""),{}.NODE_ENV!=="production"&&vl(e||{},i,t)}function dl(t,e,n,s){const[i,o]=t.propsOptions;let r=!1,l;if(e)for(let a in e){if(os(a))continue;const c=e[a];let u;i&&be(i,u=Ut(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:si(t.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,r=!0)}if(o){const a=ve(n),c=l||$e;for(let u=0;u<o.length;u++){const h=o[u];n[h]=Go(i,a,h,c[h],t,!be(c,h))}}return r}function Go(t,e,n,s,i,o){const r=t[n];if(r!=null){const l=be(r,"default");if(l&&s===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&de(a)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const u=ws(i);s=c[n]=a.call(null,e),u()}}else s=a}r[0]&&(o&&!l?s=!1:r[1]&&(s===""||s===Tt(n))&&(s=!0))}return s}function fl(t,e,n=!1){const s=e.propsCache,i=s.get(t);if(i)return i;const o=t.props,r={},l=[];let a=!1;if(!de(t)){const u=h=>{a=!0;const[d,f]=fl(h,e,!0);je(r,d),f&&l.push(...f)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!a)return Oe(t)&&s.set(t,Yn),Yn;if(re(o))for(let u=0;u<o.length;u++){({}).NODE_ENV!=="production"&&!Ye(o[u])&&Y("props must be strings when using array syntax.",o[u]);const h=Ut(o[u]);pl(h)&&(r[h]=$e)}else if(o){({}).NODE_ENV!=="production"&&!Oe(o)&&Y("invalid props options",o);for(const u in o){const h=Ut(u);if(pl(h)){const d=o[u],f=r[h]=re(d)||de(d)?{type:d}:je({},d);if(f){const m=gl(Boolean,f.type),v=gl(String,f.type);f[0]=m>-1,f[1]=v<0||m<v,(m>-1||be(f,"default"))&&l.push(h)}}}}const c=[r,l];return Oe(t)&&s.set(t,c),c}function pl(t){return t[0]!=="$"&&!os(t)?!0:({}.NODE_ENV!=="production"&&Y(`Invalid prop name: "${t}" is a reserved property.`),!1)}function jo(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function ml(t,e){return jo(t)===jo(e)}function gl(t,e){return re(e)?e.findIndex(n=>ml(n,t)):de(e)&&ml(e,t)?0:-1}function vl(t,e,n){const s=ve(e),i=n.propsOptions[0];for(const o in i){let r=i[o];r!=null&&qd(o,s[o],r,{}.NODE_ENV!=="production"?qt(s):s,!be(t,o)&&!be(t,Tt(o)))}}function qd(t,e,n,s,i){const{type:o,required:r,validator:l,skipCheck:a}=n;if(r&&i){Y('Missing required prop: "'+t+'"');return}if(!(e==null&&!r)){if(o!=null&&o!==!0&&!a){let c=!1;const u=re(o)?o:[o],h=[];for(let d=0;d<u.length&&!c;d++){const{valid:f,expectedType:m}=Zd(e,u[d]);h.push(m||""),c=f}if(!c){Y(Qd(t,e,h));return}}l&&!l(e,s)&&Y('Invalid prop: custom validator check failed for prop "'+t+'".')}}const Kd=Un("String,Number,Boolean,Function,Symbol,BigInt");function Zd(t,e){let n;const s=jo(e);if(Kd(s)){const i=typeof t;n=i===s.toLowerCase(),!n&&i==="object"&&(n=t instanceof e)}else s==="Object"?n=Oe(t):s==="Array"?n=re(t):s==="null"?n=t===null:n=t instanceof e;return{valid:n,expectedType:s}}function Qd(t,e,n){if(n.length===0)return`Prop type [] for prop "${t}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${t}". Expected ${n.map(Bs).join(" | ")}`;const i=n[0],o=ao(e),r=yl(e,i),l=yl(e,o);return n.length===1&&_l(i)&&!Jd(i,o)&&(s+=` with value ${r}`),s+=`, got ${o} `,_l(o)&&(s+=`with value ${l}.`),s}function yl(t,e){return e==="String"?`"${t}"`:e==="Number"?`${Number(t)}`:`${t}`}function _l(t){return["string","number","boolean"].some(n=>t.toLowerCase()===n)}function Jd(...t){return t.some(e=>e.toLowerCase()==="boolean")}const bl=t=>t[0]==="_"||t==="$stable",Bo=t=>re(t)?t.map(Rt):[Rt(t)],ef=(t,e,n)=>{if(e._n)return e;const s=Te((...i)=>({}.NODE_ENV!=="production"&&st&&(!n||n.root===st.root)&&Y(`Slot "${t}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Bo(e(...i))),n);return s._c=!1,s},xl=(t,e,n)=>{const s=t._ctx;for(const i in t){if(bl(i))continue;const o=t[i];if(de(o))e[i]=ef(i,o,s);else if(o!=null){({}).NODE_ENV!=="production"&&Y(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const r=Bo(o);e[i]=()=>r}}},wl=(t,e)=>{({}).NODE_ENV!=="production"&&!Mo(t.vnode)&&Y("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Bo(e);t.slots.default=()=>n},tf=(t,e)=>{const n=t.slots=ul();if(t.vnode.shapeFlag&32){const s=e._;s?(je(n,e),oa(n,"_",s)):xl(e,n)}else e&&wl(t,e)},nf=(t,e,n)=>{const{vnode:s,slots:i}=t;let o=!0,r=$e;if(s.shapeFlag&32){const l=e._;l?{}.NODE_ENV!=="production"&&$n?(je(i,e),Vt(t,"set","$slots")):n&&l===1?o=!1:(je(i,e),!n&&l===1&&delete i._):(o=!e.$stable,xl(e,i)),r=e}else e&&(wl(t,e),r={default:1});if(o)for(const l in i)!bl(l)&&r[l]==null&&delete i[l]};function Ho(t,e,n,s,i=!1){if(re(t)){t.forEach((d,f)=>Ho(d,e&&(re(e)?e[f]:e),n,s,i));return}if(ps(s)&&!i)return;const o=s.shapeFlag&4?vi(s.component)||s.component.proxy:s.el,r=i?null:o,{i:l,r:a}=t;if({}.NODE_ENV!=="production"&&!l){Y("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,u=l.refs===$e?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(Ye(c)?(u[c]=null,be(h,c)&&(h[c]=null)):rt(c)&&(c.value=null)),de(a))Kt(a,l,12,[r,u]);else{const d=Ye(a),f=rt(a);if(d||f){const m=()=>{if(t.f){const v=d?be(h,a)?h[a]:u[a]:a.value;i?re(v)&&oo(v,o):re(v)?v.includes(o)||v.push(o):d?(u[a]=[o],be(h,a)&&(h[a]=u[a])):(a.value=[o],t.k&&(u[t.k]=a.value))}else d?(u[a]=r,be(h,a)&&(h[a]=r)):f?(a.value=r,t.k&&(u[t.k]=r)):{}.NODE_ENV!=="production"&&Y("Invalid template ref type:",a,`(${typeof a})`)};r?(m.id=-1,wt(m,n)):m()}else({}).NODE_ENV!=="production"&&Y("Invalid template ref type:",a,`(${typeof a})`)}}let vs,gn;function Jt(t,e){t.appContext.config.performance&&hi()&&gn.mark(`vue-${e}-${t.uid}`),{}.NODE_ENV!=="production"&&ad(t,e,hi()?gn.now():Date.now())}function en(t,e){if(t.appContext.config.performance&&hi()){const n=`vue-${e}-${t.uid}`,s=n+":end";gn.mark(s),gn.measure(`<${yi(t,t.type)}> ${e}`,n,s),gn.clearMarks(n),gn.clearMarks(s)}({}).NODE_ENV!=="production"&&ld(t,e,hi()?gn.now():Date.now())}function hi(){return vs!==void 0||(typeof window<"u"&&window.performance?(vs=!0,gn=window.performance):vs=!1),vs}function sf(){const t=[];if({}.NODE_ENV!=="production"&&t.length){const e=t.length>1;console.warn(`Feature flag${e?"s":""} ${t.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
15
+ **/const An=[];function ai(n){An.push(n)}function li(){An.pop()}function Y(n,...e){qt();const t=An.length?An[An.length-1].component:null,s=t&&t.appContext.config.warnHandler,i=Uh();if(s)Qt(s,t,11,[n+e.map(o=>{var r,a;return(a=(r=o.toString)==null?void 0:r.call(o))!=null?a:JSON.stringify(o)}).join(""),t&&t.proxy,i.map(({vnode:o})=>`at <${ki(t,o.type)}>`).join(`
16
+ `),i]);else{const o=[`[Vue warn]: ${n}`,...e];i.length&&o.push(`
17
+ `,...Yh(i)),console.warn(...o)}Kt()}function Uh(){let n=An[An.length-1];if(!n)return[];const e=[];for(;n;){const t=e[0];t&&t.vnode===n?t.recurseCount++:e.push({vnode:n,recurseCount:0});const s=n.component&&n.component.parent;n=s&&s.vnode}return e}function Yh(n){const e=[];return n.forEach((t,s)=>{e.push(...s===0?[]:[`
18
+ `],...Xh(t))}),e}function Xh({vnode:n,recurseCount:e}){const t=e>0?`... (${e} recursive calls)`:"",s=n.component?n.component.parent==null:!1,i=` at <${ki(n.component,n.type,s)}`,o=">"+t;return n.props?[i,...qh(n.props),o]:[i+o]}function qh(n){const e=[],t=Object.keys(n);return t.slice(0,3).forEach(s=>{e.push(...Ga(s,n[s]))}),t.length>3&&e.push(" ..."),e}function Ga(n,e,t){return qe(e)?(e=JSON.stringify(e),t?e:[`${n}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${n}=${e}`]:ut(e)?(e=Ga(n,be(e.value),!0),t?e:[`${n}=Ref<`,e,">"]):fe(e)?[`${n}=fn${e.name?`<${e.name}>`:""}`]:(e=be(e),t?e:[`${n}=`,e])}const Po={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. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Qt(n,e,t,s){try{return s?n(...s):n()}catch(i){fs(i,e,t)}}function Rt(n,e,t,s){if(fe(n)){const i=Qt(n,e,t,s);return i&&fo(i)&&i.catch(o=>{fs(o,e,t)}),i}if(ce(n)){const i=[];for(let o=0;o<n.length;o++)i.push(Rt(n[o],e,t,s));return i}else({}).NODE_ENV!=="production"&&Y(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof n}`)}function fs(n,e,t,s=!0){const i=e?e.vnode:null;if(e){let o=e.parent;const r=e.proxy,a={}.NODE_ENV!=="production"?Po[t]:`https://vuejs.org/error-reference/#runtime-${t}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](n,r,a)===!1)return}o=o.parent}const l=e.appContext.config.errorHandler;if(l){qt(),Qt(l,null,10,[n,r,a]),Kt();return}}Kh(n,t,i,s)}function Kh(n,e,t,s=!0){if({}.NODE_ENV!=="production"){const i=Po[e];if(t&&ai(t),Y(`Unhandled error${i?` during execution of ${i}`:""}`),t&&li(),s)throw n;console.error(n)}else console.error(n)}let ps=!1,Oo=!1;const pt=[];let jt=0;const Qn=[];let Jt=null,vn=0;const ja=Promise.resolve();let No=null;const Zh=100;function ci(n){const e=No||ja;return n?e.then(this?n.bind(this):n):e}function Qh(n){let e=jt+1,t=pt.length;for(;e<t;){const s=e+t>>>1,i=pt[s],o=ms(i);o<n||o===n&&i.pre?e=s+1:t=s}return e}function ui(n){(!pt.length||!pt.includes(n,ps&&n.allowRecurse?jt+1:jt))&&(n.id==null?pt.push(n):pt.splice(Qh(n.id),0,n),Ba())}function Ba(){!ps&&!Oo&&(Oo=!0,No=ja.then(Ya))}function Jh(n){const e=pt.indexOf(n);e>jt&&pt.splice(e,1)}function Ha(n){ce(n)?Qn.push(...n):(!Jt||!Jt.includes(n,n.allowRecurse?vn+1:vn))&&Qn.push(n),Ba()}function Wa(n,e,t=ps?jt+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);t<pt.length;t++){const s=pt[t];if(s&&s.pre){if(n&&s.id!==n.uid||{}.NODE_ENV!=="production"&&Io(e,s))continue;pt.splice(t,1),t--,s()}}}function Ua(n){if(Qn.length){const e=[...new Set(Qn)].sort((t,s)=>ms(t)-ms(s));if(Qn.length=0,Jt){Jt.push(...e);return}for(Jt=e,{}.NODE_ENV!=="production"&&(n=n||new Map),vn=0;vn<Jt.length;vn++)({}).NODE_ENV!=="production"&&Io(n,Jt[vn])||Jt[vn]();Jt=null,vn=0}}const ms=n=>n.id==null?1/0:n.id,ed=(n,e)=>{const t=ms(n)-ms(e);if(t===0){if(n.pre&&!e.pre)return-1;if(e.pre&&!n.pre)return 1}return t};function Ya(n){Oo=!1,ps=!0,{}.NODE_ENV!=="production"&&(n=n||new Map),pt.sort(ed);const e={}.NODE_ENV!=="production"?t=>Io(n,t):Qe;try{for(jt=0;jt<pt.length;jt++){const t=pt[jt];if(t&&t.active!==!1){if({}.NODE_ENV!=="production"&&e(t))continue;Qt(t,null,14)}}}finally{jt=0,pt.length=0,Ua(n),ps=!1,No=null,(pt.length||Qn.length)&&Ya(n)}}function Io(n,e){if(!n.has(e))n.set(e,1);else{const t=n.get(e);if(t>Zh){const s=e.ownerInstance,i=s&&jl(s.type);return fs(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else n.set(e,t+1)}}let Ln=!1;const Jn=new Set;({}).NODE_ENV!=="production"&&(go().__VUE_HMR_RUNTIME__={createRecord:Do(Xa),rerender:Do(sd),reload:Do(id)});const Fn=new Map;function td(n){const e=n.type.__hmrId;let t=Fn.get(e);t||(Xa(e,n.type),t=Fn.get(e)),t.instances.add(n)}function nd(n){Fn.get(n.type.__hmrId).instances.delete(n)}function Xa(n,e){return Fn.has(n)?!1:(Fn.set(n,{initialDef:gs(e),instances:new Set}),!0)}function gs(n){return Bl(n)?n.__vccOpts:n}function sd(n,e){const t=Fn.get(n);t&&(t.initialDef.render=e,[...t.instances].forEach(s=>{e&&(s.render=e,gs(s.type).render=e),s.renderCache=[],Ln=!0,s.effect.dirty=!0,s.update(),Ln=!1}))}function id(n,e){const t=Fn.get(n);if(!t)return;e=gs(e),qa(t.initialDef,e);const s=[...t.instances];for(const i of s){const o=gs(i.type);Jn.has(o)||(o!==t.initialDef&&qa(o,e),Jn.add(o)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Jn.add(o),i.ceReload(e.styles),Jn.delete(o)):i.parent?(i.parent.effect.dirty=!0,ui(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Ha(()=>{for(const i of s)Jn.delete(gs(i.type))})}function qa(n,e){He(n,e);for(const t in n)t!=="__file"&&!(t in e)&&delete n[t]}function Do(n){return(e,t)=>{try{return n(e,t)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Bt,vs=[],$o=!1;function ys(n,...e){Bt?Bt.emit(n,...e):$o||vs.push({event:n,args:e})}function Ka(n,e){var t,s;Bt=n,Bt?(Bt.enabled=!0,vs.forEach(({event:i,args:o})=>Bt.emit(i,...o)),vs=[]):typeof window<"u"&&window.HTMLElement&&!((s=(t=window.navigator)==null?void 0:t.userAgent)!=null&&s.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Ka(o,e)}),setTimeout(()=>{Bt||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$o=!0,vs=[])},3e3)):($o=!0,vs=[])}function od(n,e){ys("app:init",n,e,{Fragment:Me,Text:Es,Comment:St,Static:xi})}function rd(n){ys("app:unmount",n)}const ad=Mo("component:added"),Za=Mo("component:updated"),ld=Mo("component:removed"),cd=n=>{Bt&&typeof Bt.cleanupBuffer=="function"&&!Bt.cleanupBuffer(n)&&ld(n)};/*! #__NO_SIDE_EFFECTS__ */function Mo(n){return e=>{ys(n,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const ud=Qa("perf:start"),hd=Qa("perf:end");function Qa(n){return(e,t,s)=>{ys(n,e.appContext.app,e.uid,e,t,s)}}function dd(n,e,t){ys("component:emit",n.appContext.app,n,e,t)}function fd(n,e,...t){if(n.isUnmounted)return;const s=n.vnode.props||Ae;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=n;if(u)if(!(e in u))(!h||!(In(e)in h))&&Y(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${In(e)}" prop.`);else{const d=u[e];fe(d)&&(d(...t)||Y(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=t;const o=e.startsWith("update:"),r=o&&e.slice(7);if(r&&r in s){const u=`${r==="modelValue"?"model":r}Modifiers`,{number:h,trim:d}=s[u]||Ae;d&&(i=t.map(f=>qe(f)?f.trim():f)),h&&(i=t.map(hh))}if({}.NODE_ENV!=="production"&&dd(n,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&s[In(u)]&&Y(`Event "${u}" is emitted in component ${ki(n,n.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Pt(e)}" instead of "${e}".`)}let a,l=s[a=In(e)]||s[a=In(Xt(e))];!l&&o&&(l=s[a=In(Pt(e))]),l&&Rt(l,n,6,i);const c=s[a+"Once"];if(c){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,Rt(c,n,6,i)}}function Ja(n,e,t=!1){const s=e.emitsCache,i=s.get(n);if(i!==void 0)return i;const o=n.emits;let r={},a=!1;if(!fe(n)){const l=c=>{const u=Ja(c,e,!0);u&&(a=!0,He(r,u))};!t&&e.mixins.length&&e.mixins.forEach(l),n.extends&&l(n.extends),n.mixins&&n.mixins.forEach(l)}return!o&&!a?($e(n)&&s.set(n,null),null):(ce(o)?o.forEach(l=>r[l]=null):He(r,o),$e(n)&&s.set(n,r),r)}function hi(n,e){return!n||!cs(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ce(n,e[0].toLowerCase()+e.slice(1))||Ce(n,Pt(e))||Ce(n,e))}let tt=null,di=null;function fi(n){const e=tt;return tt=n,di=n&&n.type.__scopeId||null,e}function yn(n){di=n}function _n(){di=null}function Oe(n,e=tt,t){if(!e||n._n)return n;const s=(...i)=>{s._d&&Nl(-1);const o=fi(e);let r;try{r=n(...i)}finally{fi(o),s._d&&Nl(1)}return{}.NODE_ENV!=="production"&&Za(e),r};return s._n=!0,s._c=!0,s._d=!0,s}let Ro=!1;function pi(){Ro=!0}function Ao(n){const{type:e,vnode:t,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:h,data:d,setupState:f,ctx:m,inheritAttrs:g}=n,_=fi(n);let w,C;({}).NODE_ENV!=="production"&&(Ro=!1);try{if(t.shapeFlag&4){const I=i||s,O={}.NODE_ENV!=="production"&&f.__isScriptSetup?new Proxy(I,{get(R,ie,oe){return Y(`Property '${String(ie)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(R,ie,oe)}}):I;w=Lt(c.call(O,I,u,{}.NODE_ENV!=="production"?Zt(h):h,f,d,m)),C=a}else{const I=e;({}).NODE_ENV!=="production"&&a===h&&pi(),w=Lt(I.length>1?I({}.NODE_ENV!=="production"?Zt(h):h,{}.NODE_ENV!=="production"?{get attrs(){return pi(),a},slots:r,emit:l}:{attrs:a,slots:r,emit:l}):I({}.NODE_ENV!=="production"?Zt(h):h,null)),C=e.props?a:pd(a)}}catch(I){Cs.length=0,fs(I,n,1),w=se(St)}let E=w,k;if({}.NODE_ENV!=="production"&&w.patchFlag>0&&w.patchFlag&2048&&([E,k]=el(w)),C&&g!==!1){const I=Object.keys(C),{shapeFlag:O}=E;if(I.length){if(O&7)o&&I.some(Xs)&&(C=md(C,o)),E=wn(E,C);else if({}.NODE_ENV!=="production"&&!Ro&&E.type!==St){const R=Object.keys(a),ie=[],oe=[];for(let he=0,xe=R.length;he<xe;he++){const ye=R[he];cs(ye)?Xs(ye)||ie.push(ye[2].toLowerCase()+ye.slice(3)):oe.push(ye)}oe.length&&Y(`Extraneous non-props attributes (${oe.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ie.length&&Y(`Extraneous non-emits event listeners (${ie.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return t.dirs&&({}.NODE_ENV!=="production"&&!tl(E)&&Y("Runtime directive used on component with non-element root node. The directives will not function as intended."),E=wn(E),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&({}.NODE_ENV!=="production"&&!tl(E)&&Y("Component inside <Transition> renders non-element root node that cannot be animated."),E.transition=t.transition),{}.NODE_ENV!=="production"&&k?k(E):w=E,fi(_),w}const el=n=>{const e=n.children,t=n.dynamicChildren,s=Lo(e,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return el(s)}else return[n,void 0];const i=e.indexOf(s),o=t?t.indexOf(s):-1,r=a=>{e[i]=a,t&&(o>-1?t[o]=a:a.patchFlag>0&&(n.dynamicChildren=[...t,a]))};return[Lt(s),r]};function Lo(n,e=!0){let t;for(let s=0;s<n.length;s++){const i=n[s];if(es(i)){if(i.type!==St||i.children==="v-if"){if(t)return;if(t=i,{}.NODE_ENV!=="production"&&e&&t.patchFlag>0&&t.patchFlag&2048)return Lo(t.children)}}else return}return t}const pd=n=>{let e;for(const t in n)(t==="class"||t==="style"||cs(t))&&((e||(e={}))[t]=n[t]);return e},md=(n,e)=>{const t={};for(const s in n)(!Xs(s)||!(s.slice(9)in e))&&(t[s]=n[s]);return t},tl=n=>n.shapeFlag&7||n.type===St;function gd(n,e,t){const{props:s,children:i,component:o}=n,{props:r,children:a,patchFlag:l}=e,c=o.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Ln||e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return s?nl(s,r,c):!!r;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(r[d]!==s[d]&&!hi(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?nl(s,r,c):!0:!!r;return!1}function nl(n,e,t){const s=Object.keys(e);if(s.length!==Object.keys(n).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(e[o]!==n[o]&&!hi(t,o))return!0}return!1}function vd({vnode:n,parent:e},t){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===n&&(s.el=n.el),s===n)(n=e.vnode).el=t,e=e.parent;else break}}const yd=Symbol.for("v-ndc"),_d=n=>n.__isSuspense;function bd(n,e){e&&e.pendingBranch?ce(n)?e.effects.push(...n):e.effects.push(n):Ha(n)}const xd=Symbol.for("v-scx"),wd=()=>{{const n=yi(xd);return n||{}.NODE_ENV!=="production"&&Y("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),n}};function sl(n,e){return Fo(n,null,e)}const mi={};function ge(n,e,t){return{}.NODE_ENV!=="production"&&!fe(e)&&Y("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Fo(n,e,t)}function Fo(n,e,{immediate:t,deep:s,flush:i,once:o,onTrack:r,onTrigger:a}=Ae){if(e&&o){const R=e;e=(...ie)=>{R(...ie),O()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="number"&&Y('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(t!==void 0&&Y('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),s!==void 0&&Y('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&Y('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=R=>{Y("Invalid watch source: ",R,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=rt,u=R=>s===!0?R:Vn(R,s===!1?1:void 0);let h,d=!1,f=!1;if(ut(n)?(h=()=>n.value,d=Rn(n)):Zn(n)?(h=()=>u(n),d=!0):ce(n)?(f=!0,d=n.some(R=>Zn(R)||Rn(R)),h=()=>n.map(R=>{if(ut(R))return R.value;if(Zn(R))return u(R);if(fe(R))return Qt(R,c,2);({}).NODE_ENV!=="production"&&l(R)})):fe(n)?e?h=()=>Qt(n,c,2):h=()=>(m&&m(),Rt(n,c,3,[g])):(h=Qe,{}.NODE_ENV!=="production"&&l(n)),e&&s){const R=h;h=()=>Vn(R())}let m,g=R=>{m=k.onStop=()=>{Qt(R,c,4),m=k.onStop=void 0}},_;if(Ci)if(g=Qe,e?t&&Rt(e,c,3,[h(),f?[]:void 0,g]):h(),i==="sync"){const R=wd();_=R.__watcherHandles||(R.__watcherHandles=[])}else return Qe;let w=f?new Array(n.length).fill(mi):mi;const C=()=>{if(!(!k.active||!k.dirty))if(e){const R=k.run();(s||d||(f?R.some((ie,oe)=>fn(ie,w[oe])):fn(R,w)))&&(m&&m(),Rt(e,c,3,[R,w===mi?void 0:f&&w[0]===mi?[]:w,g]),w=R)}else k.run()};C.allowRecurse=!!e;let E;i==="sync"?E=C:i==="post"?E=()=>Ct(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),E=()=>ui(C));const k=new yo(h,Qe,E),I=_h(),O=()=>{k.stop(),I&&ho(I.effects,k)};return{}.NODE_ENV!=="production"&&(k.onTrack=r,k.onTrigger=a),e?t?C():w=k.run():i==="post"?Ct(k.run.bind(k),c&&c.suspense):k.run(),_&&_.push(O),O}function Ed(n,e,t){const s=this.proxy,i=qe(n)?n.includes(".")?il(s,n):()=>s[n]:n.bind(s,s);let o;fe(e)?o=e:(o=e.handler,t=e);const r=Ts(this),a=Fo(i,o.bind(s),t);return r(),a}function il(n,e){const t=e.split(".");return()=>{let s=n;for(let i=0;i<t.length&&s;i++)s=s[t[i]];return s}}function Vn(n,e,t=0,s){if(!$e(n)||n.__v_skip)return n;if(e&&e>0){if(t>=e)return n;t++}if(s=s||new Set,s.has(n))return n;if(s.add(n),ut(n))Vn(n.value,e,t,s);else if(ce(n))for(let i=0;i<n.length;i++)Vn(n[i],e,t,s);else if(la(n)||On(n))n.forEach(i=>{Vn(i,e,t,s)});else if(ua(n))for(const i in n)Vn(n[i],e,t,s);return n}function ol(n){lh(n)&&Y("Do not use built-in directive ids as custom directive id: "+n)}function Vo(n,e){if(tt===null)return{}.NODE_ENV!=="production"&&Y("withDirectives can only be used inside render functions."),n;const t=Si(tt)||tt.proxy,s=n.dirs||(n.dirs=[]);for(let i=0;i<e.length;i++){let[o,r,a,l=Ae]=e[i];o&&(fe(o)&&(o={mounted:o,updated:o}),o.deep&&Vn(r),s.push({dir:o,instance:t,value:r,oldValue:void 0,arg:a,modifiers:l}))}return n}function zn(n,e,t,s){const i=n.dirs,o=e&&e.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[s];l&&(qt(),Rt(l,t,8,[n.el,a,n,e]),Kt())}}/*! #__NO_SIDE_EFFECTS__ */function K(n,e){return fe(n)?(()=>He({name:n.name},e,{setup:n}))():n}const _s=n=>!!n.type.__asyncLoader,zo=n=>n.type.__isKeepAlive;function Cd(n,e){rl(n,"a",e)}function Sd(n,e){rl(n,"da",e)}function rl(n,e,t=rt){const s=n.__wdc||(n.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return n()});if(gi(e,s,t),t){let i=t.parent;for(;i&&i.parent;)zo(i.parent.vnode)&&kd(s,e,t,i),i=i.parent}}function kd(n,e,t,s){const i=gi(e,n,s,!0);Le(()=>{ho(s[e],i)},t)}function gi(n,e,t=rt,s=!1){if(t){const i=t[n]||(t[n]=[]),o=e.__weh||(e.__weh=(...r)=>{if(t.isUnmounted)return;qt();const a=Ts(t),l=Rt(e,t,n,r);return a(),Kt(),l});return s?i.unshift(o):i.push(o),o}else if({}.NODE_ENV!=="production"){const i=In(Po[n].replace(/ hook$/,""));Y(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const en=n=>(e,t=rt)=>(!Ci||n==="sp")&&gi(n,(...s)=>e(...s),t),Td=en("bm"),bn=en("m"),Pd=en("bu"),Od=en("u"),Nd=en("bum"),Le=en("um"),Id=en("sp"),Dd=en("rtg"),$d=en("rtc");function Md(n,e=rt){gi("ec",n,e)}function gt(n,e,t,s){let i;const o=t&&t[s];if(ce(n)||qe(n)){i=new Array(n.length);for(let r=0,a=n.length;r<a;r++)i[r]=e(n[r],r,void 0,o&&o[r])}else if(typeof n=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(n)&&Y(`The v-for range expect an integer value but got ${n}.`),i=new Array(n);for(let r=0;r<n;r++)i[r]=e(r+1,r,void 0,o&&o[r])}else if($e(n))if(n[Symbol.iterator])i=Array.from(n,(r,a)=>e(r,a,void 0,o&&o[a]));else{const r=Object.keys(n);i=new Array(r.length);for(let a=0,l=r.length;a<l;a++){const c=r[a];i[a]=e(n[c],c,a,o&&o[a])}}else i=[];return t&&(t[s]=i),i}function ze(n,e,t={},s,i){if(tt.isCE||tt.parent&&_s(tt.parent)&&tt.parent.isCE)return e!=="default"&&(t.name=e),se("slot",t,s&&s());let o=n[e];({}).NODE_ENV!=="production"&&o&&o.length>1&&(Y("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),o=()=>[]),o&&o._c&&(o._d=!1),D();const r=o&&al(o(t)),a=Je(Me,{key:t.key||r&&r.key||`_${e}`},r||(s?s():[]),r&&n._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function al(n){return n.some(e=>es(e)?!(e.type===St||e.type===Me&&!al(e.children)):!0)?n:null}const Go=n=>n?Ll(n)?Si(n)||n.proxy:Go(n.parent):null,Gn=He(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>({}).NODE_ENV!=="production"?Zt(n.props):n.props,$attrs:n=>({}).NODE_ENV!=="production"?Zt(n.attrs):n.attrs,$slots:n=>({}).NODE_ENV!=="production"?Zt(n.slots):n.slots,$refs:n=>({}).NODE_ENV!=="production"?Zt(n.refs):n.refs,$parent:n=>Go(n.parent),$root:n=>Go(n.root),$emit:n=>n.emit,$options:n=>Wo(n),$forceUpdate:n=>n.f||(n.f=()=>{n.effect.dirty=!0,ui(n.update)}),$nextTick:n=>n.n||(n.n=ci.bind(n.proxy)),$watch:n=>Ed.bind(n)}),jo=n=>n==="_"||n==="$",Bo=(n,e)=>n!==Ae&&!n.__isScriptSetup&&Ce(n,e),ll={get({_:n},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=n;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const f=r[e];if(f!==void 0)switch(f){case 1:return s[e];case 2:return i[e];case 4:return t[e];case 3:return o[e]}else{if(Bo(s,e))return r[e]=1,s[e];if(i!==Ae&&Ce(i,e))return r[e]=2,i[e];if((c=n.propsOptions[0])&&Ce(c,e))return r[e]=3,o[e];if(t!==Ae&&Ce(t,e))return r[e]=4,t[e];Ho&&(r[e]=0)}}const u=Gn[e];let h,d;if(u)return e==="$attrs"?(ct(n.attrs,"get",""),{}.NODE_ENV!=="production"&&pi()):{}.NODE_ENV!=="production"&&e==="$slots"&&ct(n,"get",e),u(n);if((h=a.__cssModules)&&(h=h[e]))return h;if(t!==Ae&&Ce(t,e))return r[e]=4,t[e];if(d=l.config.globalProperties,Ce(d,e))return d[e];({}).NODE_ENV!=="production"&&tt&&(!qe(e)||e.indexOf("__v")!==0)&&(i!==Ae&&jo(e[0])&&Ce(i,e)?Y(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):n===tt&&Y(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:n},e,t){const{data:s,setupState:i,ctx:o}=n;return Bo(i,e)?(i[e]=t,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Ce(i,e)?(Y(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):s!==Ae&&Ce(s,e)?(s[e]=t,!0):Ce(n.props,e)?({}.NODE_ENV!=="production"&&Y(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in n?({}.NODE_ENV!=="production"&&Y(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in n.appContext.config.globalProperties?Object.defineProperty(o,e,{enumerable:!0,configurable:!0,value:t}):o[e]=t,!0)},has({_:{data:n,setupState:e,accessCache:t,ctx:s,appContext:i,propsOptions:o}},r){let a;return!!t[r]||n!==Ae&&Ce(n,r)||Bo(e,r)||(a=o[0])&&Ce(a,r)||Ce(s,r)||Ce(Gn,r)||Ce(i.config.globalProperties,r)},defineProperty(n,e,t){return t.get!=null?n._.accessCache[e]=0:Ce(t,"value")&&this.set(n,e,t.value,null),Reflect.defineProperty(n,e,t)}};({}).NODE_ENV!=="production"&&(ll.ownKeys=n=>(Y("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(n)));function Rd(n){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>n}),Object.keys(Gn).forEach(t=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:()=>Gn[t](n),set:Qe})}),e}function Ad(n){const{ctx:e,propsOptions:[t]}=n;t&&Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>n.props[s],set:Qe})})}function Ld(n){const{ctx:e,setupState:t}=n;Object.keys(be(t)).forEach(s=>{if(!t.__isScriptSetup){if(jo(s[0])){Y(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>t[s],set:Qe})}})}function Fd(){return Vd().slots}function Vd(){const n=Rl();return{}.NODE_ENV!=="production"&&!n&&Y("useContext() called without active instance."),n.setupContext||(n.setupContext=Gl(n))}function cl(n){return ce(n)?n.reduce((e,t)=>(e[t]=null,e),{}):n}function zd(){const n=Object.create(null);return(e,t)=>{n[t]?Y(`${e} property "${t}" is already defined in ${n[t]}.`):n[t]=e}}let Ho=!0;function Gd(n){const e=Wo(n),t=n.proxy,s=n.ctx;Ho=!1,e.beforeCreate&&ul(e.beforeCreate,n,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:f,updated:m,activated:g,deactivated:_,beforeDestroy:w,beforeUnmount:C,destroyed:E,unmounted:k,render:I,renderTracked:O,renderTriggered:R,errorCaptured:ie,serverPrefetch:oe,expose:he,inheritAttrs:xe,components:ye,directives:Ie,filters:De}=e,ve={}.NODE_ENV!=="production"?zd():null;if({}.NODE_ENV!=="production"){const[Q]=n.propsOptions;if(Q)for(const M in Q)ve("Props",M)}if(c&&jd(c,s,ve),r)for(const Q in r){const M=r[Q];fe(M)?({}.NODE_ENV!=="production"?Object.defineProperty(s,Q,{value:M.bind(t),configurable:!0,enumerable:!0,writable:!0}):s[Q]=M.bind(t),{}.NODE_ENV!=="production"&&ve("Methods",Q)):{}.NODE_ENV!=="production"&&Y(`Method "${Q}" has type "${typeof M}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!fe(i)&&Y("The data option must be a function. Plain object usage is no longer supported.");const Q=i.call(t,t);if({}.NODE_ENV!=="production"&&fo(Q)&&Y("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!$e(Q))({}).NODE_ENV!=="production"&&Y("data() should return an object.");else if(n.data=ot(Q),{}.NODE_ENV!=="production")for(const M in Q)ve("Data",M),jo(M[0])||Object.defineProperty(s,M,{configurable:!0,enumerable:!0,get:()=>Q[M],set:Qe})}if(Ho=!0,o)for(const Q in o){const M=o[Q],H=fe(M)?M.bind(t,t):fe(M.get)?M.get.bind(t,t):Qe;({}).NODE_ENV!=="production"&&H===Qe&&Y(`Computed property "${Q}" has no getter.`);const G=!fe(M)&&fe(M.set)?M.set.bind(t):{}.NODE_ENV!=="production"?()=>{Y(`Write operation failed: computed property "${Q}" is readonly.`)}:Qe,pe=kf({get:H,set:G});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>pe.value,set:ne=>pe.value=ne}),{}.NODE_ENV!=="production"&&ve("Computed",Q)}if(a)for(const Q in a)hl(a[Q],s,t,Q);if(l){const Q=fe(l)?l.call(t):l;Reflect.ownKeys(Q).forEach(M=>{Xd(M,Q[M])})}u&&ul(u,n,"c");function ue(Q,M){ce(M)?M.forEach(H=>Q(H.bind(t))):M&&Q(M.bind(t))}if(ue(Td,h),ue(bn,d),ue(Pd,f),ue(Od,m),ue(Cd,g),ue(Sd,_),ue(Md,ie),ue($d,O),ue(Dd,R),ue(Nd,C),ue(Le,k),ue(Id,oe),ce(he))if(he.length){const Q=n.exposed||(n.exposed={});he.forEach(M=>{Object.defineProperty(Q,M,{get:()=>t[M],set:H=>t[M]=H})})}else n.exposed||(n.exposed={});I&&n.render===Qe&&(n.render=I),xe!=null&&(n.inheritAttrs=xe),ye&&(n.components=ye),Ie&&(n.directives=Ie)}function jd(n,e,t=Qe){ce(n)&&(n=Uo(n));for(const s in n){const i=n[s];let o;$e(i)?"default"in i?o=yi(i.from||s,i.default,!0):o=yi(i.from||s):o=yi(i),ut(o)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[s]=o,{}.NODE_ENV!=="production"&&t("Inject",s)}}function ul(n,e,t){Rt(ce(n)?n.map(s=>s.bind(e.proxy)):n.bind(e.proxy),e,t)}function hl(n,e,t,s){const i=s.includes(".")?il(t,s):()=>t[s];if(qe(n)){const o=e[n];fe(o)?ge(i,o):{}.NODE_ENV!=="production"&&Y(`Invalid watch handler specified by key "${n}"`,o)}else if(fe(n))ge(i,n.bind(t));else if($e(n))if(ce(n))n.forEach(o=>hl(o,e,t,s));else{const o=fe(n.handler)?n.handler.bind(t):e[n.handler];fe(o)?ge(i,o,n):{}.NODE_ENV!=="production"&&Y(`Invalid watch handler specified by key "${n.handler}"`,o)}else({}).NODE_ENV!=="production"&&Y(`Invalid watch option: "${s}"`,n)}function Wo(n){const e=n.type,{mixins:t,extends:s}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=n.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!t&&!s?l=e:(l={},i.length&&i.forEach(c=>vi(l,c,r,!0)),vi(l,e,r)),$e(e)&&o.set(e,l),l}function vi(n,e,t,s=!1){const{mixins:i,extends:o}=e;o&&vi(n,o,t,!0),i&&i.forEach(r=>vi(n,r,t,!0));for(const r in e)if(s&&r==="expose")({}).NODE_ENV!=="production"&&Y('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Bd[r]||t&&t[r];n[r]=a?a(n[r],e[r]):e[r]}return n}const Bd={data:dl,props:fl,emits:fl,methods:bs,computed:bs,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:bs,directives:bs,watch:Wd,provide:dl,inject:Hd};function dl(n,e){return e?n?function(){return He(fe(n)?n.call(this,this):n,fe(e)?e.call(this,this):e)}:e:n}function Hd(n,e){return bs(Uo(n),Uo(e))}function Uo(n){if(ce(n)){const e={};for(let t=0;t<n.length;t++)e[n[t]]=n[t];return e}return n}function vt(n,e){return n?[...new Set([].concat(n,e))]:e}function bs(n,e){return n?He(Object.create(null),n,e):e}function fl(n,e){return n?ce(n)&&ce(e)?[...new Set([...n,...e])]:He(Object.create(null),cl(n),cl(e??{})):e}function Wd(n,e){if(!n)return e;if(!e)return n;const t=He(Object.create(null),n);for(const s in e)t[s]=vt(n[s],e[s]);return t}function pl(){return{app:null,config:{isNativeTag:rh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ud=0;function Yd(n,e){return function(s,i=null){fe(s)||(s=He({},s)),i!=null&&!$e(i)&&({}.NODE_ENV!=="production"&&Y("root props passed to app.mount() must be an object."),i=null);const o=pl(),r=new WeakSet;let a=!1;const l=o.app={_uid:Ud++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:Hl,get config(){return o.config},set config(c){({}).NODE_ENV!=="production"&&Y("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return r.has(c)?{}.NODE_ENV!=="production"&&Y("Plugin has already been applied to target app."):c&&fe(c.install)?(r.add(c),c.install(l,...u)):fe(c)?(r.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&Y('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return o.mixins.includes(c)?{}.NODE_ENV!=="production"&&Y("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):o.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&tr(c,o.config),u?({}.NODE_ENV!=="production"&&o.components[c]&&Y(`Component "${c}" has already been registered in target app.`),o.components[c]=u,l):o.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&ol(c),u?({}.NODE_ENV!=="production"&&o.directives[c]&&Y(`Directive "${c}" has already been registered in target app.`),o.directives[c]=u,l):o.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&Y("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&Y("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=se(s,i);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(o.reload=()=>{n(wn(d),c,h)}),u&&e?e(d,c):n(d,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=d.component,od(l,Hl)),Si(d.component)||d.component.proxy}},unmount(){a?(n(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,rd(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&Y("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in o.provides&&Y(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),o.provides[c]=u,l},runWithContext(c){const u=xs;xs=l;try{return c()}finally{xs=u}}};return l}}let xs=null;function Xd(n,e){if(!rt)({}).NODE_ENV!=="production"&&Y("provide() can only be used inside setup().");else{let t=rt.provides;const s=rt.parent&&rt.parent.provides;s===t&&(t=rt.provides=Object.create(s)),t[n]=e}}function yi(n,e,t=!1){const s=rt||tt;if(s||xs){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:xs._context.provides;if(i&&n in i)return i[n];if(arguments.length>1)return t&&fe(e)?e.call(s&&s.proxy):e;({}).NODE_ENV!=="production"&&Y(`injection "${String(n)}" not found.`)}else({}).NODE_ENV!=="production"&&Y("inject() can only be used inside setup() or functional components.")}const ml={},gl=()=>Object.create(ml),vl=n=>Object.getPrototypeOf(n)===ml;function qd(n,e,t,s=!1){const i={},o=gl();n.propsDefaults=Object.create(null),yl(n,e,i,o);for(const r in n.propsOptions[0])r in i||(i[r]=void 0);({}).NODE_ENV!=="production"&&El(e||{},i,n),t?n.props=s?i:Vh(i):n.type.props?n.props=i:n.props=o,n.attrs=o}function Kd(n){for(;n;){if(n.type.__hmrId)return!0;n=n.parent}}function Zd(n,e,t,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=n,a=be(i),[l]=n.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Kd(n))&&(s||r>0)&&!(r&16)){if(r&8){const u=n.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(hi(n.emitsOptions,d))continue;const f=e[d];if(l)if(Ce(o,d))f!==o[d]&&(o[d]=f,c=!0);else{const m=Xt(d);i[m]=Yo(l,a,m,f,n,!1)}else f!==o[d]&&(o[d]=f,c=!0)}}}else{yl(n,e,i,o)&&(c=!0);let u;for(const h in a)(!e||!Ce(e,h)&&((u=Pt(h))===h||!Ce(e,u)))&&(l?t&&(t[h]!==void 0||t[u]!==void 0)&&(i[h]=Yo(l,a,h,void 0,n,!0)):delete i[h]);if(o!==a)for(const h in o)(!e||!Ce(e,h))&&(delete o[h],c=!0)}c&&Gt(n.attrs,"set",""),{}.NODE_ENV!=="production"&&El(e||{},i,n)}function yl(n,e,t,s){const[i,o]=n.propsOptions;let r=!1,a;if(e)for(let l in e){if(us(l))continue;const c=e[l];let u;i&&Ce(i,u=Xt(l))?!o||!o.includes(u)?t[u]=c:(a||(a={}))[u]=c:hi(n.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=be(t),c=a||Ae;for(let u=0;u<o.length;u++){const h=o[u];t[h]=Yo(i,l,h,c[h],n,!Ce(c,h))}}return r}function Yo(n,e,t,s,i,o){const r=n[t];if(r!=null){const a=Ce(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&fe(l)){const{propsDefaults:c}=i;if(t in c)s=c[t];else{const u=Ts(i);s=c[t]=l.call(null,e),u()}}else s=l}r[0]&&(o&&!a?s=!1:r[1]&&(s===""||s===Pt(t))&&(s=!0))}return s}function _l(n,e,t=!1){const s=e.propsCache,i=s.get(n);if(i)return i;const o=n.props,r={},a=[];let l=!1;if(!fe(n)){const u=h=>{l=!0;const[d,f]=_l(h,e,!0);He(r,d),f&&a.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),n.extends&&u(n.extends),n.mixins&&n.mixins.forEach(u)}if(!o&&!l)return $e(n)&&s.set(n,Kn),Kn;if(ce(o))for(let u=0;u<o.length;u++){({}).NODE_ENV!=="production"&&!qe(o[u])&&Y("props must be strings when using array syntax.",o[u]);const h=Xt(o[u]);bl(h)&&(r[h]=Ae)}else if(o){({}).NODE_ENV!=="production"&&!$e(o)&&Y("invalid props options",o);for(const u in o){const h=Xt(u);if(bl(h)){const d=o[u],f=r[h]=ce(d)||fe(d)?{type:d}:He({},d);if(f){const m=wl(Boolean,f.type),g=wl(String,f.type);f[0]=m>-1,f[1]=g<0||m<g,(m>-1||Ce(f,"default"))&&a.push(h)}}}}const c=[r,a];return $e(n)&&s.set(n,c),c}function bl(n){return n[0]!=="$"&&!us(n)?!0:({}.NODE_ENV!=="production"&&Y(`Invalid prop name: "${n}" is a reserved property.`),!1)}function Xo(n){return n===null?"null":typeof n=="function"?n.name||"":typeof n=="object"&&n.constructor&&n.constructor.name||""}function xl(n,e){return Xo(n)===Xo(e)}function wl(n,e){return ce(e)?e.findIndex(t=>xl(t,n)):fe(e)&&xl(e,n)?0:-1}function El(n,e,t){const s=be(e),i=t.propsOptions[0];for(const o in i){let r=i[o];r!=null&&Qd(o,s[o],r,{}.NODE_ENV!=="production"?Zt(s):s,!Ce(n,o)&&!Ce(n,Pt(o)))}}function Qd(n,e,t,s,i){const{type:o,required:r,validator:a,skipCheck:l}=t;if(r&&i){Y('Missing required prop: "'+n+'"');return}if(!(e==null&&!r)){if(o!=null&&o!==!0&&!l){let c=!1;const u=ce(o)?o:[o],h=[];for(let d=0;d<u.length&&!c;d++){const{valid:f,expectedType:m}=ef(e,u[d]);h.push(m||""),c=f}if(!c){Y(tf(n,e,h));return}}a&&!a(e,s)&&Y('Invalid prop: custom validator check failed for prop "'+n+'".')}}const Jd=qn("String,Number,Boolean,Function,Symbol,BigInt");function ef(n,e){let t;const s=Xo(e);if(Jd(s)){const i=typeof n;t=i===s.toLowerCase(),!t&&i==="object"&&(t=n instanceof e)}else s==="Object"?t=$e(n):s==="Array"?t=ce(n):s==="null"?t=n===null:t=n instanceof e;return{valid:t,expectedType:s}}function tf(n,e,t){if(t.length===0)return`Prop type [] for prop "${n}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${n}". Expected ${t.map(Zs).join(" | ")}`;const i=t[0],o=po(e),r=Cl(e,i),a=Cl(e,o);return t.length===1&&Sl(i)&&!nf(i,o)&&(s+=` with value ${r}`),s+=`, got ${o} `,Sl(o)&&(s+=`with value ${a}.`),s}function Cl(n,e){return e==="String"?`"${n}"`:e==="Number"?`${Number(n)}`:`${n}`}function Sl(n){return["string","number","boolean"].some(t=>n.toLowerCase()===t)}function nf(...n){return n.some(e=>e.toLowerCase()==="boolean")}const kl=n=>n[0]==="_"||n==="$stable",qo=n=>ce(n)?n.map(Lt):[Lt(n)],sf=(n,e,t)=>{if(e._n)return e;const s=Oe((...i)=>({}.NODE_ENV!=="production"&&rt&&(!t||t.root===rt.root)&&Y(`Slot "${n}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),qo(e(...i))),t);return s._c=!1,s},Tl=(n,e,t)=>{const s=n._ctx;for(const i in n){if(kl(i))continue;const o=n[i];if(fe(o))e[i]=sf(i,o,s);else if(o!=null){({}).NODE_ENV!=="production"&&Y(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const r=qo(o);e[i]=()=>r}}},Pl=(n,e)=>{({}).NODE_ENV!=="production"&&!zo(n.vnode)&&Y("Non-function value encountered for default slot. Prefer function slots for better performance.");const t=qo(e);n.slots.default=()=>t},of=(n,e)=>{const t=n.slots=gl();if(n.vnode.shapeFlag&32){const s=e._;s?(He(t,e),ha(t,"_",s)):Tl(e,t)}else e&&Pl(n,e)},rf=(n,e,t)=>{const{vnode:s,slots:i}=n;let o=!0,r=Ae;if(s.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&Ln?(He(i,e),Gt(n,"set","$slots")):t&&a===1?o=!1:(He(i,e),!t&&a===1&&delete i._):(o=!e.$stable,Tl(e,i)),r=e}else e&&(Pl(n,e),r={default:1});if(o)for(const a in i)!kl(a)&&r[a]==null&&delete i[a]};function Ko(n,e,t,s,i=!1){if(ce(n)){n.forEach((d,f)=>Ko(d,e&&(ce(e)?e[f]:e),t,s,i));return}if(_s(s)&&!i)return;const o=s.shapeFlag&4?Si(s.component)||s.component.proxy:s.el,r=i?null:o,{i:a,r:l}=n;if({}.NODE_ENV!=="production"&&!a){Y("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,u=a.refs===Ae?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(qe(c)?(u[c]=null,Ce(h,c)&&(h[c]=null)):ut(c)&&(c.value=null)),fe(l))Qt(l,a,12,[r,u]);else{const d=qe(l),f=ut(l);if(d||f){const m=()=>{if(n.f){const g=d?Ce(h,l)?h[l]:u[l]:l.value;i?ce(g)&&ho(g,o):ce(g)?g.includes(o)||g.push(o):d?(u[l]=[o],Ce(h,l)&&(h[l]=u[l])):(l.value=[o],n.k&&(u[n.k]=l.value))}else d?(u[l]=r,Ce(h,l)&&(h[l]=r)):f?(l.value=r,n.k&&(u[n.k]=r)):{}.NODE_ENV!=="production"&&Y("Invalid template ref type:",l,`(${typeof l})`)};r?(m.id=-1,Ct(m,t)):m()}else({}).NODE_ENV!=="production"&&Y("Invalid template ref type:",l,`(${typeof l})`)}}let ws,xn;function tn(n,e){n.appContext.config.performance&&_i()&&xn.mark(`vue-${e}-${n.uid}`),{}.NODE_ENV!=="production"&&ud(n,e,_i()?xn.now():Date.now())}function nn(n,e){if(n.appContext.config.performance&&_i()){const t=`vue-${e}-${n.uid}`,s=t+":end";xn.mark(s),xn.measure(`<${ki(n,n.type)}> ${e}`,t,s),xn.clearMarks(t),xn.clearMarks(s)}({}).NODE_ENV!=="production"&&hd(n,e,_i()?xn.now():Date.now())}function _i(){return ws!==void 0||(typeof window<"u"&&window.performance?(ws=!0,xn=window.performance):ws=!1),ws}function af(){const n=[];if({}.NODE_ENV!=="production"&&n.length){const e=n.length>1;console.warn(`Feature flag${e?"s":""} ${n.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
19
19
 
20
- For more details, see https://link.vuejs.org/feature-flags.`)}}const wt=vd;function of(t){return rf(t)}function rf(t,e){sf();const n=co();n.__VUE__=!0,{}.NODE_ENV!=="production"&&Ha(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:i,patchProp:o,createElement:r,createText:l,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:f=Je,insertStaticContent:m}=t,v=(_,x,O,A=null,F=null,H=null,X=void 0,V=null,U={}.NODE_ENV!=="production"&&$n?!1:!!x.dynamicChildren)=>{if(_===x)return;_&&!xs(_,x)&&(A=Ot(_),Se(_,F,H,!0),_=null),x.patchFlag===-2&&(U=!1,x.dynamicChildren=null);const{type:z,ref:K,shapeFlag:oe}=x;switch(z){case ys:y(_,x,O,A);break;case Ct:w(_,x,O,A);break;case fi:_==null?E(x,O,A,X):{}.NODE_ENV!=="production"&&C(_,x,O,X);break;case De:qe(_,x,O,A,F,H,X,V,U);break;default:oe&1?N(_,x,O,A,F,H,X,V,U):oe&6?Ke(_,x,O,A,F,H,X,V,U):oe&64||oe&128?z.process(_,x,O,A,F,H,X,V,U,Lt):{}.NODE_ENV!=="production"&&Y("Invalid VNode type:",z,`(${typeof z})`)}K!=null&&F&&Ho(K,_&&_.ref,H,x||_,!x)},y=(_,x,O,A)=>{if(_==null)s(x.el=l(x.children),O,A);else{const F=x.el=_.el;x.children!==_.children&&c(F,x.children)}},w=(_,x,O,A)=>{_==null?s(x.el=a(x.children||""),O,A):x.el=_.el},E=(_,x,O,A)=>{[_.el,_.anchor]=m(_.children,x,O,A,_.el,_.anchor)},C=(_,x,O,A)=>{if(x.children!==_.children){const F=d(_.anchor);D(_),[x.el,x.anchor]=m(x.children,O,F,A)}else x.el=_.el,x.anchor=_.anchor},S=({el:_,anchor:x},O,A)=>{let F;for(;_&&_!==x;)F=d(_),s(_,O,A),_=F;s(x,O,A)},D=({el:_,anchor:x})=>{let O;for(;_&&_!==x;)O=d(_),i(_),_=O;i(x)},N=(_,x,O,A,F,H,X,V,U)=>{x.type==="svg"?X="svg":x.type==="math"&&(X="mathml"),_==null?R(x,O,A,F,H,X,V,U):he(_,x,F,H,X,V,U)},R=(_,x,O,A,F,H,X,V)=>{let U,z;const{props:K,shapeFlag:oe,transition:ie,dirs:pe}=_;if(U=_.el=r(_.type,H,K&&K.is,K),oe&8?u(U,_.children):oe&16&&le(_.children,U,null,A,F,Wo(_,H),X,V),pe&&Ln(_,null,A,"created"),ae(U,_,_.scopeId,X,A),K){for(const Pe in K)Pe!=="value"&&!os(Pe)&&o(U,Pe,null,K[Pe],H,_.children,A,F,Ge);"value"in K&&o(U,"value",null,K.value,H),(z=K.onVnodeBeforeMount)&&jt(z,A,_)}({}).NODE_ENV!=="production"&&(Object.defineProperty(U,"__vnode",{value:_,enumerable:!1}),Object.defineProperty(U,"__vueParentComponent",{value:A,enumerable:!1})),pe&&Ln(_,null,A,"beforeMount");const ye=af(F,ie);ye&&ie.beforeEnter(U),s(U,x,O),((z=K&&K.onVnodeMounted)||ye||pe)&&wt(()=>{z&&jt(z,A,_),ye&&ie.enter(U),pe&&Ln(_,null,A,"mounted")},F)},ae=(_,x,O,A,F)=>{if(O&&f(_,O),A)for(let H=0;H<A.length;H++)f(_,A[H]);if(F){let H=F.subTree;if({}.NODE_ENV!=="production"&&H.patchFlag>0&&H.patchFlag&2048&&(H=Io(H.children)||H),x===H){const X=F.vnode;ae(_,X,X.scopeId,X.slotScopeIds,F.parent)}}},le=(_,x,O,A,F,H,X,V,U=0)=>{for(let z=U;z<_.length;z++){const K=_[z]=V?yn(_[z]):Rt(_[z]);v(null,K,x,O,A,F,H,X,V)}},he=(_,x,O,A,F,H,X)=>{const V=x.el=_.el;let{patchFlag:U,dynamicChildren:z,dirs:K}=x;U|=_.patchFlag&16;const oe=_.props||$e,ie=x.props||$e;let pe;if(O&&Vn(O,!1),(pe=ie.onVnodeBeforeUpdate)&&jt(pe,O,x,_),K&&Ln(x,_,O,"beforeUpdate"),O&&Vn(O,!0),{}.NODE_ENV!=="production"&&$n&&(U=0,X=!1,z=null),z?(Ne(_.dynamicChildren,z,V,O,A,Wo(x,F),H),{}.NODE_ENV!=="production"&&di(_,x)):X||W(_,x,V,null,O,A,Wo(x,F),H,!1),U>0){if(U&16)ke(V,x,oe,ie,O,A,F);else if(U&2&&oe.class!==ie.class&&o(V,"class",null,ie.class,F),U&4&&o(V,"style",oe.style,ie.style,F),U&8){const ye=x.dynamicProps;for(let Pe=0;Pe<ye.length;Pe++){const Me=ye[Pe],Ue=oe[Me],yt=ie[Me];(yt!==Ue||Me==="value")&&o(V,Me,Ue,yt,F,_.children,O,A,Ge)}}U&1&&_.children!==x.children&&u(V,x.children)}else!X&&z==null&&ke(V,x,oe,ie,O,A,F);((pe=ie.onVnodeUpdated)||K)&&wt(()=>{pe&&jt(pe,O,x,_),K&&Ln(x,_,O,"updated")},A)},Ne=(_,x,O,A,F,H,X)=>{for(let V=0;V<x.length;V++){const U=_[V],z=x[V],K=U.el&&(U.type===De||!xs(U,z)||U.shapeFlag&70)?h(U.el):O;v(U,z,K,null,A,F,H,X,!0)}},ke=(_,x,O,A,F,H,X)=>{if(O!==A){if(O!==$e)for(const V in O)!os(V)&&!(V in A)&&o(_,V,O[V],null,X,x.children,F,H,Ge);for(const V in A){if(os(V))continue;const U=A[V],z=O[V];U!==z&&V!=="value"&&o(_,V,z,U,X,x.children,F,H,Ge)}"value"in A&&o(_,"value",O.value,A.value,X)}},qe=(_,x,O,A,F,H,X,V,U)=>{const z=x.el=_?_.el:l(""),K=x.anchor=_?_.anchor:l("");let{patchFlag:oe,dynamicChildren:ie,slotScopeIds:pe}=x;({}).NODE_ENV!=="production"&&($n||oe&2048)&&(oe=0,U=!1,ie=null),pe&&(V=V?V.concat(pe):pe),_==null?(s(z,O,A),s(K,O,A),le(x.children||[],O,K,F,H,X,V,U)):oe>0&&oe&64&&ie&&_.dynamicChildren?(Ne(_.dynamicChildren,ie,O,F,H,X,V),{}.NODE_ENV!=="production"?di(_,x):(x.key!=null||F&&x===F.subTree)&&di(_,x,!0)):W(_,x,O,K,F,H,X,V,U)},Ke=(_,x,O,A,F,H,X,V,U)=>{x.slotScopeIds=V,_==null?x.shapeFlag&512?F.ctx.activate(x,O,A,X,U):ze(x,O,A,F,H,X,U):Ce(_,x,U)},ze=(_,x,O,A,F,H,X)=>{const V=_.component=mf(_,A,F);if({}.NODE_ENV!=="production"&&V.type.__hmrId&&Qh(V),{}.NODE_ENV!=="production"&&(Js(_),Jt(V,"mount")),Mo(_)&&(V.ctx.renderer=Lt),{}.NODE_ENV!=="production"&&Jt(V,"init"),vf(V),{}.NODE_ENV!=="production"&&en(V,"init"),V.asyncDep){if(F&&F.registerDep(V,ce),!_.el){const U=V.subTree=se(Ct);w(null,U,x,O)}}else ce(V,_,x,O,F,H,X);({}).NODE_ENV!=="production"&&(ei(),en(V,"mount"))},Ce=(_,x,O)=>{const A=x.component=_.component;if(fd(_,x,O))if(A.asyncDep&&!A.asyncResolved){({}).NODE_ENV!=="production"&&Js(x),M(A,x,O),{}.NODE_ENV!=="production"&&ei();return}else A.next=x,Kh(A.update),A.effect.dirty=!0,A.update();else x.el=_.el,A.vnode=x},ce=(_,x,O,A,F,H,X)=>{const V=()=>{if(_.isMounted){let{next:K,bu:oe,u:ie,parent:pe,vnode:ye}=_;{const wn=Cl(_);if(wn){K&&(K.el=ye.el,M(_,K,X)),wn.asyncDep.then(()=>{_.isUnmounted||V()});return}}let Pe=K,Me;({}).NODE_ENV!=="production"&&Js(K||_.vnode),Vn(_,!1),K?(K.el=ye.el,M(_,K,X)):K=ye,oe&&rs(oe),(Me=K.props&&K.props.onVnodeBeforeUpdate)&&jt(Me,pe,K,ye),Vn(_,!0),{}.NODE_ENV!=="production"&&Jt(_,"render");const Ue=Oo(_);({}).NODE_ENV!=="production"&&en(_,"render");const yt=_.subTree;_.subTree=Ue,{}.NODE_ENV!=="production"&&Jt(_,"patch"),v(yt,Ue,h(yt.el),Ot(yt),_,F,H),{}.NODE_ENV!=="production"&&en(_,"patch"),K.el=Ue.el,Pe===null&&pd(_,Ue.el),ie&&wt(ie,F),(Me=K.props&&K.props.onVnodeUpdated)&&wt(()=>jt(Me,pe,K,ye),F),{}.NODE_ENV!=="production"&&Wa(_),{}.NODE_ENV!=="production"&&ei()}else{let K;const{el:oe,props:ie}=x,{bm:pe,m:ye,parent:Pe}=_,Me=ps(x);if(Vn(_,!1),pe&&rs(pe),!Me&&(K=ie&&ie.onVnodeBeforeMount)&&jt(K,Pe,x),Vn(_,!0),oe&&rn){const Ue=()=>{({}).NODE_ENV!=="production"&&Jt(_,"render"),_.subTree=Oo(_),{}.NODE_ENV!=="production"&&en(_,"render"),{}.NODE_ENV!=="production"&&Jt(_,"hydrate"),rn(oe,_.subTree,_,F,null),{}.NODE_ENV!=="production"&&en(_,"hydrate")};Me?x.type.__asyncLoader().then(()=>!_.isUnmounted&&Ue()):Ue()}else{({}).NODE_ENV!=="production"&&Jt(_,"render");const Ue=_.subTree=Oo(_);({}).NODE_ENV!=="production"&&en(_,"render"),{}.NODE_ENV!=="production"&&Jt(_,"patch"),v(null,Ue,O,A,_,F,H),{}.NODE_ENV!=="production"&&en(_,"patch"),x.el=Ue.el}if(ye&&wt(ye,F),!Me&&(K=ie&&ie.onVnodeMounted)){const Ue=x;wt(()=>jt(K,Pe,Ue),F)}(x.shapeFlag&256||Pe&&ps(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&_.a&&wt(_.a,F),_.isMounted=!0,{}.NODE_ENV!=="production"&&id(_),x=O=A=null}},U=_.effect=new ho(V,Je,()=>ni(z),_.scope),z=_.update=()=>{U.dirty&&U.run()};z.id=_.uid,Vn(_,!0),{}.NODE_ENV!=="production"&&(U.onTrack=_.rtc?K=>rs(_.rtc,K):void 0,U.onTrigger=_.rtg?K=>rs(_.rtg,K):void 0,z.ownerInstance=_),z()},M=(_,x,O)=>{x.component=_;const A=_.vnode.props;_.vnode=x,_.next=null,Xd(_,x.props,A,O),nf(_,x.children,O),Yt(),Va(_),Xt()},W=(_,x,O,A,F,H,X,V,U=!1)=>{const z=_&&_.children,K=_?_.shapeFlag:0,oe=x.children,{patchFlag:ie,shapeFlag:pe}=x;if(ie>0){if(ie&128){fe(z,oe,O,A,F,H,X,V,U);return}else if(ie&256){j(z,oe,O,A,F,H,X,V,U);return}}pe&8?(K&16&&Ge(z,F,H),oe!==z&&u(O,oe)):K&16?pe&16?fe(z,oe,O,A,F,H,X,V,U):Ge(z,F,H,!0):(K&8&&u(O,""),pe&16&&le(oe,O,A,F,H,X,V,U))},j=(_,x,O,A,F,H,X,V,U)=>{_=_||Yn,x=x||Yn;const z=_.length,K=x.length,oe=Math.min(z,K);let ie;for(ie=0;ie<oe;ie++){const pe=x[ie]=U?yn(x[ie]):Rt(x[ie]);v(_[ie],pe,O,null,F,H,X,V,U)}z>K?Ge(_,F,H,!0,!1,oe):le(x,O,A,F,H,X,V,U,oe)},fe=(_,x,O,A,F,H,X,V,U)=>{let z=0;const K=x.length;let oe=_.length-1,ie=K-1;for(;z<=oe&&z<=ie;){const pe=_[z],ye=x[z]=U?yn(x[z]):Rt(x[z]);if(xs(pe,ye))v(pe,ye,O,null,F,H,X,V,U);else break;z++}for(;z<=oe&&z<=ie;){const pe=_[oe],ye=x[ie]=U?yn(x[ie]):Rt(x[ie]);if(xs(pe,ye))v(pe,ye,O,null,F,H,X,V,U);else break;oe--,ie--}if(z>oe){if(z<=ie){const pe=ie+1,ye=pe<K?x[pe].el:A;for(;z<=ie;)v(null,x[z]=U?yn(x[z]):Rt(x[z]),O,ye,F,H,X,V,U),z++}}else if(z>ie)for(;z<=oe;)Se(_[z],F,H,!0),z++;else{const pe=z,ye=z,Pe=new Map;for(z=ye;z<=ie;z++){const lt=x[z]=U?yn(x[z]):Rt(x[z]);lt.key!=null&&({}.NODE_ENV!=="production"&&Pe.has(lt.key)&&Y("Duplicate keys found during update:",JSON.stringify(lt.key),"Make sure keys are unique."),Pe.set(lt.key,z))}let Me,Ue=0;const yt=ie-ye+1;let wn=!1,Ki=0;const Hn=new Array(yt);for(z=0;z<yt;z++)Hn[z]=0;for(z=pe;z<=oe;z++){const lt=_[z];if(Ue>=yt){Se(lt,F,H,!0);continue}let _t;if(lt.key!=null)_t=Pe.get(lt.key);else for(Me=ye;Me<=ie;Me++)if(Hn[Me-ye]===0&&xs(lt,x[Me])){_t=Me;break}_t===void 0?Se(lt,F,H,!0):(Hn[_t-ye]=z+1,_t>=Ki?Ki=_t:wn=!0,v(lt,x[_t],O,null,F,H,X,V,U),Ue++)}const Zi=wn?lf(Hn):Yn;for(Me=Zi.length-1,z=yt-1;z>=0;z--){const lt=ye+z,_t=x[lt],Qi=lt+1<K?x[lt+1].el:A;Hn[z]===0?v(null,_t,O,Qi,F,H,X,V,U):wn&&(Me<0||z!==Zi[Me]?te(_t,O,Qi,2):Me--)}}},te=(_,x,O,A,F=null)=>{const{el:H,type:X,transition:V,children:U,shapeFlag:z}=_;if(z&6){te(_.component.subTree,x,O,A);return}if(z&128){_.suspense.move(x,O,A);return}if(z&64){X.move(_,x,O,Lt);return}if(X===De){s(H,x,O);for(let oe=0;oe<U.length;oe++)te(U[oe],x,O,A);s(_.anchor,x,O);return}if(X===fi){S(_,x,O);return}if(A!==2&&z&1&&V)if(A===0)V.beforeEnter(H),s(H,x,O),wt(()=>V.enter(H),F);else{const{leave:oe,delayLeave:ie,afterLeave:pe}=V,ye=()=>s(H,x,O),Pe=()=>{oe(H,()=>{ye(),pe&&pe()})};ie?ie(H,ye,Pe):Pe()}else s(H,x,O)},Se=(_,x,O,A=!1,F=!1)=>{const{type:H,props:X,ref:V,children:U,dynamicChildren:z,shapeFlag:K,patchFlag:oe,dirs:ie}=_;if(V!=null&&Ho(V,null,O,_,!0),K&256){x.ctx.deactivate(_);return}const pe=K&1&&ie,ye=!ps(_);let Pe;if(ye&&(Pe=X&&X.onVnodeBeforeUnmount)&&jt(Pe,x,_),K&6)We(_.component,O,A);else{if(K&128){_.suspense.unmount(O,A);return}pe&&Ln(_,null,x,"beforeUnmount"),K&64?_.type.remove(_,x,O,F,Lt,A):z&&(H!==De||oe>0&&oe&64)?Ge(z,x,O,!1,!0):(H===De&&oe&384||!F&&K&16)&&Ge(U,x,O),A&&Ze(_)}(ye&&(Pe=X&&X.onVnodeUnmounted)||pe)&&wt(()=>{Pe&&jt(Pe,x,_),pe&&Ln(_,null,x,"unmounted")},O)},Ze=_=>{const{type:x,el:O,anchor:A,transition:F}=_;if(x===De){({}).NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&F&&!F.persisted?_.children.forEach(X=>{X.type===Ct?i(X.el):Ze(X)}):He(O,A);return}if(x===fi){D(_);return}const H=()=>{i(O),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(_.shapeFlag&1&&F&&!F.persisted){const{leave:X,delayLeave:V}=F,U=()=>X(O,H);V?V(_.el,H,U):U()}else H()},He=(_,x)=>{let O;for(;_!==x;)O=d(_),i(_),_=O;i(x)},We=(_,x,O)=>{({}).NODE_ENV!=="production"&&_.type.__hmrId&&Jh(_);const{bum:A,scope:F,update:H,subTree:X,um:V}=_;A&&rs(A),F.stop(),H&&(H.active=!1,Se(X,_,x,O)),V&&wt(V,x),wt(()=>{_.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&rd(_)},Ge=(_,x,O,A=!1,F=!1,H=0)=>{for(let X=H;X<_.length;X++)Se(_[X],x,O,A,F)},Ot=_=>_.shapeFlag&6?Ot(_.component.subTree):_.shapeFlag&128?_.suspense.next():d(_.anchor||_.el);let Be=!1;const at=(_,x,O)=>{_==null?x._vnode&&Se(x._vnode,null,null,!0):v(x._vnode||null,_,x,null,null,null,O),Be||(Be=!0,Va(),za(),Be=!1),x._vnode=_},Lt={p:v,um:Se,m:te,r:Ze,mt:ze,mc:le,pc:W,pbc:Ne,n:Ot,o:t};let on,rn;return e&&([on,rn]=e(Lt)),{render:at,hydrate:on,createApp:Hd(at,on)}}function Wo({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Vn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function af(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function di(t,e,n=!1){const s=t.children,i=e.children;if(re(s)&&re(i))for(let o=0;o<s.length;o++){const r=s[o];let l=i[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[o]=yn(i[o]),l.el=r.el),n||di(r,l)),l.type===ys&&(l.el=r.el),{}.NODE_ENV!=="production"&&l.type===Ct&&!l.el&&(l.el=r.el)}}function lf(t){const e=t.slice(),n=[0];let s,i,o,r,l;const a=t.length;for(s=0;s<a;s++){const c=t[s];if(c!==0){if(i=n[n.length-1],t[i]<c){e[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)l=o+r>>1,t[n[l]]<c?o=l+1:r=l;c<t[n[o]]&&(o>0&&(e[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=e[r];return n}function Cl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Cl(e)}const cf=t=>t.__isTeleport,De=Symbol.for("v-fgt"),ys=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),_s=[];let Mt=null;function I(t=!1){_s.push(Mt=t?null:[])}function uf(){_s.pop(),Mt=_s[_s.length-1]||null}let bs=1;function El(t){bs+=t}function Sl(t){return t.dynamicChildren=bs>0?Mt||Yn:null,uf(),bs>0&&Mt&&Mt.push(t),t}function L(t,e,n,s,i,o){return Sl(k(t,e,n,s,i,o,!0))}function Xe(t,e,n,s,i){return Sl(se(t,e,n,s,i,!0))}function Zn(t){return t?t.__v_isVNode===!0:!1}function xs(t,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&Kn.has(e.type)?(t.shapeFlag&=-257,e.shapeFlag&=-513,!1):t.type===e.type&&t.key===e.key}const hf=(...t)=>Tl(...t),kl=({key:t})=>t??null,pi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ye(t)||rt(t)||de(t)?{i:tt,r:t,k:e,f:!!n}:t:null);function k(t,e=null,n=null,s=0,i=null,o=t===De?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&kl(e),ref:e&&pi(e),scopeId:ii,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:tt};return l?(Uo(a,n),o&128&&t.normalize(a)):n&&(a.shapeFlag|=Ye(n)?8:16),{}.NODE_ENV!=="production"&&a.key!==a.key&&Y("VNode created with invalid key (NaN). VNode type:",a.type),bs>0&&!r&&Mt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Mt.push(a),a}const se={}.NODE_ENV!=="production"?hf:Tl;function Tl(t,e=null,n=null,s=0,i=null,o=!1){if((!t||t===md)&&({}.NODE_ENV!=="production"&&!t&&Y(`Invalid vnode type when creating vnode: ${t}.`),t=Ct),Zn(t)){const l=vn(t,e,!0);return n&&Uo(l,n),bs>0&&!o&&Mt&&(l.shapeFlag&6?Mt[Mt.indexOf(t)]=l:Mt.push(l)),l.patchFlag|=-2,l}if(Ll(t)&&(t=t.__vccOpts),e){e=df(e);let{class:l,style:a}=e;l&&!Ye(l)&&(e.class=xt(l)),Oe(a)&&(bo(a)&&!re(a)&&(a=je({},a)),e.style=B(a))}const r=Ye(t)?1:gd(t)?128:cf(t)?64:Oe(t)?4:de(t)?2:0;return{}.NODE_ENV!=="production"&&r&4&&bo(t)&&(t=ve(t),Y("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
21
- Component that was made reactive: `,t)),k(t,e,n,s,i,r,o,!0)}function df(t){return t?bo(t)||hl(t)?je({},t):t:null}function vn(t,e,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=t,l=e?Yo(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&kl(l),ref:e&&e.ref?n&&i?re(i)?i.concat(pi(e)):[i,pi(e)]:pi(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:{}.NODE_ENV!=="production"&&o===-1&&re(r)?r.map(Pl):r,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==De?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&vn(t.ssContent),ssFallback:t.ssFallback&&vn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Pl(t){const e=vn(t);return re(t.children)&&(e.children=t.children.map(Pl)),e}function Le(t=" ",e=0){return se(ys,null,t,e)}function Ie(t="",e=!1){return e?(I(),Xe(Ct,null,t)):se(Ct,null,t)}function Rt(t){return t==null||typeof t=="boolean"?se(Ct):re(t)?se(De,null,t.slice()):typeof t=="object"?yn(t):se(ys,null,String(t))}function yn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:vn(t)}function Uo(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(re(e))n=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),Uo(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!hl(e)?e._ctx=tt:i===3&&tt&&(tt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else de(e)?(e={default:e,_ctx:tt},n=32):(e=String(e),s&64?(n=16,e=[Le(e)]):n=8);t.children=e,t.shapeFlag|=n}function Yo(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=xt([e.class,s.class]));else if(i==="style")e.style=B([e.style,s.style]);else if(is(i)){const o=e[i],r=s[i];r&&o!==r&&!(re(o)&&o.includes(r))&&(e[i]=o?[].concat(o,r):r)}else i!==""&&(e[i]=s[i])}return e}function jt(t,e,n,s=null){Dt(t,e,7,[n,s])}const ff=ll();let pf=0;function mf(t,e,n){const s=t.type,i=(e?e.appContext:t.appContext)||ff,o={uid:pf++,vnode:t,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ph(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:fl(s,i),emitsOptions:Ya(s,i),emit:null,emitted:null,propsDefaults:$e,inheritAttrs:s.inheritAttrs,ctx:$e,data:$e,props:$e,attrs:$e,slots:$e,refs:$e,setupState:$e,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?o.ctx=$d(o):o.ctx={_:o},o.root=e?e.root:o,o.emit=ud.bind(null,o),t.ce&&t.ce(o),o}let st=null;const Nl=()=>st||tt;let mi,Xo;{const t=co(),e=(n,s)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};mi=e("__VUE_INSTANCE_SETTERS__",n=>st=n),Xo=e("__VUE_SSR_SETTERS__",n=>gi=n)}const ws=t=>{const e=st;return mi(t),t.scope.on(),()=>{t.scope.off(),mi(e)}},Ol=()=>{st&&st.scope.off(),mi(null)},gf=Un("slot,component");function qo(t,{isNativeTag:e}){(gf(t)||e(t))&&Y("Do not use built-in or reserved HTML elements as component id: "+t)}function Il(t){return t.vnode.shapeFlag&4}let gi=!1;function vf(t,e=!1){e&&Xo(e);const{props:n,children:s}=t.vnode,i=Il(t);Ud(t,n,i,e),tf(t,s);const o=i?yf(t,e):void 0;return e&&Xo(!1),o}function yf(t,e){var n;const s=t.type;if({}.NODE_ENV!=="production"){if(s.name&&qo(s.name,t.appContext.config),s.components){const o=Object.keys(s.components);for(let r=0;r<o.length;r++)qo(o[r],t.appContext.config)}if(s.directives){const o=Object.keys(s.directives);for(let r=0;r<o.length;r++)Ja(o[r])}s.compilerOptions&&_f()&&Y('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,nl),{}.NODE_ENV!=="production"&&Dd(t);const{setup:i}=s;if(i){const o=t.setupContext=i.length>1?Rl(t):null,r=ws(t);Yt();const l=Kt(i,t,0,[{}.NODE_ENV!=="production"?qt(t.props):t.props,o]);if(Xt(),r(),ro(l)){if(l.then(Ol,Ol),e)return l.then(a=>{$l(t,a,e)}).catch(a=>{ls(a,t,0)});if(t.asyncDep=l,{}.NODE_ENV!=="production"&&!t.suspense){const a=(n=s.name)!=null?n:"Anonymous";Y(`Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else $l(t,l,e)}else Dl(t,e)}function $l(t,e,n){de(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Oe(e)?({}.NODE_ENV!=="production"&&Zn(e)&&Y("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(t.devtoolsRawSetupState=e),t.setupState=Ma(e),{}.NODE_ENV!=="production"&&Md(t)):{}.NODE_ENV!=="production"&&e!==void 0&&Y(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Dl(t,n)}let Ko;const _f=()=>!Ko;function Dl(t,e,n){const s=t.type;if(!t.render){if(!e&&Ko&&!s.render){const i=s.template||Vo(t).template;if(i){({}).NODE_ENV!=="production"&&Jt(t,"compile");const{isCustomElement:o,compilerOptions:r}=t.appContext.config,{delimiters:l,compilerOptions:a}=s,c=je(je({isCustomElement:o,delimiters:l},r),a);s.render=Ko(i,c),{}.NODE_ENV!=="production"&&en(t,"compile")}}t.render=s.render||Je}{const i=ws(t);Yt();try{Fd(t)}finally{Xt(),i()}}({}).NODE_ENV!=="production"&&!s.render&&t.render===Je&&!e&&(s.template?Y('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Y("Component is missing template or render function."))}const Ml={}.NODE_ENV!=="production"?{get(t,e){return ri(),ot(t,"get",""),t[e]},set(){return Y("setupContext.attrs is readonly."),!1},deleteProperty(){return Y("setupContext.attrs is readonly."),!1}}:{get(t,e){return ot(t,"get",""),t[e]}};function bf(t){return t.slotsProxy||(t.slotsProxy=new Proxy(t.slots,{get(e,n){return ot(t,"get","$slots"),e[n]}}))}function Rl(t){const e=n=>{if({}.NODE_ENV!=="production"&&(t.exposed&&Y("expose() should be called only once per setup()."),n!=null)){let s=typeof n;s==="object"&&(re(n)?s="array":rt(n)&&(s="ref")),s!=="object"&&Y(`expose() should be passed a plain object, received ${s}.`)}t.exposed=n||{}};if({}.NODE_ENV!=="production"){let n;return Object.freeze({get attrs(){return n||(n=new Proxy(t.attrs,Ml))},get slots(){return bf(t)},get emit(){return(s,...i)=>t.emit(s,...i)},expose:e})}else return{attrs:new Proxy(t.attrs,Ml),slots:t.slots,emit:t.emit,expose:e}}function vi(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Ma(Lh(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Fn)return Fn[n](t)},has(e,n){return n in e||n in Fn}}))}const xf=/(?:^|[-_])(\w)/g,wf=t=>t.replace(xf,e=>e.toUpperCase()).replace(/[-_]/g,"");function Al(t,e=!0){return de(t)?t.displayName||t.name:t.name||e&&t.__name}function yi(t,e,n=!1){let s=Al(e);if(!s&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&t&&t.parent){const i=o=>{for(const r in o)if(o[r]===e)return r};s=i(t.components||t.parent.type.components)||i(t.appContext.components)}return s?wf(s):n?"App":"Anonymous"}function Ll(t){return de(t)&&"__vccOpts"in t}const Cf=(t,e)=>{const n=Vh(t,e,gi);if({}.NODE_ENV!=="production"){const s=Nl();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Fe(t,e,n){const s=arguments.length;return s===2?Oe(e)&&!re(e)?Zn(e)?se(t,null,[e]):se(t,e):se(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Zn(n)&&(n=[n]),se(t,e,n))}function Ef(){if({}.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(h){return Oe(h)?h.__isVue?["div",t,"VueInstance"]:rt(h)?["div",{},["span",t,u(h)],"<",l(h.value),">"]:Xn(h)?["div",{},["span",t,On(h)?"ShallowReactive":"Reactive"],"<",l(h),`>${Nn(h)?" (readonly)":""}`]:Nn(h)?["div",{},["span",t,On(h)?"ShallowReadonly":"Readonly"],"<",l(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...o(h.$)]}};function o(h){const d=[];h.type.props&&h.props&&d.push(r("props",ve(h.props))),h.setupState!==$e&&d.push(r("setup",h.setupState)),h.data!==$e&&d.push(r("data",ve(h.data)));const f=a(h,"computed");f&&d.push(r("computed",f));const m=a(h,"inject");return m&&d.push(r("injected",m)),d.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),d}function r(h,d){return d=je({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(f=>["div",{},["span",s,f+": "],l(d[f],!1)])]]:["span",{}]}function l(h,d=!0){return typeof h=="number"?["span",e,h]:typeof h=="string"?["span",n,JSON.stringify(h)]:typeof h=="boolean"?["span",s,h]:Oe(h)?["object",{object:d?ve(h):h}]:["span",n,String(h)]}function a(h,d){const f=h.type;if(de(f))return;const m={};for(const v in h.ctx)c(f,v,d)&&(m[v]=h.ctx[v]);return m}function c(h,d,f){const m=h[f];if(re(m)&&m.includes(d)||Oe(m)&&d in m||h.extends&&c(h.extends,d,f)||h.mixins&&h.mixins.some(v=>c(v,d,f)))return!0}function u(h){return On(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Fl="3.4.25",_i={}.NODE_ENV!=="production"?Y:Je;/**
20
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const Ct=bd;function lf(n){return cf(n)}function cf(n,e){af();const t=go();t.__VUE__=!0,{}.NODE_ENV!=="production"&&Ka(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:f=Qe,insertStaticContent:m}=n,g=(y,x,N,A=null,F=null,W=null,q=void 0,V=null,U={}.NODE_ENV!=="production"&&Ln?!1:!!x.dynamicChildren)=>{if(y===x)return;y&&!ks(y,x)&&(A=Dt(y),Pe(y,F,W,!0),y=null),x.patchFlag===-2&&(U=!1,x.dynamicChildren=null);const{type:z,ref:J,shapeFlag:le}=x;switch(z){case Es:_(y,x,N,A);break;case St:w(y,x,N,A);break;case xi:y==null?C(x,N,A,q):{}.NODE_ENV!=="production"&&E(y,x,N,q);break;case Me:Ie(y,x,N,A,F,W,q,V,U);break;default:le&1?O(y,x,N,A,F,W,q,V,U):le&6?De(y,x,N,A,F,W,q,V,U):le&64||le&128?z.process(y,x,N,A,F,W,q,V,U,Vt):{}.NODE_ENV!=="production"&&Y("Invalid VNode type:",z,`(${typeof z})`)}J!=null&&F&&Ko(J,y&&y.ref,W,x||y,!x)},_=(y,x,N,A)=>{if(y==null)s(x.el=a(x.children),N,A);else{const F=x.el=y.el;x.children!==y.children&&c(F,x.children)}},w=(y,x,N,A)=>{y==null?s(x.el=l(x.children||""),N,A):x.el=y.el},C=(y,x,N,A)=>{[y.el,y.anchor]=m(y.children,x,N,A,y.el,y.anchor)},E=(y,x,N,A)=>{if(x.children!==y.children){const F=d(y.anchor);I(y),[x.el,x.anchor]=m(x.children,N,F,A)}else x.el=y.el,x.anchor=y.anchor},k=({el:y,anchor:x},N,A)=>{let F;for(;y&&y!==x;)F=d(y),s(y,N,A),y=F;s(x,N,A)},I=({el:y,anchor:x})=>{let N;for(;y&&y!==x;)N=d(y),i(y),y=N;i(x)},O=(y,x,N,A,F,W,q,V,U)=>{x.type==="svg"?q="svg":x.type==="math"&&(q="mathml"),y==null?R(x,N,A,F,W,q,V,U):he(y,x,F,W,q,V,U)},R=(y,x,N,A,F,W,q,V)=>{let U,z;const{props:J,shapeFlag:le,transition:ae,dirs:me}=y;if(U=y.el=r(y.type,W,J&&J.is,J),le&8?u(U,y.children):le&16&&oe(y.children,U,null,A,F,Zo(y,W),q,V),me&&zn(y,null,A,"created"),ie(U,y,y.scopeId,q,A),J){for(const Ne in J)Ne!=="value"&&!us(Ne)&&o(U,Ne,null,J[Ne],W,y.children,A,F,Be);"value"in J&&o(U,"value",null,J.value,W),(z=J.onVnodeBeforeMount)&&Ht(z,A,y)}({}).NODE_ENV!=="production"&&(Object.defineProperty(U,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(U,"__vueParentComponent",{value:A,enumerable:!1})),me&&zn(y,null,A,"beforeMount");const we=uf(F,ae);we&&ae.beforeEnter(U),s(U,x,N),((z=J&&J.onVnodeMounted)||we||me)&&Ct(()=>{z&&Ht(z,A,y),we&&ae.enter(U),me&&zn(y,null,A,"mounted")},F)},ie=(y,x,N,A,F)=>{if(N&&f(y,N),A)for(let W=0;W<A.length;W++)f(y,A[W]);if(F){let W=F.subTree;if({}.NODE_ENV!=="production"&&W.patchFlag>0&&W.patchFlag&2048&&(W=Lo(W.children)||W),x===W){const q=F.vnode;ie(y,q,q.scopeId,q.slotScopeIds,F.parent)}}},oe=(y,x,N,A,F,W,q,V,U=0)=>{for(let z=U;z<y.length;z++){const J=y[z]=V?En(y[z]):Lt(y[z]);g(null,J,x,N,A,F,W,q,V)}},he=(y,x,N,A,F,W,q)=>{const V=x.el=y.el;let{patchFlag:U,dynamicChildren:z,dirs:J}=x;U|=y.patchFlag&16;const le=y.props||Ae,ae=x.props||Ae;let me;if(N&&jn(N,!1),(me=ae.onVnodeBeforeUpdate)&&Ht(me,N,x,y),J&&zn(x,y,N,"beforeUpdate"),N&&jn(N,!0),{}.NODE_ENV!=="production"&&Ln&&(U=0,q=!1,z=null),z?(xe(y.dynamicChildren,z,V,N,A,Zo(x,F),W),{}.NODE_ENV!=="production"&&bi(y,x)):q||H(y,x,V,null,N,A,Zo(x,F),W,!1),U>0){if(U&16)ye(V,x,le,ae,N,A,F);else if(U&2&&le.class!==ae.class&&o(V,"class",null,ae.class,F),U&4&&o(V,"style",le.style,ae.style,F),U&8){const we=x.dynamicProps;for(let Ne=0;Ne<we.length;Ne++){const Ve=we[Ne],Xe=le[Ve],bt=ae[Ve];(bt!==Xe||Ve==="value")&&o(V,Ve,Xe,bt,F,y.children,N,A,Be)}}U&1&&y.children!==x.children&&u(V,x.children)}else!q&&z==null&&ye(V,x,le,ae,N,A,F);((me=ae.onVnodeUpdated)||J)&&Ct(()=>{me&&Ht(me,N,x,y),J&&zn(x,y,N,"updated")},A)},xe=(y,x,N,A,F,W,q)=>{for(let V=0;V<x.length;V++){const U=y[V],z=x[V],J=U.el&&(U.type===Me||!ks(U,z)||U.shapeFlag&70)?h(U.el):N;g(U,z,J,null,A,F,W,q,!0)}},ye=(y,x,N,A,F,W,q)=>{if(N!==A){if(N!==Ae)for(const V in N)!us(V)&&!(V in A)&&o(y,V,N[V],null,q,x.children,F,W,Be);for(const V in A){if(us(V))continue;const U=A[V],z=N[V];U!==z&&V!=="value"&&o(y,V,z,U,q,x.children,F,W,Be)}"value"in A&&o(y,"value",N.value,A.value,q)}},Ie=(y,x,N,A,F,W,q,V,U)=>{const z=x.el=y?y.el:a(""),J=x.anchor=y?y.anchor:a("");let{patchFlag:le,dynamicChildren:ae,slotScopeIds:me}=x;({}).NODE_ENV!=="production"&&(Ln||le&2048)&&(le=0,U=!1,ae=null),me&&(V=V?V.concat(me):me),y==null?(s(z,N,A),s(J,N,A),oe(x.children||[],N,J,F,W,q,V,U)):le>0&&le&64&&ae&&y.dynamicChildren?(xe(y.dynamicChildren,ae,N,F,W,q,V),{}.NODE_ENV!=="production"?bi(y,x):(x.key!=null||F&&x===F.subTree)&&bi(y,x,!0)):H(y,x,N,J,F,W,q,V,U)},De=(y,x,N,A,F,W,q,V,U)=>{x.slotScopeIds=V,y==null?x.shapeFlag&512?F.ctx.activate(x,N,A,q,U):ve(x,N,A,F,W,q,U):ue(y,x,U)},ve=(y,x,N,A,F,W,q)=>{const V=y.component=yf(y,A,F);if({}.NODE_ENV!=="production"&&V.type.__hmrId&&td(V),{}.NODE_ENV!=="production"&&(ai(y),tn(V,"mount")),zo(y)&&(V.ctx.renderer=Vt),{}.NODE_ENV!=="production"&&tn(V,"init"),bf(V),{}.NODE_ENV!=="production"&&nn(V,"init"),V.asyncDep){if(F&&F.registerDep(V,Q),!y.el){const U=V.subTree=se(St);w(null,U,x,N)}}else Q(V,y,x,N,F,W,q);({}).NODE_ENV!=="production"&&(li(),nn(V,"mount"))},ue=(y,x,N)=>{const A=x.component=y.component;if(gd(y,x,N))if(A.asyncDep&&!A.asyncResolved){({}).NODE_ENV!=="production"&&ai(x),M(A,x,N),{}.NODE_ENV!=="production"&&li();return}else A.next=x,Jh(A.update),A.effect.dirty=!0,A.update();else x.el=y.el,A.vnode=x},Q=(y,x,N,A,F,W,q)=>{const V=()=>{if(y.isMounted){let{next:J,bu:le,u:ae,parent:me,vnode:we}=y;{const Tn=Ol(y);if(Tn){J&&(J.el=we.el,M(y,J,q)),Tn.asyncDep.then(()=>{y.isUnmounted||V()});return}}let Ne=J,Ve;({}).NODE_ENV!=="production"&&ai(J||y.vnode),jn(y,!1),J?(J.el=we.el,M(y,J,q)):J=we,le&&hs(le),(Ve=J.props&&J.props.onVnodeBeforeUpdate)&&Ht(Ve,me,J,we),jn(y,!0),{}.NODE_ENV!=="production"&&tn(y,"render");const Xe=Ao(y);({}).NODE_ENV!=="production"&&nn(y,"render");const bt=y.subTree;y.subTree=Xe,{}.NODE_ENV!=="production"&&tn(y,"patch"),g(bt,Xe,h(bt.el),Dt(bt),y,F,W),{}.NODE_ENV!=="production"&&nn(y,"patch"),J.el=Xe.el,Ne===null&&vd(y,Xe.el),ae&&Ct(ae,F),(Ve=J.props&&J.props.onVnodeUpdated)&&Ct(()=>Ht(Ve,me,J,we),F),{}.NODE_ENV!=="production"&&Za(y),{}.NODE_ENV!=="production"&&li()}else{let J;const{el:le,props:ae}=x,{bm:me,m:we,parent:Ne}=y,Ve=_s(x);if(jn(y,!1),me&&hs(me),!Ve&&(J=ae&&ae.onVnodeBeforeMount)&&Ht(J,Ne,x),jn(y,!0),le&&cn){const Xe=()=>{({}).NODE_ENV!=="production"&&tn(y,"render"),y.subTree=Ao(y),{}.NODE_ENV!=="production"&&nn(y,"render"),{}.NODE_ENV!=="production"&&tn(y,"hydrate"),cn(le,y.subTree,y,F,null),{}.NODE_ENV!=="production"&&nn(y,"hydrate")};Ve?x.type.__asyncLoader().then(()=>!y.isUnmounted&&Xe()):Xe()}else{({}).NODE_ENV!=="production"&&tn(y,"render");const Xe=y.subTree=Ao(y);({}).NODE_ENV!=="production"&&nn(y,"render"),{}.NODE_ENV!=="production"&&tn(y,"patch"),g(null,Xe,N,A,y,F,W),{}.NODE_ENV!=="production"&&nn(y,"patch"),x.el=Xe.el}if(we&&Ct(we,F),!Ve&&(J=ae&&ae.onVnodeMounted)){const Xe=x;Ct(()=>Ht(J,Ne,Xe),F)}(x.shapeFlag&256||Ne&&_s(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&y.a&&Ct(y.a,F),y.isMounted=!0,{}.NODE_ENV!=="production"&&ad(y),x=N=A=null}},U=y.effect=new yo(V,Qe,()=>ui(z),y.scope),z=y.update=()=>{U.dirty&&U.run()};z.id=y.uid,jn(y,!0),{}.NODE_ENV!=="production"&&(U.onTrack=y.rtc?J=>hs(y.rtc,J):void 0,U.onTrigger=y.rtg?J=>hs(y.rtg,J):void 0,z.ownerInstance=y),z()},M=(y,x,N)=>{x.component=y;const A=y.vnode.props;y.vnode=x,y.next=null,Zd(y,x.props,A,N),rf(y,x.children,N),qt(),Wa(y),Kt()},H=(y,x,N,A,F,W,q,V,U=!1)=>{const z=y&&y.children,J=y?y.shapeFlag:0,le=x.children,{patchFlag:ae,shapeFlag:me}=x;if(ae>0){if(ae&128){pe(z,le,N,A,F,W,q,V,U);return}else if(ae&256){G(z,le,N,A,F,W,q,V,U);return}}me&8?(J&16&&Be(z,F,W),le!==z&&u(N,le)):J&16?me&16?pe(z,le,N,A,F,W,q,V,U):Be(z,F,W,!0):(J&8&&u(N,""),me&16&&oe(le,N,A,F,W,q,V,U))},G=(y,x,N,A,F,W,q,V,U)=>{y=y||Kn,x=x||Kn;const z=y.length,J=x.length,le=Math.min(z,J);let ae;for(ae=0;ae<le;ae++){const me=x[ae]=U?En(x[ae]):Lt(x[ae]);g(y[ae],me,N,null,F,W,q,V,U)}z>J?Be(y,F,W,!0,!1,le):oe(x,N,A,F,W,q,V,U,le)},pe=(y,x,N,A,F,W,q,V,U)=>{let z=0;const J=x.length;let le=y.length-1,ae=J-1;for(;z<=le&&z<=ae;){const me=y[z],we=x[z]=U?En(x[z]):Lt(x[z]);if(ks(me,we))g(me,we,N,null,F,W,q,V,U);else break;z++}for(;z<=le&&z<=ae;){const me=y[le],we=x[ae]=U?En(x[ae]):Lt(x[ae]);if(ks(me,we))g(me,we,N,null,F,W,q,V,U);else break;le--,ae--}if(z>le){if(z<=ae){const me=ae+1,we=me<J?x[me].el:A;for(;z<=ae;)g(null,x[z]=U?En(x[z]):Lt(x[z]),N,we,F,W,q,V,U),z++}}else if(z>ae)for(;z<=le;)Pe(y[z],F,W,!0),z++;else{const me=z,we=z,Ne=new Map;for(z=we;z<=ae;z++){const dt=x[z]=U?En(x[z]):Lt(x[z]);dt.key!=null&&({}.NODE_ENV!=="production"&&Ne.has(dt.key)&&Y("Duplicate keys found during update:",JSON.stringify(dt.key),"Make sure keys are unique."),Ne.set(dt.key,z))}let Ve,Xe=0;const bt=ae-we+1;let Tn=!1,no=0;const Yn=new Array(bt);for(z=0;z<bt;z++)Yn[z]=0;for(z=me;z<=le;z++){const dt=y[z];if(Xe>=bt){Pe(dt,F,W,!0);continue}let xt;if(dt.key!=null)xt=Ne.get(dt.key);else for(Ve=we;Ve<=ae;Ve++)if(Yn[Ve-we]===0&&ks(dt,x[Ve])){xt=Ve;break}xt===void 0?Pe(dt,F,W,!0):(Yn[xt-we]=z+1,xt>=no?no=xt:Tn=!0,g(dt,x[xt],N,null,F,W,q,V,U),Xe++)}const so=Tn?hf(Yn):Kn;for(Ve=so.length-1,z=bt-1;z>=0;z--){const dt=we+z,xt=x[dt],io=dt+1<J?x[dt+1].el:A;Yn[z]===0?g(null,xt,N,io,F,W,q,V,U):Tn&&(Ve<0||z!==so[Ve]?ne(xt,N,io,2):Ve--)}}},ne=(y,x,N,A,F=null)=>{const{el:W,type:q,transition:V,children:U,shapeFlag:z}=y;if(z&6){ne(y.component.subTree,x,N,A);return}if(z&128){y.suspense.move(x,N,A);return}if(z&64){q.move(y,x,N,Vt);return}if(q===Me){s(W,x,N);for(let le=0;le<U.length;le++)ne(U[le],x,N,A);s(y.anchor,x,N);return}if(q===xi){k(y,x,N);return}if(A!==2&&z&1&&V)if(A===0)V.beforeEnter(W),s(W,x,N),Ct(()=>V.enter(W),F);else{const{leave:le,delayLeave:ae,afterLeave:me}=V,we=()=>s(W,x,N),Ne=()=>{le(W,()=>{we(),me&&me()})};ae?ae(W,we,Ne):Ne()}else s(W,x,N)},Pe=(y,x,N,A=!1,F=!1)=>{const{type:W,props:q,ref:V,children:U,dynamicChildren:z,shapeFlag:J,patchFlag:le,dirs:ae}=y;if(V!=null&&Ko(V,null,N,y,!0),J&256){x.ctx.deactivate(y);return}const me=J&1&&ae,we=!_s(y);let Ne;if(we&&(Ne=q&&q.onVnodeBeforeUnmount)&&Ht(Ne,x,y),J&6)Ye(y.component,N,A);else{if(J&128){y.suspense.unmount(N,A);return}me&&zn(y,null,x,"beforeUnmount"),J&64?y.type.remove(y,x,N,F,Vt,A):z&&(W!==Me||le>0&&le&64)?Be(z,x,N,!1,!0):(W===Me&&le&384||!F&&J&16)&&Be(U,x,N),A&&Ke(y)}(we&&(Ne=q&&q.onVnodeUnmounted)||me)&&Ct(()=>{Ne&&Ht(Ne,x,y),me&&zn(y,null,x,"unmounted")},N)},Ke=y=>{const{type:x,el:N,anchor:A,transition:F}=y;if(x===Me){({}).NODE_ENV!=="production"&&y.patchFlag>0&&y.patchFlag&2048&&F&&!F.persisted?y.children.forEach(q=>{q.type===St?i(q.el):Ke(q)}):Ue(N,A);return}if(x===xi){I(y);return}const W=()=>{i(N),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(y.shapeFlag&1&&F&&!F.persisted){const{leave:q,delayLeave:V}=F,U=()=>q(N,W);V?V(y.el,W,U):U()}else W()},Ue=(y,x)=>{let N;for(;y!==x;)N=d(y),i(y),y=N;i(x)},Ye=(y,x,N)=>{({}).NODE_ENV!=="production"&&y.type.__hmrId&&nd(y);const{bum:A,scope:F,update:W,subTree:q,um:V}=y;A&&hs(A),F.stop(),W&&(W.active=!1,Pe(q,y,x,N)),V&&Ct(V,x),Ct(()=>{y.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&cd(y)},Be=(y,x,N,A=!1,F=!1,W=0)=>{for(let q=W;q<y.length;q++)Pe(y[q],x,N,A,F)},Dt=y=>y.shapeFlag&6?Dt(y.component.subTree):y.shapeFlag&128?y.suspense.next():d(y.anchor||y.el);let We=!1;const ht=(y,x,N)=>{y==null?x._vnode&&Pe(x._vnode,null,null,!0):g(x._vnode||null,y,x,null,null,null,N),We||(We=!0,Wa(),Ua(),We=!1),x._vnode=y},Vt={p:g,um:Pe,m:ne,r:Ke,mt:ve,mc:oe,pc:H,pbc:xe,n:Dt,o:n};let ln,cn;return e&&([ln,cn]=e(Vt)),{render:ht,hydrate:ln,createApp:Yd(ht,ln)}}function Zo({type:n,props:e},t){return t==="svg"&&n==="foreignObject"||t==="mathml"&&n==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function jn({effect:n,update:e},t){n.allowRecurse=e.allowRecurse=t}function uf(n,e){return(!n||n&&!n.pendingBranch)&&e&&!e.persisted}function bi(n,e,t=!1){const s=n.children,i=e.children;if(ce(s)&&ce(i))for(let o=0;o<s.length;o++){const r=s[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=En(i[o]),a.el=r.el),t||bi(r,a)),a.type===Es&&(a.el=r.el),{}.NODE_ENV!=="production"&&a.type===St&&!a.el&&(a.el=r.el)}}function hf(n){const e=n.slice(),t=[0];let s,i,o,r,a;const l=n.length;for(s=0;s<l;s++){const c=n[s];if(c!==0){if(i=t[t.length-1],n[i]<c){e[s]=i,t.push(s);continue}for(o=0,r=t.length-1;o<r;)a=o+r>>1,n[t[a]]<c?o=a+1:r=a;c<n[t[o]]&&(o>0&&(e[s]=t[o-1]),t[o]=s)}}for(o=t.length,r=t[o-1];o-- >0;)t[o]=r,r=e[r];return t}function Ol(n){const e=n.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Ol(e)}const df=n=>n.__isTeleport,Me=Symbol.for("v-fgt"),Es=Symbol.for("v-txt"),St=Symbol.for("v-cmt"),xi=Symbol.for("v-stc"),Cs=[];let At=null;function D(n=!1){Cs.push(At=n?null:[])}function ff(){Cs.pop(),At=Cs[Cs.length-1]||null}let Ss=1;function Nl(n){Ss+=n}function Il(n){return n.dynamicChildren=Ss>0?At||Kn:null,ff(),Ss>0&&At&&At.push(n),n}function L(n,e,t,s,i,o){return Il(S(n,e,t,s,i,o,!0))}function Je(n,e,t,s,i){return Il(se(n,e,t,s,i,!0))}function es(n){return n?n.__v_isVNode===!0:!1}function ks(n,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&Jn.has(e.type)?(n.shapeFlag&=-257,e.shapeFlag&=-513,!1):n.type===e.type&&n.key===e.key}const pf=(...n)=>$l(...n),Dl=({key:n})=>n??null,wi=({ref:n,ref_key:e,ref_for:t})=>(typeof n=="number"&&(n=""+n),n!=null?qe(n)||ut(n)||fe(n)?{i:tt,r:n,k:e,f:!!t}:n:null);function S(n,e=null,t=null,s=0,i=null,o=n===Me?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:n,props:e,key:e&&Dl(e),ref:e&&wi(e),scopeId:di,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:tt};return a?(Qo(l,t),o&128&&n.normalize(l)):t&&(l.shapeFlag|=qe(t)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&Y("VNode created with invalid key (NaN). VNode type:",l.type),Ss>0&&!r&&At&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&At.push(l),l}const se={}.NODE_ENV!=="production"?pf:$l;function $l(n,e=null,t=null,s=0,i=null,o=!1){if((!n||n===yd)&&({}.NODE_ENV!=="production"&&!n&&Y(`Invalid vnode type when creating vnode: ${n}.`),n=St),es(n)){const a=wn(n,e,!0);return t&&Qo(a,t),Ss>0&&!o&&At&&(a.shapeFlag&6?At[At.indexOf(n)]=a:At.push(a)),a.patchFlag|=-2,a}if(Bl(n)&&(n=n.__vccOpts),e){e=mf(e);let{class:a,style:l}=e;a&&!qe(a)&&(e.class=Et(a)),$e(l)&&(ko(l)&&!ce(l)&&(l=He({},l)),e.style=B(l))}const r=qe(n)?1:_d(n)?128:df(n)?64:$e(n)?4:fe(n)?2:0;return{}.NODE_ENV!=="production"&&r&4&&ko(n)&&(n=be(n),Y("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
21
+ Component that was made reactive: `,n)),S(n,e,t,s,i,r,o,!0)}function mf(n){return n?ko(n)||vl(n)?He({},n):n:null}function wn(n,e,t=!1){const{props:s,ref:i,patchFlag:o,children:r}=n,a=e?Jo(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&Dl(a),ref:e&&e.ref?t&&i?ce(i)?i.concat(wi(e)):[i,wi(e)]:wi(e):i,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:{}.NODE_ENV!=="production"&&o===-1&&ce(r)?r.map(Ml):r,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:e&&n.type!==Me?o===-1?16:o|16:o,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&wn(n.ssContent),ssFallback:n.ssFallback&&wn(n.ssFallback),el:n.el,anchor:n.anchor,ctx:n.ctx,ce:n.ce}}function Ml(n){const e=wn(n);return ce(n.children)&&(e.children=n.children.map(Ml)),e}function Fe(n=" ",e=0){return se(Es,null,n,e)}function Re(n="",e=!1){return e?(D(),Je(St,null,n)):se(St,null,n)}function Lt(n){return n==null||typeof n=="boolean"?se(St):ce(n)?se(Me,null,n.slice()):typeof n=="object"?En(n):se(Es,null,String(n))}function En(n){return n.el===null&&n.patchFlag!==-1||n.memo?n:wn(n)}function Qo(n,e){let t=0;const{shapeFlag:s}=n;if(e==null)e=null;else if(ce(e))t=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),Qo(n,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!vl(e)?e._ctx=tt:i===3&&tt&&(tt.slots._===1?e._=1:(e._=2,n.patchFlag|=1024))}else fe(e)?(e={default:e,_ctx:tt},t=32):(e=String(e),s&64?(t=16,e=[Fe(e)]):t=8);n.children=e,n.shapeFlag|=t}function Jo(...n){const e={};for(let t=0;t<n.length;t++){const s=n[t];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=Et([e.class,s.class]));else if(i==="style")e.style=B([e.style,s.style]);else if(cs(i)){const o=e[i],r=s[i];r&&o!==r&&!(ce(o)&&o.includes(r))&&(e[i]=o?[].concat(o,r):r)}else i!==""&&(e[i]=s[i])}return e}function Ht(n,e,t,s=null){Rt(n,e,7,[t,s])}const gf=pl();let vf=0;function yf(n,e,t){const s=n.type,i=(e?e.appContext:n.appContext)||gf,o={uid:vf++,vnode:n,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new vh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_l(s,i),emitsOptions:Ja(s,i),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:s.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?o.ctx=Rd(o):o.ctx={_:o},o.root=e?e.root:o,o.emit=fd.bind(null,o),n.ce&&n.ce(o),o}let rt=null;const Rl=()=>rt||tt;let Ei,er;{const n=go(),e=(t,s)=>{let i;return(i=n[t])||(i=n[t]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Ei=e("__VUE_INSTANCE_SETTERS__",t=>rt=t),er=e("__VUE_SSR_SETTERS__",t=>Ci=t)}const Ts=n=>{const e=rt;return Ei(n),n.scope.on(),()=>{n.scope.off(),Ei(e)}},Al=()=>{rt&&rt.scope.off(),Ei(null)},_f=qn("slot,component");function tr(n,{isNativeTag:e}){(_f(n)||e(n))&&Y("Do not use built-in or reserved HTML elements as component id: "+n)}function Ll(n){return n.vnode.shapeFlag&4}let Ci=!1;function bf(n,e=!1){e&&er(e);const{props:t,children:s}=n.vnode,i=Ll(n);qd(n,t,i,e),of(n,s);const o=i?xf(n,e):void 0;return e&&er(!1),o}function xf(n,e){var t;const s=n.type;if({}.NODE_ENV!=="production"){if(s.name&&tr(s.name,n.appContext.config),s.components){const o=Object.keys(s.components);for(let r=0;r<o.length;r++)tr(o[r],n.appContext.config)}if(s.directives){const o=Object.keys(s.directives);for(let r=0;r<o.length;r++)ol(o[r])}s.compilerOptions&&wf()&&Y('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}n.accessCache=Object.create(null),n.proxy=new Proxy(n.ctx,ll),{}.NODE_ENV!=="production"&&Ad(n);const{setup:i}=s;if(i){const o=n.setupContext=i.length>1?Gl(n):null,r=Ts(n);qt();const a=Qt(i,n,0,[{}.NODE_ENV!=="production"?Zt(n.props):n.props,o]);if(Kt(),r(),fo(a)){if(a.then(Al,Al),e)return a.then(l=>{Fl(n,l,e)}).catch(l=>{fs(l,n,0)});if(n.asyncDep=a,{}.NODE_ENV!=="production"&&!n.suspense){const l=(t=s.name)!=null?t:"Anonymous";Y(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Fl(n,a,e)}else Vl(n,e)}function Fl(n,e,t){fe(e)?n.type.__ssrInlineRender?n.ssrRender=e:n.render=e:$e(e)?({}.NODE_ENV!=="production"&&es(e)&&Y("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(n.devtoolsRawSetupState=e),n.setupState=za(e),{}.NODE_ENV!=="production"&&Ld(n)):{}.NODE_ENV!=="production"&&e!==void 0&&Y(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Vl(n,t)}let nr;const wf=()=>!nr;function Vl(n,e,t){const s=n.type;if(!n.render){if(!e&&nr&&!s.render){const i=s.template||Wo(n).template;if(i){({}).NODE_ENV!=="production"&&tn(n,"compile");const{isCustomElement:o,compilerOptions:r}=n.appContext.config,{delimiters:a,compilerOptions:l}=s,c=He(He({isCustomElement:o,delimiters:a},r),l);s.render=nr(i,c),{}.NODE_ENV!=="production"&&nn(n,"compile")}}n.render=s.render||Qe}{const i=Ts(n);qt();try{Gd(n)}finally{Kt(),i()}}({}).NODE_ENV!=="production"&&!s.render&&n.render===Qe&&!e&&(s.template?Y('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Y("Component is missing template or render function."))}const zl={}.NODE_ENV!=="production"?{get(n,e){return pi(),ct(n,"get",""),n[e]},set(){return Y("setupContext.attrs is readonly."),!1},deleteProperty(){return Y("setupContext.attrs is readonly."),!1}}:{get(n,e){return ct(n,"get",""),n[e]}};function Ef(n){return n.slotsProxy||(n.slotsProxy=new Proxy(n.slots,{get(e,t){return ct(n,"get","$slots"),e[t]}}))}function Gl(n){const e=t=>{if({}.NODE_ENV!=="production"&&(n.exposed&&Y("expose() should be called only once per setup()."),t!=null)){let s=typeof t;s==="object"&&(ce(t)?s="array":ut(t)&&(s="ref")),s!=="object"&&Y(`expose() should be passed a plain object, received ${s}.`)}n.exposed=t||{}};if({}.NODE_ENV!=="production"){let t;return Object.freeze({get attrs(){return t||(t=new Proxy(n.attrs,zl))},get slots(){return Ef(n)},get emit(){return(s,...i)=>n.emit(s,...i)},expose:e})}else return{attrs:new Proxy(n.attrs,zl),slots:n.slots,emit:n.emit,expose:e}}function Si(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(za(zh(n.exposed)),{get(e,t){if(t in e)return e[t];if(t in Gn)return Gn[t](n)},has(e,t){return t in e||t in Gn}}))}const Cf=/(?:^|[-_])(\w)/g,Sf=n=>n.replace(Cf,e=>e.toUpperCase()).replace(/[-_]/g,"");function jl(n,e=!0){return fe(n)?n.displayName||n.name:n.name||e&&n.__name}function ki(n,e,t=!1){let s=jl(e);if(!s&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&n&&n.parent){const i=o=>{for(const r in o)if(o[r]===e)return r};s=i(n.components||n.parent.type.components)||i(n.appContext.components)}return s?Sf(s):t?"App":"Anonymous"}function Bl(n){return fe(n)&&"__vccOpts"in n}const kf=(n,e)=>{const t=jh(n,e,Ci);if({}.NODE_ENV!=="production"){const s=Rl();s&&s.appContext.config.warnRecursiveComputed&&(t._warnRecursive=!0)}return t};function Ge(n,e,t){const s=arguments.length;return s===2?$e(e)&&!ce(e)?es(e)?se(n,null,[e]):se(n,e):se(n,null,e):(s>3?t=Array.prototype.slice.call(arguments,2):s===3&&es(t)&&(t=[t]),se(n,e,t))}function Tf(){if({}.NODE_ENV==="production"||typeof window>"u")return;const n={style:"color:#3ba776"},e={style:"color:#1677ff"},t={style:"color:#f5222d"},s={style:"color:#eb2f96"},i={header(h){return $e(h)?h.__isVue?["div",n,"VueInstance"]:ut(h)?["div",{},["span",n,u(h)],"<",a(h.value),">"]:Zn(h)?["div",{},["span",n,Rn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Mn(h)?" (readonly)":""}`]:Mn(h)?["div",{},["span",n,Rn(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...o(h.$)]}};function o(h){const d=[];h.type.props&&h.props&&d.push(r("props",be(h.props))),h.setupState!==Ae&&d.push(r("setup",h.setupState)),h.data!==Ae&&d.push(r("data",be(h.data)));const f=l(h,"computed");f&&d.push(r("computed",f));const m=l(h,"inject");return m&&d.push(r("injected",m)),d.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),d}function r(h,d){return d=He({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(f=>["div",{},["span",s,f+": "],a(d[f],!1)])]]:["span",{}]}function a(h,d=!0){return typeof h=="number"?["span",e,h]:typeof h=="string"?["span",t,JSON.stringify(h)]:typeof h=="boolean"?["span",s,h]:$e(h)?["object",{object:d?be(h):h}]:["span",t,String(h)]}function l(h,d){const f=h.type;if(fe(f))return;const m={};for(const g in h.ctx)c(f,g,d)&&(m[g]=h.ctx[g]);return m}function c(h,d,f){const m=h[f];if(ce(m)&&m.includes(d)||$e(m)&&d in m||h.extends&&c(h.extends,d,f)||h.mixins&&h.mixins.some(g=>c(g,d,f)))return!0}function u(h){return Rn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Hl="3.4.25",Ti={}.NODE_ENV!=="production"?Y:Qe;/**
22
22
  * @vue/runtime-dom v3.4.25
23
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
24
24
  * @license MIT
25
- **/const Sf="http://www.w3.org/2000/svg",kf="http://www.w3.org/1998/Math/MathML",_n=typeof document<"u"?document:null,Vl=_n&&_n.createElement("template"),Tf={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const i=e==="svg"?_n.createElementNS(Sf,t):e==="mathml"?_n.createElementNS(kf,t):_n.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:t=>_n.createTextNode(t),createComment:t=>_n.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>_n.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,i,o){const r=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Vl.innerHTML=s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t;const l=Vl.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Pf=Symbol("_vtc");function Nf(t,e,n){const s=t[Pf];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const bi=Symbol("_vod"),zl=Symbol("_vsh"),xi={beforeMount(t,{value:e},{transition:n}){t[bi]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Cs(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Cs(t,!0),s.enter(t)):s.leave(t,()=>{Cs(t,!1)}):Cs(t,e))},beforeUnmount(t,{value:e}){Cs(t,e)}};({}).NODE_ENV!=="production"&&(xi.name="show");function Cs(t,e){t.style.display=e?t[bi]:"none",t[zl]=!e}const Of=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),If=/(^|;)\s*display\s*:/;function $f(t,e,n){const s=t.style,i=Ye(n);let o=!1;if(n&&!i){if(e)if(Ye(e))for(const r of e.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&wi(s,l,"")}else for(const r in e)n[r]==null&&wi(s,r,"");for(const r in n)r==="display"&&(o=!0),wi(s,r,n[r])}else if(i){if(e!==n){const r=s[Of];r&&(n+=";"+r),s.cssText=n,o=If.test(n)}}else e&&t.removeAttribute("style");bi in t&&(t[bi]=o?s.display:"",t[zl]&&(s.display="none"))}const Df=/[^\\];\s*$/,Gl=/\s*!important$/;function wi(t,e,n){if(re(n))n.forEach(s=>wi(t,e,s));else if(n==null&&(n=""),{}.NODE_ENV!=="production"&&Df.test(n)&&_i(`Unexpected semicolon at the end of '${e}' style value: '${n}'`),e.startsWith("--"))t.setProperty(e,n);else{const s=Mf(t,e);Gl.test(n)?t.setProperty(Tt(s),n.replace(Gl,""),"important"):t[s]=n}}const jl=["Webkit","Moz","ms"],Zo={};function Mf(t,e){const n=Zo[e];if(n)return n;let s=Ut(e);if(s!=="filter"&&s in t)return Zo[e]=s;s=Bs(s);for(let i=0;i<jl.length;i++){const o=jl[i]+s;if(o in t)return Zo[e]=o}return e}const Bl="http://www.w3.org/1999/xlink";function Rf(t,e,n,s,i){if(s&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(Bl,e.slice(6,e.length)):t.setAttributeNS(Bl,e,n);else{const o=fh(e);n==null||o&&!la(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function Af(t,e,n,s,i,o,r){if(e==="innerHTML"||e==="textContent"){s&&r(s,i,o),t[e]=n??"";return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?t.getAttribute("value")||"":t.value,u=n??"";(c!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let a=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=la(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{t[e]=n}catch(c){({}).NODE_ENV!=="production"&&!a&&_i(`Failed setting prop "${e}" on <${l.toLowerCase()}>: value ${n} is invalid.`,c)}a&&t.removeAttribute(e)}function Lf(t,e,n,s){t.addEventListener(e,n,s)}function Ff(t,e,n,s){t.removeEventListener(e,n,s)}const Hl=Symbol("_vei");function Vf(t,e,n,s,i=null){const o=t[Hl]||(t[Hl]={}),r=o[e];if(s&&r)r.value={}.NODE_ENV!=="production"?Ul(s,e):s;else{const[l,a]=zf(e);if(s){const c=o[e]=Bf({}.NODE_ENV!=="production"?Ul(s,e):s,i);Lf(t,l,c,a)}else r&&(Ff(t,l,r,a),o[e]=void 0)}}const Wl=/(?:Once|Passive|Capture)$/;function zf(t){let e;if(Wl.test(t)){e={};let s;for(;s=t.match(Wl);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Tt(t.slice(2)),e]}let Qo=0;const Gf=Promise.resolve(),jf=()=>Qo||(Gf.then(()=>Qo=0),Qo=Date.now());function Bf(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Dt(Hf(s,n.value),e,5,[s])};return n.value=t,n.attached=jf(),n}function Ul(t,e){return de(t)||re(t)?t:(_i(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
26
- Expected function or array of functions, received type ${typeof t}.`),Je)}function Hf(t,e){if(re(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Yl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Wf=(t,e,n,s,i,o,r,l,a)=>{const c=i==="svg";e==="class"?Nf(t,s,c):e==="style"?$f(t,n,s):is(e)?zs(e)||Vf(t,e,n,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Uf(t,e,s,c))?Af(t,e,s,o,r,l,a):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),Rf(t,e,s,c))};function Uf(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&Yl(e)&&de(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Yl(e)&&Ye(n)?!1:e in t}/*! #__NO_SIDE_EFFECTS__ */function ue(t,e){const n=Z(t);class s extends Jo{constructor(o){super(n,o,e)}}return s.def=n,s}const Yf=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends Yf{constructor(e,n={},s){super(),this._def=e,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&_i("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),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,this._ob&&(this._ob.disconnect(),this._ob=null),ti(()=>{this._connected||(Ci(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const i of s)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(s,i=!1)=>{const{props:o,styles:r}=s;let l;if(o&&!re(o))for(const a in o){const c=o[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=ra(this._props[a])),(l||(l=Object.create(null)))[Ut(a)]=!0)}this._numberProps=l,i&&this._resolveProps(s),this._applyStyles(r),this._update()},n=this._def.__asyncLoader;n?n().then(s=>e(s,!0)):e(this._def)}_resolveProps(e){const{props:n}=e,s=re(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of s.map(Ut))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(e){let n=this.hasAttribute(e)?this.getAttribute(e):void 0;const s=Ut(e);this._numberProps&&this._numberProps[s]&&(n=ra(n)),this._setProp(s,n,!1)}_getProp(e){return this._props[e]}_setProp(e,n,s=!0,i=!0){n!==this._props[e]&&(this._props[e]=n,i&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(Tt(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Tt(e),n+""):n||this.removeAttribute(Tt(e))))}_update(){Ci(this._createVNode(),this.shadowRoot)}_createVNode(){const e=se(this._def,je({},this._props));return this._instance||(e.ce=n=>{this._instance=n,n.isCE=!0,{}.NODE_ENV!=="production"&&(n.ceReload=o=>{this._styles&&(this._styles.forEach(r=>this.shadowRoot.removeChild(r)),this._styles.length=0),this._applyStyles(o),this._instance=null,this._update()});const s=(o,r)=>{this.dispatchEvent(new CustomEvent(o,{detail:r}))};n.emit=(o,...r)=>{s(o,r),Tt(o)!==o&&s(Tt(o),r)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Jo){n.parent=i._instance,n.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(s)})}}const Xf=je({patchProp:Wf},Tf);let Xl;function qf(){return Xl||(Xl=of(Xf))}const Ci=(...t)=>{qf().render(...t)};/**
25
+ **/const Pf="http://www.w3.org/2000/svg",Of="http://www.w3.org/1998/Math/MathML",Cn=typeof document<"u"?document:null,Wl=Cn&&Cn.createElement("template"),Nf={insert:(n,e,t)=>{e.insertBefore(n,t||null)},remove:n=>{const e=n.parentNode;e&&e.removeChild(n)},createElement:(n,e,t,s)=>{const i=e==="svg"?Cn.createElementNS(Pf,n):e==="mathml"?Cn.createElementNS(Of,n):Cn.createElement(n,t?{is:t}:void 0);return n==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:n=>Cn.createTextNode(n),createComment:n=>Cn.createComment(n),setText:(n,e)=>{n.nodeValue=e},setElementText:(n,e)=>{n.textContent=e},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>Cn.querySelector(n),setScopeId(n,e){n.setAttribute(e,"")},insertStaticContent(n,e,t,s,i,o){const r=t?t.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===o||!(i=i.nextSibling)););else{Wl.innerHTML=s==="svg"?`<svg>${n}</svg>`:s==="mathml"?`<math>${n}</math>`:n;const a=Wl.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[r?r.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},If=Symbol("_vtc");function Df(n,e,t){const s=n[If];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?n.removeAttribute("class"):t?n.setAttribute("class",e):n.className=e}const Pi=Symbol("_vod"),Ul=Symbol("_vsh"),Oi={beforeMount(n,{value:e},{transition:t}){n[Pi]=n.style.display==="none"?"":n.style.display,t&&e?t.beforeEnter(n):Ps(n,e)},mounted(n,{value:e},{transition:t}){t&&e&&t.enter(n)},updated(n,{value:e,oldValue:t},{transition:s}){!e!=!t&&(s?e?(s.beforeEnter(n),Ps(n,!0),s.enter(n)):s.leave(n,()=>{Ps(n,!1)}):Ps(n,e))},beforeUnmount(n,{value:e}){Ps(n,e)}};({}).NODE_ENV!=="production"&&(Oi.name="show");function Ps(n,e){n.style.display=e?n[Pi]:"none",n[Ul]=!e}const $f=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Mf=/(^|;)\s*display\s*:/;function Rf(n,e,t){const s=n.style,i=qe(t);let o=!1;if(t&&!i){if(e)if(qe(e))for(const r of e.split(";")){const a=r.slice(0,r.indexOf(":")).trim();t[a]==null&&Ni(s,a,"")}else for(const r in e)t[r]==null&&Ni(s,r,"");for(const r in t)r==="display"&&(o=!0),Ni(s,r,t[r])}else if(i){if(e!==t){const r=s[$f];r&&(t+=";"+r),s.cssText=t,o=Mf.test(t)}}else e&&n.removeAttribute("style");Pi in n&&(n[Pi]=o?s.display:"",n[Ul]&&(s.display="none"))}const Af=/[^\\];\s*$/,Yl=/\s*!important$/;function Ni(n,e,t){if(ce(t))t.forEach(s=>Ni(n,e,s));else if(t==null&&(t=""),{}.NODE_ENV!=="production"&&Af.test(t)&&Ti(`Unexpected semicolon at the end of '${e}' style value: '${t}'`),e.startsWith("--"))n.setProperty(e,t);else{const s=Lf(n,e);Yl.test(t)?n.setProperty(Pt(s),t.replace(Yl,""),"important"):n[s]=t}}const Xl=["Webkit","Moz","ms"],sr={};function Lf(n,e){const t=sr[e];if(t)return t;let s=Xt(e);if(s!=="filter"&&s in n)return sr[e]=s;s=Zs(s);for(let i=0;i<Xl.length;i++){const o=Xl[i]+s;if(o in n)return sr[e]=o}return e}const ql="http://www.w3.org/1999/xlink";function Ff(n,e,t,s,i){if(s&&e.startsWith("xlink:"))t==null?n.removeAttributeNS(ql,e.slice(6,e.length)):n.setAttributeNS(ql,e,t);else{const o=gh(e);t==null||o&&!pa(t)?n.removeAttribute(e):n.setAttribute(e,o?"":t)}}function Vf(n,e,t,s,i,o,r){if(e==="innerHTML"||e==="textContent"){s&&r(s,i,o),n[e]=t??"";return}const a=n.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?n.getAttribute("value")||"":n.value,u=t??"";(c!==u||!("_value"in n))&&(n.value=u),t==null&&n.removeAttribute(e),n._value=t;return}let l=!1;if(t===""||t==null){const c=typeof n[e];c==="boolean"?t=pa(t):t==null&&c==="string"?(t="",l=!0):c==="number"&&(t=0,l=!0)}try{n[e]=t}catch(c){({}).NODE_ENV!=="production"&&!l&&Ti(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${t} is invalid.`,c)}l&&n.removeAttribute(e)}function zf(n,e,t,s){n.addEventListener(e,t,s)}function Gf(n,e,t,s){n.removeEventListener(e,t,s)}const Kl=Symbol("_vei");function jf(n,e,t,s,i=null){const o=n[Kl]||(n[Kl]={}),r=o[e];if(s&&r)r.value={}.NODE_ENV!=="production"?Ql(s,e):s;else{const[a,l]=Bf(e);if(s){const c=o[e]=Uf({}.NODE_ENV!=="production"?Ql(s,e):s,i);zf(n,a,c,l)}else r&&(Gf(n,a,r,l),o[e]=void 0)}}const Zl=/(?:Once|Passive|Capture)$/;function Bf(n){let e;if(Zl.test(n)){e={};let s;for(;s=n.match(Zl);)n=n.slice(0,n.length-s[0].length),e[s[0].toLowerCase()]=!0}return[n[2]===":"?n.slice(3):Pt(n.slice(2)),e]}let ir=0;const Hf=Promise.resolve(),Wf=()=>ir||(Hf.then(()=>ir=0),ir=Date.now());function Uf(n,e){const t=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=t.attached)return;Rt(Yf(s,t.value),e,5,[s])};return t.value=n,t.attached=Wf(),t}function Ql(n,e){return fe(n)||ce(n)?n:(Ti(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
26
+ Expected function or array of functions, received type ${typeof n}.`),Qe)}function Yf(n,e){if(ce(e)){const t=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{t.call(n),n._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Jl=n=>n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)>96&&n.charCodeAt(2)<123,Xf=(n,e,t,s,i,o,r,a,l)=>{const c=i==="svg";e==="class"?Df(n,s,c):e==="style"?Rf(n,t,s):cs(e)?Xs(e)||jf(n,e,t,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):qf(n,e,s,c))?Vf(n,e,s,o,r,a,l):(e==="true-value"?n._trueValue=s:e==="false-value"&&(n._falseValue=s),Ff(n,e,s,c))};function qf(n,e,t,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in n&&Jl(e)&&fe(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&n.tagName==="INPUT"||e==="type"&&n.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=n.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Jl(e)&&qe(t)?!1:e in n}/*! #__NO_SIDE_EFFECTS__ */function de(n,e){const t=K(n);class s extends or{constructor(o){super(t,o,e)}}return s.def=t,s}const Kf=typeof HTMLElement<"u"?HTMLElement:class{};class or extends Kf{constructor(e,t={},s){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&Ti("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),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,this._ob&&(this._ob.disconnect(),this._ob=null),ci(()=>{this._connected||(Ii(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const i of s)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(s,i=!1)=>{const{props:o,styles:r}=s;let a;if(o&&!ce(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=da(this._props[l])),(a||(a=Object.create(null)))[Xt(l)]=!0)}this._numberProps=a,i&&this._resolveProps(s),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then(s=>e(s,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,s=ce(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of s.map(Xt))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const s=Xt(e);this._numberProps&&this._numberProps[s]&&(t=da(t)),this._setProp(s,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,s=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),s&&(t===!0?this.setAttribute(Pt(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Pt(e),t+""):t||this.removeAttribute(Pt(e))))}_update(){Ii(this._createVNode(),this.shadowRoot)}_createVNode(){const e=se(this._def,He({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0,{}.NODE_ENV!=="production"&&(t.ceReload=o=>{this._styles&&(this._styles.forEach(r=>this.shadowRoot.removeChild(r)),this._styles.length=0),this._applyStyles(o),this._instance=null,this._update()});const s=(o,r)=>{this.dispatchEvent(new CustomEvent(o,{detail:r}))};t.emit=(o,...r)=>{s(o,r),Pt(o)!==o&&s(Pt(o),r)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof or){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const s=document.createElement("style");s.textContent=t,this.shadowRoot.appendChild(s),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(s)})}}const Zf=He({patchProp:Xf},Nf);let ec;function Qf(){return ec||(ec=lf(Zf))}const Ii=(...n)=>{Qf().render(...n)};/**
27
27
  * vue v3.4.25
28
28
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
29
29
  * @license MIT
30
- **/function Kf(){Ef()}({}).NODE_ENV!=="production"&&Kf();const ql=typeof window=="object"&&typeof document=="object";typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const er=t=>{let e=null;switch(t){case"any-character":e=/[^]/;break;case"bin":e=/^(0b)?[0-1]+$/;break;case"oct":e=/^(0o)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":e=/\s*,\s*/gi;break;case"svg-segment":e=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":e=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"whitespace":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"trim":e=/^\s+|\s+$/g;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":e=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":e=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"bezier":e=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
30
+ **/function Jf(){Tf()}({}).NODE_ENV!=="production"&&Jf(),typeof process<"u"&&process.versions!=null&&process.versions.node!=null;const rr=n=>{let e=null;switch(n){case"any-character":e=/[^]/;break;case"bin":e=/^(0b)?[0-1]+$/;break;case"oct":e=/^(0o)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":e=/\s*,\s*/gi;break;case"svg-segment":e=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":e=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"whitespace":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"trim":e=/^\s+|\s+$/g;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":e=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":e=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"bezier":e=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
31
31
  [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
32
32
  |[\u{4E00}-\u{9FCC}]
33
33
  |[\u{3400}-\u{4DB5}]
@@ -36,54 +36,55 @@ Expected function or array of functions, received type ${typeof t}.`),Je)}functi
36
36
  |[\u{2B740}-\u{2B81D}]
37
37
  |[\u{2B820}-\u{2CEAF}]
38
38
  |[\u{2CEB0}-\u{2EBEF}]
39
- `.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e},tn=(t,e)=>(typeof t=="string"&&(t=er(t)||new RegExp(t)),t.test(e)),Kl=(t,e)=>{typeof t=="string"&&(t=er(t)||new RegExp(t));const n=e.match(t);return n?t.flags.toLowerCase().indexOf("g")>=0?n.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof n.index=="number"?n.index:-1,fullMatch:n[0],groupMatchs:n.slice(1)}:null},Zl=(t,e)=>{typeof t=="string"&&(t=er(t)||new RegExp(t));const n=[],s=e.matchAll(t);for(const i of s)n.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return n};function Zf(t){const e=t.match(/[\s\S]/gu);return e?e.length:0}function Ql(t,e){const n=t.codePointAt(e);return n?String.fromCodePoint(n):void 0}function Qf(){let t=new Date().getTime();return"xxxxxxxx_xxxx_xxxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(n){const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n=="x"?s:s&3|8).toString(16)})}function Jf(t){return t.replace(/(^\w)/g,function(e){return e.toLowerCase()})}const ep=(t,e="-")=>(t=t.replace(/([A-Z])/g,e+"$1").toLowerCase(),t.indexOf(e)==0?t.slice(1):t);function tr(t){return t.replace(/(^\w|[_-]\w)/g,function(e){return e.slice(-1).toUpperCase()})}function Jl(t){return Jf(tr(t))}const ec=(t,e="")=>(t=t.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,e),t);function tc(t){const e=typeof t;return e!=="object"?e:Object.prototype.toString.call(t).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function tp(t){return tc(t)==="array"}function np(t){return tc(t)==="object"}function Qn(t,e){const n=e||{};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n}function Ei(t,e=new WeakMap){if(t==null)return t;if(t.constructor===Date)return new Date(t);if(t.constructor===RegExp)return new RegExp(t);if(typeof t!="object")return t;if(e.has(t))return e.get(t);const n=Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t));e.set(t,n);for(const s of Reflect.ownKeys(t))n[s]=np(t[s])?Ei(t[s],e):t[s];return n}function nc(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete t[n];return t}function zn(t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&delete t[e];return t}function Es(t,e){const n=t.length,s=e.length;for(let o=0;o<s;o++)t[o]=e[o];let i=Math.max(0,n-s);for(;i>0;)t.pop(),i--}function nr(t,e,n=Number.EPSILON*Math.pow(2,2)){return Math.abs(t-e)<n}const sr=(t,e,n)=>t<e?e:t>n?n:t;function sc(t,e=12){return t.toPrecision(e)}function Ss(t){const e=Kl("number-single",t);return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?t.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?t.substring(e.matchIndex+e.fullMatch.length):""}}function sp(t){const e=Kl("number",t);return e?Array.isArray(e)?e.map(n=>Number(n.fullMatch)):[Number(e.fullMatch)]:[]}function ic(t,e){let n=!0;return function(...s){n&&(n=!1,t.apply(this,s),setTimeout(()=>{n=!0},e))}}function ip(t,e){let n;return function(...s){clearTimeout(n),n=setTimeout(()=>{t.apply(this,s)},e)}}class oc{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async n=>{this.controller=n}})}get readableStream(){return this.rs}addTask(e){Array.isArray(e)?this.queue.push(...e):this.queue.push(e),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const e=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=e.length;const n=await Promise.allSettled(e.map(s=>s()));this.results.push(...n),n.forEach(s=>{s.status=="fulfilled"?this.controller?.enqueue(s.value):s.status=="rejected"&&this.controller?.enqueue(new Error(s.reason))}),this.activeTaskCount-=n.length}}}class rc{events;constructor(){this.events={}}on(e,n){return this.events[e]||(this.events[e]=[]),this.events[e].push(n),this}addListener(e,n){return this.on(e,n),this}prependListener(e,n){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(n),this}removeListener(e,n){if(this.events[e])return this.events[e]=this.events[e].filter(s=>s!==n),this}off(e,n){return this.removeListener(e,n),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...n){return this.events[e]&&this.events[e].forEach(s=>{Reflect.apply(s,this,n)}),this}once(e,n){const i=(()=>{let o=!1;return(...r)=>{o||(o=!0,Reflect.apply(n,this,r),this.off(e,i))}})();return this.on(e,i),this}}var ac=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function op(t,e={}){var n=1,s=1;function i(W){var j=W.match(/\n/g);j&&(n+=j.length);var fe=W.lastIndexOf(`
40
- `);s=~fe?W.length-fe:s+W.length}function o(){var W={line:n,column:s};return function(j){return j.position=new r(W),m(),j}}function r(W){this.start=W,this.end={line:n,column:s},this.source=e.source}r.prototype.content=t;var l=[];function a(W){var j=new Error(e.source+":"+n+":"+s+": "+W);if(j.reason=W,j.filename=e.source,j.line=n,j.column=s,j.source=t,e.silent)l.push(j);else throw j}function c(){var W=d();return{type:"stylesheet",stylesheet:{source:e.source,rules:W,parsingErrors:l}}}function u(){return f(/^{\s*/)}function h(){return f(/^}/)}function d(){var W,j=[];for(m(),v(j);t.length&&t.charAt(0)!="}"&&(W=ce()||M());)W!==!1&&(j.push(W),v(j));return j}function f(W){var j=W.exec(t);if(j){var fe=j[0];return i(fe),t=t.slice(fe.length),j}}function m(){f(/^\s*/)}function v(W){var j;for(W=W||[];j=y();)j!==!1&&W.push(j);return W}function y(){var W=o();if(!(t.charAt(0)!="/"||t.charAt(1)!="*")){for(var j=2;t.charAt(j)!=""&&(t.charAt(j)!="*"||t.charAt(j+1)!="/");)++j;if(j+=2,t.charAt(j-1)==="")return a("End of comment missing");var fe=t.slice(2,j-2);return s+=2,i(fe),t=t.slice(j),s+=2,W({type:"comment",comment:fe})}}function w(){var W=f(/^([^{]+)/);if(W)return nn(W[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(j){return j.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(j){return j.replace(/\u200C/g,",")})}function E(){var W=o(),j=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(j){if(j=nn(j[0]),!f(/^:\s*/))return a("property missing ':'");var fe=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),te=W({type:"declaration",property:j.replace(ac,""),value:fe?nn(fe[0]).replace(ac,""):""});return f(/^[;\s]*/),te}}function C(){var W=[];if(!u())return a("missing '{'");v(W);for(var j;j=E();)j!==!1&&(W.push(j),v(W));return h()?W:a("missing '}'")}function S(){for(var W,j=[],fe=o();W=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)j.push(W[1]),f(/^,\s*/);if(j.length)return fe({type:"keyframe",values:j,declarations:C()})}function D(){var W=o(),j=f(/^@([-\w]+)?keyframes\s*/);if(j){var fe=j[1];if(j=f(/^([-\w]+)\s*/),!j)return a("@keyframes missing name");var te=j[1];if(!u())return a("@keyframes missing '{'");for(var Se,Ze=v();Se=S();)Ze.push(Se),Ze=Ze.concat(v());return h()?W({type:"keyframes",name:te,vendor:fe,keyframes:Ze}):a("@keyframes missing '}'")}}function N(){var W=o(),j=f(/^@supports *([^{]+)/);if(j){var fe=nn(j[1]);if(!u())return a("@supports missing '{'");var te=v().concat(d());return h()?W({type:"supports",supports:fe,rules:te}):a("@supports missing '}'")}}function R(){var W=o(),j=f(/^@host\s*/);if(j){if(!u())return a("@host missing '{'");var fe=v().concat(d());return h()?W({type:"host",rules:fe}):a("@host missing '}'")}}function ae(){var W=o(),j=f(/^@media *([^{]+)/);if(j){var fe=nn(j[1]);if(!u())return a("@media missing '{'");var te=v().concat(d());return h()?W({type:"media",media:fe,rules:te}):a("@media missing '}'")}}function le(){var W=o(),j=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(j)return W({type:"custom-media",name:nn(j[1]),media:nn(j[2])})}function he(){var W=o(),j=f(/^@page */);if(j){var fe=w()||[];if(!u())return a("@page missing '{'");for(var te=v(),Se;Se=E();)te.push(Se),te=te.concat(v());return h()?W({type:"page",selectors:fe,declarations:te}):a("@page missing '}'")}}function Ne(){var W=o(),j=f(/^@([-\w]+)?document *([^{]+)/);if(j){var fe=nn(j[1]),te=nn(j[2]);if(!u())return a("@document missing '{'");var Se=v().concat(d());return h()?W({type:"document",document:te,vendor:fe,rules:Se}):a("@document missing '}'")}}function ke(){var W=o(),j=f(/^@font-face\s*/);if(j){if(!u())return a("@font-face missing '{'");for(var fe=v(),te;te=E();)fe.push(te),fe=fe.concat(v());return h()?W({type:"font-face",declarations:fe}):a("@font-face missing '}'")}}var qe=Ce("import"),Ke=Ce("charset"),ze=Ce("namespace");function Ce(W){var j=new RegExp("^@"+W+"\\s*([^;]+);");return function(){var fe=o(),te=f(j);if(te){var Se={type:W};return Se[W]=te[1].trim(),fe(Se)}}}function ce(){if(t[0]=="@")return D()||ae()||le()||N()||qe()||Ke()||ze()||Ne()||he()||R()||ke()}function M(){var W=o(),j=w();return j?(v(),W({type:"rule",selectors:j,declarations:C()})):a("selector missing")}return ir(c())}function nn(t){return t?t.replace(/^\s+|\s+$/g,""):""}function ir(t,e){var n=t&&typeof t.type=="string",s=n?t:e;for(var i in t){var o=t[i];Array.isArray(o)?o.forEach(function(r){ir(r,s)}):o&&typeof o=="object"&&ir(o,s)}return n&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),t}const ks=/^[a-z0-9]+(-[a-z0-9]+)*$/,Si=(t,e,n,s="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),a=i.pop(),c={provider:i.length>0?i[0]:s,prefix:a,name:l};return e&&!ki(c)?null:c}const o=i[0],r=o.split("-");if(r.length>1){const l={provider:s,prefix:r.shift(),name:r.join("-")};return e&&!ki(l)?null:l}if(n&&s===""){const l={provider:s,prefix:"",name:o};return e&&!ki(l,n)?null:l}return null},ki=(t,e)=>t?!!((t.provider===""||t.provider.match(ks))&&(e&&t.prefix===""||t.prefix.match(ks))&&t.name.match(ks)):!1,lc=Object.freeze({left:0,top:0,width:16,height:16}),Ti=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Pi=Object.freeze({...lc,...Ti}),or=Object.freeze({...Pi,body:"",hidden:!1});function rp(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function cc(t,e){const n=rp(t,e);for(const s in or)s in Ti?s in t&&!(s in n)&&(n[s]=Ti[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function ap(t,e){const n=t.icons,s=t.aliases||Object.create(null),i=Object.create(null);function o(r){if(n[r])return i[r]=[];if(!(r in i)){i[r]=null;const l=s[r]&&s[r].parent,a=l&&o(l);a&&(i[r]=[l].concat(a))}return i[r]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(o),i}function lp(t,e,n){const s=t.icons,i=t.aliases||Object.create(null);let o={};function r(l){o=cc(s[l]||i[l],o)}return r(e),n.forEach(r),cc(t,o)}function uc(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(i=>{e(i,null),n.push(i)});const s=ap(t);for(const i in s){const o=s[i];o&&(e(i,lp(t,i,o)),n.push(i))}return n}const cp={provider:"",aliases:{},not_found:{},...lc};function rr(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function hc(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!rr(t,cp))return null;const n=e.icons;for(const i in n){const o=n[i];if(!i.match(ks)||typeof o.body!="string"||!rr(o,or))return null}const s=e.aliases||Object.create(null);for(const i in s){const o=s[i],r=o.parent;if(!i.match(ks)||typeof r!="string"||!n[r]&&!s[r]||!rr(o,or))return null}return e}const dc=Object.create(null);function up(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function Gn(t,e){const n=dc[t]||(dc[t]=Object.create(null));return n[e]||(n[e]=up(t,e))}function ar(t,e){return hc(e)?uc(e,(n,s)=>{s?t.icons[n]=s:t.missing.add(n)}):[]}function hp(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let Ts=!1;function fc(t){return typeof t=="boolean"&&(Ts=t),Ts}function dp(t){const e=typeof t=="string"?Si(t,!0,Ts):t;if(e){const n=Gn(e.provider,e.prefix),s=e.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function fp(t,e){const n=Si(t,!0,Ts);if(!n)return!1;const s=Gn(n.provider,n.prefix);return hp(s,n.name,e)}function pp(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Ts&&!e&&!t.prefix){let i=!1;return hc(t)&&(t.prefix="",uc(t,(o,r)=>{r&&fp(o,r)&&(i=!0)})),i}const n=t.prefix;if(!ki({provider:e,prefix:n,name:"a"}))return!1;const s=Gn(e,n);return!!ar(s,t)}const pc=Object.freeze({width:null,height:null}),mc=Object.freeze({...pc,...Ti}),mp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,gp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gc(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(mp);if(s===null||!s.length)return t;const i=[];let o=s.shift(),r=gp.test(o);for(;;){if(r){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*e*n)/n)}else i.push(o);if(o=s.shift(),o===void 0)return i.join("");r=!r}}function vp(t,e="defs"){let n="";const s=t.indexOf("<"+e);for(;s>=0;){const i=t.indexOf(">",s),o=t.indexOf("</"+e);if(i===-1||o===-1)break;const r=t.indexOf(">",o);if(r===-1)break;n+=t.slice(i+1,o).trim(),t=t.slice(0,s).trim()+t.slice(r+1)}return{defs:n,content:t}}function yp(t,e){return t?"<defs>"+t+"</defs>"+e:e}function _p(t,e,n){const s=vp(t);return yp(s.defs,e+s.content+n)}const bp=t=>t==="unset"||t==="undefined"||t==="none";function xp(t,e){const n={...Pi,...t},s={...mc,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(v=>{const y=[],w=v.hFlip,E=v.vFlip;let C=v.rotate;w?E?C+=2:(y.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),y.push("scale(-1 1)"),i.top=i.left=0):E&&(y.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),y.push("scale(1 -1)"),i.top=i.left=0);let S;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:S=i.height/2+i.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}C%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),y.length&&(o=_p(o,'<g transform="'+y.join(" ")+'">',"</g>"))});const r=s.width,l=s.height,a=i.width,c=i.height;let u,h;r===null?(h=l===null?"1em":l==="auto"?c:l,u=gc(h,a/c)):(u=r==="auto"?a:r,h=l===null?gc(u,c/a):l==="auto"?c:l);const d={},f=(v,y)=>{bp(y)||(d[v]=y.toString())};f("width",u),f("height",h);const m=[i.left,i.top,a,c];return d.viewBox=m.join(" "),{attributes:d,viewBox:m,body:o}}const wp=/\sid="(\S+)"/g,Cp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ep=0;function Sp(t,e=Cp){const n=[];let s;for(;s=wp.exec(t);)n.push(s[1]);if(!n.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const r=typeof e=="function"?e(o):e+(Ep++).toString(),l=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}const lr=Object.create(null);function kp(t,e){lr[t]=e}function cr(t){return lr[t]||lr[""]}function ur(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const hr=Object.create(null),Ps=["https://api.simplesvg.com","https://api.unisvg.com"],Ni=[];for(;Ps.length>0;)Ps.length===1||Math.random()>.5?Ni.push(Ps.shift()):Ni.push(Ps.pop());hr[""]=ur({resources:["https://api.iconify.design"].concat(Ni)});function Tp(t,e){const n=ur(e);return n===null?!1:(hr[t]=n,!0)}function dr(t){return hr[t]}let vc=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Pp(t,e){const n=dr(t);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let i=0;n.resources.forEach(r=>{i=Math.max(i,r.length)});const o=e+".json?icons=";s=n.maxURL-i-n.path.length-o.length}return s}function Np(t){return t===404}const Op=(t,e,n)=>{const s=[],i=Pp(t,e),o="icons";let r={type:o,provider:t,prefix:e,icons:[]},l=0;return n.forEach((a,c)=>{l+=a.length+1,l>=i&&c>0&&(s.push(r),r={type:o,provider:t,prefix:e,icons:[]},l=a.length),r.icons.push(a)}),s.push(r),s};function Ip(t){if(typeof t=="string"){const e=dr(t);if(e)return e.path}return"/"}const $p={prepare:Op,send:(t,e,n)=>{if(!vc){n("abort",424);return}let s=Ip(e.provider);switch(e.type){case"icons":{const o=e.prefix,l=e.icons.join(","),a=new URLSearchParams({icons:l});s+=o+".json?"+a.toString();break}case"custom":{const o=e.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let i=503;vc(t+s).then(o=>{const r=o.status;if(r!==200){setTimeout(()=>{n(Np(r)?"abort":"next",r)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",i)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",i)})}};function Dp(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return t.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const o=i.provider,r=i.prefix,l=i.name,a=n[o]||(n[o]=Object.create(null)),c=a[r]||(a[r]=Gn(o,r));let u;l in c.icons?u=e.loaded:r===""||c.missing.has(l)?u=e.missing:u=e.pending;const h={provider:o,prefix:r,name:l};u.push(h)}),e}function yc(t,e){t.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(i=>i.id!==e))})}function Mp(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const s=t.provider,i=t.prefix;e.forEach(o=>{const r=o.icons,l=r.pending.length;r.pending=r.pending.filter(a=>{if(a.prefix!==i)return!0;const c=a.name;if(t.icons[c])r.loaded.push({provider:s,prefix:i,name:c});else if(t.missing.has(c))r.missing.push({provider:s,prefix:i,name:c});else return n=!0,!0;return!1}),r.pending.length!==l&&(n||yc([t],o.id),o.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),o.abort))})}))}let Rp=0;function Ap(t,e,n){const s=Rp++,i=yc.bind(null,n,s);if(!e.pending.length)return i;const o={id:s,icons:e,callback:t,abort:i};return n.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(o)}),i}function Lp(t,e=!0,n=!1){const s=[];return t.forEach(i=>{const o=typeof i=="string"?Si(i,e,n):i;o&&s.push(o)}),s}var Fp={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Vp(t,e,n,s){const i=t.resources.length,o=t.random?Math.floor(Math.random()*i):t.index;let r;if(t.random){let N=t.resources.slice(0);for(r=[];N.length>1;){const R=Math.floor(Math.random()*N.length);r.push(N[R]),N=N.slice(0,R).concat(N.slice(R+1))}r=r.concat(N)}else r=t.resources.slice(o).concat(t.resources.slice(0,o));const l=Date.now();let a="pending",c=0,u,h=null,d=[],f=[];typeof s=="function"&&f.push(s);function m(){h&&(clearTimeout(h),h=null)}function v(){a==="pending"&&(a="aborted"),m(),d.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),d=[]}function y(N,R){R&&(f=[]),typeof N=="function"&&f.push(N)}function w(){return{startTime:l,payload:e,status:a,queriesSent:c,queriesPending:d.length,subscribe:y,abort:v}}function E(){a="failed",f.forEach(N=>{N(void 0,u)})}function C(){d.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),d=[]}function S(N,R,ae){const le=R!=="success";switch(d=d.filter(he=>he!==N),a){case"pending":break;case"failed":if(le||!t.dataAfterTimeout)return;break;default:return}if(R==="abort"){u=ae,E();return}if(le){u=ae,d.length||(r.length?D():E());return}if(m(),C(),!t.random){const he=t.resources.indexOf(N.resource);he!==-1&&he!==t.index&&(t.index=he)}a="completed",f.forEach(he=>{he(ae)})}function D(){if(a!=="pending")return;m();const N=r.shift();if(N===void 0){if(d.length){h=setTimeout(()=>{m(),a==="pending"&&(C(),E())},t.timeout);return}E();return}const R={status:"pending",resource:N,callback:(ae,le)=>{S(R,ae,le)}};d.push(R),c++,h=setTimeout(D,t.rotate),n(N,e,R.callback)}return setTimeout(D),w}function _c(t){const e={...Fp,...t};let n=[];function s(){n=n.filter(l=>l().status==="pending")}function i(l,a,c){const u=Vp(e,l,a,(h,d)=>{s(),c&&c(h,d)});return n.push(u),u}function o(l){return n.find(a=>l(a))||null}return{query:i,find:o,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:s}}function bc(){}const fr=Object.create(null);function zp(t){if(!fr[t]){const e=dr(t);if(!e)return;const n=_c(e),s={config:e,redundancy:n};fr[t]=s}return fr[t]}function Gp(t,e,n){let s,i;if(typeof t=="string"){const o=cr(t);if(!o)return n(void 0,424),bc;i=o.send;const r=zp(t);r&&(s=r.redundancy)}else{const o=ur(t);if(o){s=_c(o);const r=t.resources?t.resources[0]:"",l=cr(r);l&&(i=l.send)}}return!s||!i?(n(void 0,424),bc):s.query(e,i,n)().abort}const xc="iconify2",Ns="iconify",wc=Ns+"-count",Cc=Ns+"-version",Ec=36e5,jp=168,Bp=50;function pr(t,e){try{return t.getItem(e)}catch{}}function mr(t,e,n){try{return t.setItem(e,n),!0}catch{}}function Sc(t,e){try{t.removeItem(e)}catch{}}function gr(t,e){return mr(t,wc,e.toString())}function vr(t){return parseInt(pr(t,wc))||0}const Oi={local:!0,session:!0},kc={local:new Set,session:new Set};let yr=!1;function Hp(t){yr=t}let Ii=typeof window>"u"?{}:window;function Tc(t){const e=t+"Storage";try{if(Ii&&Ii[e]&&typeof Ii[e].length=="number")return Ii[e]}catch{}Oi[t]=!1}function Pc(t,e){const n=Tc(t);if(!n)return;const s=pr(n,Cc);if(s!==xc){if(s){const l=vr(n);for(let a=0;a<l;a++)Sc(n,Ns+a.toString())}mr(n,Cc,xc),gr(n,0);return}const i=Math.floor(Date.now()/Ec)-jp,o=l=>{const a=Ns+l.toString(),c=pr(n,a);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,l))return!0}catch{}Sc(n,a)}};let r=vr(n);for(let l=r-1;l>=0;l--)o(l)||(l===r-1?(r--,gr(n,r)):kc[t].add(l))}function Nc(){if(!yr){Hp(!0);for(const t in Oi)Pc(t,e=>{const n=e.data,s=e.provider,i=n.prefix,o=Gn(s,i);if(!ar(o,n).length)return!1;const r=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,r):r,!0})}}function Wp(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const s in Oi)Pc(s,i=>{const o=i.data;return i.provider!==t.provider||o.prefix!==t.prefix||o.lastModified===e});return!0}function Up(t,e){yr||Nc();function n(s){let i;if(!Oi[s]||!(i=Tc(s)))return;const o=kc[s];let r;if(o.size)o.delete(r=Array.from(o).shift());else if(r=vr(i),r>=Bp||!gr(i,r+1))return;const l={cached:Math.floor(Date.now()/Ec),provider:t.provider,data:e};return mr(i,Ns+r.toString(),JSON.stringify(l))}e.lastModified&&!Wp(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function Oc(){}function Yp(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Mp(t)}))}function Xp(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:s}=t,i=t.iconsToLoad;delete t.iconsToLoad;let o;if(!i||!(o=cr(n)))return;o.prepare(n,s,i).forEach(l=>{Gp(n,l,a=>{if(typeof a!="object")l.icons.forEach(c=>{t.missing.add(c)});else try{const c=ar(t,a);if(!c.length)return;const u=t.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),Up(t,a)}catch(c){console.error(c)}Yp(t)})})}))}const qp=(t,e)=>{const n=Lp(t,!0,fc()),s=Dp(n);if(!s.pending.length){let a=!0;return e&&setTimeout(()=>{a&&e(s.loaded,s.missing,s.pending,Oc)}),()=>{a=!1}}const i=Object.create(null),o=[];let r,l;return s.pending.forEach(a=>{const{provider:c,prefix:u}=a;if(u===l&&c===r)return;r=c,l=u,o.push(Gn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),s.pending.forEach(a=>{const{provider:c,prefix:u,name:h}=a,d=Gn(c,u),f=d.pendingIcons||(d.pendingIcons=new Set);f.has(h)||(f.add(h),i[c][u].push(h))}),o.forEach(a=>{const{provider:c,prefix:u}=a;i[c][u].length&&Xp(a,i[c][u])}),e?Ap(e,s,o):Oc};function Kp(t,e){const n={...t};for(const s in e){const i=e[s],o=typeof i;s in pc?(i===null||i&&(o==="string"||o==="number"))&&(n[s]=i):o===typeof n[s]&&(n[s]=s==="rotate"?i%4:i)}return n}const Zp=/[\s,]+/;function Qp(t,e){e.split(Zp).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Jp(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(t);return isNaN(i)?0:s(i)}else if(n!==t){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(t.slice(0,t.length-n.length));return isNaN(o)?0:(o=o/i,o%1===0?s(o):0)}}return e}function em(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)n+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function tm(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function nm(t){return"data:image/svg+xml,"+tm(t)}function sm(t){return'url("'+nm(t)+'")'}const Ic={...mc,inline:!1},im={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},om={display:"inline-block"},_r={backgroundColor:"currentColor"},$c={backgroundColor:"transparent"},Dc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Mc={webkitMask:_r,mask:_r,background:$c};for(const t in Mc){const e=Mc[t];for(const n in Dc)e[t+n]=Dc[n]}const $i={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";$i[t+"-flip"]=e,$i[t.slice(0,1)+"-flip"]=e,$i[t+"Flip"]=e});function Rc(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Ac=(t,e)=>{const n=Kp(Ic,e),s={...im},i=e.mode||"svg",o={},r=e.style,l=typeof r=="object"&&!(r instanceof Array)?r:{};for(let v in e){const y=e[v];if(y!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[v]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Qp(n,y);break;case"color":o.color=y;break;case"rotate":typeof y=="string"?n[v]=Jp(y):typeof y=="number"&&(n[v]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete s["aria-hidden"];break;default:{const w=$i[v];w?(y===!0||y==="true"||y===1)&&(n[w]=!0):Ic[v]===void 0&&(s[v]=y)}}}const a=xp(t,n),c=a.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),i==="svg"){s.style={...o,...l},Object.assign(s,c);let v=0,y=e.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),s.innerHTML=Sp(a.body,y?()=>y+"ID"+v++:"iconifyVue"),Fe("svg",s)}const{body:u,width:h,height:d}=t,f=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=em(u,{...c,width:h+"",height:d+""});return s.style={...o,"--svg":sm(m),width:Rc(c.width),height:Rc(c.height),...om,...f?_r:$c,...l},Fe("span",s)};if(fc(!0),kp("",$p),typeof document<"u"&&typeof window<"u"){Nc();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!pp(s))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const s="IconifyProviders["+n+"] is invalid.";try{const i=e[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Tp(n,i)||console.error(s)}catch{console.error(s)}}}}const rm={...Pi,body:""},Lc=Z({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=Si(t,!1,!0))===null)return this.abortLoading(),null;const s=dp(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:t,abort:qp([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const i=["iconify"];return n.prefix!==""&&i.push("iconify--"+n.prefix),n.provider!==""&&i.push("iconify--"+n.provider),{data:s,classes:i}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!e)return Ac(rm,t);let n=t;return e.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),Ac({...Pi,...e.data},n)}}),Fc=(t,e="image/svg+xml",n="utf-8")=>new Blob([t],{type:`${e};charset=${n}`}),am=t=>new XMLSerializer().serializeToString(t),lm=(t,e="image/svg+xml",n="utf-8")=>Fc(am(t),e,n),Vc=(t,e)=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=e,typeof t=="string"?n.href=t:n.href=window.URL.createObjectURL(t),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href)};function cm(t=["*"],e){return new Promise((n,s)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return s(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(t)&&t.length>0&&i.setAttribute("accept",t.join(",")),e&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const o=()=>{if(i.removeEventListener("change",o),!i.files||i.files?.length===0)s(new Error("Cancel select"));else{const r=Array.from(i.files);!t.includes("*")&&r.some(l=>!t.includes(`.${hm(l)}`))&&s(new Error(`Please select files in ${t} format`)),i.remove(),n(r)}};i.addEventListener("change",o),i.click()})}function um(t,e="text",n){return new Promise((s,i)=>{const o=new FileReader;switch(o.addEventListener("progress",r=>{n?.(r.loaded,r.total)}),o.addEventListener("load",r=>{s(r.target?.result)}),o.addEventListener("error",r=>{i(r)}),e){case"dataURL":o.readAsDataURL(t);break;case"binaryString":o.readAsBinaryString(t);break;case"arrayBuffer":o.readAsArrayBuffer(t);break;default:o.readAsText(t)}})}const hm=t=>{let e;return t instanceof File?e=t.name:e=t,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function Di(){const t=document.documentElement;return{clientWidth:t.clientWidth,clientHeight:t.clientHeight,clientTop:t.clientTop,clientLeft:t.clientLeft,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,offsetParent:t.offsetParent,clientX:t.getBoundingClientRect().x,clientY:t.getBoundingClientRect().y}}function br(){const{clientWidth:t,clientHeight:e}=Di();return{width:t||window.innerWidth,height:e||window.innerHeight}}function dm(t){const{top:e,left:n}=t.getBoundingClientRect(),{scrollLeft:s,scrollTop:i}=Di();return{x:n+s,y:e+i}}function fm(){const{clientHeight:t,scrollTop:e,scrollHeight:n}=Di(),s=n-t;return s<=0?0:e/s*100}function pm(t){if("center"in t)return t.center;if(t.pageX&&t.pageY)return{x:t.pageX,y:t.pageY};const{scrollLeft:e,scrollTop:n}=Di();return{x:t.clientX+e,y:t.clientY+n}}function mm(t,e){const n=pm(e),s=dm(t);return{x:n.x-s.x,y:n.y-s.y}}function zc(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const gm=()=>{const t=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(t)?e="macOS":/win/i.test(t)?e="Windows":/android/i.test(t)?e="Android":/iphone|ipad|ipod/i.test(t)?e="iOS":/linux/i.test(t)?e="Linux":/bsd/i.test(t)&&(e="BSD"),e.toLowerCase()};function vm(){return gm()==="macos"}function ym(){const t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){const i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}const s=t.indexOf("Edge/");return s>0?parseInt(t.substring(s+5,t.indexOf(".",s)),10):-1}const xr=ym()!==-1;(()=>{const t=zc();return!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL)})(),function(){if(!zc().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var s=e.transferToImageBitmap();try{n.createPattern(s,"no-repeat")}catch{return!1}return!0}();function _m(t){const e=document.documentElement,n=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=n;let s=100;const i=function(){const o=Math.min(e.clientWidth,t);e.dataset.width=o,e.dataset.rem=s=Math.round(100*(o/t)),e.style.fontSize=s+"px"};i(),window.rem2px=function(o){return o=parseFloat(o),o*s},window.px2rem=function(o){return o=parseFloat(o),o/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class ee{static onDocumentReady(e){let n=!1;function s(){document.readyState==="loading"||n||(n=!0,e(),document.removeEventListener("DOMContentLoaded",s))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}static onBeforeUnload(e){function n(){e(),document.removeEventListener("beforeunload",n)}typeof document<"u"&&document.addEventListener("beforeunload",n)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,n){document.documentElement.style.setProperty(e,n)}static getStyle(e,n,s){const i=e;if(getComputedStyle)if(n){n=ep(n);const o=getComputedStyle(i,s).getPropertyPriority(n);return getComputedStyle(i,s).getPropertyValue(n).trim()+(o?"!"+o:"")}else{const o=[],r=getComputedStyle(i,"");for(let l=0;l<r.length;l++)o.push(r[l]+":"+r.getPropertyValue(r[l]));return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(l=>!!l).map(l=>l.split(":").map(a=>a.trim()))||[])}else if(e.currentStyle){if(n)return n=Jl(n),e.currentStyle[n];{const o=[],r=i.currentStyle;for(let l in r)o.push(l+":"+r[l]);return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(l=>!!l).map(l=>l.split(":").map(a=>a.trim()))||[])}}}static setStyle(e,n,s){if(typeof n=="string"&&s){const i=String(s).toLowerCase().includes("!important")?"important":"";e.style.setProperty(n,s.replace(/!important/i,""),i)}else n instanceof Object&&Object.keys(n).forEach(i=>{const o=String(n[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(i,String(n[i]).replace(/!important/i,""),o)})}static setStyleSheet(e,n){let s;if(typeof n=="string"){const o=document.querySelector(n)?.shadowRoot;o?s=o:s=document.querySelector(n)}else s=n;const i=document.createElement("style");if(i.innerHTML=e,s)return s.appendChild(i),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(i)};{const o=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(o)}}}static toggleClass(e,n,s="toggle"){n.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[s](i.trim())})}static addClass(e,n){this.toggleClass(e,n,"add")}static removeClass(e,n){this.toggleClass(e,n,"remove")}static hasClass(e,n){return n.split(/[,\s]+/).every(s=>s.trim()!==""?Array.from(e.classList||[]).includes(s.trim()):!0)}static toggleDisplay(e,n){this.getStyle(e,"display")=="none"&&n===void 0||n===!0?e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block"):e.style.setProperty("display","none")}static show(e){this.toggleDisplay(e,!0)}static hide(e){this.toggleDisplay(e,!1)}static attribute(e,n,s){if(s===void 0&&typeof n=="string")return e.getAttribute(n);let i={};typeof n=="object"?i=n:s!==void 0&&(i[n]=s),Object.entries(i).forEach(([o,r])=>{e.setAttribute(o,r)})}static removeAttribute(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&e.removeAttribute(s.trim())})}static fixProp(e){const n={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return n[e]?n[e]:e}static prop(e,n,s){if(s===void 0&&typeof n=="string")return e[n];{let i={};typeof n=="object"?i=n:typeof n=="string"&&s!==void 0&&(i[n]=s),Object.entries(i).forEach(([o,r])=>{const l=this.fixProp(o);e[l]=r,l=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e[this.fixProp(s.trim())]})}static data(e,n,s){if(typeof n=="string"&&(n=Jl(n)),(typeof n=="string"||n===void 0)&&s===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(o=>{if(i[o]?.startsWith("[")||i[o]?.startsWith("{"))try{i[o]=JSON.parse(i[o]??"")}catch{}}),typeof n=="string"?i[n]:i}else{let i={};typeof n=="object"?i=n:typeof n=="string"&&(i[n]=s),Object.entries(i).forEach(([o,r])=>{r!=null?e.dataset[o]=r instanceof Object?JSON.stringify(r):r:delete e.dataset[o]})}}static removeData(e,n){n.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e.dataset[s.trim()]})}static empty(e){this.html(e,"")}static html(e,n){n instanceof HTMLElement?this.insert(e,n,"replaceWith"):this.prop(e,"innerHTML",n)}static text(e,n){return this.prop(e,"textContent",n)}static value(e,n){return this.prop(e,"value",n)}static dispatchEvent(e,n,s){let i;const o=["click","dblclick","mousedown","mouseup","mousemove"],r=["keydown","keyup","keypress"];typeof n=="string"?o.includes(n)?i=new MouseEvent(n,s):r.includes(n)?i=new KeyboardEvent(n,s):i=new Event(n,s):i=n,e.dispatchEvent(i)}static scriptConvert(e){const n=s=>{const o=s.ownerDocument.createElement("script");o.text=s.text;const r=s.attributes;for(let l=0;l<r.length;l++)o.setAttribute(r[l].name,r[l].value);return o};return e.tagName=="SCRIPT"&&(e=n(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(n(s),s)}),e}static fragment(e){const n=document.createElement("template");return n.innerHTML=e,n.content.childNodes.forEach(s=>{const i=this.scriptConvert(s);i!=s&&n.content.replaceChild(i,s)}),n.content}static insert(e,n,s="replaceWith"){return typeof n=="string"?e[s](this.fragment(n)):n instanceof HTMLElement&&e[s](n),this}static createElement(e){return document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static remove(e){return e.remove()}static siblings=e=>Array.prototype.slice.call(e.parentElement?.children).filter(n=>n!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,n){return e.closest(n)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,n){if(e instanceof HTMLSelectElement){const s=e.options;for(let i=0,o=s.length;i<o;i++)s[i].value==n?s[i].selected=!0:s[i].selected=!1}}static changeRadioChecked(e,n){e instanceof HTMLInputElement&&(e.value==n?e.checked=!0:e.checked=!1)}static entity2text(e){const n={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let s;return e.charAt(0)=="#"?e.charAt(1).toLowerCase()=="x"?s=parseInt(e.substring(2),16):s=parseInt(e.substring(1),10):s=n[e],s?String.fromCharCode(s):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const n=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length??0;const i=()=>s>=n.length?(e(),!0):!1;i()||n.forEach(o=>{o.onload=()=>{s+=1,i()}})});static loadScript(e,n=()=>{},s=(i,o,r,l,a)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=n,i.onerror=s,document.body.appendChild(i)}static runInSafe(e){const n=new Proxy(window,{get(s,i,o){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?n:Reflect.get(s,i,o)},set(s,i,o,r){return Reflect.set(s,i,o,r)}});new Function("window",`with(window) { ${e} }`)(n,null)}static dom=new Proxy({},{get(e,n){return function(s={},...i){const o=document.createElement(n);for(const r of Object.keys(s))o.setAttribute(r,s[r]);for(const r of i)typeof r=="string"?o.appendChild(document.createTextNode(r)):o.appendChild(r);return o}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
39
+ `.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e},sn=(n,e)=>(typeof n=="string"&&(n=rr(n)||new RegExp(n)),n.test(e)),tc=(n,e)=>{typeof n=="string"&&(n=rr(n)||new RegExp(n));const t=e.match(n);return t?n.flags.toLowerCase().indexOf("g")>=0?t.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof t.index=="number"?t.index:-1,fullMatch:t[0],groupMatchs:t.slice(1)}:null},nc=(n,e)=>{typeof n=="string"&&(n=rr(n)||new RegExp(n));const t=[],s=e.matchAll(n);for(const i of s)t.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return t};function ep(n){const e=n.match(/[\s\S]/gu);return e?e.length:0}function sc(n,e){const t=n.codePointAt(e);return t?String.fromCodePoint(t):void 0}function tp(){let n=new Date().getTime();return"xxxxxxxx_xxxx_xxxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(t){const s=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(t=="x"?s:s&3|8).toString(16)})}function np(n){return n.replace(/(^\w)/g,function(e){return e.toLowerCase()})}const Sn=(n,e="-")=>(n=n.replace(/([A-Z])/g,e+"$1").toLowerCase(),n.indexOf(e)==0?n.slice(1):n);function ar(n){return n.replace(/(^\w|[_-]\w)/g,function(e){return e.slice(-1).toUpperCase()})}function ic(n){return np(ar(n))}const oc=(n,e="")=>(n=n.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,e),n);function lr(n){const e=typeof n;return e!=="object"?e:Object.prototype.toString.call(n).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function sp(n){return lr(n)==="array"}function ip(n){return lr(n)==="function"}function op(n){return lr(n)==="object"}function rc(n,e){for(const t of Reflect.ownKeys(e))if(t!=="constructor"&&t!=="prototype"&&t!=="name"&&t!=="displayName"&&!ip(e[t])){const s=Object.getOwnPropertyDescriptor(e,t);s&&Object.defineProperty(n,t,s)}}function ts(n,e){const t=e||{};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}function ac(n,e=new WeakMap){if(n==null)return n;if(n.constructor===Date)return new Date(n);if(n.constructor===RegExp)return new RegExp(n);if(typeof n!="object")return n;if(e.has(n))return e.get(n);const t=Object.create(Object.getPrototypeOf(n),Object.getOwnPropertyDescriptors(n));e.set(n,t);for(const s of Reflect.ownKeys(n))t[s]=op(n[s])?ac(n[s],e):n[s];return t}function lc(n,e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&delete n[t];return n}function Bn(n){for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&delete n[e];return n}function Os(n,e){const t=n.length,s=e.length;for(let o=0;o<s;o++)n[o]=e[o];let i=Math.max(0,t-s);for(;i>0;)n.pop(),i--}function Ns(n,e,t=Number.EPSILON*Math.pow(2,2)){return Math.abs(n-e)<t}const cr=(n,e,t)=>n<e?e:n>t?t:n;function cc(n,e=12){return n.toPrecision(e)}function Is(n){const e=tc("number-single",n);return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?n.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?n.substring(e.matchIndex+e.fullMatch.length):""}}function rp(n){const e=tc("number",n);return e?Array.isArray(e)?e.map(t=>Number(t.fullMatch)):[Number(e.fullMatch)]:[]}function uc(n,e){let t=!0;return function(...s){t&&(t=!1,n.apply(this,s),setTimeout(()=>{t=!0},e))}}function ap(n,e){let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{n.apply(this,s)},e)}}class hc{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async t=>{this.controller=t}})}get readableStream(){return this.rs}addTask(e){Array.isArray(e)?this.queue.push(...e):this.queue.push(e),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const e=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=e.length;const t=await Promise.allSettled(e.map(s=>s()));this.results.push(...t),t.forEach(s=>{s.status=="fulfilled"?this.controller?.enqueue(s.value):s.status=="rejected"&&this.controller?.enqueue(new Error(s.reason))}),this.activeTaskCount-=t.length}}}class dc{events;constructor(){this.events={}}on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}addListener(e,t){return this.on(e,t),this}prependListener(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(t),this}removeListener(e,t){if(this.events[e])return this.events[e]=this.events[e].filter(s=>s!==t),this}off(e,t){return this.removeListener(e,t),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...t){return this.events[e]&&this.events[e].forEach(s=>{Reflect.apply(s,this,t)}),this}once(e,t){const i=(()=>{let o=!1;return(...r)=>{o||(o=!0,Reflect.apply(t,this,r),this.off(e,i))}})();return this.on(e,i),this}}var fc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function lp(n,e={}){var t=1,s=1;function i(H){var G=H.match(/\n/g);G&&(t+=G.length);var pe=H.lastIndexOf(`
40
+ `);s=~pe?H.length-pe:s+H.length}function o(){var H={line:t,column:s};return function(G){return G.position=new r(H),m(),G}}function r(H){this.start=H,this.end={line:t,column:s},this.source=e.source}r.prototype.content=n;var a=[];function l(H){var G=new Error(e.source+":"+t+":"+s+": "+H);if(G.reason=H,G.filename=e.source,G.line=t,G.column=s,G.source=n,e.silent)a.push(G);else throw G}function c(){var H=d();return{type:"stylesheet",stylesheet:{source:e.source,rules:H,parsingErrors:a}}}function u(){return f(/^{\s*/)}function h(){return f(/^}/)}function d(){var H,G=[];for(m(),g(G);n.length&&n.charAt(0)!="}"&&(H=Q()||M());)H!==!1&&(G.push(H),g(G));return G}function f(H){var G=H.exec(n);if(G){var pe=G[0];return i(pe),n=n.slice(pe.length),G}}function m(){f(/^\s*/)}function g(H){var G;for(H=H||[];G=_();)G!==!1&&H.push(G);return H}function _(){var H=o();if(!(n.charAt(0)!="/"||n.charAt(1)!="*")){for(var G=2;n.charAt(G)!=""&&(n.charAt(G)!="*"||n.charAt(G+1)!="/");)++G;if(G+=2,n.charAt(G-1)==="")return l("End of comment missing");var pe=n.slice(2,G-2);return s+=2,i(pe),n=n.slice(G),s+=2,H({type:"comment",comment:pe})}}function w(){var H=f(/^([^{]+)/);if(H)return on(H[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(G){return G.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(G){return G.replace(/\u200C/g,",")})}function C(){var H=o(),G=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(G){if(G=on(G[0]),!f(/^:\s*/))return l("property missing ':'");var pe=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ne=H({type:"declaration",property:G.replace(fc,""),value:pe?on(pe[0]).replace(fc,""):""});return f(/^[;\s]*/),ne}}function E(){var H=[];if(!u())return l("missing '{'");g(H);for(var G;G=C();)G!==!1&&(H.push(G),g(H));return h()?H:l("missing '}'")}function k(){for(var H,G=[],pe=o();H=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)G.push(H[1]),f(/^,\s*/);if(G.length)return pe({type:"keyframe",values:G,declarations:E()})}function I(){var H=o(),G=f(/^@([-\w]+)?keyframes\s*/);if(G){var pe=G[1];if(G=f(/^([-\w]+)\s*/),!G)return l("@keyframes missing name");var ne=G[1];if(!u())return l("@keyframes missing '{'");for(var Pe,Ke=g();Pe=k();)Ke.push(Pe),Ke=Ke.concat(g());return h()?H({type:"keyframes",name:ne,vendor:pe,keyframes:Ke}):l("@keyframes missing '}'")}}function O(){var H=o(),G=f(/^@supports *([^{]+)/);if(G){var pe=on(G[1]);if(!u())return l("@supports missing '{'");var ne=g().concat(d());return h()?H({type:"supports",supports:pe,rules:ne}):l("@supports missing '}'")}}function R(){var H=o(),G=f(/^@host\s*/);if(G){if(!u())return l("@host missing '{'");var pe=g().concat(d());return h()?H({type:"host",rules:pe}):l("@host missing '}'")}}function ie(){var H=o(),G=f(/^@media *([^{]+)/);if(G){var pe=on(G[1]);if(!u())return l("@media missing '{'");var ne=g().concat(d());return h()?H({type:"media",media:pe,rules:ne}):l("@media missing '}'")}}function oe(){var H=o(),G=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(G)return H({type:"custom-media",name:on(G[1]),media:on(G[2])})}function he(){var H=o(),G=f(/^@page */);if(G){var pe=w()||[];if(!u())return l("@page missing '{'");for(var ne=g(),Pe;Pe=C();)ne.push(Pe),ne=ne.concat(g());return h()?H({type:"page",selectors:pe,declarations:ne}):l("@page missing '}'")}}function xe(){var H=o(),G=f(/^@([-\w]+)?document *([^{]+)/);if(G){var pe=on(G[1]),ne=on(G[2]);if(!u())return l("@document missing '{'");var Pe=g().concat(d());return h()?H({type:"document",document:ne,vendor:pe,rules:Pe}):l("@document missing '}'")}}function ye(){var H=o(),G=f(/^@font-face\s*/);if(G){if(!u())return l("@font-face missing '{'");for(var pe=g(),ne;ne=C();)pe.push(ne),pe=pe.concat(g());return h()?H({type:"font-face",declarations:pe}):l("@font-face missing '}'")}}var Ie=ue("import"),De=ue("charset"),ve=ue("namespace");function ue(H){var G=new RegExp("^@"+H+"\\s*([^;]+);");return function(){var pe=o(),ne=f(G);if(ne){var Pe={type:H};return Pe[H]=ne[1].trim(),pe(Pe)}}}function Q(){if(n[0]=="@")return I()||ie()||oe()||O()||Ie()||De()||ve()||xe()||he()||R()||ye()}function M(){var H=o(),G=w();return G?(g(),H({type:"rule",selectors:G,declarations:E()})):l("selector missing")}return ur(c())}function on(n){return n?n.replace(/^\s+|\s+$/g,""):""}function ur(n,e){var t=n&&typeof n.type=="string",s=t?n:e;for(var i in n){var o=n[i];Array.isArray(o)?o.forEach(function(r){ur(r,s)}):o&&typeof o=="object"&&ur(o,s)}return t&&Object.defineProperty(n,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),n}const Ds=/^[a-z0-9]+(-[a-z0-9]+)*$/,Di=(n,e,t,s="")=>{const i=n.split(":");if(n.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:s,prefix:l,name:a};return e&&!$i(c)?null:c}const o=i[0],r=o.split("-");if(r.length>1){const a={provider:s,prefix:r.shift(),name:r.join("-")};return e&&!$i(a)?null:a}if(t&&s===""){const a={provider:s,prefix:"",name:o};return e&&!$i(a,t)?null:a}return null},$i=(n,e)=>n?!!((n.provider===""||n.provider.match(Ds))&&(e&&n.prefix===""||n.prefix.match(Ds))&&n.name.match(Ds)):!1,pc=Object.freeze({left:0,top:0,width:16,height:16}),Mi=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ri=Object.freeze({...pc,...Mi}),hr=Object.freeze({...Ri,body:"",hidden:!1});function cp(n,e){const t={};!n.hFlip!=!e.hFlip&&(t.hFlip=!0),!n.vFlip!=!e.vFlip&&(t.vFlip=!0);const s=((n.rotate||0)+(e.rotate||0))%4;return s&&(t.rotate=s),t}function mc(n,e){const t=cp(n,e);for(const s in hr)s in Mi?s in n&&!(s in t)&&(t[s]=Mi[s]):s in e?t[s]=e[s]:s in n&&(t[s]=n[s]);return t}function up(n,e){const t=n.icons,s=n.aliases||Object.create(null),i=Object.create(null);function o(r){if(t[r])return i[r]=[];if(!(r in i)){i[r]=null;const a=s[r]&&s[r].parent,l=a&&o(a);l&&(i[r]=[a].concat(l))}return i[r]}return(e||Object.keys(t).concat(Object.keys(s))).forEach(o),i}function hp(n,e,t){const s=n.icons,i=n.aliases||Object.create(null);let o={};function r(a){o=mc(s[a]||i[a],o)}return r(e),t.forEach(r),mc(n,o)}function gc(n,e){const t=[];if(typeof n!="object"||typeof n.icons!="object")return t;n.not_found instanceof Array&&n.not_found.forEach(i=>{e(i,null),t.push(i)});const s=up(n);for(const i in s){const o=s[i];o&&(e(i,hp(n,i,o)),t.push(i))}return t}const dp={provider:"",aliases:{},not_found:{},...pc};function dr(n,e){for(const t in e)if(t in n&&typeof n[t]!=typeof e[t])return!1;return!0}function vc(n){if(typeof n!="object"||n===null)return null;const e=n;if(typeof e.prefix!="string"||!n.icons||typeof n.icons!="object"||!dr(n,dp))return null;const t=e.icons;for(const i in t){const o=t[i];if(!i.match(Ds)||typeof o.body!="string"||!dr(o,hr))return null}const s=e.aliases||Object.create(null);for(const i in s){const o=s[i],r=o.parent;if(!i.match(Ds)||typeof r!="string"||!t[r]&&!s[r]||!dr(o,hr))return null}return e}const yc=Object.create(null);function fp(n,e){return{provider:n,prefix:e,icons:Object.create(null),missing:new Set}}function Hn(n,e){const t=yc[n]||(yc[n]=Object.create(null));return t[e]||(t[e]=fp(n,e))}function fr(n,e){return vc(e)?gc(e,(t,s)=>{s?n.icons[t]=s:n.missing.add(t)}):[]}function pp(n,e,t){try{if(typeof t.body=="string")return n.icons[e]={...t},!0}catch{}return!1}let $s=!1;function _c(n){return typeof n=="boolean"&&($s=n),$s}function mp(n){const e=typeof n=="string"?Di(n,!0,$s):n;if(e){const t=Hn(e.provider,e.prefix),s=e.name;return t.icons[s]||(t.missing.has(s)?null:void 0)}}function gp(n,e){const t=Di(n,!0,$s);if(!t)return!1;const s=Hn(t.provider,t.prefix);return pp(s,t.name,e)}function vp(n,e){if(typeof n!="object")return!1;if(typeof e!="string"&&(e=n.provider||""),$s&&!e&&!n.prefix){let i=!1;return vc(n)&&(n.prefix="",gc(n,(o,r)=>{r&&gp(o,r)&&(i=!0)})),i}const t=n.prefix;if(!$i({provider:e,prefix:t,name:"a"}))return!1;const s=Hn(e,t);return!!fr(s,n)}const bc=Object.freeze({width:null,height:null}),xc=Object.freeze({...bc,...Mi}),yp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,_p=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wc(n,e,t){if(e===1)return n;if(t=t||100,typeof n=="number")return Math.ceil(n*e*t)/t;if(typeof n!="string")return n;const s=n.split(yp);if(s===null||!s.length)return n;const i=[];let o=s.shift(),r=_p.test(o);for(;;){if(r){const a=parseFloat(o);isNaN(a)?i.push(o):i.push(Math.ceil(a*e*t)/t)}else i.push(o);if(o=s.shift(),o===void 0)return i.join("");r=!r}}function bp(n,e="defs"){let t="";const s=n.indexOf("<"+e);for(;s>=0;){const i=n.indexOf(">",s),o=n.indexOf("</"+e);if(i===-1||o===-1)break;const r=n.indexOf(">",o);if(r===-1)break;t+=n.slice(i+1,o).trim(),n=n.slice(0,s).trim()+n.slice(r+1)}return{defs:t,content:n}}function xp(n,e){return n?"<defs>"+n+"</defs>"+e:e}function wp(n,e,t){const s=bp(n);return xp(s.defs,e+s.content+t)}const Ep=n=>n==="unset"||n==="undefined"||n==="none";function Cp(n,e){const t={...Ri,...n},s={...xc,...e},i={left:t.left,top:t.top,width:t.width,height:t.height};let o=t.body;[t,s].forEach(g=>{const _=[],w=g.hFlip,C=g.vFlip;let E=g.rotate;w?C?E+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):C&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let k;switch(E<0&&(E-=Math.floor(E/4)*4),E=E%4,E){case 1:k=i.height/2+i.top,_.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:k=i.width/2+i.left,_.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}E%2===1&&(i.left!==i.top&&(k=i.left,i.left=i.top,i.top=k),i.width!==i.height&&(k=i.width,i.width=i.height,i.height=k)),_.length&&(o=wp(o,'<g transform="'+_.join(" ")+'">',"</g>"))});const r=s.width,a=s.height,l=i.width,c=i.height;let u,h;r===null?(h=a===null?"1em":a==="auto"?c:a,u=wc(h,l/c)):(u=r==="auto"?l:r,h=a===null?wc(u,c/l):a==="auto"?c:a);const d={},f=(g,_)=>{Ep(_)||(d[g]=_.toString())};f("width",u),f("height",h);const m=[i.left,i.top,l,c];return d.viewBox=m.join(" "),{attributes:d,viewBox:m,body:o}}const Sp=/\sid="(\S+)"/g,kp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Tp=0;function Pp(n,e=kp){const t=[];let s;for(;s=Sp.exec(n);)t.push(s[1]);if(!t.length)return n;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(o=>{const r=typeof e=="function"?e(o):e+(Tp++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),n=n.replace(new RegExp(i,"g"),""),n}const pr=Object.create(null);function Op(n,e){pr[n]=e}function mr(n){return pr[n]||pr[""]}function gr(n){let e;if(typeof n.resources=="string")e=[n.resources];else if(e=n.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}const vr=Object.create(null),Ms=["https://api.simplesvg.com","https://api.unisvg.com"],Ai=[];for(;Ms.length>0;)Ms.length===1||Math.random()>.5?Ai.push(Ms.shift()):Ai.push(Ms.pop());vr[""]=gr({resources:["https://api.iconify.design"].concat(Ai)});function Np(n,e){const t=gr(e);return t===null?!1:(vr[n]=t,!0)}function yr(n){return vr[n]}let Ec=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function Ip(n,e){const t=yr(n);if(!t)return 0;let s;if(!t.maxURL)s=0;else{let i=0;t.resources.forEach(r=>{i=Math.max(i,r.length)});const o=e+".json?icons=";s=t.maxURL-i-t.path.length-o.length}return s}function Dp(n){return n===404}const $p=(n,e,t)=>{const s=[],i=Ip(n,e),o="icons";let r={type:o,provider:n,prefix:e,icons:[]},a=0;return t.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(s.push(r),r={type:o,provider:n,prefix:e,icons:[]},a=l.length),r.icons.push(l)}),s.push(r),s};function Mp(n){if(typeof n=="string"){const e=yr(n);if(e)return e.path}return"/"}const Rp={prepare:$p,send:(n,e,t)=>{if(!Ec){t("abort",424);return}let s=Mp(e.provider);switch(e.type){case"icons":{const o=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});s+=o+".json?"+l.toString();break}case"custom":{const o=e.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:t("abort",400);return}let i=503;Ec(n+s).then(o=>{const r=o.status;if(r!==200){setTimeout(()=>{t(Dp(r)?"abort":"next",r)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?t("abort",o):t("next",i)});return}setTimeout(()=>{t("success",o)})}).catch(()=>{t("next",i)})}};function Ap(n){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);n.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return n.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const o=i.provider,r=i.prefix,a=i.name,l=t[o]||(t[o]=Object.create(null)),c=l[r]||(l[r]=Hn(o,r));let u;a in c.icons?u=e.loaded:r===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:o,prefix:r,name:a};u.push(h)}),e}function Cc(n,e){n.forEach(t=>{const s=t.loaderCallbacks;s&&(t.loaderCallbacks=s.filter(i=>i.id!==e))})}function Lp(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;const e=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const s=n.provider,i=n.prefix;e.forEach(o=>{const r=o.icons,a=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(n.icons[c])r.loaded.push({provider:s,prefix:i,name:c});else if(n.missing.has(c))r.missing.push({provider:s,prefix:i,name:c});else return t=!0,!0;return!1}),r.pending.length!==a&&(t||Cc([n],o.id),o.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),o.abort))})}))}let Fp=0;function Vp(n,e,t){const s=Fp++,i=Cc.bind(null,t,s);if(!e.pending.length)return i;const o={id:s,icons:e,callback:n,abort:i};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(o)}),i}function zp(n,e=!0,t=!1){const s=[];return n.forEach(i=>{const o=typeof i=="string"?Di(i,e,t):i;o&&s.push(o)}),s}var Gp={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function jp(n,e,t,s){const i=n.resources.length,o=n.random?Math.floor(Math.random()*i):n.index;let r;if(n.random){let O=n.resources.slice(0);for(r=[];O.length>1;){const R=Math.floor(Math.random()*O.length);r.push(O[R]),O=O.slice(0,R).concat(O.slice(R+1))}r=r.concat(O)}else r=n.resources.slice(o).concat(n.resources.slice(0,o));const a=Date.now();let l="pending",c=0,u,h=null,d=[],f=[];typeof s=="function"&&f.push(s);function m(){h&&(clearTimeout(h),h=null)}function g(){l==="pending"&&(l="aborted"),m(),d.forEach(O=>{O.status==="pending"&&(O.status="aborted")}),d=[]}function _(O,R){R&&(f=[]),typeof O=="function"&&f.push(O)}function w(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:d.length,subscribe:_,abort:g}}function C(){l="failed",f.forEach(O=>{O(void 0,u)})}function E(){d.forEach(O=>{O.status==="pending"&&(O.status="aborted")}),d=[]}function k(O,R,ie){const oe=R!=="success";switch(d=d.filter(he=>he!==O),l){case"pending":break;case"failed":if(oe||!n.dataAfterTimeout)return;break;default:return}if(R==="abort"){u=ie,C();return}if(oe){u=ie,d.length||(r.length?I():C());return}if(m(),E(),!n.random){const he=n.resources.indexOf(O.resource);he!==-1&&he!==n.index&&(n.index=he)}l="completed",f.forEach(he=>{he(ie)})}function I(){if(l!=="pending")return;m();const O=r.shift();if(O===void 0){if(d.length){h=setTimeout(()=>{m(),l==="pending"&&(E(),C())},n.timeout);return}C();return}const R={status:"pending",resource:O,callback:(ie,oe)=>{k(R,ie,oe)}};d.push(R),c++,h=setTimeout(I,n.rotate),t(O,e,R.callback)}return setTimeout(I),w}function Sc(n){const e={...Gp,...n};let t=[];function s(){t=t.filter(a=>a().status==="pending")}function i(a,l,c){const u=jp(e,a,l,(h,d)=>{s(),c&&c(h,d)});return t.push(u),u}function o(a){return t.find(l=>a(l))||null}return{query:i,find:o,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:s}}function kc(){}const _r=Object.create(null);function Bp(n){if(!_r[n]){const e=yr(n);if(!e)return;const t=Sc(e),s={config:e,redundancy:t};_r[n]=s}return _r[n]}function Hp(n,e,t){let s,i;if(typeof n=="string"){const o=mr(n);if(!o)return t(void 0,424),kc;i=o.send;const r=Bp(n);r&&(s=r.redundancy)}else{const o=gr(n);if(o){s=Sc(o);const r=n.resources?n.resources[0]:"",a=mr(r);a&&(i=a.send)}}return!s||!i?(t(void 0,424),kc):s.query(e,i,t)().abort}const Tc="iconify2",Rs="iconify",Pc=Rs+"-count",Oc=Rs+"-version",Nc=36e5,Wp=168,Up=50;function br(n,e){try{return n.getItem(e)}catch{}}function xr(n,e,t){try{return n.setItem(e,t),!0}catch{}}function Ic(n,e){try{n.removeItem(e)}catch{}}function wr(n,e){return xr(n,Pc,e.toString())}function Er(n){return parseInt(br(n,Pc))||0}const Li={local:!0,session:!0},Dc={local:new Set,session:new Set};let Cr=!1;function Yp(n){Cr=n}let Fi=typeof window>"u"?{}:window;function $c(n){const e=n+"Storage";try{if(Fi&&Fi[e]&&typeof Fi[e].length=="number")return Fi[e]}catch{}Li[n]=!1}function Mc(n,e){const t=$c(n);if(!t)return;const s=br(t,Oc);if(s!==Tc){if(s){const a=Er(t);for(let l=0;l<a;l++)Ic(t,Rs+l.toString())}xr(t,Oc,Tc),wr(t,0);return}const i=Math.floor(Date.now()/Nc)-Wp,o=a=>{const l=Rs+a.toString(),c=br(t,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}Ic(t,l)}};let r=Er(t);for(let a=r-1;a>=0;a--)o(a)||(a===r-1?(r--,wr(t,r)):Dc[n].add(a))}function Rc(){if(!Cr){Yp(!0);for(const n in Li)Mc(n,e=>{const t=e.data,s=e.provider,i=t.prefix,o=Hn(s,i);if(!fr(o,t).length)return!1;const r=t.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,r):r,!0})}}function Xp(n,e){const t=n.lastModifiedCached;if(t&&t>=e)return t===e;if(n.lastModifiedCached=e,t)for(const s in Li)Mc(s,i=>{const o=i.data;return i.provider!==n.provider||o.prefix!==n.prefix||o.lastModified===e});return!0}function qp(n,e){Cr||Rc();function t(s){let i;if(!Li[s]||!(i=$c(s)))return;const o=Dc[s];let r;if(o.size)o.delete(r=Array.from(o).shift());else if(r=Er(i),r>=Up||!wr(i,r+1))return;const a={cached:Math.floor(Date.now()/Nc),provider:n.provider,data:e};return xr(i,Rs+r.toString(),JSON.stringify(a))}e.lastModified&&!Xp(n,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Ac(){}function Kp(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,Lp(n)}))}function Zp(n,e){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(e).sort():n.iconsToLoad=e,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;const{provider:t,prefix:s}=n,i=n.iconsToLoad;delete n.iconsToLoad;let o;if(!i||!(o=mr(t)))return;o.prepare(t,s,i).forEach(a=>{Hp(t,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{n.missing.add(c)});else try{const c=fr(n,l);if(!c.length)return;const u=n.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),qp(n,l)}catch(c){console.error(c)}Kp(n)})})}))}const Qp=(n,e)=>{const t=zp(n,!0,_c()),s=Ap(t);if(!s.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(s.loaded,s.missing,s.pending,Ac)}),()=>{l=!1}}const i=Object.create(null),o=[];let r,a;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===r)return;r=c,a=u,o.push(Hn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,d=Hn(c,u),f=d.pendingIcons||(d.pendingIcons=new Set);f.has(h)||(f.add(h),i[c][u].push(h))}),o.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&Zp(l,i[c][u])}),e?Vp(e,s,o):Ac};function Jp(n,e){const t={...n};for(const s in e){const i=e[s],o=typeof i;s in bc?(i===null||i&&(o==="string"||o==="number"))&&(t[s]=i):o===typeof t[s]&&(t[s]=s==="rotate"?i%4:i)}return t}const em=/[\s,]+/;function tm(n,e){e.split(em).forEach(t=>{switch(t.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function nm(n,e=0){const t=n.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(t===""){const i=parseInt(n);return isNaN(i)?0:s(i)}else if(t!==n){let i=0;switch(t){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(n.slice(0,n.length-t.length));return isNaN(o)?0:(o=o/i,o%1===0?s(o):0)}}return e}function sm(n,e){let t=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in e)t+=" "+s+'="'+e[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+n+"</svg>"}function im(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function om(n){return"data:image/svg+xml,"+im(n)}function rm(n){return'url("'+om(n)+'")'}const Lc={...xc,inline:!1},am={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},lm={display:"inline-block"},Sr={backgroundColor:"currentColor"},Fc={backgroundColor:"transparent"},Vc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zc={webkitMask:Sr,mask:Sr,background:Fc};for(const n in zc){const e=zc[n];for(const t in Vc)e[n+t]=Vc[t]}const Vi={};["horizontal","vertical"].forEach(n=>{const e=n.slice(0,1)+"Flip";Vi[n+"-flip"]=e,Vi[n.slice(0,1)+"-flip"]=e,Vi[n+"Flip"]=e});function Gc(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const jc=(n,e)=>{const t=Jp(Lc,e),s={...am},i=e.mode||"svg",o={},r=e.style,a=typeof r=="object"&&!(r instanceof Array)?r:{};for(let g in e){const _=e[g];if(_!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":t[g]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&tm(t,_);break;case"color":o.color=_;break;case"rotate":typeof _=="string"?t[g]=nm(_):typeof _=="number"&&(t[g]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete s["aria-hidden"];break;default:{const w=Vi[g];w?(_===!0||_==="true"||_===1)&&(t[w]=!0):Lc[g]===void 0&&(s[g]=_)}}}const l=Cp(n,t),c=l.attributes;if(t.inline&&(o.verticalAlign="-0.125em"),i==="svg"){s.style={...o,...a},Object.assign(s,c);let g=0,_=e.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),s.innerHTML=Pp(l.body,_?()=>_+"ID"+g++:"iconifyVue"),Ge("svg",s)}const{body:u,width:h,height:d}=n,f=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=sm(u,{...c,width:h+"",height:d+""});return s.style={...o,"--svg":rm(m),width:Gc(c.width),height:Gc(c.height),...lm,...f?Sr:Fc,...a},Ge("span",s)};if(_c(!0),Op("",Rp),typeof document<"u"&&typeof window<"u"){Rc();const n=window;if(n.IconifyPreload!==void 0){const e=n.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!vp(s))&&console.error(t)}catch{console.error(t)}})}if(n.IconifyProviders!==void 0){const e=n.IconifyProviders;if(typeof e=="object"&&e!==null)for(let t in e){const s="IconifyProviders["+t+"] is invalid.";try{const i=e[t];if(typeof i!="object"||!i||i.resources===void 0)continue;Np(t,i)||console.error(s)}catch{console.error(s)}}}}const cm={...Ri,body:""},Bc=K({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(n,e){if(typeof n=="object"&&n!==null&&typeof n.body=="string")return this._name="",this.abortLoading(),{data:n};let t;if(typeof n!="string"||(t=Di(n,!1,!0))===null)return this.abortLoading(),null;const s=mp(t);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:n,abort:Qp([t],()=>{this.counter++})})),null;this.abortLoading(),this._name!==n&&(this._name=n,e&&e(n));const i=["iconify"];return t.prefix!==""&&i.push("iconify--"+t.prefix),t.provider!==""&&i.push("iconify--"+t.provider),{data:s,classes:i}}},render(){this.counter;const n=this.$attrs,e=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad):null;if(!e)return jc(cm,n);let t=n;return e.classes&&(t={...n,class:(typeof n.class=="string"?n.class+" ":"")+e.classes.join(" ")}),jc({...Ri,...e.data},t)}}),Hc=(n,e="image/svg+xml",t="utf-8")=>new Blob([n],{type:`${e};charset=${t}`}),Wc=n=>new XMLSerializer().serializeToString(n),um=(n,e="image/svg+xml",t="utf-8")=>Hc(Wc(n),e,t),Uc=(n,e)=>{const t=document.createElement("a");t.style.visibility="hidden",document.body.appendChild(t),t.download=e,typeof n=="string"?t.href=n:t.href=window.URL.createObjectURL(n),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(t.href)};function hm(n=["*"],e){return new Promise((t,s)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return s(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(n)&&n.length>0&&i.setAttribute("accept",n.join(",")),e&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const o=()=>{if(i.removeEventListener("change",o),!i.files||i.files?.length===0)s(new Error("Cancel select"));else{const r=Array.from(i.files);!n.includes("*")&&r.some(a=>!n.includes(`.${fm(a)}`))&&s(new Error(`Please select files in ${n} format`)),i.remove(),t(r)}};i.addEventListener("change",o),i.click()})}function dm(n,e="text",t){return new Promise((s,i)=>{const o=new FileReader;switch(o.addEventListener("progress",r=>{t?.(r.loaded,r.total)}),o.addEventListener("load",r=>{s(r.target?.result)}),o.addEventListener("error",r=>{i(r)}),e){case"dataURL":o.readAsDataURL(n);break;case"binaryString":o.readAsBinaryString(n);break;case"arrayBuffer":o.readAsArrayBuffer(n);break;default:o.readAsText(n)}})}const fm=n=>{let e;return n instanceof File?e=n.name:e=n,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function zi(){const n=document.documentElement;return{clientWidth:n.clientWidth,clientHeight:n.clientHeight,clientTop:n.clientTop,clientLeft:n.clientLeft,scrollWidth:n.scrollWidth,scrollHeight:n.scrollHeight,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,offsetTop:n.offsetTop,offsetLeft:n.offsetLeft,offsetParent:n.offsetParent,clientX:n.getBoundingClientRect().x,clientY:n.getBoundingClientRect().y}}function kr(){const{clientWidth:n,clientHeight:e}=zi();return{width:n||window.innerWidth,height:e||window.innerHeight}}function pm(n){const{top:e,left:t}=n.getBoundingClientRect(),{scrollLeft:s,scrollTop:i}=zi();return{x:t+s,y:e+i}}function mm(){const{clientHeight:n,scrollTop:e,scrollHeight:t}=zi(),s=t-n;return s<=0?0:e/s*100}function gm(n){if("center"in n)return n.center;if(n.pageX&&n.pageY)return{x:n.pageX,y:n.pageY};const{scrollLeft:e,scrollTop:t}=zi();return{x:n.clientX+e,y:n.clientY+t}}function vm(n,e){const t=gm(e),s=pm(n);return{x:t.x-s.x,y:t.y-s.y}}function Yc(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}const ym=()=>{const n=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(n)?e="macOS":/win/i.test(n)?e="Windows":/android/i.test(n)?e="Android":/iphone|ipad|ipod/i.test(n)?e="iOS":/linux/i.test(n)?e="Linux":/bsd/i.test(n)&&(e="BSD"),e.toLowerCase()};function _m(){return ym()==="macos"}function bm(){const n=window.navigator.userAgent,e=n.indexOf("MSIE ");if(e>0)return parseInt(n.substring(e+5,n.indexOf(".",e)),10);if(n.indexOf("Trident/")>0){const i=n.indexOf("rv:");return parseInt(n.substring(i+3,n.indexOf(".",i)),10)}const s=n.indexOf("Edge/");return s>0?parseInt(n.substring(s+5,n.indexOf(".",s)),10):-1}const Tr=bm()!==-1;(()=>{const n=Yc();return!!(n.Worker&&n.Blob&&n.Promise&&n.OffscreenCanvas&&n.OffscreenCanvasRenderingContext2D&&n.HTMLCanvasElement&&n.HTMLCanvasElement.prototype.transferControlToOffscreen&&n.URL&&n.URL.createObjectURL)})(),function(){if(!Yc().OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),t=e.getContext("2d");t.fillRect(0,0,1,1);var s=e.transferToImageBitmap();try{t.createPattern(s,"no-repeat")}catch{return!1}return!0}();function xm(n){const e=document.documentElement,t=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=t;let s=100;const i=function(){const o=Math.min(e.clientWidth,n);e.dataset.width=o,e.dataset.rem=s=Math.round(100*(o/n)),e.style.fontSize=s+"px"};i(),window.rem2px=function(o){return o=parseFloat(o),o*s},window.px2rem=function(o){return o=parseFloat(o),o/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class X{static onDocumentReady(e){let t=!1;function s(){document.readyState==="loading"||t||(t=!0,e(),document.removeEventListener("DOMContentLoaded",s))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",s),s())}static onBeforeUnload(e){function t(){e(),document.removeEventListener("beforeunload",t)}typeof document<"u"&&document.addEventListener("beforeunload",t)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,t){document.documentElement.style.setProperty(e,t)}static attrsToCanvas(e,t){for(const s in t){const i=t[s];switch(Sn(s)){case"fill":i!=="none"&&(e.fillStyle=i);break;case"stroke":i!=="none"&&(e.strokeStyle=i);break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":e.lineJoin=i;break;case"cursor":break;case"text-anchor":break;case"font":e.font=i;break;case"font-size":e.font+=` ${i}`;break;case"font-family":e.font+=` ${i}`;break}}}static getStyle(e,t,s){const i=e;if(getComputedStyle)if(t){t=Sn(t);const o=getComputedStyle(i,s).getPropertyPriority(t);return getComputedStyle(i,s).getPropertyValue(t).trim()+(o?"!"+o:"")}else{const o=[],r=getComputedStyle(i,"");for(let a=0;a<r.length;a++)o.push(r[a]+":"+r.getPropertyValue(r[a]));return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(t)return t=ic(t),e.currentStyle[t];{const o=[],r=i.currentStyle;for(let a in r)o.push(a+":"+r[a]);return o.push(...(i.style.cssText||"").split(";")),Object.fromEntries(o.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,t,s){if(typeof t=="string"&&s){const i=String(s).toLowerCase().includes("!important")?"important":"";e.style.setProperty(t,s.replace(/!important/i,""),i)}else t instanceof Object&&Object.keys(t).forEach(i=>{const o=String(t[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(i,String(t[i]).replace(/!important/i,""),o)})}static setStyleSheet(e,t){let s;if(typeof t=="string"){const o=document.querySelector(t)?.shadowRoot;o?s=o:s=document.querySelector(t)}else s=t;const i=document.createElement("style");if(i.innerHTML=e,s)return s.appendChild(i),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(i)};{const o=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(o)}}}static toggleClass(e,t,s="toggle"){t.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[s](i.trim())})}static addClass(e,t){this.toggleClass(e,t,"add")}static removeClass(e,t){this.toggleClass(e,t,"remove")}static hasClass(e,t){return t.split(/[,\s]+/).every(s=>s.trim()!==""?Array.from(e.classList||[]).includes(s.trim()):!0)}static toggleDisplay(e,t){this.getStyle(e,"display")=="none"&&t===void 0||t===!0?e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block"):e.style.setProperty("display","none")}static show(e){this.toggleDisplay(e,!0)}static hide(e){this.toggleDisplay(e,!1)}static attribute(e,t,s){let i={};if(t===void 0&&s===void 0){for(let o=0,r=e.attributes,a=r.length;o<a;o++){const l=r[o];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof t=="string"&&s===void 0)return e.getAttribute(Sn(t));typeof t=="object"?i=t:typeof t=="string"&&s!==void 0&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{e.setAttribute(Sn(o),r)})}static removeAttribute(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&e.removeAttribute(s.trim())})}static fixProp(e){const t={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return t[e]?t[e]:e}static prop(e,t,s){if(s===void 0&&typeof t=="string")return e[t];{let i={};typeof t=="object"?i=t:typeof t=="string"&&s!==void 0&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{const a=this.fixProp(o);e[a]=r,a=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e[this.fixProp(s.trim())]})}static data(e,t,s){if(typeof t=="string"&&(t=ic(t)),(typeof t=="string"||t===void 0)&&s===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(o=>{if(i[o]?.startsWith("[")||i[o]?.startsWith("{"))try{i[o]=JSON.parse(i[o]??"")}catch{}}),typeof t=="string"?i[t]:i}else{let i={};typeof t=="object"?i=t:typeof t=="string"&&(i[t]=s),Object.entries(i).forEach(([o,r])=>{r!=null?e.dataset[o]=r instanceof Object?JSON.stringify(r):r:delete e.dataset[o]})}}static removeData(e,t){t.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete e.dataset[s.trim()]})}static empty(e){this.html(e,"")}static html(e,t){t instanceof HTMLElement||t instanceof SVGElement?this.insert(e,t,"replaceWith"):this.prop(e,"innerHTML",t)}static text(e,t){return this.prop(e,"textContent",t)}static value(e,t){return this.prop(e,"value",t)}static dispatchEvent(e,t,s){let i;const o=["click","dblclick","mousedown","mouseup","mousemove"],r=["keydown","keyup","keypress"];typeof t=="string"?o.includes(t)?i=new MouseEvent(t,s):r.includes(t)?i=new KeyboardEvent(t,s):i=new Event(t,s):i=t,e.dispatchEvent(i)}static scriptConvert(e){const t=s=>{const o=s.ownerDocument.createElement("script");o.text=s.text;const r=s.attributes;for(let a=0;a<r.length;a++)o.setAttribute(r[a].name,r[a].value);return o};return e.tagName=="SCRIPT"&&(e=t(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(t(s),s)}),e}static fragment(e){const t=document.createElement("template");return t.innerHTML=e,t.content.childNodes.forEach(s=>{const i=this.scriptConvert(s);i!=s&&t.content.replaceChild(i,s)}),t.content}static insert(e,t,s="append"){return typeof t=="string"?e[s](this.fragment(t)):(t instanceof HTMLElement||t instanceof SVGElement)&&e[s](t),this}static createElement(e){return document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static remove(e){return e.remove()}static siblings=e=>Array.prototype.slice.call(e.parentElement?.children).filter(t=>t!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,t){return e.closest(t)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,t){if(e instanceof HTMLSelectElement){const s=e.options;for(let i=0,o=s.length;i<o;i++)s[i].value==t?s[i].selected=!0:s[i].selected=!1}}static changeRadioChecked(e,t){e instanceof HTMLInputElement&&(e.value==t?e.checked=!0:e.checked=!1)}static entity2text(e){const t={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let s;return e.charAt(0)=="#"?e.charAt(1).toLowerCase()=="x"?s=parseInt(e.substring(2),16):s=parseInt(e.substring(1),10):s=t[e],s?String.fromCharCode(s):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const t=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length??0;const i=()=>s>=t.length?(e(),!0):!1;i()||t.forEach(o=>{o.onload=()=>{s+=1,i()}})});static loadScript(e,t=()=>{},s=(i,o,r,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=t,i.onerror=s,document.body.appendChild(i)}static runInSafe(e){const t=new Proxy(window,{get(s,i,o){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?t:Reflect.get(s,i,o)},set(s,i,o,r){return Reflect.set(s,i,o,r)}});new Function("window",`with(window) { ${e} }`)(t,null)}static dom=new Proxy({},{get(e,t){return function(s={},...i){const o=document.createElement(t);for(const r of Object.keys(s))o.setAttribute(r,s[r]);for(const r of i)typeof r=="string"?o.appendChild(document.createTextNode(r)):o.appendChild(r);return o}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
41
41
  let output = "";
42
42
  function echo(html){
43
43
  output += html;
44
44
  }
45
45
  ${e}
46
46
  return output;
47
- })`}static encodeHTML(e,n="encode"){const s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e=e.replace(new RegExp(n=="decode"?i:s[i],"g"),n=="decode"?s[i]:i));return e}static getInnerText=e=>{let n=e.innerText;if(!n){const s=e.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!n&&i<=s.length-1;)"innerText"in s[i]&&(n=s[i].innerText),i++}return n};static copyToClipboard=e=>new Promise((n,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(n).catch(s);else{const i=document.createElement("textarea");i.value=e,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?n():s()}catch(o){s(o)}document.body.removeChild(i)}});static scrollTo=(e,n)=>window.scrollTo(e,n);static setScrollRestoration(e){try{window.history.scrollRestoration=e}catch{}}static getLocation(){return new Promise((e,n)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):n("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(e,n="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=n,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,n)},4e3),setTimeout(function(){s.remove()},6e3)}static getTextWidth=(e,n=12,s=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=n>12?n+"px":"12px",i.style.fontWeight=s.toString(),i.innerText=e,document.body.appendChild(i);const o=i.offsetWidth;return document.body.removeChild(i),o};static getFixedWidthText=(e,n,s=12,i=400,o=!0)=>{let r="";if(!e||n<s)return r;const l=e.split(""),a="...";let c=o?ee.getTextWidth(a,s,i):0;for(let u=0,h=l.length;u<h;u++)if(c+=ee.getTextWidth(l[u],s,i),c>n){o&&(r+=a);break}else r+=l[u];return r}}function bm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
47
+ })`}static encodeHTML(e,t="encode"){const s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e=e.replace(new RegExp(t=="decode"?i:s[i],"g"),t=="decode"?s[i]:i));return e}static getInnerText=e=>{let t=e.innerText;if(!t){const s=e.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!t&&i<=s.length-1;)"innerText"in s[i]&&(t=s[i].innerText),i++}return t};static copyToClipboard=e=>new Promise((t,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(t).catch(s);else{const i=document.createElement("textarea");i.value=e,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?t():s()}catch(o){s(o)}document.body.removeChild(i)}});static scrollTo=(e,t)=>window.scrollTo(e,t);static setScrollRestoration(e){try{window.history.scrollRestoration=e}catch{}}static getLocation(){return new Promise((e,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{e(s.coords)}):t("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(e,t="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=t,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(e,t)},4e3),setTimeout(function(){s.remove()},6e3)}static getTextWidth=(e,t=12,s=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.padding="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=t>12?t+"px":"12px",i.style.fontWeight=s.toString(),i.innerText=e,document.body.appendChild(i);const o=i.offsetWidth;return document.body.removeChild(i),o};static getFixedWidthText=(e,t,s=12,i=400,o=!0)=>{let r="";if(!e||t<s)return r;const a=e.split(""),l="...";let c=o?X.getTextWidth(l,s,i):0;for(let u=0,h=a.length;u<h;u++)if(c+=X.getTextWidth(a[u],s,i),c>t){o&&(r+=l);break}else r+=a[u];return r}}function wm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Xc={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
48
48
  * http://hammerjs.github.io/
49
49
  *
50
50
  * Copyright (c) 2016 Jorik Tangelder;
51
- * Licensed under the MIT license */(function(t){(function(e,n,s,i){var o=["","webkit","Moz","MS","ms","o"],r=n.createElement("div"),l="function",a=Math.round,c=Math.abs,u=Date.now;function h(p,g,b){return setTimeout(C(p,b),g)}function d(p,g,b){return Array.isArray(p)?(f(p,b[g],b),!0):!1}function f(p,g,b){var P;if(p)if(p.forEach)p.forEach(g,b);else if(p.length!==i)for(P=0;P<p.length;)g.call(b,p[P],P,p),P++;else for(P in p)p.hasOwnProperty(P)&&g.call(b,p[P],P,p)}function m(p,g,b){var P="DEPRECATED METHOD: "+g+`
51
+ * Licensed under the MIT license */(function(n){(function(e,t,s,i){var o=["","webkit","Moz","MS","ms","o"],r=t.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,v,b){return setTimeout(E(p,b),v)}function d(p,v,b){return Array.isArray(p)?(f(p,b[v],b),!0):!1}function f(p,v,b){var P;if(p)if(p.forEach)p.forEach(v,b);else if(p.length!==i)for(P=0;P<p.length;)v.call(b,p[P],P,p),P++;else for(P in p)p.hasOwnProperty(P)&&v.call(b,p[P],P,p)}function m(p,v,b){var P="DEPRECATED METHOD: "+v+`
52
52
  `+b+` AT
53
- `;return function(){var G=new Error("get-stack-trace"),J=G&&G.stack?G.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",xe=e.console&&(e.console.warn||e.console.log);return xe&&xe.call(e.console,P,J),p.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(g),P=1;P<arguments.length;P++){var G=arguments[P];if(G!==i&&G!==null)for(var J in G)G.hasOwnProperty(J)&&(b[J]=G[J])}return b}:v=Object.assign;var y=m(function(g,b,P){for(var G=Object.keys(b),J=0;J<G.length;)(!P||P&&g[G[J]]===i)&&(g[G[J]]=b[G[J]]),J++;return g},"extend","Use `assign`."),w=m(function(g,b){return y(g,b,!0)},"merge","Use `assign`.");function E(p,g,b){var P=g.prototype,G;G=p.prototype=Object.create(P),G.constructor=p,G._super=P,b&&v(G,b)}function C(p,g){return function(){return p.apply(g,arguments)}}function S(p,g){return typeof p==l?p.apply(g&&g[0]||i,g):p}function D(p,g){return p===i?g:p}function N(p,g,b){f(he(g),function(P){p.addEventListener(P,b,!1)})}function R(p,g,b){f(he(g),function(P){p.removeEventListener(P,b,!1)})}function ae(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function le(p,g){return p.indexOf(g)>-1}function he(p){return p.trim().split(/\s+/g)}function Ne(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var P=0;P<p.length;){if(b&&p[P][b]==g||!b&&p[P]===g)return P;P++}return-1}function ke(p){return Array.prototype.slice.call(p,0)}function qe(p,g,b){for(var P=[],G=[],J=0;J<p.length;){var xe=g?p[J][g]:p[J];Ne(G,xe)<0&&P.push(p[J]),G[J]=xe,J++}return b&&(g?P=P.sort(function(ct,bt){return ct[g]>bt[g]}):P=P.sort()),P}function Ke(p,g){for(var b,P,G=g[0].toUpperCase()+g.slice(1),J=0;J<o.length;){if(b=o[J],P=b?b+G:g,P in p)return P;J++}return i}var ze=1;function Ce(){return ze++}function ce(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||e}var M=/mobile|tablet|ip(ad|hone|od)|android/i,W="ontouchstart"in e,j=Ke(e,"PointerEvent")!==i,fe=W&&M.test(navigator.userAgent),te="touch",Se="pen",Ze="mouse",He="kinect",We=25,Ge=1,Ot=2,Be=4,at=8,Lt=1,on=2,rn=4,_=8,x=16,O=on|rn,A=_|x,F=O|A,H=["x","y"],X=["clientX","clientY"];function V(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(P){S(p.options.enable,[p])&&b.handler(P)},this.init()}V.prototype={handler:function(){},init:function(){this.evEl&&N(this.element,this.evEl,this.domHandler),this.evTarget&&N(this.target,this.evTarget,this.domHandler),this.evWin&&N(ce(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(ce(this.element),this.evWin,this.domHandler)}};function U(p){var g,b=p.options.inputClass;return b?g=b:j?g=Yr:fe?g=Ji:W?g=Xr:g=_t,new g(p,z)}function z(p,g,b){var P=b.pointers.length,G=b.changedPointers.length,J=g&Ge&&P-G===0,xe=g&(Be|at)&&P-G===0;b.isFirst=!!J,b.isFinal=!!xe,J&&(p.session={}),b.eventType=g,K(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function K(p,g){var b=p.session,P=g.pointers,G=P.length;b.firstInput||(b.firstInput=pe(g)),G>1&&!b.firstMultiple?b.firstMultiple=pe(g):G===1&&(b.firstMultiple=!1);var J=b.firstInput,xe=b.firstMultiple,it=xe?xe.center:J.center,ct=g.center=ye(P);g.timeStamp=u(),g.deltaTime=g.timeStamp-J.timeStamp,g.angle=yt(it,ct),g.distance=Ue(it,ct),oe(b,g),g.offsetDirection=Me(g.deltaX,g.deltaY);var bt=Pe(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=bt.x,g.overallVelocityY=bt.y,g.overallVelocity=c(bt.x)>c(bt.y)?bt.x:bt.y,g.scale=xe?Ki(xe.pointers,P):1,g.rotation=xe?wn(xe.pointers,P):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,ie(b,g);var Wt=p.element;ae(g.srcEvent.target,Wt)&&(Wt=g.srcEvent.target),g.target=Wt}function oe(p,g){var b=g.center,P=p.offsetDelta||{},G=p.prevDelta||{},J=p.prevInput||{};(g.eventType===Ge||J.eventType===Be)&&(G=p.prevDelta={x:J.deltaX||0,y:J.deltaY||0},P=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=G.x+(b.x-P.x),g.deltaY=G.y+(b.y-P.y)}function ie(p,g){var b=p.lastInterval||g,P=g.timeStamp-b.timeStamp,G,J,xe,it;if(g.eventType!=at&&(P>We||b.velocity===i)){var ct=g.deltaX-b.deltaX,bt=g.deltaY-b.deltaY,Wt=Pe(P,ct,bt);J=Wt.x,xe=Wt.y,G=c(Wt.x)>c(Wt.y)?Wt.x:Wt.y,it=Me(ct,bt),p.lastInterval=g}else G=b.velocity,J=b.velocityX,xe=b.velocityY,it=b.direction;g.velocity=G,g.velocityX=J,g.velocityY=xe,g.direction=it}function pe(p){for(var g=[],b=0;b<p.pointers.length;)g[b]={clientX:a(p.pointers[b].clientX),clientY:a(p.pointers[b].clientY)},b++;return{timeStamp:u(),pointers:g,center:ye(g),deltaX:p.deltaX,deltaY:p.deltaY}}function ye(p){var g=p.length;if(g===1)return{x:a(p[0].clientX),y:a(p[0].clientY)};for(var b=0,P=0,G=0;G<g;)b+=p[G].clientX,P+=p[G].clientY,G++;return{x:a(b/g),y:a(P/g)}}function Pe(p,g,b){return{x:g/p||0,y:b/p||0}}function Me(p,g){return p===g?Lt:c(p)>=c(g)?p<0?on:rn:g<0?_:x}function Ue(p,g,b){b||(b=H);var P=g[b[0]]-p[b[0]],G=g[b[1]]-p[b[1]];return Math.sqrt(P*P+G*G)}function yt(p,g,b){b||(b=H);var P=g[b[0]]-p[b[0]],G=g[b[1]]-p[b[1]];return Math.atan2(G,P)*180/Math.PI}function wn(p,g){return yt(g[1],g[0],X)+yt(p[1],p[0],X)}function Ki(p,g){return Ue(g[0],g[1],X)/Ue(p[0],p[1],X)}var Hn={mousedown:Ge,mousemove:Ot,mouseup:Be},Zi="mousedown",lt="mousemove mouseup";function _t(){this.evEl=Zi,this.evWin=lt,this.pressed=!1,V.apply(this,arguments)}E(_t,V,{handler:function(g){var b=Hn[g.type];b&Ge&&g.button===0&&(this.pressed=!0),b&Ot&&g.which!==1&&(b=Be),this.pressed&&(b&Be&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:Ze,srcEvent:g}))}});var Qi={pointerdown:Ge,pointermove:Ot,pointerup:Be,pointercancel:at,pointerout:at},Gy={2:te,3:Se,4:Ze,5:He},Hu="pointerdown",Wu="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Hu="MSPointerDown",Wu="MSPointerMove MSPointerUp MSPointerCancel");function Yr(){this.evEl=Hu,this.evWin=Wu,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}E(Yr,V,{handler:function(g){var b=this.store,P=!1,G=g.type.toLowerCase().replace("ms",""),J=Qi[G],xe=Gy[g.pointerType]||g.pointerType,it=xe==te,ct=Ne(b,g.pointerId,"pointerId");J&Ge&&(g.button===0||it)?ct<0&&(b.push(g),ct=b.length-1):J&(Be|at)&&(P=!0),!(ct<0)&&(b[ct]=g,this.callback(this.manager,J,{pointers:b,changedPointers:[g],pointerType:xe,srcEvent:g}),P&&b.splice(ct,1))}});var jy={touchstart:Ge,touchmove:Ot,touchend:Be,touchcancel:at},By="touchstart",Hy="touchstart touchmove touchend touchcancel";function Uu(){this.evTarget=By,this.evWin=Hy,this.started=!1,V.apply(this,arguments)}E(Uu,V,{handler:function(g){var b=jy[g.type];if(b===Ge&&(this.started=!0),!!this.started){var P=Wy.call(this,g,b);b&(Be|at)&&P[0].length-P[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:te,srcEvent:g})}}});function Wy(p,g){var b=ke(p.touches),P=ke(p.changedTouches);return g&(Be|at)&&(b=qe(b.concat(P),"identifier",!0)),[b,P]}var Uy={touchstart:Ge,touchmove:Ot,touchend:Be,touchcancel:at},Yy="touchstart touchmove touchend touchcancel";function Ji(){this.evTarget=Yy,this.targetIds={},V.apply(this,arguments)}E(Ji,V,{handler:function(g){var b=Uy[g.type],P=Xy.call(this,g,b);P&&this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:te,srcEvent:g})}});function Xy(p,g){var b=ke(p.touches),P=this.targetIds;if(g&(Ge|Ot)&&b.length===1)return P[b[0].identifier]=!0,[b,b];var G,J,xe=ke(p.changedTouches),it=[],ct=this.target;if(J=b.filter(function(bt){return ae(bt.target,ct)}),g===Ge)for(G=0;G<J.length;)P[J[G].identifier]=!0,G++;for(G=0;G<xe.length;)P[xe[G].identifier]&&it.push(xe[G]),g&(Be|at)&&delete P[xe[G].identifier],G++;if(it.length)return[qe(J.concat(it),"identifier",!0),it]}var qy=2500,Yu=25;function Xr(){V.apply(this,arguments);var p=C(this.handler,this);this.touch=new Ji(this.manager,p),this.mouse=new _t(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}E(Xr,V,{handler:function(g,b,P){var G=P.pointerType==te,J=P.pointerType==Ze;if(!(J&&P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents)){if(G)Ky.call(this,b,P);else if(J&&Zy.call(this,P))return;this.callback(g,b,P)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Ky(p,g){p&Ge?(this.primaryTouch=g.changedPointers[0].identifier,Xu.call(this,g)):p&(Be|at)&&Xu.call(this,g)}function Xu(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var P=this.lastTouches,G=function(){var J=P.indexOf(b);J>-1&&P.splice(J,1)};setTimeout(G,qy)}}function Zy(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,P=0;P<this.lastTouches.length;P++){var G=this.lastTouches[P],J=Math.abs(g-G.x),xe=Math.abs(b-G.y);if(J<=Yu&&xe<=Yu)return!0}return!1}var qu=Ke(r.style,"touchAction"),Ku=qu!==i,Zu="compute",Qu="auto",qr="manipulation",Wn="none",Ls="pan-x",Fs="pan-y",eo=Jy();function Kr(p,g){this.manager=p,this.set(g)}Kr.prototype={set:function(p){p==Zu&&(p=this.compute()),Ku&&this.manager.element.style&&eo[p]&&(this.manager.element.style[qu]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return f(this.manager.recognizers,function(g){S(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),Qy(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var P=this.actions,G=le(P,Wn)&&!eo[Wn],J=le(P,Fs)&&!eo[Fs],xe=le(P,Ls)&&!eo[Ls];if(G){var it=p.pointers.length===1,ct=p.distance<2,bt=p.deltaTime<250;if(it&&ct&&bt)return}if(!(xe&&J)&&(G||J&&b&O||xe&&b&A))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function Qy(p){if(le(p,Wn))return Wn;var g=le(p,Ls),b=le(p,Fs);return g&&b?Wn:g||b?g?Ls:Fs:le(p,qr)?qr:Qu}function Jy(){if(!Ku)return!1;var p={},g=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=g?e.CSS.supports("touch-action",b):!0}),p}var to=1,It=2,ss=4,Cn=8,an=Cn,Vs=16,Ht=32;function ln(p){this.options=v({},this.defaults,p||{}),this.id=Ce(),this.manager=null,this.options.enable=D(this.options.enable,!0),this.state=to,this.simultaneous={},this.requireFail=[]}ln.prototype={defaults:{},set:function(p){return v(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(d(p,"recognizeWith",this))return this;var g=this.simultaneous;return p=no(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return d(p,"dropRecognizeWith",this)?this:(p=no(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(d(p,"requireFailure",this))return this;var g=this.requireFail;return p=no(p,this),Ne(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(d(p,"dropRequireFailure",this))return this;p=no(p,this);var g=Ne(this.requireFail,p);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var g=this,b=this.state;function P(G){g.manager.emit(G,p)}b<Cn&&P(g.options.event+Ju(b)),P(g.options.event),p.additionalEvent&&P(p.additionalEvent),b>=Cn&&P(g.options.event+Ju(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=Ht},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(Ht|to)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!S(this.options.enable,[this,g])){this.reset(),this.state=Ht;return}this.state&(an|Vs|Ht)&&(this.state=to),this.state=this.process(g),this.state&(It|ss|Cn|Vs)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Ju(p){return p&Vs?"cancel":p&Cn?"end":p&ss?"move":p&It?"start":""}function eh(p){return p==x?"down":p==_?"up":p==on?"left":p==rn?"right":""}function no(p,g){var b=g.manager;return b?b.get(p):p}function Ft(){ln.apply(this,arguments)}E(Ft,ln,{defaults:{pointers:1},attrTest:function(p){var g=this.options.pointers;return g===0||p.pointers.length===g},process:function(p){var g=this.state,b=p.eventType,P=g&(It|ss),G=this.attrTest(p);return P&&(b&at||!G)?g|Vs:P||G?b&Be?g|Cn:g&It?g|ss:It:Ht}});function so(){Ft.apply(this,arguments),this.pX=null,this.pY=null}E(so,Ft,{defaults:{event:"pan",threshold:10,pointers:1,direction:F},getTouchAction:function(){var p=this.options.direction,g=[];return p&O&&g.push(Fs),p&A&&g.push(Ls),g},directionTest:function(p){var g=this.options,b=!0,P=p.distance,G=p.direction,J=p.deltaX,xe=p.deltaY;return G&g.direction||(g.direction&O?(G=J===0?Lt:J<0?on:rn,b=J!=this.pX,P=Math.abs(p.deltaX)):(G=xe===0?Lt:xe<0?_:x,b=xe!=this.pY,P=Math.abs(p.deltaY))),p.direction=G,b&&P>g.threshold&&G&g.direction},attrTest:function(p){return Ft.prototype.attrTest.call(this,p)&&(this.state&It||!(this.state&It)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=eh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Zr(){Ft.apply(this,arguments)}E(Zr,Ft,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Wn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&It)},emit:function(p){if(p.scale!==1){var g=p.scale<1?"in":"out";p.additionalEvent=this.options.event+g}this._super.emit.call(this,p)}});function Qr(){ln.apply(this,arguments),this._timer=null,this._input=null}E(Qr,ln,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Qu]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,G=p.deltaTime>g.time;if(this._input=p,!P||!b||p.eventType&(Be|at)&&!G)this.reset();else if(p.eventType&Ge)this.reset(),this._timer=h(function(){this.state=an,this.tryEmit()},g.time,this);else if(p.eventType&Be)return an;return Ht},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===an&&(p&&p.eventType&Be?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Jr(){Ft.apply(this,arguments)}E(Jr,Ft,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Wn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&It)}});function ea(){Ft.apply(this,arguments)}E(ea,Ft,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:O|A,pointers:1},getTouchAction:function(){return so.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(O|A)?b=p.overallVelocity:g&O?b=p.overallVelocityX:g&A&&(b=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(b)>this.options.velocity&&p.eventType&Be},emit:function(p){var g=eh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function io(){ln.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}E(io,ln,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[qr]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,G=p.deltaTime<g.time;if(this.reset(),p.eventType&Ge&&this.count===0)return this.failTimeout();if(P&&G&&b){if(p.eventType!=Be)return this.failTimeout();var J=this.pTime?p.timeStamp-this.pTime<g.interval:!0,xe=!this.pCenter||Ue(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!xe||!J?this.count=1:this.count+=1,this._input=p;var it=this.count%g.taps;if(it===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=an,this.tryEmit()},g.interval,this),It):an}return Ht},failTimeout:function(){return this._timer=h(function(){this.state=Ht},this.options.interval,this),Ht},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==an&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function cn(p,g){return g=g||{},g.recognizers=D(g.recognizers,cn.defaults.preset),new ta(p,g)}cn.VERSION="2.0.7",cn.defaults={domEvents:!1,touchAction:Zu,enable:!0,inputTarget:null,inputClass:null,preset:[[Jr,{enable:!1}],[Zr,{enable:!1},["rotate"]],[ea,{direction:O}],[so,{direction:O},["swipe"]],[io],[io,{event:"doubletap",taps:2},["tap"]],[Qr]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var e_=1,th=2;function ta(p,g){this.options=v({},cn.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=U(this),this.touchAction=new Kr(this,this.options.touchAction),nh(this,!0),f(this.options.recognizers,function(b){var P=this.add(new b[0](b[1]));b[2]&&P.recognizeWith(b[2]),b[3]&&P.requireFailure(b[3])},this)}ta.prototype={set:function(p){return v(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?th:e_},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,P=this.recognizers,G=g.curRecognizer;(!G||G&&G.state&an)&&(G=g.curRecognizer=null);for(var J=0;J<P.length;)b=P[J],g.stopped!==th&&(!G||b==G||b.canRecognizeWith(G))?b.recognize(p):b.reset(),!G&&b.state&(It|ss|Cn)&&(G=g.curRecognizer=b),J++}},get:function(p){if(p instanceof ln)return p;for(var g=this.recognizers,b=0;b<g.length;b++)if(g[b].options.event==p)return g[b];return null},add:function(p){if(d(p,"add",this))return this;var g=this.get(p.options.event);return g&&this.remove(g),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(d(p,"remove",this))return this;if(p=this.get(p),p){var g=this.recognizers,b=Ne(g,p);b!==-1&&(g.splice(b,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var b=this.handlers;return f(he(p),function(P){b[P]=b[P]||[],b[P].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return f(he(p),function(P){g?b[P]&&b[P].splice(Ne(b[P],g),1):delete b[P]}),this}},emit:function(p,g){this.options.domEvents&&t_(p,g);var b=this.handlers[p]&&this.handlers[p].slice();if(!(!b||!b.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var P=0;P<b.length;)b[P](g),P++}},destroy:function(){this.element&&nh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function nh(p,g){var b=p.element;if(b.style){var P;f(p.options.cssProps,function(G,J){P=Ke(b.style,J),g?(p.oldCssProps[P]=b.style[P],b.style[P]=G):b.style[P]=p.oldCssProps[P]||""}),g||(p.oldCssProps={})}}function t_(p,g){var b=n.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}v(cn,{INPUT_START:Ge,INPUT_MOVE:Ot,INPUT_END:Be,INPUT_CANCEL:at,STATE_POSSIBLE:to,STATE_BEGAN:It,STATE_CHANGED:ss,STATE_ENDED:Cn,STATE_RECOGNIZED:an,STATE_CANCELLED:Vs,STATE_FAILED:Ht,DIRECTION_NONE:Lt,DIRECTION_LEFT:on,DIRECTION_RIGHT:rn,DIRECTION_UP:_,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:O,DIRECTION_VERTICAL:A,DIRECTION_ALL:F,Manager:ta,Input:V,TouchAction:Kr,TouchInput:Ji,MouseInput:_t,PointerEventInput:Yr,TouchMouseInput:Xr,SingleTouchInput:Uu,Recognizer:ln,AttrRecognizer:Ft,Tap:io,Pan:so,Swipe:ea,Pinch:Zr,Rotate:Jr,Press:Qr,on:N,off:R,each:f,merge:w,extend:y,assign:v,inherit:E,bindFn:C,prefixed:Ke});var n_=typeof e<"u"?e:typeof self<"u"?self:{};n_.Hammer=cn,typeof i=="function"&&i.amd?i(function(){return cn}):t.exports?t.exports=cn:e[s]=cn})(window,document,"Hammer")})(Gc);var xm=Gc.exports;const wm=bm(xm);function jc(t){return t*Math.PI/180}function Bc(t){return t*180/Math.PI}function Mi(t,e,n,s){const i=t-n,o=e-s;return Math.sqrt(i*i+o*o)}function Hc(t,e,n,s){const i=n-t,o=s-e;return Math.atan2(o,i)}function Wc(t,e){return{x:Math.cos(t)*e,y:Math.sin(t)*e}}function Uc(t,e){const n=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return{x:t/=n,y:e/=n}}const Os=Math.PI*2;function Yc(t,e,n,s){const i=t*s-e*n<0?-1:1;let o=t*n+e*s;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function Cm(t,e,n,s,i,o,r,l,a,c){const u=c*(t-n)/2+a*(e-s)/2,h=-a*(t-n)/2+c*(e-s)/2,d=r*r,f=l*l,m=u*u,v=h*h;let y=d*f-d*v-f*m;y<0&&(y=0),y/=d*v+f*m,y=Math.sqrt(y)*(i===o?-1:1);const w=y*r/l*h,E=y*-l/r*u,C=c*w-a*E+(t+n)/2,S=a*w+c*E+(e+s)/2,D=(u-w)/r,N=(h-E)/l,R=(-u-w)/r,ae=(-h-E)/l,le=Yc(1,0,D,N);let he=Yc(D,N,R,ae);return o===0&&he>0&&(he-=Os),o===1&&he<0&&(he+=Os),[C,S,le,he]}function Em(t,e){const n=1.3333333333333333*Math.tan(e/4),s=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),r=Math.sin(t+e);return[s,i,s-i*n,i+s*n,o+r*n,r-o*n,o,r]}function Sm(t,e,n,s,i,o,r,l,a){const c=Math.sin(a*Os/360),u=Math.cos(a*Os/360),h=u*(t-n)/2+c*(e-s)/2,d=-c*(t-n)/2+u*(e-s)/2;if(h===0&&d===0)return[];if(r===0||l===0)return[];r=Math.abs(r),l=Math.abs(l);const f=h*h/(r*r)+d*d/(l*l);f>1&&(r*=Math.sqrt(f),l*=Math.sqrt(f));const m=Cm(t,e,n,s,i,o,r,l,c,u),v=[];let y=m[2],w=m[3];const E=Math.max(Math.ceil(Math.abs(w)/(Os/4)),1);w/=E;for(let C=0;C<E;C++)v.push(Em(y,w)),y+=w;return v.map(C=>{for(let S=0;S<C.length;S+=2){let D=C[S+0],N=C[S+1];D*=r,N*=l;const R=u*D-c*N,ae=c*D+u*N;C[S+0]=R+m[0],C[S+1]=ae+m[1]}return C})}function Xc(t,e,n,s,i,o){return[t/3+.6666666666666666*n,e/3+.6666666666666666*s,i/3+.6666666666666666*n,o/3+.6666666666666666*s,i,o]}function Ri(t,e,n,s){return[t,e,n,s,n,s]}class qc{static createSVGElement(e="path"){return document.createElementNS.call(document,"http://www.w3.org/2000/svg",e)}static createSvgPath(e){const n=this.createSVGElement("path");return n.setAttribute("d",e),n}static downloadFromSVGElement(e,n="shape"){Vc(lm(e),`${n}.svg`)}static downloadFromSVGString(e,n="shape"){Vc(Fc(e),`${n}.svg`)}static SVGParsedPathArgsLength={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4)}static parseSVGPath(e){const n=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,o)=>{let r=i.toLowerCase();const l=sp(o);for(r=="m"&&l.length>this.SVGParsedPathArgsLength[r]&&(n.push([i,...l.splice(0,this.SVGParsedPathArgsLength[r])]),r="l",i=i=="m"?"l":"L");l.length;){if(l.length<this.SVGParsedPathArgsLength[r])throw new Error(`SVGPathD ! : ${s}`);n.push([i,...l.splice(0,this.SVGParsedPathArgsLength[r])])}return r=="z"&&n.push([i]),""}),n}static absolutizeSVGPath(e){let n=0,s=0,i=0,o=0;return e.map(function(r){const l=r[0],a=l.toUpperCase();if(l!=a)switch(r[0]=a,l){case"a":r[6]+=i,r[7]+=o;break;case"v":r[1]+=o;break;case"h":r[1]+=i;break;default:for(let c=1;c<r.length;)r[c++]+=i,r[c++]+=o}switch(a){case"Z":i=n,o=s;break;case"H":i=r[1];break;case"V":o=r[1];break;case"M":i=n=r[1],o=s=r[2];break;default:i=r[r.length-2],o=r[r.length-1]}return r})}static relativeSVGPath(e){let n=0,s=0,i=0,o=0;return e.map(function(r){const l=r[0],a=l.toLowerCase();if(l!=a)switch(r[0]=a,l){case"A":r[6]-=i,r[7]-=o;break;case"V":r[1]-=o;break;case"H":r[1]-=i;break;default:for(let c=1;c<r.length;)r[c++]-=i,r[c++]-=o}switch(a){case"z":i=n,o=s;break;case"h":i+=r[1];break;case"v":o+=r[1];break;case"m":i+=r[1],o+=r[2],n+=r[1],s+=r[2];break;default:i+=r[r.length-2],o+=r[r.length-1]}return r})}static normalizeSVGPath(e){let n=[],s=0,i=0,o=0,r=0,l=0,a=0,c=0,u=0,h;for(let d=0,f=e.length;d<f;d++){let m=e[d];const v=m[0];switch(v){case"M":s=m[1],i=m[2];break;case"A":const y=Sm(o,r,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!y.length)continue;y.forEach((C,S)=>{const[D,N,R,ae,le,he,Ne,ke]=C;m=["C",R,ae,le,he,Ne,ke],S<y.length-1&&n.push(m)});break;case"S":let w=o,E=r;(h=="C"||h=="S")&&(w+=w-c,E+=E-u),m=["C",w,E,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(l=o*2-l,a=r*2-a):(l=o,a=r),m=["C",...Xc(o,r,l,a,m[1],m[2])];break;case"Q":l=m[1],a=m[2],m=["C",...Xc(o,r,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...Ri(o,r,m[1],m[2])];break;case"H":m=["C",...Ri(o,r,m[1],r)];break;case"V":m=["C",...Ri(o,r,o,m[1])];break;case"Z":m=["C",...Ri(o,r,s,i)];break}h=v,o=m[m.length-2],r=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=o,u=r),n.push(m)}return n}static zvhToLSVGPath(e){let n=[],s=["L",0,0],i;for(let o=0,r=e.length;o<r;o++){let l=e[o];switch(l[0]){case"M":s=["L",l[1],l[2]],n.push(l);break;case"Z":n.push(s);break;case"H":i=n[n.length-1]||["L",0,0],n.push(["L",l[1],i[i.length-1]]);break;case"V":i=n[n.length-1]||["L",0,0],n.push(["L",i[i.length-2],l[1]]);break;default:n.push(l)}}return n}static longhandSVGPath(e){const n={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,o=0;for(let r=0,l=e.length;r<l;r++){const a=e[r],c=n[a[0]];c&&(a[0]=c.to,s&&(s[0]===c.to?(i=2*Number(s[c.x+2])-Number(s[c.x]),o=2*Number(s[c.x+3])-Number(s[c.x+1])):(i=Number(s[s.length-2]),o=Number(s[s.length-1]))),a.splice(1,0,i,o)),s=a}return e}static SVGPathDataToD(e){return e.map(n=>{switch(n[0].toLowerCase()){case"a":return`${n[0]} ${n[1]},${n[2]} ${n[3]} ${n[4]},${n[5]} ${n[6]},${n[7]}`;case"c":return`${n[0]} ${n[1]},${n[2]} ${n[3]},${n[4]} ${n[5]},${n[6]}`;case"s":case"q":return`${n[0]} ${n[1]},${n[2]} ${n[3]},${n[4]}`;default:return n[0]+" "+n.slice(1).join(",")}}).join(" ")}static absoluteSVGPathD(e){return this.SVGPathDataToD(this.absolutizeSVGPath(this.parseSVGPath(e)))}static walkSVGPathDCacheMap=new Map;static getWalkSVGPathD(e){if(this.walkSVGPathDCacheMap.has(e))return this.walkSVGPathDCacheMap.get(e);const n={at:s=>this.walkSVGPathD(e,s).pos,length:()=>this.walkSVGPathD(e).length};return this.walkSVGPathDCacheMap.set(e,n),n}static walkSVGPathD(e,n){const s=this.longhandSVGPath(this.zvhToLSVGPath(this.absolutizeSVGPath(this.parseSVGPath(e))));function i(d,f){return Math.pow(1-f,3)*u[0]+3*Math.pow(1-f,2)*f*d[1]+3*(1-f)*Math.pow(f,2)*d[3]+Math.pow(f,3)*d[5]}function o(d,f){return Math.pow(1-f,3)*u[1]+3*Math.pow(1-f,2)*f*d[2]+3*(1-f)*Math.pow(f,2)*d[4]+Math.pow(f,3)*d[6]}function r(d,f){return Math.pow(1-f,2)*u[0]+2*(1-f)*f*d[1]+Math.pow(f,2)*d[3]}function l(d,f){return Math.pow(1-f,2)*u[1]+2*(1-f)*f*d[2]+Math.pow(f,2)*d[4]}let a=[0,0],c=[0,0,0],u=[0,0],h=0;for(let d=0,f=s.length;d<f;d++){let m=s[d];if(m[0]==="M"){if(a[0]=m[1],a[1]=m[2],n===0)return{length:h,pos:a}}else if(m[0]==="C"){c[0]=u[0]=a[0],c[1]=u[1]=a[1],c[2]=h;let v=100;for(let y=0;y<=v;y++){let w=y/v,E=i(m,w),C=o(m,w);if(h+=Mi(a[0],a[1],E,C),a[0]=E,a[1]=C,typeof n=="number"&&h>=n){let S=(h-n)/(h-c[2]),D=[a[0]*(1-S)+c[0]*S,a[1]*(1-S)+c[1]*S];return{length:h,pos:D}}c[0]=a[0],c[1]=a[1],c[2]=h}}else if(m[0]==="Q"){c[0]=u[0]=a[0],c[1]=u[1]=a[1],c[2]=h;let v=100;for(let y=0;y<=v;y++){let w=y/v,E=r(m,w),C=l(m,w);if(h+=Mi(a[0],a[1],E,C),a[0]=E,a[1]=C,typeof n=="number"&&h>=n){let S=(h-n)/(h-c[2]),D=[a[0]*(1-S)+c[0]*S,a[1]*(1-S)+c[1]*S];return{length:h,pos:D}}c[0]=a[0],c[1]=a[1],c[2]=h}}else if(m[0]==="L"){if(c[0]=a[0],c[1]=a[1],c[2]=h,h+=Mi(a[0],a[1],m[1],m[2]),a[0]=m[1],a[1]=m[2],typeof n=="number"&&h>=n){let v=(h-n)/(h-c[2]),y=[a[0]*(1-v)+c[0]*v,a[1]*(1-v)+c[1]*v];return{length:h,pos:y}}c[0]=a[0],c[1]=a[1],c[2]=h}}return{length:h,pos:a}}static catmullRom2bezier(e){let n=[];for(let s=0,i=e.length;i-2>s;s+=2){let o;s==0?o=[{x:e[s],y:e[s+1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}]:i-4==s?o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+2],y:e[s+3]}]:o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}];const r=[{x:o[1].x,y:o[1].y},{x:(-o[0].x+6*o[1].x+o[2].x)/6,y:(-o[0].y+6*o[1].y+o[2].y)/6},{x:(o[1].x+6*o[2].x-o[3].x)/6,y:(o[1].y+6*o[2].y-o[3].y)/6},{x:o[2].x,y:o[2].y}];n.push(["C",r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y])}return n}static findDotsAtSegment(e,n,s,i,o,r,l,a,c){let u=1-c,h=Math.pow(u,3),d=Math.pow(u,2),f=c*c,m=f*c,v=h*e+d*3*c*s+u*3*c*c*o+m*l,y=h*n+d*3*c*i+u*3*c*c*r+m*a,w=e+2*c*(s-e)+f*(o-2*s+e),E=n+2*c*(i-n)+f*(r-2*i+n),C=s+2*c*(o-s)+f*(l-2*o+s),S=i+2*c*(r-i)+f*(a-2*r+i),D=u*e+c*s,N=u*n+c*i,R=u*o+c*l,ae=u*r+c*a,le=90-Math.atan2(w-C,E-S)*180/Math.PI;return(w>C||E<S)&&(le+=180),{x:v,y,m:{x:w,y:E},n:{x:C,y:S},start:{x:D,y:N},end:{x:R,y:ae},alpha:le}}static findDotAtSegment(e,n,s,i,o,r,l,a,c){const u=1-c;return{x:Math.pow(u,3)*e+Math.pow(u,2)*3*c*s+u*3*c*c*o+Math.pow(c,3)*l,y:Math.pow(u,3)*n+Math.pow(u,2)*3*c*i+u*3*c*c*r+Math.pow(c,3)*a}}static curveDim(e,n,s,i,o,r,l,a){const c=[],u=[[],[]];let h,d,f,m,v,y,w,E;for(let N=0;N<2;++N){if(N===0?(d=6*e-12*s+6*o,h=-3*e+9*s-9*o+3*l,f=3*s-3*e):(d=6*n-12*i+6*r,h=-3*n+9*i-9*r+3*a,f=3*i-3*n),Math.abs(h)<1e-12){if(Math.abs(d)<1e-12)continue;m=-f/d,m>0&&m<1&&c.push(m);continue}w=d*d-4*f*h,E=Math.sqrt(w),!(w<0)&&(v=(-d+E)/(2*h),v>0&&v<1&&c.push(v),y=(-d-E)/(2*h),y>0&&y<1&&c.push(y))}let C=c.length,S;const D=C;for(;C--;)m=c[C],S=1-m,u[0][C]=S*S*S*e+3*S*S*m*s+3*S*m*m*o+m*m*m*l,u[1][C]=S*S*S*n+3*S*S*m*i+3*S*m*m*r+m*m*m*a;return u[0][D]=e,u[1][D]=n,u[0][D+1]=l,u[1][D+1]=a,u[0].length=u[1].length=D+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}}const Et=qc;class jn{id;x;y;rotate;scale;vx;vy;ax;ay;mass;XYIsShapeCenter=!1;path2d=new Path2D;isMouseInShape=!1;isDragging=!1;constructor(e){this.id=Qf(),this.x=e?.x||0,this.y=e?.y||0,this.rotate=e?.rotate||0,this.scale=e?.scale||1,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0}getBoundingClientRect(){return null}toSVGPathD(){const e=[],n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?e.push(...n):e.push(n),Et.SVGPathDataToD(e)}distanceTo(e){return Mi(this.x,this.y,e.x,e.y)}angleTo(e){return this.rotate=Hc(this.x,this.y,e.x,e.y),this.rotate}velocityTo(e){return{vx:e.x-this.x,vy:e.y-this.y}}followTo(e,n=3){const s=this.angleTo(e),{x:i,y:o}=Wc(s,n);this.vx=i,this.vy=o,this.nextFrame()}followAccelerationTo(e,n=.05){const s=this.angleTo(e),{x:i,y:o}=Wc(s,n);this.ax=i,this.ay=o,this.nextFrame()}nextFrame(e){const n=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=n,s>0){const i=Math.atan2(this.vy,this.vx);let o=Math.sqrt(this.vx*this.vx+this.vy*this.vy);o>s?o-=s:o=0,this.vx=Math.cos(i)*o,this.vy=Math.sin(i)*o}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,n){const s=n?.gravity??0,i=n?.friction??1,o=n?.easing??.05,r=e.x-this.x,l=e.y-this.y;this.vx=r*o,this.vy=l*o,this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,n){const s=n?.gravity??0,i=n?.friction??.95,o=n?.spring??.03;(Array.isArray(e)?e:[e]).forEach(l=>{const a=l.x-this.x,c=l.y-this.y,u=a*o,h=c*o;this.vx+=u,this.vy+=h}),this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(e,n){const s=n?.gravity??0,i=n?.friction??.95,o=n?.spring??.03,r=n?.springLength??100,l=this.angleTo(e);this.nextFrameSpringTo(new ht({x:e.x-Math.cos(l)*r,y:e.y-Math.sin(l)*r}),{spring:o,friction:i,gravity:s})}}class At extends jn{width;height;borderRadius;centerX;centerY;rMin;rMax;r;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0,this.centerX=this.x+this.width/2,this.centerY=this.y+this.height/2,this.rMin=Math.min(this.width,this.height)/2,this.rMax=Math.max(this.width,this.height)/2,this.r=Math.sqrt(this.width*this.width+this.height*this.height)/2}getBoundingClientRect(){return this}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["M",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(e){e.beginPath(),this.borderRadius<=0?e.rect(0,0,this.width,this.height):(e.moveTo(0,this.borderRadius),e.lineTo(0,this.height-this.borderRadius),e.quadraticCurveTo(0,this.height,this.borderRadius,this.height),e.lineTo(this.width-this.borderRadius,this.height),e.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),e.lineTo(this.width,this.borderRadius),e.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),e.lineTo(this.borderRadius,0),e.quadraticCurveTo(0,0,0,this.borderRadius)),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e,n){return e>=this.x&&e<=this.x+this.width&&n>=this.y&&n<=this.y+this.height}clone(e){return new At({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}class ht extends jn{radius;constructor(e){super(e),this.XYIsShapeCenter=!0,this.radius=e?.radius||0}getBoundingClientRect(){return new At({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return["M",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}toArray(){return[this.x,this.y]}setX(e){this.x=e}setY(e){this.y=e}setXY(e,n){this.x=e,this.y=n}eq(e){return this.x===e.x&&this.y===e.y}midPointBtw(e){return new ht({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}clone(e){return new ht({x:e.x,y:e.y,radius:e.radius})}nextFrameCollisionTo(e){const n=e.x-this.x,s=e.y-this.y;if(Math.sqrt(n*n+s*s)<this.radius+e.radius){const r=Math.atan2(s,n),l=Math.sin(r),a=Math.cos(r),c={x:0,y:0},u=o(n,s,l,a,!0),h=o(this.vx,this.vy,l,a,!0),d=o(e.vx,e.vy,l,a,!0),f=h.x-d.x;h.x=((this.mass-e.mass)*h.x+2*e.mass*d.x)/(this.mass+e.mass),d.x=f+h.x;const m=Math.abs(h.x)+Math.abs(d.x),v=this.radius+e.radius-Math.abs(c.x-u.x);c.x+=h.x/m*v,u.x+=d.x/m*v;const y=o(c.x,c.y,l,a,!1),w=o(u.x,u.y,l,a,!1);e.x=this.x+w.x,e.y=this.y+w.y,this.x=this.x+y.x,this.y=this.y+y.y;const E=o(h.x,h.y,l,a,!1),C=o(d.x,d.y,l,a,!1);this.vx=E.x,this.vy=E.y,e.vx=C.x,e.vy=C.y}function o(r,l,a,c,u=!1){return{x:u?r*c+l*a:r*c-l*a,y:u?l*c-r*a:l*c+r*a}}}nextFrameBounce(e,n){const s=e.x,i=e.y,o=e.x+e.width,r=e.y+e.height,l=n?.bounce??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=l):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=l),this.y+this.radius>r?(this.y=r-this.radius,this.vy*=l):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=l)}}class km{constructor(){}static getFormatKeyNames(e){const n=vm(),s=[];return e.ctrl&&s.push(n?"Cmd":"Ctrl"),e.shift&&s.push("Shift"),e.alt&&s.push("Alt"),typeof e.key=="string"?s.push(tr(e.key)):Array.isArray(e.key)&&(e.key.map(i=>tr(i)),s.push(...e.key)),s}static matchKeyScheme(e,n){const s=e.ctrl??!1,i=e.shift??!1,o=e.alt??!1;if(e.exact)return(s===n.metaKey||s===n.ctrlKey)&&i===n.shiftKey&&o===n.altKey;const r=[];return s&&r.push(s===n.metaKey||s===n.ctrlKey),i&&r.push(i===n.shiftKey),o&&r.push(o===n.altKey),r.every(l=>l)}static on(e,n){if(e?.key===void 0||e?.key===null)return n;const s=e?.target??window;let i=!1;const o=this.getFormatKeyNames(e),r=l=>{if(l.stopPropagation(),!i&&l.key!=="Control"&&l.key!=="Meta"&&l.key!=="Shift"&&l.key!=="Option"&&l.key!=="Alt"&&o.find(a=>a.toLowerCase()===l.key.toLowerCase())&&this.matchKeyScheme(e,l)){l.preventDefault();const a=n(l);if(typeof a!="function")return;const c=u=>{u.preventDefault(),a(u),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return n.title=e?.title??"",n.formatedKeyNames=o,n.pause=()=>i=!0,n.restart=()=>i=!1,n.removeListener=()=>s.removeEventListener("keydown",r),s.addEventListener("keydown",r),n}}class we extends rc{container;mousePoint;hammer;domEventRemoveListeners=[];constructor(e=document.documentElement,n=!0){super(),this.container=e,this.hammer=new wm(this.container),this.mousePoint=new ht({x:0,y:0}),n&&this.start()}_emitDebounce=ip((e,...n)=>super.emit(e,...n),50);emit(e,...n){switch(e){case"panLeft":case"panRight":this._emitDebounce(e,...n);break;default:super.emit(e,...n);break}return this}static singleton;static globalScrollChangeCallbacks=[];static get page(){if(we.singleton)return we.singleton;we.singleton=new we,we.singleton.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{cm().then(n=>um(n[0])).then(n=>{we.singleton.emit("openFile",n)}).catch(n=>{we.singleton.emit("openFileError",n)})}),we.singleton.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>we.globalScrollChangeCallbacks.forEach(n=>n());return we.singleton.registerGlobalScrollChange=n=>{we.globalScrollChangeCallbacks.push(n),we.globalScrollChangeCallbacks.length==1&&document.addEventListener("scroll",e)},we.singleton.removeGlobalScrollChange=n=>{const s=we.globalScrollChangeCallbacks.findIndex(i=>i==n);s>=0&&(we.globalScrollChangeCallbacks.splice(s,1),we.globalScrollChangeCallbacks.length==0&&document.removeEventListener("scroll",e))},we.singleton}start(){this.initMouseEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventRemoveListeners(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParentWhenScrollChange()}restart(){this.destroy(),this.start()}destroy(){this.domEventRemoveListeners.forEach(e=>e()),this.removeAllListeners()}addDOMEventRemoveListeners(e){this.domEventRemoveListeners.push(e)}setMousePoint(e){const n=mm(this.container,e);return this.mousePoint.x=n.x,this.mousePoint.y=n.y,n}initMouseEventListeners(){const e=M=>{this.emit("mouseDown",M),this.container.style.userSelect="none"},n=M=>{this.emit("mouseUp",M),this.container.style.userSelect=""},s=M=>{this.emit("mouseMove",M)},i=M=>{this.emit("mouseOver",M)},o=M=>{this.emit("mouseOut",M),this.container.style.userSelect=""},r=M=>{this.emit("mouseClick",M)},l=M=>{this.emit("mouseDoubleClick",M)},a=M=>{this.emit("mouseWheel",M)},c=M=>{this.emit("mouseContextMenu",M)},u=M=>{this.emit("touchStart",M),this.container.style.userSelect="none"},h=M=>{this.emit("touchEnd",M),this.container.style.userSelect=""},d=M=>{this.emit("touchCancel",M),this.container.style.userSelect=""},f=M=>{this.emit("touchMove",M)},m=M=>{this.emit("pointerDown",M),this.container.style.userSelect="none"},v=M=>{this.emit("pointerUp",M),this.container.style.userSelect=""},y=M=>{this.emit("pointerCancel",M),this.container.style.userSelect=""},w=M=>{this.emit("pointerMove",M)},E=M=>{this.emit("pan",M)},C=M=>{this.emit("panStart",M),this.container.style.userSelect="none"},S=M=>{this.emit("panMove",M)},D=M=>{this.emit("panEnd",M),this.container.style.userSelect=""},N=M=>{this.emit("panCancel",M),this.container.style.userSelect=""},R=M=>{this.emit("panLeft",M)},ae=M=>{this.emit("panRight",M)},le=M=>{this.emit("panUp",M),this.container.style.userSelect=""},he=M=>{this.emit("panDown",M),this.container.style.userSelect="none"},Ne=M=>{this.emit("pinch",M)},ke=M=>{this.emit("press",M)},qe=M=>{this.emit("rotate",M)},Ke=M=>{this.emit("swipe",M)},ze=M=>{this.emit("tap",M)},Ce=M=>{!M.target||this.container==M.target||this.container.contains(M.target)||this.emit("tapOutSide",M)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",n),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",o),this.container.addEventListener("click",r),this.container.addEventListener("dblclick",l),this.container.addEventListener("wheel",a),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",d),this.container.addEventListener("touchmove",f),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",v),this.container.addEventListener("pointercancel",y),this.container.addEventListener("pointermove",w),this.hammer.on("pan",E),this.hammer.on("panstart",C),this.hammer.on("panmove",S),this.hammer.on("panend",D),this.hammer.on("pancancel",N),this.hammer.on("panleft",R),this.hammer.on("panright",ae),this.hammer.on("panup",le),this.hammer.on("pandown",he),this.hammer.on("pinch",Ne),this.hammer.on("press",ke),this.hammer.on("rotate",qe),this.hammer.on("swipe",Ke),this.hammer.on("tap",ze),document.addEventListener("pointerdown",Ce,!1);const ce=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",n),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",o),this.container.removeEventListener("click",r),this.container.removeEventListener("dblclick",l),this.container.removeEventListener("wheel",a),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",d),this.container.removeEventListener("touchmove",f),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",v),this.container.removeEventListener("pointercancel",y),this.container.removeEventListener("pointermove",w),this.hammer.off("pan",E),this.hammer.off("panstart",C),this.hammer.off("panmove",S),this.hammer.off("panend",D),this.hammer.off("pancancel",N),this.hammer.off("panleft",R),this.hammer.off("panright",ae),this.hammer.off("panup",le),this.hammer.off("pandown",he),this.hammer.off("pinch",Ne),this.hammer.off("press",ke),this.hammer.off("rotate",qe),this.hammer.off("swipe",Ke),this.hammer.off("tap",ze),document.removeEventListener("pointerdown",Ce,!1),document.removeEventListener("touchstart",Ce,!1),document.removeEventListener("mousedown",Ce,!1)};return this.addDOMEventRemoveListeners(ce),ce}registerKeyDown(e,n,s){const i=km.on(e,r=>(n(r,i.formatedKeyNames,i.pause,i.restart),s)),o=()=>{i.removeListener?.()};return this.addDOMEventRemoveListeners(o),o}registerResizeObserver(){const e=new ResizeObserver(s=>{const{width:i,height:o}=s[0].contentRect;this.emit("resize",i,o)});e.observe(this.container);const n=()=>{e.unobserve(this.container)};return this.addDOMEventRemoveListeners(n),n}registerMatchMediaChange(e){let n="";switch(e){case"(prefers-color-scheme: dark)":n="matchMediaChangePrefersColorSchemeDark";break;default:n=e;break}const s=o=>{this.emit(n,o.matches)};window.matchMedia(e).addEventListener("change",s);const i=()=>{window.matchMedia(e).removeEventListener("change",s)};return this.addDOMEventRemoveListeners(i),i}registerElementDisplayInParentWhenScrollChange(e){const n={threshold:e?.threshold||.5,root:e?.parentElement},s=new IntersectionObserver((o,r)=>{let l=o[0];if(o.length>1){const c=o.find(u=>u.isIntersecting);c&&(l=c)}l.isIntersecting&&l.intersectionRatio>=n.threshold?this.emit("showInParent"):this.emit("showOffParent")},n);s.observe(this.container);const i=()=>{s.unobserve(this.container)};return this.addDOMEventRemoveListeners(i),i}registerPullDownRefresh(e){const n=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=this.mousePoint.y-s,i>0&&i<n&&this.emit("pullDownIng",i)},end:()=>{i>=n&&this.emit("pullDown")}})}registerPullUpLoading(e){const n=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=s-this.mousePoint.y,i>0&&i<n&&this.emit("pullUpIng",i)},end:()=>{i>=n&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const n=r=>{this.container.setPointerCapture(r.pointerId),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("pointerDown",n),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",i);const o=()=>{this.off("pointerDown",n),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",i)};return this.addDOMEventRemoveListeners(o),o}captureMoveUseMouse(e){const n=r=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("mouseDown",n);const o=()=>{this.off("mouseDown",n)};return this.addDOMEventRemoveListeners(o),o}captureMoveUseTouch(e){const n=r=>{r.preventDefault(),e?.start?.(r)},s=r=>{e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("touchStart",n),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",i);const o=()=>{this.off("touchStart",n),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",i)};return this.addDOMEventRemoveListeners(o),o}static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class wr{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",n=>{n.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const n=document.createElement("iframe"),s=document.createElement("video"),i=document.createElement("source"),o=new MediaSource;o.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(o),i.media="(min-width:10px)",s.append(i),n.width="5",n.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(n),n.contentDocument?.body.append(s),setTimeout(()=>{n.width="15"}),setTimeout(()=>{n.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(n=>{e.play().then(()=>{e.autoplay=!0,n(!0)}).catch(()=>{wr.setAutoPlayWhenClick(e),n(!1)})})}static setAutoPlayWhenClick(e){function n(){e.autoplay=!0,e.play(),document.removeEventListener("click",n),document.removeEventListener("touchend",n)}document.addEventListener("click",n),document.addEventListener("touchend",n)}}class Tm extends rc{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=Zf(this.source);if(e===0){this.emit("finish");return}let n,s,i=Ql(this.source,0);for(let o=1;o<e;o++)n=s,s=i,i=Ql(this.source,o),this.raw+=s,s&&this.step(s,i,n);i&&this.step(i,void 0,s),this.emit("finish")}step(e,n,s){e==`
54
- `&&this.emit("newline"),this.act(e,n,s)}act(e,n,s){switch(this.mode){case"text":switch(e){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=e,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=e;break}break;case"entity":tn("whitespace",e)?(this.textchunk+=ee.entity2text(this.entity),this.mode="text"):e==";"?(this.textchunk+=ee.entity2text(this.entity+e),this.mode="text"):this.entity+=e;break;case"special":if(s=="!"&&e=="-"&&n=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&e=="["){this.mode="cdata",this.textchunk="";break}if(e==">"||e=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=e;break;case"cdata":if(s=="]"&&e=="]"&&n==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,n,s)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":n==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&s=="-"&&n==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):e=="eof"?this.emit("comment",this.textchunk):this.textchunk+=e;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(e=="?"&&n==">"){this.mode="declaration end";break}e=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=e;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(e=="eof"){this.emit("text","<");break}if(!tn("whitespace",e)){if(this.mode="tag name",e=="/"){this.mode="close tag name start";break}else if(e=="!"){this.mode="special",this.textchunk="";break}else if(e=="?"){this.mode="declaration";break}this.act(e,n,s)}break;case"close tag name start":tn("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,n,s));break;case"close tag name":if(tn("whitespace",e))this.tagname=this.nodename;else switch(e){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=e);break}break;case"tag name":if(tn("whitespace",e))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(e){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=n,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=e;break}break;case"attr start":tn("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,n,s));break;case"attr":if(tn("whitespace",e)||e=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(e){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=e;break}break;case"attr value start":if(!tn("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,n,s)}break;case"attr value":if(tn("whitespace",e)&&!this.quote)this.mode="attr start";else if(e==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(e){case'"':case"'":this.quote==e&&s!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=e;break}break}}}function Kc(t,e){if(typeof e<"u")window.localStorage.setItem(t,e);else return window.localStorage.getItem(t)??void 0}we.page.on("matchMediaChangePrefersColorSchemeDark",t=>{Cr(t?"dark":"light")}),Pm();function Cr(t){Kc("colorScheme",t),document.documentElement.classList.toggle("dark",t=="dark")}function Pm(){const t=Kc("colorScheme");if(t=="dark"||t=="light")return Cr(t),t;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Cr(e),e}}const q={safeAreaTop:ee.getCSSVar("--safe-area-inset-top"),safeAreaRight:ee.getCSSVar("--safe-area-inset-right"),safeAreaBottom:ee.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:ee.getCSSVar("--safe-area-inset-left"),colorPrimary:ee.getCSSVar("--color-primary")||"#5078f0",colorRed:ee.getCSSVar("--color-red")||"#ff5050",colorOrange:ee.getCSSVar("--color-orange")||"#fa8c00",colorYellow:ee.getCSSVar("--color-yellow")||"#fadc32",colorGreen:ee.getCSSVar("--color-green")||"#00c878",colorBlue:ee.getCSSVar("--color-blue")||"#00b4fa",colorPurple:ee.getCSSVar("--color-purple")||"#6464fa",colorBlack:ee.getCSSVar("--color-black")||"#001428",colorGray00:ee.getCSSVar("--color-gray-00")||"#000000",colorGray33:ee.getCSSVar("--color-gray-33")||"#333333",colorGray66:ee.getCSSVar("--color-gray-66")||"#666666",colorGray99:ee.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:ee.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:ee.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:ee.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:ee.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:ee.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:ee.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:ee.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:ee.getCSSVar("--font-line-height")||"1,4",fontSize32:ee.getCSSVar("--font-size-32")||"32px",fontSize24:ee.getCSSVar("--font-size-24")||"24px",fontSize20:ee.getCSSVar("--font-size-20")||"20px",fontSize18:ee.getCSSVar("--font-size-18")||"18px",fontSize16:ee.getCSSVar("--font-size-16")||"16px",fontSize14:ee.getCSSVar("--font-size-14")||"14px",fontSize12:ee.getCSSVar("--font-size-12")||"12px",fontSize11:ee.getCSSVar("--font-size-11")||"11px",gap4:ee.getCSSVar("--gap-4")||"4px",gap8:ee.getCSSVar("--gap-8")||"8px",gap12:ee.getCSSVar("--gap-12")||"12px",gap16:ee.getCSSVar("--gap-16")||"16px",gap20:ee.getCSSVar("--gap-20")||"20px",gap40:ee.getCSSVar("--gap-40")||"40px",height44:ee.getCSSVar("--height-44")||"44px",height32:ee.getCSSVar("--height-32")||"32px",borderRadius:ee.getCSSVar("--border-radius")||"4px"},Nm=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,Om=function(t,e=1){const n=t>>16&255,s=t>>8&255,i=t&255,o=e<0?0:e>1?1:e;return o===1?"rgb("+n+","+s+","+i+")":"rgba("+n+","+s+","+i+","+o+")"},Zc=function(t){return t[0]==="#"&&(t=t.slice(1)),parseInt(t,16)},Qc=function(t,e=1){const n=Zc(t);return Om(n,e)};function sn(t,e){let n=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16);n==0&&(n=32),s==0&&(s=32),i==0&&(i=32),n=n*(100+e)/100,s=s*(100+e)/100,i=i*(100+e)/100,n=n<255?n:255,s=s<255?s:255,i=i<255?i:255,n=Math.round(n),s=Math.round(s),i=Math.round(i);const o=n.toString(16).length==1?"0"+n.toString(16):n.toString(16),r=s.toString(16).length==1?"0"+s.toString(16):s.toString(16),l=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+o+r+l}const Ai=new Map;async function Jc(t){return new Promise((e,n)=>{Im(t,(s,i)=>s?n(s):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const Im=(t,e)=>{if(Ai.has(t))return e(null,Ai.get(t));const n=new Image;n.onload=function(){Ai.set(t,{width:n.naturalWidth||n.width,height:n.naturalHeight||n.height,element:n}),e(null,Ai.get(t))},n.onerror=function(s){e(s,null)},n.src=t},eu=[1,0,0,1,0,0],tu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class dt{value;matrix3d;isEverTo3d=!1;_prev_translate_z=0;_prev_rotate=0;_prev_rotate_x=0;_prev_rotate_y=0;_prev_rotate_z=0;_prev_scale_z=1;constructor(e=eu){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(eu),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,n,s=0,i=0){const o=e-s,r=n-i;return e=o*this.value[0]+r*this.value[2]+this.value[4],n=o*this.value[1]+r*this.value[3]+this.value[5],[e+s,n+i]}fromString(e){const n=Zl("number",e);return n.length===6?n.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix3D(e=this.matrix3d){const n=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return e?(e.value=n,e):new Jn(n)}clone(){return new dt(this.value)}multiply(e){const n=this.value;let s;e instanceof dt?s=e.value:s=e;const i=n[0]*s[0]+n[2]*s[1],o=n[1]*s[0]+n[3]*s[1],r=n[0]*s[2]+n[2]*s[3],l=n[1]*s[2]+n[3]*s[3],a=n[0]*s[4]+n[2]*s[5]+n[4],c=n[1]*s[4]+n[3]*s[5]+n[5];return n[0]=i,n[1]=o,n[2]=r,n[3]=l,n[4]=a,n[5]=c,this}inverse(){const e=new dt(this.value),n=e.value,s=1/(n[0]*n[3]-n[1]*n[2]),i=n[3]*s,o=-n[1]*s,r=-n[2]*s,l=n[0]*s,a=s*(n[2]*n[5]-n[3]*n[4]),c=s*(n[1]*n[4]-n[0]*n[5]);return n[0]=i,n[1]=o,n[2]=r,n[3]=l,n[4]=a,n[5]=c,e}offset(e=0,n=0){return[e-this.value[4],n-this.value[5]]}translate(e,n){return this.matrix3d.translate(e,n,0),this.multiply([1,0,0,1,e,n])}translateTo(e,n){const s=this.offset(e,n);return this.translate(s[0],s[1])}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.value[5])}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.value[4],e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e)}translateZTo(e){return this.translateZ(e-this._prev_translate_z),this._prev_translate_z=e,this}translate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,n,s)}translate3dTo(e,n,s){return this.translate3d(e-this.matrix3d.value[12],e-this.matrix3d.value[13],s-this._prev_translate_z),this._prev_translate_z=s,this}rotate(e,n=0,s=0){const i=jc(e),o=+Math.cos(i).toFixed(9),r=+Math.sin(i).toFixed(9);return this.multiply([o,r,-r,o,n,s]),this.translate(-n,-s),this}rotateTo(e,n=0,s=0){return this.rotate(e-this._prev_rotate,n,s),this._prev_rotate=e,this}rotateX(e){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e)}rotateXTo(e){return this.rotateX(e-this._prev_rotate_x),this._prev_rotate_x=e,this}rotateY(e){return this.isEverTo3d=!0,this.matrix3d.rotate("y",e)}rotateYTo(e){return this.rotateY(e-this._prev_rotate_y),this._prev_rotate_y=e,this}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e)}rotateZTo(e){return this.rotateZ(e-this._prev_rotate_z),this._prev_rotate_z=e,this}rotate3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",n).rotate("z",s)}rotate3dTo(e,n,s){return this.rotate3d(e-this._prev_rotate_x,n-this._prev_rotate_y,s-this._prev_rotate_z),this._prev_rotate_x=e,this._prev_rotate_y=n,this._prev_rotate_z=s,this}scale(e,n=e,s=0,i=0){return this.matrix3d.scale(e,n,1),this.translate(s,i),this.multiply([e,0,0,n,0,0]),this.translate(-s,-i),this}scaleTo(e,n=e,s=0,i=0){return this.scale(e/this.value[0],n/this.value[3],s,i),this}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.value[0],1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.value[3])}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e)}scaleZTo(e){return this.scaleZ(e/this._prev_scale_z),this._prev_scale_z=e,this}scale3d(e,n,s){return this.isEverTo3d=!0,this.matrix3d.scale(e,n,s)}scale3dTo(e,n,s){return this.scale3d(e/this.matrix3d.value[0],n/this.matrix3d.value[5],s/this._prev_scale_z),this._prev_scale_z=s,this}skew(e,n=e){const s=e*Math.PI/180,i=n*Math.PI/180,o=Math.tan(s),r=Math.tan(i);return this.multiply([1,r,o,1,0,0])}skewTo(e,n=e){return this.skew(e-this.value[2],n-this.value[1])}skewX(e){return this.skew(e,this.value[1])}skewXTo(e){return this.skewTo(e,this.value[1])}skewY(e){return this.skew(this.value[2],e)}skewYTo(e){return this.skewTo(this.value[2],e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,n,s){return this}skew3dTo(e,n,s){return this}split(){const e={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};e.dx=this.value[4],e.dy=this.value[5];const n=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];e.scalex=Math.sqrt(Math.pow(n[0][0],2)+Math.pow(n[0][1],2));let s=Uc(n[0][0],n[0][1]);n[0][0]=s.x,n[0][1]=s.y,e.shear=n[0][0]*n[1][0]+n[0][1]*n[1][1],n[1]=[n[1][0]-n[0][0]*e.shear,n[1][1]-n[0][1]*e.shear],e.scaley=Math.sqrt(Math.pow(n[1][0],2)+Math.pow(n[1][1],2)),s=Uc(n[1][0],n[1][1]),n[1][0]=s.x,n[1][1]=s.y,e.shear/=e.scaley;const i=-n[0][1],o=n[1][1];return o<0?(e.rotate=Bc(Math.acos(o)),i<0&&(e.rotate=360-e.rotate)):e.rotate=Bc(Math.asin(i)),e.isSimple=!+e.shear.toFixed(9)&&(e.scalex.toFixed(9)==e.scaley.toFixed(9)||!e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e}static split2(e){const n=Math.atan2(e[1],e[0]),s=Math.pow(e[0],2)+Math.pow(e[1],2),i=Math.sqrt(s),o=(e[0]*e[3]-e[2]*e[1])/i;return{rotation:n/(Math.PI/180),scaleX:i,scaleY:o,x:e[4],y:e[5]}}static getGroupCoords(e,n){const s=e[0],i=e[1],o=e[2],r=e[3],l=e[4],a=e[5],c=n[0],u=n[1],h=n[2],d=n[3],f=n[4],m=n[5],v=c*d,y=u*h,w=(h*i-s*d)/(y-v),E=(c*i-s*u)/(v-y),C=(h*r-o*d)/(y-v),S=(c*r-o*u)/(v-y),D=(h*(a-m)+d*(f-l))/(y-v),N=(c*(a-m)+u*(f-l))/(v-y),R=[w,E,C,S,D,N];return dt.split2(R)}toTransformString(){const e=this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx&&e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(e=>sc(e,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class Jn{value;constructor(e=tu){this.value=Array.from(e)}unit(){return this.value=Array.from(tu),this}fromString(e){const n=Zl("number",e);return n.length===16?n.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const n=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return e?(e.value=n,e):new dt(n)}multiplyMatrix(e){const n=this.value[0],s=this.value[1],i=this.value[2],o=this.value[3],r=this.value[4],l=this.value[5],a=this.value[6],c=this.value[7],u=this.value[8],h=this.value[9],d=this.value[10],f=this.value[11],m=this.value[12],v=this.value[13],y=this.value[14],w=this.value[15],E=e.value[0],C=e.value[1],S=e.value[2],D=e.value[3],N=E*n+C*r+S*u+D*m,R=E*s+C*l+S*h+D*v,ae=E*i+C*a+S*d+D*y,le=E*o+C*c+S*f+D*w;return new dt([N,R,ae,le,0,0])}multiply(e){const n=new dt([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new dt([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),i=new dt([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),o=new dt([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),r=this.multiplyMatrix(n),l=this.multiplyMatrix(s),a=this.multiplyMatrix(i),c=this.multiplyMatrix(o);return this.value[0]=r.value[0],this.value[1]=r.value[1],this.value[2]=r.value[2],this.value[3]=r.value[3],this.value[4]=l.value[0],this.value[5]=l.value[1],this.value[6]=l.value[2],this.value[7]=l.value[3],this.value[8]=a.value[0],this.value[9]=a.value[1],this.value[10]=a.value[2],this.value[11]=a.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(e=0,n=0,s=0){return this.multiply(new Jn([1,0,0,0,0,1,0,0,0,0,1,0,e,n,s,1]))}scale(e=1,n=1,s=1){return this.multiply(new Jn([e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1]))}rotate(e,n){const s=jc(n),i=Math.sin,o=Math.cos;let r;switch(e){case"x":r=[1,0,0,0,0,o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1];break;case"y":r=[o(s),0,-i(s),0,0,1,0,0,i(s),0,o(s),0,0,0,0,1];break;case"z":r=[o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new Jn(r))}toString(){return`matrix3d(${this.value.map(e=>sc(e,6)).join(",")})`}}function Li(t){const e=new dt;return t.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(n,s,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const o=[];for(let r=0,l=i.length;r<l;r++)i[r].trim()&&o.push(parseFloat(""+i[r]));switch(s.toLowerCase()){case"t":case"translate":e.translate(o[0],o[1]);break;case"translatex":e.translateX(o[0]);break;case"translatey":e.translateY(o[0]);break;case"translatez":e.translateZ(o[0]);break;case"translate3d":e.translate3d(o[0],o[1],o[2]);break;case"r":case"rotate":e.rotate(o[0],o[1]??0,o[2]??0);break;case"rotatex":e.rotateX(o[0]);break;case"rotatey":e.rotateY(o[0]);break;case"rotatez":e.rotateZ(o[0]);break;case"rotate3d":e.rotate3d(o[0],o[1],o[2]);break;case"s":case"scale":e.scale(o[0],o[1]??o[0]);break;case"scalex":e.scaleX(o[0]);break;case"scaley":e.scaleY(o[0]);break;case"scalez":e.scaleZ(o[0]);break;case"scale3d":e.scale3d(o[0],o[1],o[2]);break;case"skew":e.skew(o[0],o[1]??0);break;case"skewx":e.skewX(o[0]);break;case"skewy":e.skewY(o[0]);break;case"skewz":e.skewZ(o[0]);break;case"skew3d":e.skew3d(o[0],o[1],o[2]);break;case"m":case"matrix":e.multiply([o[0],o[1],o[2],o[3],o[4],o[5]]);break;case"matrix3d":e.matrix3d.multiply(new Jn(o));break}return""}),e}class $m extends Tm{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(n,s)=>{switch(this.text="",this.currentItem={type:n},n){case"g":this.groups.push(this.currentItem);break}this.processAttrs(n,s)}),this.on("text",n=>{if(this.currentItem.type=="style"){try{const s=op(n);for(let i of s.stylesheet.rules)for(let o of i.declarations)for(let r of i.selectors)this.globalStyles[r]=this.globalStyles[r]||[],this.globalStyles[r].push(`${o.property}:${o.value}`)}catch{console.error("CAN'T parse css text: "+n)}return}this.text+=n}),this.on("/tag",(n,s)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let o="",r="";for(let l in this.groups[i])l=="transform"?o=this.groups[i].transform:l=="class"&&this.globalStyles["."+this.groups[i][l]]?r=this.globalStyles["."+this.groups[i][l]].join(";")+";"+r:l=="id"&&this.globalStyles["#"+this.groups[i][l]]?r=this.globalStyles["#"+this.groups[i][l]].join(";")+";"+r:typeof this.currentItem[l]>"u"&&(this.currentItem[l]=this.groups[i][l]);typeof this.currentItem.transform>"u"?this.currentItem.transform=o:this.currentItem.transform+=" "+o,typeof this.currentItem.style>"u"?this.currentItem.style=r:this.currentItem.style=r+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),Sr(this.currentItem.style,this.currentItem,kr)}switch(this.processAttrs(n,s),n){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(e,n){let s=[],i;switch(e){case"svg":let o="",r="";if(n.width&&n.height)o=n.width,r=n.height;else if(n.viewBox){const l=n.viewBox.split(/\s+/gi);l.length==4&&(o=String(parseFloat(l[2])-parseFloat(l[0])),r=String(parseFloat(l[3])-parseFloat(l[1])))}o&&r&&this.items.push({type:"viewbox",width:o,height:r});break;case"line":typeof n.x1=="number"&&typeof n.y1=="number"&&typeof n.x2=="number"&&typeof n.y2=="number"&&(this.currentItem.path="M"+[n.x1,n.y1,n.x2,n.y2]);break;case"stop":i={},n.style&&Sr(n.style,i),i.offset=i.offset||n.offset,i.color=i["stop-color"]||n["stop-color"],i.opacity=i["stop-opacity"]||n["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+Er(parseFloat(n.x1),parseFloat(n.y1),parseFloat(n.x2),parseFloat(n.y2),parseFloat(n.x1)+100,parseFloat(n.y1))).toFixed(2),s=[this.grad.angle];for(let l=0,a=this.grad.stops.length;l<a;l++)i=this.grad.stops[l],l&&l!=a-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(l=>{l.fillid==this.grad.id&&(l.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let l=0,a=this.grad.stops.length;l<a;l++)i=this.grad.stops[l],l&&l!=a-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(l=>{l.fillid==this.grad.id&&(l.fill=this.idtops[this.grad.id])});break}for(let o in n){const r=n[o];if(kr.includes(o)&&(this.currentItem[o]=r),o==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:o,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:o,stops:[]})),o==="style"&&Sr(r,this.currentItem,kr),o==="transform"&&(this.currentItem.transform=r+(this.currentItem.transform||" ")),o==="fill"){const l=r.match(/url\(#([^)]+)\)/);if(l){const a=l[1];this.currentItem.fillid=a,this.idtops[a]&&(this.currentItem.fill=this.idtops[a])}}o==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+r+"z"),o==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=r),o==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=r)}}addToItems(){this.items.push(this.currentItem)}}function Er(t,e,n,s,i,o){if(typeof i>"u"||typeof o>"u"){const r=t-n,l=e-s;return!r&&!l?0:(180+Math.atan2(-l,-r)*180/Math.PI+360)%360}else return Er(t,e,i,o)-Er(n,s,i,o)}function Sr(t,e,n){const s=(t+"").split(";"),i=/^\s+|\s+$/g;for(let o=0,r=s.length;o<r;o++){let l=s[o].split(":"),a=l[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!n||n.includes(a))&&(e[a]=l[1].replace(i,""))}}const kr=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];class mt extends jn{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,n){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new mt({x:e[1],y:e[2],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.lineTo(this.x,this.y)}getBoundingClientRect(){const e=Hc(this.fromX,this.fromY,this.x,this.y);if(e===0){const n=Math.min(this.x,this.fromX),s=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),o=Math.max(this.y,this.fromY);return new At({x:n,y:s,width:i-n,height:o-s})}else{const n=Math.sin(e),s=Math.cos(e),i=s*this.fromX-n*this.fromY,o=s*this.x-n*this.y,r=s*this.fromY+n*this.fromX,l=s*this.y+n*this.x;return new At({x:Math.min(i,o),y:Math.min(r,l),width:Math.max(i,o)-Math.min(i,o),height:Math.max(r,l)-Math.min(r,l)})}}}class Tr extends mt{c1x;c1y;c2x;c2y;constructor(e){super(e),this.c1x=e.c1x,this.c1y=e.c1y,this.c2x=e.c2x,this.c2y=e.c2y}static fromSVGPathData(e,n){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Tr({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const e=Et.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new At({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}base3(e,n,s,i,o){const r=-3*n+9*s-9*i+3*o,l=e*r+6*n-12*s+6*i;return e*l-3*n+3*s}length(e=1){e=Math.max(0,Math.min(e,1));const n=e/2,s=12,i=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],o=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let r=0;for(let l=0;l<s;l++){const a=n*i[l]+n,c=this.base3(a,this.fromX,this.c1x,this.c2x,this.x),u=this.base3(a,this.fromY,this.c1y,this.c2y,this.y),h=c*c+u*u;r+=o[l]*Math.sqrt(h)}return n*r}}const Pr=Tr;class Nr extends mt{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(e){super(e),this.rx=e.rx,this.ry=e.ry,this.xAxisRotate=e?.xAxisRotate??0,this.largeArcFlag=e?.largeArcFlag??1,this.sweepFlag=e?.sweepFlag??1}static fromSVGPathData(e,n){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Nr({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}}const nu=Nr;class Fi{prevPoint;startPoint;isClosed=!1;lines=[];normalizedLines=[];constructor(){}setStartPoint(e,n){return this.startPoint=new ht({x:e,y:n}),this.prevPoint=this.startPoint,this}addLine(e){return this.lines.push(e),this}static fromSVGPathD(e,n){if(!Et.isSVGPath(e))throw new Error("Not an SVG path!");return this.fromSVGPathData(Et.parseSVGPath(e),n)}static fromSVGPathData(e,n){const s=new Fi,i=Et.normalizeSVGPath(Et.absolutizeSVGPath(e));for(let r=0,l=i.length;r<l;r++){const a=i[r],c=a[0];if(r==0&&c=="M"){s.setStartPoint(a[1],a[2]);continue}if(r==l-1&&c=="Z"){s.isClosed=!0;continue}s.addLine(new Pr({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],x:a[5],y:a[6]}))}s.normalize();const o=Li(n??"");return s.transform(o)}normalize(){this.normalizedLines=[];const e=Et.normalizeSVGPath(Et.absolutizeSVGPath(this.lines.map(n=>n.toSVGPathData())));for(let n=0,s=e.length;n<s;n++){const i=e[n];this.normalizedLines.push(Pr.fromSVGPathData(i,this.prevPoint)),this.prevPoint=new ht({x:i[i.length-2],y:i[i.length-1]})}return this}toSVGPathData(){const e=[];this.startPoint&&e.push(this.startPoint.toSVGPathData());for(let n=0,s=this.normalizedLines.length;n<s;n++)e.push(this.normalizedLines[n].toSVGPathData());return this.isClosed&&e.push(["Z"]),e}toSVGPathD(){return Et.SVGPathDataToD(this.toSVGPathData())}transform(e){if(this.startPoint){const[n,s]=e.transformPoint(this.startPoint.x,this.startPoint.y);this.setStartPoint(n,s)}return this.normalizedLines=this.normalizedLines.map(n=>{const[s,...i]=n.toSVGPathData(),o=[s];for(let r=0,l=i.length;r<l;r+=2){const[a,c]=e.transformPoint(i[r],i[r+1]);o.push(a,c)}return Pr.fromSVGPathData(o)}),this}translate(e,n){const s=new dt().translate(e,n);return this.transform(s)}rotate(e,n=0,s=0){const i=new dt().rotate(e,n,s);return this.transform(i)}scale(e,n=e,s=0,i=0){const o=new dt().scale(e,n,s,i);return this.transform(o)}skew(e,n=0){const s=new dt().skew(e,n);return this.transform(s)}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}toCanvasContext(e){this.normalizedLines.length&&(this.startPoint&&(e.beginPath(),e.moveTo(this.startPoint.x,this.startPoint.y)),this.normalizedLines.forEach(n=>{const[s,...i]=n.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}),this.isClosed&&e.closePath())}getBoundingClientRect(){let e=0,n=0,s=[],i=[];this.startPoint&&(e=this.startPoint.x,n=this.startPoint.y,s.push(e),i.push(n)),this.normalizedLines.forEach(c=>{const u=Et.curveDim(e,n,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);s=s.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),e=c.x,n=c.y});const o=Math.min.apply(0,s),r=Math.min.apply(0,i),l=Math.max.apply(0,s),a=Math.max.apply(0,i);return new At({x:o,y:r,width:l-o,height:a-r})}getTotalLength(){return ql?Et.createSvgPath(this.toSVGPathD()).getTotalLength():Et.getWalkSVGPathD(this.toSVGPathD()).length()}getPointAtLength(e){if(ql)return Et.createSvgPath(this.toSVGPathD()).getPointAtLength(e);{const n=Et.getWalkSVGPathD(this.toSVGPathD()),[s,i]=n.at(e);return{x:s,y:i}}}isPointInPath(e,n,s){return e.isPointInPath(new Path2D(this.toSVGPathD()),n,s)}isPointInStroke(e,n,s){return e.isPointInStroke(new Path2D(this.toSVGPathD()),n,s)}static generateRosetta(e,n,s,i,o){if(o==0)throw new Error("no dividing by zero, please");const r=new Fi;r.setStartPoint(e,n);const l=360/o;for(let a=0;a<o;a+=1){const c=l*a*Math.PI/180,u=e+2*s*Math.cos(c),h=n+2*s*Math.sin(c);r.addLine(new nu({x:u,y:h,rx:s,ry:i,xAxisRotate:l*a,largeArcFlag:1,sweepFlag:1})),r.addLine(new nu({x:e,y:n,rx:s,ry:i,xAxisRotate:l*a,largeArcFlag:1,sweepFlag:1}))}return r.normalize(),r}}class Or extends jn{svgWidth=0;svgHeight=0;width=0;height=0;pgas=[];history=[];save(){this.history.push(Ei(this.pgas))}restore(){const e=this.history.pop();e&&(this.pgas=e)}current(){return Ei(this.pgas)}constructor(e){super(e),this.width=e.width;const n=new $m(e.svg).parse();for(let s=0,i=n.length;s<i;s++){const o=n[s];if(o.type=="viewbox"&&o.width&&o.height){this.svgWidth=parseFloat(o.width),this.svgHeight=parseFloat(o.height);const a=this.svgWidth/this.svgHeight;this.height=this.width/a;continue}if(o.type!="path")continue;const r={};for(const a in o)a==="type"||a==="path"||a==="transform"||(r[a]=o[a]);const l=Fi.fromSVGPathD(o.path,o.transform);this.width&&this.svgWidth&&l.scale(this.width/this.svgWidth),this.pgas.push({pg:l,attrs:r})}}getBoundingClientRect(){return new At({x:this.x,y:this.y,width:this.width,height:this.height})}toSVGPathData(){return this.pgas.map(e=>e.pg.toSVGPathData()).reduce((e,n)=>e.concat(n),[])}toCanvasContext(e){for(let n=0,s=this.pgas.length;n<s;n++){e.save();const i=this.pgas[n];this.SVGAttrsToCanvasAttrs(e,i.attrs),i.pg.toCanvasContext(e),i.attrs.stroke!=="none"&&e.stroke(),i.attrs.fill!=="none"&&e.fill(),e.restore()}}SVGAttrsToCanvasAttrs(e,n){for(const s in n){const i=n[s];switch(s){case"fill":e.fillStyle=i;break;case"stroke":e.strokeStyle=i;break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":e.lineJoin=i;break}}}}class Ir extends jn{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=[];for(let n=0,s=this.length;n<s;n++)e.push([n===0?"M":"L",this.points[n].x,this.points[n].y]);return e}toCanvasContext(e){const n=this.points.length;if(n<3)throw new Error("points length must >= 3");e.beginPath();const s=(this.points[0].x+this.points[n-1].x)/2,i=(this.points[0].y+this.points[n-1].y)/2;e.moveTo(s,i);let o=0;for(;o<n-1;o++){const r=(this.points[o].x+this.points[o+1].x)/2,l=(this.points[o].y+this.points[o+1].y)/2;e.quadraticCurveTo(this.points[o].x-this.x,this.points[o].y-this.y,r-this.x,l-this.y)}e.quadraticCurveTo(this.points[o].x-this.x,this.points[o].y-this.y,s-this.x,i-this.y)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,n){const s=this.length;let i=!1;const o=2e-10;for(let r=0,l=s-1;r<s;l=r,r++){const a=this.points[r].x,c=this.points[r].y,u=this.points[l].x,h=this.points[l].y;if(a===e&&c===n||u===e&&h===n||n===c&&n===h)return!0;if(n>=c&&n<h||n<c&&n>=h){const d=(u-a)/(h-c),f=a+d*(n-c);if(f===e||Math.abs(f-e)<o)return!0;f>e&&(i=!i)}}return i}[Symbol.iterator](){let e=0;return{next:()=>({value:e>=this.length-1?this.points[++e]:void 0,done:e>=this.length})}}static generateInMultiplePoint(e,n,s,i,o=1){const r=new Ir;for(let l=0;l<=o*s;l+=1){const a=Math.floor(l/o)/s*2*Math.PI,c=e+Math.cos(a)*i,u=n+Math.sin(a)*i;r.addPoint(new ht({x:c,y:u}))}return r}}class $r extends mt{cx;cy;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy}static fromSVGPathData(e,n){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new $r({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:n?.x,fromY:n?.y})}toSVGPathData(){return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e,n){const s=typeof n?.isLineThrough=="boolean"?n?.isLineThrough:!0;if(e.beginPath(),e.moveTo(this.fromX,this.fromY),s){const i=this.cx*2-(this.fromX+this.x)/2,o=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(i,o,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}}class su extends jn{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",-50,-25],["l",0,-25],["l",0,-50],["l",50,0],["l",0,50],["l",0,25],["l",-50,25],["l",-50,-25],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath()}}class Dm extends jn{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",4,24],["l",8,16],["l",14,10],["l",15,0],["l",9,-10],["l",2,0],["l",-2,0],["l",-9,-10],["l",-15,0],["l",-14,10],["l",-8,16],["l",-4,24],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(4,24),e.lineTo(8,16),e.lineTo(14,10),e.lineTo(15,0),e.lineTo(9,-10),e.lineTo(2,0),e.lineTo(-2,0),e.lineTo(-9,-10),e.lineTo(-15,0),e.lineTo(-14,10),e.lineTo(-8,16),e.lineTo(-4,24),e.closePath()}}(function(){let t=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const n=new Date().getTime(),s=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+s)},s);return t=n+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Mm=t=>{let e=window.requestAnimationFrame(function n(s){e=window.requestAnimationFrame(n),t(s,e)});return()=>window.cancelAnimationFrame(e)};class Rm{id=0;renders={};cancelFn;constructor(){}get length(){let e=0;for(let n in this.renders)e++;return e}register(e){const n=this.id++;this.renders[n]=e,this.run()}registerAccurateSetTimeout(e,n=0){let s;this.register(i=>(s||(s=i),i-s>=n?(e(),!1):!0))}run(){this.cancelFn||(this.cancelFn=Mm((e,n)=>{const s=[];for(let i in this.renders)this.renders[i](e)===!1&&s.push(parseInt(i));for(let i of s)delete this.renders[i];!this.length&&this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}))}}const gt=new Rm;let Is;typeof self>"u"&&typeof process<"u"&&process.hrtime?Is=function(){const t=process.hrtime();return t[0]*1e3+t[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Is=self.performance.now.bind(self.performance):Date.now!==void 0?Is=Date.now:Is=function(){return new Date().getTime()};const es=Is;class $s{static _nextId=0;static nextId(){return $s._nextId++}}const Vi={Linear:{None:function(t){return t}},Ease:{In:function(t){return Math.pow(t,1.7)}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.sin((1-t)*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return .5*(1-Math.sin(Math.PI*(.5-t)))}},Exponential:{In:function(t){return t===0?0:Math.pow(1024,t-1)},Out:function(t){return t===1?1:1-Math.pow(2,-10*t)},InOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return t===0?0:t===1?1:-Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI)},Out:function(t){return t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t-.1)*5*Math.PI)+1},InOut:function(t){return t===0?0:t===1?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin((t-1.1)*5*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin((t-1.1)*5*Math.PI)+1)}},Back:{In:function(t){return t===1?1:t*t*((1.70158+1)*t-1.70158)},Out:function(t){return t===0?0:--t*t*((1.70158+1)*t+1.70158)+1},InOut:function(t){const e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-Vi.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?Vi.Bounce.In(t*2)*.5:Vi.Bounce.Out(t*2-1)*.5+.5}},generatePow:function(t=4){return t=t<Number.EPSILON?Number.EPSILON:t,t=t>1e4?1e4:t,{In:function(e){return e**t},Out:function(e){return 1-(1-e)**t},InOut:function(e){return e<.5?(e*2)**t/2:(1-(2-e*2)**t)/2+.5}}},random:function(t){return Math.random()},createStep:function(t){return function(e){return Math.floor(e*t)/t}},createNoisyEasing:function(t,e=.1){const n=1-e;return function(s){return e*Math.random()+n*t(s)}}},Dr=Vi,Ds={Utils:{Linear:function(t,e,n){return(e-t)*n+t},Factorial:function(){const t=[1];return function(e){let n=1;if(t[e])return t[e];for(let s=e;s>1;s--)n*=s;return t[e]=n,n}}(),Bernstein:function(t,e){const n=Ds.Utils.Factorial;return n(t)/n(e)/n(t-e)},CatmullRom:function(t,e,n,s,i){const o=(n-t)*.5,r=(s-e)*.5,l=i*i,a=i*l;return(2*e-2*n+o+r)*a+(-3*e+3*n-2*o-r)*l+o*i+e}},Linear:function(t,e){const n=t.length-1,s=n*e,i=Math.floor(s),o=Ds.Utils.Linear;return e<0?o(t[0],t[1],s):e>1?o(t[n],t[n-1],n-s):o(t[i],t[i+1>n?n:i+1],s-i)},Bezier:function(t,e){let n=0;const s=t.length-1,i=Math.pow,o=Ds.Utils.Bernstein;for(let r=0;r<=s;r++)n+=i(1-e,s-r)*i(e,r)*t[r]*o(s,r);return n},CatmullRom:function(t,e){const n=t.length-1;let s=n*e,i=Math.floor(s);const o=Ds.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(i=Math.floor(s=n*(1+e))),o(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],s-i)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-s)-t[0]):e>1?t[n]-(o(t[n],t[n],t[n-1],t[n-1],s-n)-t[n]):o(t[i?i-1:0],t[i],t[n<i+1?n:i+1],t[n<i+2?n:i+2],s-i)}},Mr=Ds;class iu{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=es(),n=!1){let s=Object.keys(this._tweens);if(s.length===0)return!1;for(;s.length>0;){this._tweensAddedDuringUpdate={};for(let i=0;i<s.length;i++){const o=this._tweens[s[i]],r=!n;o&&o.update(e,r)===!1&&!n&&delete this._tweens[s[i]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const Nt=new iu;class Am{constructor(e,n=Nt){this._object=e,this._group=n}_id=$s.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Dr.Linear.None;_interpolationFunction=Mr.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,n){return this._valuesEnd=Object.create(e),n!==void 0&&(this._durationTime=n),this}duration(e=1e3){return this._durationTime=e,this}start(e=es()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,n,s,i){for(const o in s){const r=e[o],l=Array.isArray(r),a=l?"array":typeof r,c=!l&&Array.isArray(s[o]);if(!(a==="undefined"||a==="function")){if(c){let u=s[o];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,r)),s[o]=[r].concat(u)}if((a==="object"||l)&&r&&!c){n[o]=l?[]:{};for(const u in r)n[o][u]=r[u];i[o]=l?[]:{},this._setupProperties(r,n[o],s[o],i[o])}else typeof n[o]>"u"&&(n[o]=r),l||(n[o]*=1),c?i[o]=s[o].slice().reverse():i[o]=n[o]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=es()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=es()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,n=this._chainedTweens.length;e<n;e++)this._chainedTweens[e].stop();return this}group(e=Nt){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=Dr.Linear.None){return this._easingFunction=e,this}interpolation(e=Mr.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=es(),n=!0){if(this._isPaused)return!0;let s,i;const o=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>o)return!1;n&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(e-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const r=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let l=0,a=this._chainedTweens.length;l<a;l++)this._chainedTweens[l].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,n,s,i){for(const o in s){if(n[o]===void 0)continue;const r=n[o]||0;let l=s[o];const a=Array.isArray(e[o]),c=Array.isArray(l);!a&&c?e[o]=this._interpolationFunction(l,i):typeof l=="object"&&l?this._updateProperties(e[o],r,l,i):(l=this._handleRelativeValue(r,l),typeof l=="number"&&(e[o]=r+(l-r)*i))}}_handleRelativeValue(e,n){return typeof n!="string"?n:n.charAt(0)==="+"||n.charAt(0)==="-"?e+parseFloat(n):parseFloat(n)}_swapEndStartRepeatValues(e){const n=this._valuesStartRepeat[e],s=this._valuesEnd[e];typeof s=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(s):this._valuesStartRepeat[e]=s,this._valuesEnd[e]=n}}const Lm=Am,Fm=$s.nextId,Vm=Nt.getAll.bind(Nt),zm=Nt.removeAll.bind(Nt),Gm=Nt.add.bind(Nt),jm=Nt.remove.bind(Nt),Bm=Nt.update.bind(Nt),ne={now:es,Sequence:$s,Easing:Dr,Interpolation:Mr,Group:iu,Tween:Lm,nextId:Fm,getAll:Vm,removeAll:zm,add:Gm,remove:jm,update:Bm};function ou(t){switch(t){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const Hm={attributeName:["display"],values:[["block","block"]]},St={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Ve{currentPredefinedAnimateName;currentPredefinedAnimateArgs;objects=[];currentObjects=[];isRunning=!1;constructor(){}destroy(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects=[],e.forEach(n=>{this.objects.push({width:parseFloat(ee.getStyle(n,"width")),height:parseFloat(ee.getStyle(n,"height")),el:n,originCSSObject:{}})}),this}static isRunningGlobalTween=!1;static runGlobalTween(e){Ve.isRunningGlobalTween||gt.register(()=>(Ve.isRunningGlobalTween=ne.update(e?.()),Ve.isRunningGlobalTween))}static toTween(e,n,s){const i=s?.onUpdate??(()=>{}),o=s?.onStart??(()=>{}),r=s?.onComplete??(()=>{}),l=s?.duration??1e3,a=s?.delay??0,c=s?.easeFunction??ne.Easing.Linear.None,u=s?.repeat??0,h=s?.yoyo??!1,d=new ne.Tween(e).to(n,l).delay(a).easing(c).repeat(u).yoyo(h).onStart(o).onUpdate(function(f,m){i(f,m)}).onComplete(r);return s?.interpolationFunction&&d.interpolation(s.interpolationFunction),{tween:d,startAuto:f=>{d.start(f?.()),gt.register(()=>{const m=d.update(f?.());if(s?.precision){let v=!0;for(let y in e)nr(e[y],n[y],s.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenCSS(e,n,s,i){const o={_matrix:Li(ee.getStyle(e,"transform")??"")},r=i?.onUpdate??(()=>{});return Ve.toTween(n,s,Object.assign(i??{},{onUpdate:(l,a)=>{for(let c in l)Ve.setCSSObjectTransformUseMatrix(c,l[c],o);e.style.transform=o.transform,r(l,a)}}))}static setCSSObjectTransformUseMatrix(e,n,s={},i){switch(e){case"translate":s._matrix.translate(n[0]??0,n[1]??0);break;case"translateTo":s._matrix.translateTo(n[0]??0,n[1]??0);break;case"translateX":s._matrix.translateX(n??0);break;case"translateXTo":s._matrix.translateXTo(n??0);break;case"translateY":s._matrix.translateY(n??0);break;case"translateYTo":s._matrix.translateYTo(n??0);break;case"translateZ":s._matrix.translateZ(n??0);break;case"translateZTo":s._matrix.translateZTo(n??0);break;case"translate3d":s._matrix.translate3d(n[0]??0,n[1]??0,n[2]??0);break;case"translate3dTo":s._matrix.translate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotate":typeof n=="number"?s._matrix.rotate(n??0):s._matrix.rotate(n[0]??0,n[1]??0,n[2]??0);break;case"rotateTo":typeof n=="number"?s._matrix.rotateTo(n??0):s._matrix.rotateTo(n[0]??0,n[1]??0,n[2]??0);break;case"rotateX":s._matrix.rotateX(n??0);break;case"rotateXTo":s._matrix.rotateXTo(n??0);break;case"rotateY":s._matrix.rotateY(n??0);break;case"rotateYTo":s._matrix.rotateYTo(n??0);break;case"rotateZ":s._matrix.rotateZ(n??0);break;case"rotateZTo":s._matrix.rotateZTo(n??0);break;case"rotate3d":s._matrix.rotate3d(n[0]??0,n[1]??0,n[2]??0);break;case"rotate3dTo":s._matrix.rotate3dTo(n[0]??0,n[1]??0,n[2]??0);break;case"scale":typeof n=="number"?s._matrix.scale(n??1):s._matrix.scale(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleTo":typeof n=="number"?s._matrix.scaleTo(n??1):s._matrix.scaleTo(n[0]??1,n[1]??1,n[2]??0,n[3]??0);break;case"scaleX":s._matrix.scaleX(n??1);break;case"scaleXTo":s._matrix.scaleXTo(n??1);break;case"scaleY":s._matrix.scaleY(n??1);break;case"scaleYTo":s._matrix.scaleYTo(n??1);break;case"scaleZ":s._matrix.scaleZ(n??1);break;case"scaleZTo":s._matrix.scaleZTo(n??1);break;case"scale3d":s._matrix.scale3d(n??1);break;case"scale3dTo":s._matrix.scale3dTo(n??1);break;case"skew":typeof n=="number"?s._matrix.skew(n??0):s._matrix.skew(n[0]??0,n[1]??0);break;case"skewTo":typeof n=="number"?s._matrix.skewTo(n??0):s._matrix.skewTo(n[0]??0,n[1]??0);break;case"skewX":s._matrix.skewX(n??0);break;case"skewXTo":s._matrix.skewXTo(n??1);break;case"skewY":s._matrix.skewY(n??0);break;case"skewYTo":s._matrix.skewYTo(n??1);break;case"skewZ":case"skewZTo":case"skew3d":case"skew3dTo":break;default:i&&!Object.prototype.hasOwnProperty.call(i.originCSSObject,e)&&(i.originCSSObject[e]=ee.getStyle(i.el,e)),Object.assign(s,{[e]:`${n??""}`});break}return Object.assign(s,{transform:s._matrix.toString()}),s}_addCurrentObject(e=Hm,n=St,s=0,i,o=!1){const r=n.keyTimes??[0,1],l=[];r.forEach((c,u)=>{u>0&&l.push(ou(n.easeName??"linear"))});const a=n.dur??300;return this.currentObjects=o?[]:this.currentObjects,this.currentObjects.push({objectIndex:s,sequenceType:i,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,begin:n.begin??0,dur:a,keyTimes:r,realKeyTimes:r.map(c=>a*c),keySplines:l,repeatCount:n.repeatCount??1,direction:n.direction??"normal",fill:n.fill??"freeze",onComplete:n.onComplete}),this}_resetGroupCurrentObjects(e,n,s,i,o=St,r=this.objects.length-1){let l=!0,a=!1,c=!1,u=!1;const h=this.objects.length-1;r=sr(r,0,h);let d=r-1;d=sr(d,0,h);let f=r+1;f=sr(f,0,h);const m=this.objects[r],v=this.objects[d],y=this.objects[f];if(v&&d!==r){const w=e(v);w&&(this._addCurrentObject(w,o,d,"prev",l),l=!1,a=!0)}if(m){const w=n(m);w&&(this._addCurrentObject(w,o,r,"current",l),l=!1,c=!0)}if(y&&f!==r){const w=s(y);w&&(this._addCurrentObject(w,o,f,"next",l),l=!1,u=!0)}this.objects.forEach((w,E)=>{if(!(E==d&&a||E==r&&c||E==f&&u)){const C=i(w);C&&(this._addCurrentObject(C,o,E,"other",l),l=!1)}})}toCSS(e,...n){if(!this.hasObjects()||this.isRunning)return;switch(this.currentPredefinedAnimateName=e,this.currentPredefinedAnimateArgs=n,this[e](...n),this.objects[0].el&&this.objects[0].el.parentElement&&(this.objects[0].el.parentElement.style.position=ee.getStyle(this.objects[0].el.parentElement,"transform")||"relative",this.objects[0].el.parentElement.style.perspective=ee.getStyle(this.objects[0].el.parentElement,"perspective")||"1000px"),e){default:this.objects.forEach((o,r)=>{ee.setStyle(o.el,Object.assign(o?.originCSSObject??{},{position:"absolute","z-index":String(2e3+r),"transform-style":"preserve-3d","backface-visibility":"hidden"}))});break}let s=0;const i=()=>{this.isRunning=!0,this.currentObjects.forEach((o,r)=>{const l=this.objects[o.objectIndex];let a=[],c=[];Array.isArray(o.attributeName)?(a=o.attributeName,c=o.values):o.attributeName&&(a=[o.attributeName],c=[o.values]);const u=o.keyTimes.length;let h=o.begin;o.keyTimes.forEach((d,f)=>{if(f==0||o.immediate){const m={_matrix:Li("")};a.forEach((v,y)=>{const w=c[y][o.direction=="reverse"?u-1-f:f];Ve.setCSSObjectTransformUseMatrix(v,w,m,l)}),ee.setStyle(l.el,Object.assign(m,{transition:"all 0ms!important"}))}else gt.registerAccurateSetTimeout(((m,v,y)=>()=>{const w={_matrix:Li("")};a.forEach((E,C)=>{const S=c[C][v.direction=="reverse"?u-1-m:m];Ve.setCSSObjectTransformUseMatrix(E,S,w,y)}),ee.setStyle(y.el,Object.assign(w,{transition:`all ${v.realKeyTimes[m]}ms cubic-bezier(${v.keySplines[m-1].join(",")})`}))})(f,o,l),h+1),h+=o.realKeyTimes[f]}),gt.registerAccurateSetTimeout(((d,f)=>()=>{d.fill==="remove"&&ee.setStyle(l.el,l.originCSSObject??{}),f==this.currentObjects.length-1&&(d.onComplete?.(),this.isRunning=!1,(typeof d.repeatCount=="number"&&++s<d.repeatCount||d.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentPredefinedAnimateName===e&&i()}))})(o,r),o.begin+o.dur)})};i()}slideLeft(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.width,0],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[s.width,0],[s.width,0]]],immediate:!0}),e,n)}slideRight(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.width,0],[0,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-s.width,0],[-s.width,0]]],immediate:!0}),e,n)}slideDown(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-s.height],[0,-s.height]]],immediate:!0}),e,n)}slideUp(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,s.height],[0,s.height]]],immediate:!0}),e,n)}flipLeft(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}flipRight(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}flipDown(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}flipUp(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}popIn(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}popOut(e=St,n=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}rotate(e=St,n=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree??360;this._resetGroupCurrentObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,n)}static flipCSS(e,n,s=St){const i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),r=ee.getStyle(e,"backgroundColor"),l=ee.getStyle(n,"backgroundColor");n.style.transition="none",n.style.left=""+i.left,n.style.top=""+i.top,n.style.width=i.width+"px",n.style.height=i.height+"px",r&&(n.style.backgroundColor=r),gt.registerAccurateSetTimeout(()=>{n.style.transition=`all ${s.dur}ms cubic-bezier(${ou(s.easeName??"linear").join(",")})`,n.style.left=""+o.left,n.style.top=""+o.top,n.style.width=o.width+"px",n.style.height=o.height+"px",l&&(n.style.backgroundColor=l)},s.begin)}}const ru=Wm("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function Wm(t,e=10){const n={},s=t.split(",");for(let i=0;i<s.length;i+=2){const o="&"+s[i+1]+";",r=parseInt(s[i],e);n[o]="&#"+r+";"}return n["\\xa0"]="&#160;",n}function vt(t,e){const n=Object.keys(e);for(let s=0;s<n.length;s++)t=t.replace(new RegExp("{"+n[s]+"}","gi"),""+e[n[s]]);return t}function zi(t){let e,n;if(!t)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",n=0;n<12;n++)e+=s[Math.floor(Math.random()*s.length)];while(t[e]);return e}function Um(t){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[t]||e.start}function Ym(t){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[t]||e.alphabetic}const Ms={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Rr{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}addColorStop(e,n){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+e),n.indexOf("rgba")!==-1){const o=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(n);o&&(s.setAttribute("stop-color",vt("rgb({r},{g},{b})",{r:o[1],g:o[2],b:o[3]})),s.setAttribute("stop-opacity",o[4]))}else s.setAttribute("stop-color",n);this.__root.appendChild(s)}}class au{__root;__ctx;constructor(e,n){this.__root=e,this.__ctx=n}}class Gi{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:n=500,height:s=500,enableMirroring:i=!1}){this.enableMirroring=i,e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=n,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(Ms);for(let n=0,s=e.length;n<s;n++){const i=e[n];this[i]=Ms[i].canvas}}__getStyleState(){const e={},n=Object.keys(Ms);for(let s=0,i=n.length;s<i;s++){const o=n[s];e[o]=this[o]}return e}__applyStyleState(e){const n=Object.keys(e);for(let s=0,i=n.length;s<i;s++){const o=n[s];this[o]=e[o]}}__createElement(e,n={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),o=Object.keys(n);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let r=0;r<o.length;r++){const l=o[r];i.setAttribute(l,n[l])}return i}__applyStyleToCurrentElement(e){let n=this.__currentElement;const s=this.__currentElementsToStyle;s&&(n.setAttribute(e,""),n=s.element,s.children.forEach(o=>{o.setAttribute(e,"")}));const i=Object.keys(Ms);for(let o=0;o<i.length;o++){const r=Ms[i[o]],l=this[i[o]];if(r.apply){if(l instanceof au){if(l.__ctx)for(;l.__ctx.__SVGdefs.childNodes.length;){const a=l.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[a]=a,this.__SVGdefs.appendChild(l.__ctx.__SVGdefs.childNodes[0])}n.setAttribute(r.apply,vt("url(#{id})",{id:l.__root.getAttribute("id")}))}else if(l instanceof Rr)n.setAttribute(r.apply,vt("url(#{id})",{id:l.__root.getAttribute("id")}));else if(r.apply.indexOf(e)!==-1&&r.svg!==l)if((r.svgAttr==="stroke"||r.svgAttr==="fill")&&l.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(l);n.setAttribute(r.svgAttr,vt("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),n.setAttribute(r.svgAttr+"-opacity",""+u)}else{let a=r.svgAttr;if(i[o]==="globalAlpha"&&(a=e+"-"+r.svgAttr,n.getAttribute(a)))continue;a&&n.setAttribute(a,l)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let n=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(n)&&(n=n.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(ru);for(let o=0,r=i.length;o<r;o++){const l=i[o],a=ru[l],c=new RegExp(l,"gi");c.test(n)&&(n=n.replace(c,a))}}return n}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),n=this.__closestGroupOrSvg();this.__groupStack.push(n),n.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const n=this.__styleStack.pop();n&&this.__applyStyleState(n)}__addTransform(e){const n=this.__closestGroupOrSvg();if(n.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:n,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");n.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=e,this.__currentElement.setAttribute("transform",s)}scale(e,n){n===void 0&&(n=e),this.__addTransform(vt("scale({x},{y})",{x:e,y:n}))}rotate(e){const n=e*180/Math.PI;this.__addTransform(vt("rotate({angle},{cx},{cy})",{angle:n,cx:0,cy:0}))}translate(e,n){this.__addTransform(vt("translate({x},{y})",{x:e,y:n}))}transform(e,n,s,i,o,r){this.__addTransform(vt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:n,c:s,d:i,e:o,f:r}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"&&e.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,n){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:n},this.__addPathCommand(vt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,n){this.__currentPosition={x:e,y:n},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(vt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(vt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,n,s,i,o,r){this.__currentPosition={x:o,y:r},this.__addPathCommand(vt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:n,cp2x:s,cp2y:i,x:o,y:r}))}quadraticCurveTo(e,n,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(vt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:n,x:s,y:i}))}normalize(e){const n=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/n,e[1]/n]}arcTo(e,n,s,i,o){const r=this.__currentPosition&&this.__currentPosition.x,l=this.__currentPosition&&this.__currentPosition.y;if(typeof r>"u"||typeof l>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(r===e&&l===n||e===s&&n===i||o===0){this.lineTo(e,n);return}const a=this.normalize([r-e,l-n]),c=this.normalize([s-e,i-n]);if(a[0]*c[1]===a[1]*c[0]){this.lineTo(e,n);return}const u=a[0]*c[0]+a[1]*c[1],h=Math.acos(Math.abs(u)),d=this.normalize([a[0]+c[0],a[1]+c[1]]),f=o/Math.sin(h/2),m=e+f*d[0],v=n+f*d[1],y=[-a[1],a[0]],w=[c[1],-c[0]],E=function(D){const N=D[0];return D[1]>=0?Math.acos(N):-Math.acos(N)},C=E(y),S=E(w);this.lineTo(m+y[0]*o,v+y[1]*o),this.arc(m,v,o,C,S)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,n,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,n),this.lineTo(e+s,n),this.lineTo(e+s,n+i),this.lineTo(e,n+i),this.lineTo(e,n),this.closePath()}fillRect(e,n,s,i){const o=this.__createElement("rect",{x:e,y:n,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(e,n,s,i){const o=this.__createElement("rect",{x:e,y:n,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const n=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let o=i.length-1;o>=0;o--)i[o]&&s.removeChild(i[o]);this.__currentElement=s,this.__groupStack=[],n&&this.__addTransform(n)}clearRect(e,n,s,i){if(e===0&&n===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),r=this.__createElement("rect",{x:e,y:n,width:s,height:i,fill:"#FFFFFF"},!0);o.appendChild(r)}createLinearGradient(e,n,s,i){const o=this.__createElement("linearGradient",{id:zi(this.__ids),x1:e+"px",x2:s+"px",y1:n+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new Rr(o,this)}createRadialGradient(e,n,s,i,o,r){const l=this.__createElement("radialGradient",{id:zi(this.__ids),cx:i+"px",cy:o+"px",r:r+"px",fx:e+"px",fy:n+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(l),new Rr(l,this)}__parseFont(){const n=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:n[1]||"normal",size:n[4]||"10px",family:n[6]||"sans-serif",weight:n[3]||"normal",decoration:n[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(e,n){if(e.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),s.appendChild(n),s}return n}__applyText(e,n,s,i){const o=this.__parseFont(),r=this.__closestGroupOrSvg(),l=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:n,y:s,"text-anchor":Um(this.textAlign),"dominant-baseline":Ym(this.textBaseline)},!0);l.appendChild(this.__document.createTextNode(e)),this.__currentElement=l,this.__applyStyleToCurrentElement(i),r.appendChild(this.__wrapTextLink(o,l))}fillText(e,n,s){this.__applyText(e,n,s,"fill")}strokeText(e,n,s){this.__applyText(e,n,s,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,n,s,i,o,r){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(r?-1:1))%(2*Math.PI));const l=e+s*Math.cos(o),a=n+s*Math.sin(o),c=e+s*Math.cos(i),u=n+s*Math.sin(i),h=r?0:1;let d=0,f=o-i;f<0&&(f+=2*Math.PI),r?d=f>Math.PI?0:1:d=f>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(vt("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:d,sweepFlag:h,endX:l,endY:a})),this.__currentPosition={x:l,y:a}}clip(){const e=this.__closestGroupOrSvg(),n=this.__createElement("clipPath"),s=zi(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),n.setAttribute("id",s),n.appendChild(this.__currentElement),this.__SVGdefs.appendChild(n),e.setAttribute("clip-path",vt("url(#{id})",{id:s})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let n=e[0],s,i,o,r,l=0,a=0,c,u,h,d,f,m,v,y;if(e.length===3)s=e[1],i=e[2],c=n.width,u=n.height,o=c,r=u;else if(e.length===5)s=e[1],i=e[2],o=e[3],r=e[4],c=n.width,u=n.height;else if(e.length===9)l=e[1],a=e[2],c=e[3],u=e[4],s=e[5],i=e[6],o=e[7],r=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const w=this.__closestGroupOrSvg();this.__currentElement;const E="translate("+s+", "+i+")";if(n instanceof Gi){if(h=n.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(d=h.childNodes[0];d.childNodes.length;)y=d.childNodes[0].getAttribute("id"),this.__ids[y]=y,this.__SVGdefs.appendChild(d.childNodes[0]);if(f=h.childNodes[1],f){const C=f.getAttribute("transform");let S;C?S=C+" "+E:S=E,f.setAttribute("transform",S),w.appendChild(f)}}}else(n.nodeName==="CANVAS"||n.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",o),m.setAttribute("height",r),m.setAttribute("preserveAspectRatio","none"),(l||a||c!==n.width||u!==n.height)&&(v=this.__document.createElement("canvas"),v.width=o,v.height=r,v.getContext("2d")?.drawImage(n,l,a,c,u,0,0,o,r),n=v),m.setAttribute("transform",E),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.nodeName==="CANVAS"?n.toDataURL():n.getAttribute("src")),w.appendChild(m))}createPattern(e,n){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=zi(this.__ids);let o;return s.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(o=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),o.setAttribute("width",""+e.width),o.setAttribute("height",""+e.height),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),s.appendChild(o),this.__SVGdefs.appendChild(s)):e instanceof Gi&&(s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new au(s,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Xm{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;matrixs=[];hasSetCustomLineWidth=!1;hasSetCustomFillStyle=!1;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.customContext=new Gi({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(e){this.hasSetCustomLineWidth=!0,this.context.lineWidth=e,this.customContext.lineWidth=e}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.context.lineCap=e,this.customContext.lineCap=e}get lineCap(){return this.context.lineCap}set lineJoin(e){this.context.lineJoin=e,this.customContext.lineCap=e}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.context.lineDashOffset=e,this.customContext.lineDashOffset=e}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){this.context.miterLimit=e,this.customContext.miterLimit=e}get miterLimit(){return this.context.miterLimit}set globalAlpha(e){this.context.globalAlpha=e,this.customContext.globalAlpha=e}get globalAlpha(){return this.context.globalAlpha}set fillStyle(e){this.hasSetCustomFillStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.fillStyle=e,this.customContext.fillStyle=e):(this.context.fillStyle=e.gradient,this.customContext.fillStyle=e.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(e){typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.strokeStyle=e,this.customContext.strokeStyle=e):(this.context.strokeStyle=e.gradient,this.customContext.strokeStyle=e.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(e){this.context.font=e,this.customContext.font=e}get font(){return this.context.font}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext.fill()),this}fillRect(e,n,s,i){return this.context.fillRect(e,n,s,i),this.customContext.fillRect(e,n,s,i),this}fillText(e,n,s,i){return this.context.fillText(e,n,s,i),this.customContext.fillText(e,n,s),this}setLineDash(e){return this.context.setLineDash(e),this.customContext.setLineDash(e),this}stroke(e){return e?this.context.stroke(e):(this.context.stroke(),this.customContext.stroke()),this}strokeText(e,n,s,i){return this.context.strokeText(e,n,s,i),this.customContext.strokeText(e,n,s),this}strokeRect(e,n,s,i){return this.context.strokeRect(e,n,s,i),this.customContext.strokeRect(e,n,s,i),this}clearRect(e=0,n=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,n,s,i),this.customContext.clearRect(e,n,s,i),this}save(){return this.context.save(),this.customContext.save(),this.path2Ds.push(this.currentPath2D),this.matrixs.push(this.currentMatrix),this.currentPath2D=new Path2D,this.currentMatrix=new DOMMatrix,this}restore(){return this.context.restore(),this.customContext.restore(),this.hasSetCustomLineWidth=!1,this.hasSetCustomFillStyle=!1,this.currentPath2D=this.path2Ds.pop()||new Path2D,this.currentMatrix=this.matrixs.pop()||new DOMMatrix,this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this.currentPath2D.closePath(),this}addPath(e=this.currentPath2D,n=this.currentMatrix){const s=new Path2D;s.addPath(e,n),this.currentPath2D=s}isPointInStroke(...e){return e[0]instanceof Path2D?this.context.isPointInStroke(e[0],e[1],e[2]):this.context.isPointInStroke(e[0],e[1])}isPointInPath(...e){return e[0]instanceof Path2D?this.context.isPointInPath(e[0],e[1],e[2]):this.context.isPointInPath(e[0],e[1])}translate(e,n){return this.context.translate(e,n),this.customContext.translate(e,n),this.currentMatrix.translate(e,n),this.addPath(),this}rotate(e){return this.context.rotate(e),this.customContext.rotate(e),this.currentMatrix.rotate(e),this.addPath(),this}scale(e,n=e){return this.context.scale(e,n),this.customContext.scale(e,n),this.currentMatrix.scale(e,n),this.addPath(),this}moveTo(e,n){return this.context.moveTo(e,n),this.customContext.moveTo(e,n),this.currentPath2D.moveTo(e,n),this}lineTo(e,n){return this.context.lineTo(e,n),this.customContext.lineTo(e,n),this.currentPath2D.lineTo(e,n),this}arc(e,n,s,i,o,r){return this.context.arc(e,n,s,i,o,r),this.customContext.arc(e,n,s,i,o,r?-1:1),this.currentPath2D.arc(e,n,s,i,o,r),this}arcTo(e,n,s,i,o){return this.context.arcTo(e,n,s,i,o),this.customContext.arcTo(e,n,s,i,o),this.currentPath2D.arcTo(e,n,s,i,o),this}ellipse(e,n,s,i,o,r,l,a){return this.context.ellipse(e,n,s,i,o,r,l,a),this.currentPath2D.ellipse(e,n,s,i,o,r,l,a),this}quadraticCurveTo(e,n,s,i){return this.context.quadraticCurveTo(e,n,s,i),this.customContext.quadraticCurveTo(e,n,s,i),this.currentPath2D.quadraticCurveTo(e,n,s,i),this}bezierCurveTo(e,n,s,i,o,r){return this.context.bezierCurveTo(e,n,s,i,o,r),this.customContext.bezierCurveTo(e,n,s,i,o,r),this.currentPath2D.bezierCurveTo(e,n,s,i,o,r),this}rect(e,n,s,i){return this.context.rect(e,n,s,i),this.customContext.rect(e,n,s,i),this.currentPath2D.rect(e,n,s,i),this}createLinearGradient(e,n,s,i,o){const r=this.context.createLinearGradient(e,n,s,i),l=this.customContext.createLinearGradient(e,n,s,i);return o&&Object.keys(o).forEach(a=>{const c=parseFloat(a);r.addColorStop(c,o[c]),l.addColorStop(c,o[c])}),{gradient:r,gradientCustom:l}}createRadialGradient(e,n,s,i,o,r,l){const a=this.context.createRadialGradient(e,n,s,i,o,r),c=this.customContext.createRadialGradient(e,n,s,i,o,r);return l&&Object.keys(l).forEach(u=>{const h=parseFloat(u);a.addColorStop(h,l[h]),c.addColorStop(h,l[h])}),{gradient:a,gradientCustom:c}}drawImage(e,...n){if(n.length===0)this.context.drawImage(e,0,0);else if(n.length===2){const s=n[0],i=n[1];this.context.drawImage(e,s,i)}else if(n.length===4){const s=n[0],i=n[1],o=n[2],r=n[3];this.context.drawImage(e,s,i,o,r)}else if(n.length===8){const s=n[0],i=n[1],o=n[2],r=n[3],l=n[4],a=n[5],c=n[6],u=n[7];this.context.drawImage(e,s,i,o,r,l,a,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+n.length);return this.customContext.drawImage(e,...n),this}getImageData(e=0,n=0,s=this.canvas.width,i=this.canvas.height,o){return this.context.getImageData(e,n,s,i,o)}putImageData(e,n=0,s=0){return this.context.putImageData(e,n,s)}toRawSVG(){const e=this.customContext.getSerializedSvg(!0),n=this.customContext.getSvg();return{raw:e,element:n}}}const qm=Xm;let Ar=class{app;ctx;shapes=[];isMouseDown=!1;draggingShapeID="";removes=[];constructor(e){this.app=e,this.ctx=new qm(this.app.container),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.draggingShapeID="",this.setCursor()},move:()=>{this.setCursor()}})}setCursor(){this.draggingShapeID?this.app.container.style.cursor="grabbing":this.shapes.filter(e=>e.shape.isMouseInShape&&e.dragMouseMove).length?this.app.container.style.cursor="grab":this.app.container.style.cursor="default"}flushShapes(e=[]){return this.shapes=[],tp(e)?this.shapes.push(...e):this.shapes.push(e),this}draw(){return this.removes.forEach(e=>e()),this.shapes.forEach(e=>{if(this.ctx.save(),e.followMouseMove&&(!nr(e.shape.x,this.app.mousePoint.x,5)||!nr(e.shape.y,this.app.mousePoint.y,5))&&(e.shape.angleTo(this.app.mousePoint),e.shape.followTo(this.app.mousePoint)),e.dragFreeEaseTo&&(this.isMouseDown||e.shape.nextFrameEaseTo(new ht({x:e.dragFreeEaseTo.targetX,y:e.dragFreeEaseTo.targetY}),{easing:e.dragFreeEaseTo?.easing??.05})),e.clickInPath&&e.shape instanceof Or){const n=()=>{if(!(e.shape instanceof Or))return;const s=e.shape.pgas.findIndex(i=>i.pg.isPointInPath(this.ctx,this.app.mousePoint.x,this.app.mousePoint.y));s>=0&&e.clickInPath?.(s)};this.app.on("tap",n),this.removes.push(()=>{this.app.off("tap",n)})}if(e.extra?.(this.ctx),e.shape instanceof mt||this.ctx.translate(e.shape.x,e.shape.y),this.ctx.rotate(e.shape.rotate),this.ctx.scale(e.shape.scale,e.shape.scale),e.shape.toCanvasContext(this.ctx,{isLineThrough:e.isLineThrough}),e.shape.path2d=this.ctx.currentPath2D,e.shape.isMouseInShape=e.shape.getBoundingClientRect()?.isContainPoint(this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInPath(e.shape.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1,this.ctx.hasSetCustomLineWidth&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),e.dragMouseMove&&!this.draggingShapeID&&this.isMouseDown&&e.shape.isMouseInShape&&(this.draggingShapeID=e.shape.id,e.shape.isDragging=!0,this.shapes.filter(n=>n.shape.id!=e.shape.id).forEach(n=>n.shape.isDragging=!1)),this.draggingShapeID==e.shape.id){e.shape.x=this.app.mousePoint.x,e.shape.y=this.app.mousePoint.y;const n=e.shape.getBoundingClientRect();n&&n.width&&n.height&&!e.shape.XYIsShapeCenter&&(e.shape.x-=n.width/2,e.shape.y-=n.height/2),e.shape instanceof mt||this.ctx.translate(e.shape.x,e.shape.y),e.shape.path2d=this.ctx.currentPath2D}this.ctx.restore()}),this}drawMouseMoveLine(e="line",n){switch(e){case"brush":const s=(n&&n.brushSize)??10,i=(n&&n.brushDensity)??50,o=(n&&n.brushColor)??"#000000",r=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),l=r.data,a=Zc(o);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*s,d=this.app.mousePoint.x+Math.cos(u)*h|0,f=this.app.mousePoint.y+Math.sin(u)*h|0,m=(d+f*r.width)*4;l[m]=a>>16&255,l[m+1]=a>>8&255,l[m+2]=a&255,l[m+3]=255}this.ctx.putImageData(r)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}};class Km{map;constructor(e,n=120.619585,s=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(n,s),i)}}const Zm=Z({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("span",{class:"icon",style:B(["color: "+n.color])},[se(_e(Lc),{icon:e.icon,color:n.color},null,8,["icon","color"])],4))}}),Qm=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
55
- `,Q=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n},lu=Q(Zm,[["styles",[Qm]],["__scopeId","data-v-b2d9b612"]]),Jm=Z({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("span",{class:"icon",style:B(["color: "+n.color])},[se(_e(Lc),{icon:e.icon,color:n.color},null,8,["icon","color"])],4))}}),r_="",Bt=Q(Jm,[["__scopeId","data-v-8789b4ce"]]),bn=Q(Z({customOptions:{},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(s.borderColor),l=$(s.bgColor),a=$(s.fontColor),c=$(s.borderColor),u=$(s.bgColor);function h(C){switch(C){case"outline":r.value=s.borderColor??q.colorPrimary,l.value=s.bgColor??q.colorGrayFF,a.value=s.fontColor??q.colorPrimary,c.value=r.value,u.value=l.value;break;default:r.value=s.borderColor??q.colorPrimary,l.value=s.bgColor??q.colorPrimary,a.value=s.fontColor??q.colorGrayFF,c.value=r.value,u.value=l.value;break}}me(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const d=$(s.isDisabled?"0.6":"1"),f=$(s.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{s.isDisabled||(m=!0,r.value=sn(c.value,10),l.value=sn(u.value,10))},y=()=>{s.isDisabled||(m=!1,r.value=c.value,l.value=u.value)},E=ic(()=>{s.isDisabled||(r.value=sn(c.value,-10),l.value=sn(u.value,-10),setTimeout(()=>{m?v():y()},150),i("ceClick"),i("click"))},500);return e({wrapper:o}),(C,S)=>(I(),L("div",{ref_key:"wrapper",ref:o,class:"button",style:B([`opacity: ${d.value}`,`border: 1px solid ${r.value}`,`background-color: ${l.value}`,`color: ${a.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${f.value}`,"user-select: none"]),onMouseover:v,onMouseleave:y,onClick:S[0]||(S[0]=(...D)=>_e(E)&&_e(E)(...D))},[k("label",{class:"label truncate",style:B({padding:"0 "+C.padding,cursor:f.value})},[Ae(C.$slots,"default",{},()=>[C.icon&&C.iconPosition==="left"?(I(),Xe(Bt,{key:0,icon:C.icon,color:a.value,style:B({marginRight:_e(q).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ie("",!0),k("span",{style:B({cursor:f.value})},ge(C.label),5),C.icon&&C.iconPosition==="right"?(I(),Xe(Bt,{key:1,icon:C.icon,color:a.value,style:B({marginLeft:_e(q).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ie("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-22531d76]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-22531d76]{display:inline-flex;justify-content:center;align-items:center}
56
- `]],["__scopeId","data-v-22531d76"]]),eg=Z({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(s.borderColor),l=$(s.bgColor),a=$(s.fontColor),c=$(s.borderColor),u=$(s.bgColor);function h(C){switch(C){case"outline":r.value=s.borderColor??q.colorPrimary,l.value=s.bgColor??q.colorGrayFF,a.value=s.fontColor??q.colorPrimary,c.value=r.value,u.value=l.value;break;default:r.value=s.borderColor??q.colorPrimary,l.value=s.bgColor??q.colorPrimary,a.value=s.fontColor??q.colorGrayFF,c.value=r.value,u.value=l.value;break}}me(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const d=$(s.isDisabled?"0.6":"1"),f=$(s.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{s.isDisabled||(m=!0,r.value=sn(c.value,10),l.value=sn(u.value,10))},y=()=>{s.isDisabled||(m=!1,r.value=c.value,l.value=u.value)},E=ic(()=>{s.isDisabled||(r.value=sn(c.value,-10),l.value=sn(u.value,-10),setTimeout(()=>{m?v():y()},150),i("ceClick"),i("click"))},500);return e({wrapper:o}),(C,S)=>(I(),L("div",{ref_key:"wrapper",ref:o,class:"button",style:B([`opacity: ${d.value}`,`border: 1px solid ${r.value}`,`background-color: ${l.value}`,`color: ${a.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${f.value}`,"user-select: none"]),onMouseover:v,onMouseleave:y,onClick:S[0]||(S[0]=(...D)=>_e(E)&&_e(E)(...D))},[k("label",{class:"label truncate",style:B({padding:"0 "+C.padding,cursor:f.value})},[Ae(C.$slots,"default",{},()=>[C.icon&&C.iconPosition==="left"?(I(),Xe(Bt,{key:0,icon:C.icon,color:a.value,style:B({marginRight:_e(q).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ie("",!0),k("span",{style:B({cursor:f.value})},ge(C.label),5),C.icon&&C.iconPosition==="right"?(I(),Xe(Bt,{key:1,icon:C.icon,color:a.value,style:B({marginLeft:_e(q).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ie("",!0)],!0)],4)],36))}}),c_="",Ee=Q(eg,[["__scopeId","data-v-ee116edd"]]),tg=["onClick","value"],ng={class:"option-inner"},sg=Q(Z({customOptions:{Icon:Bt,Button:Ee},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;mn(()=>{ee.setStyleSheet(`
53
+ `;return function(){var j=new Error("get-stack-trace"),te=j&&j.stack?j.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ke=e.console&&(e.console.warn||e.console.log);return ke&&ke.call(e.console,P,te),p.apply(this,arguments)}}var g;typeof Object.assign!="function"?g=function(v){if(v===i||v===null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(v),P=1;P<arguments.length;P++){var j=arguments[P];if(j!==i&&j!==null)for(var te in j)j.hasOwnProperty(te)&&(b[te]=j[te])}return b}:g=Object.assign;var _=m(function(v,b,P){for(var j=Object.keys(b),te=0;te<j.length;)(!P||P&&v[j[te]]===i)&&(v[j[te]]=b[j[te]]),te++;return v},"extend","Use `assign`."),w=m(function(v,b){return _(v,b,!0)},"merge","Use `assign`.");function C(p,v,b){var P=v.prototype,j;j=p.prototype=Object.create(P),j.constructor=p,j._super=P,b&&g(j,b)}function E(p,v){return function(){return p.apply(v,arguments)}}function k(p,v){return typeof p==a?p.apply(v&&v[0]||i,v):p}function I(p,v){return p===i?v:p}function O(p,v,b){f(he(v),function(P){p.addEventListener(P,b,!1)})}function R(p,v,b){f(he(v),function(P){p.removeEventListener(P,b,!1)})}function ie(p,v){for(;p;){if(p==v)return!0;p=p.parentNode}return!1}function oe(p,v){return p.indexOf(v)>-1}function he(p){return p.trim().split(/\s+/g)}function xe(p,v,b){if(p.indexOf&&!b)return p.indexOf(v);for(var P=0;P<p.length;){if(b&&p[P][b]==v||!b&&p[P]===v)return P;P++}return-1}function ye(p){return Array.prototype.slice.call(p,0)}function Ie(p,v,b){for(var P=[],j=[],te=0;te<p.length;){var ke=v?p[te][v]:p[te];xe(j,ke)<0&&P.push(p[te]),j[te]=ke,te++}return b&&(v?P=P.sort(function(ft,wt){return ft[v]>wt[v]}):P=P.sort()),P}function De(p,v){for(var b,P,j=v[0].toUpperCase()+v.slice(1),te=0;te<o.length;){if(b=o[te],P=b?b+j:v,P in p)return P;te++}return i}var ve=1;function ue(){return ve++}function Q(p){var v=p.ownerDocument||p;return v.defaultView||v.parentWindow||e}var M=/mobile|tablet|ip(ad|hone|od)|android/i,H="ontouchstart"in e,G=De(e,"PointerEvent")!==i,pe=H&&M.test(navigator.userAgent),ne="touch",Pe="pen",Ke="mouse",Ue="kinect",Ye=25,Be=1,Dt=2,We=4,ht=8,Vt=1,ln=2,cn=4,y=8,x=16,N=ln|cn,A=y|x,F=N|A,W=["x","y"],q=["clientX","clientY"];function V(p,v){var b=this;this.manager=p,this.callback=v,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(P){k(p.options.enable,[p])&&b.handler(P)},this.init()}V.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(Q(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(Q(this.element),this.evWin,this.domHandler)}};function U(p){var v,b=p.options.inputClass;return b?v=b:G?v=Jr:pe?v=oo:H?v=ea:v=xt,new v(p,z)}function z(p,v,b){var P=b.pointers.length,j=b.changedPointers.length,te=v&Be&&P-j===0,ke=v&(We|ht)&&P-j===0;b.isFirst=!!te,b.isFinal=!!ke,te&&(p.session={}),b.eventType=v,J(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function J(p,v){var b=p.session,P=v.pointers,j=P.length;b.firstInput||(b.firstInput=me(v)),j>1&&!b.firstMultiple?b.firstMultiple=me(v):j===1&&(b.firstMultiple=!1);var te=b.firstInput,ke=b.firstMultiple,lt=ke?ke.center:te.center,ft=v.center=we(P);v.timeStamp=u(),v.deltaTime=v.timeStamp-te.timeStamp,v.angle=bt(lt,ft),v.distance=Xe(lt,ft),le(b,v),v.offsetDirection=Ve(v.deltaX,v.deltaY);var wt=Ne(v.deltaTime,v.deltaX,v.deltaY);v.overallVelocityX=wt.x,v.overallVelocityY=wt.y,v.overallVelocity=c(wt.x)>c(wt.y)?wt.x:wt.y,v.scale=ke?no(ke.pointers,P):1,v.rotation=ke?Tn(ke.pointers,P):0,v.maxPointers=b.prevInput?v.pointers.length>b.prevInput.maxPointers?v.pointers.length:b.prevInput.maxPointers:v.pointers.length,ae(b,v);var Yt=p.element;ie(v.srcEvent.target,Yt)&&(Yt=v.srcEvent.target),v.target=Yt}function le(p,v){var b=v.center,P=p.offsetDelta||{},j=p.prevDelta||{},te=p.prevInput||{};(v.eventType===Be||te.eventType===We)&&(j=p.prevDelta={x:te.deltaX||0,y:te.deltaY||0},P=p.offsetDelta={x:b.x,y:b.y}),v.deltaX=j.x+(b.x-P.x),v.deltaY=j.y+(b.y-P.y)}function ae(p,v){var b=p.lastInterval||v,P=v.timeStamp-b.timeStamp,j,te,ke,lt;if(v.eventType!=ht&&(P>Ye||b.velocity===i)){var ft=v.deltaX-b.deltaX,wt=v.deltaY-b.deltaY,Yt=Ne(P,ft,wt);te=Yt.x,ke=Yt.y,j=c(Yt.x)>c(Yt.y)?Yt.x:Yt.y,lt=Ve(ft,wt),p.lastInterval=v}else j=b.velocity,te=b.velocityX,ke=b.velocityY,lt=b.direction;v.velocity=j,v.velocityX=te,v.velocityY=ke,v.direction=lt}function me(p){for(var v=[],b=0;b<p.pointers.length;)v[b]={clientX:l(p.pointers[b].clientX),clientY:l(p.pointers[b].clientY)},b++;return{timeStamp:u(),pointers:v,center:we(v),deltaX:p.deltaX,deltaY:p.deltaY}}function we(p){var v=p.length;if(v===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,P=0,j=0;j<v;)b+=p[j].clientX,P+=p[j].clientY,j++;return{x:l(b/v),y:l(P/v)}}function Ne(p,v,b){return{x:v/p||0,y:b/p||0}}function Ve(p,v){return p===v?Vt:c(p)>=c(v)?p<0?ln:cn:v<0?y:x}function Xe(p,v,b){b||(b=W);var P=v[b[0]]-p[b[0]],j=v[b[1]]-p[b[1]];return Math.sqrt(P*P+j*j)}function bt(p,v,b){b||(b=W);var P=v[b[0]]-p[b[0]],j=v[b[1]]-p[b[1]];return Math.atan2(j,P)*180/Math.PI}function Tn(p,v){return bt(v[1],v[0],q)+bt(p[1],p[0],q)}function no(p,v){return Xe(v[0],v[1],q)/Xe(p[0],p[1],q)}var Yn={mousedown:Be,mousemove:Dt,mouseup:We},so="mousedown",dt="mousemove mouseup";function xt(){this.evEl=so,this.evWin=dt,this.pressed=!1,V.apply(this,arguments)}C(xt,V,{handler:function(v){var b=Yn[v.type];b&Be&&v.button===0&&(this.pressed=!0),b&Dt&&v.which!==1&&(b=We),this.pressed&&(b&We&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[v],changedPointers:[v],pointerType:Ke,srcEvent:v}))}});var io={pointerdown:Be,pointermove:Dt,pointerup:We,pointercancel:ht,pointerout:ht},Xy={2:ne,3:Pe,4:Ke,5:Ue},Yu="pointerdown",Xu="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Yu="MSPointerDown",Xu="MSPointerMove MSPointerUp MSPointerCancel");function Jr(){this.evEl=Yu,this.evWin=Xu,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Jr,V,{handler:function(v){var b=this.store,P=!1,j=v.type.toLowerCase().replace("ms",""),te=io[j],ke=Xy[v.pointerType]||v.pointerType,lt=ke==ne,ft=xe(b,v.pointerId,"pointerId");te&Be&&(v.button===0||lt)?ft<0&&(b.push(v),ft=b.length-1):te&(We|ht)&&(P=!0),!(ft<0)&&(b[ft]=v,this.callback(this.manager,te,{pointers:b,changedPointers:[v],pointerType:ke,srcEvent:v}),P&&b.splice(ft,1))}});var qy={touchstart:Be,touchmove:Dt,touchend:We,touchcancel:ht},Ky="touchstart",Zy="touchstart touchmove touchend touchcancel";function qu(){this.evTarget=Ky,this.evWin=Zy,this.started=!1,V.apply(this,arguments)}C(qu,V,{handler:function(v){var b=qy[v.type];if(b===Be&&(this.started=!0),!!this.started){var P=Qy.call(this,v,b);b&(We|ht)&&P[0].length-P[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:ne,srcEvent:v})}}});function Qy(p,v){var b=ye(p.touches),P=ye(p.changedTouches);return v&(We|ht)&&(b=Ie(b.concat(P),"identifier",!0)),[b,P]}var Jy={touchstart:Be,touchmove:Dt,touchend:We,touchcancel:ht},e_="touchstart touchmove touchend touchcancel";function oo(){this.evTarget=e_,this.targetIds={},V.apply(this,arguments)}C(oo,V,{handler:function(v){var b=Jy[v.type],P=t_.call(this,v,b);P&&this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:ne,srcEvent:v})}});function t_(p,v){var b=ye(p.touches),P=this.targetIds;if(v&(Be|Dt)&&b.length===1)return P[b[0].identifier]=!0,[b,b];var j,te,ke=ye(p.changedTouches),lt=[],ft=this.target;if(te=b.filter(function(wt){return ie(wt.target,ft)}),v===Be)for(j=0;j<te.length;)P[te[j].identifier]=!0,j++;for(j=0;j<ke.length;)P[ke[j].identifier]&&lt.push(ke[j]),v&(We|ht)&&delete P[ke[j].identifier],j++;if(lt.length)return[Ie(te.concat(lt),"identifier",!0),lt]}var n_=2500,Ku=25;function ea(){V.apply(this,arguments);var p=E(this.handler,this);this.touch=new oo(this.manager,p),this.mouse=new xt(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}C(ea,V,{handler:function(v,b,P){var j=P.pointerType==ne,te=P.pointerType==Ke;if(!(te&&P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents)){if(j)s_.call(this,b,P);else if(te&&i_.call(this,P))return;this.callback(v,b,P)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function s_(p,v){p&Be?(this.primaryTouch=v.changedPointers[0].identifier,Zu.call(this,v)):p&(We|ht)&&Zu.call(this,v)}function Zu(p){var v=p.changedPointers[0];if(v.identifier===this.primaryTouch){var b={x:v.clientX,y:v.clientY};this.lastTouches.push(b);var P=this.lastTouches,j=function(){var te=P.indexOf(b);te>-1&&P.splice(te,1)};setTimeout(j,n_)}}function i_(p){for(var v=p.srcEvent.clientX,b=p.srcEvent.clientY,P=0;P<this.lastTouches.length;P++){var j=this.lastTouches[P],te=Math.abs(v-j.x),ke=Math.abs(b-j.y);if(te<=Ku&&ke<=Ku)return!0}return!1}var Qu=De(r.style,"touchAction"),Ju=Qu!==i,eh="compute",th="auto",ta="manipulation",Xn="none",Ws="pan-x",Us="pan-y",ro=r_();function na(p,v){this.manager=p,this.set(v)}na.prototype={set:function(p){p==eh&&(p=this.compute()),Ju&&this.manager.element.style&&ro[p]&&(this.manager.element.style[Qu]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return f(this.manager.recognizers,function(v){k(v.options.enable,[v])&&(p=p.concat(v.getTouchAction()))}),o_(p.join(" "))},preventDefaults:function(p){var v=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){v.preventDefault();return}var P=this.actions,j=oe(P,Xn)&&!ro[Xn],te=oe(P,Us)&&!ro[Us],ke=oe(P,Ws)&&!ro[Ws];if(j){var lt=p.pointers.length===1,ft=p.distance<2,wt=p.deltaTime<250;if(lt&&ft&&wt)return}if(!(ke&&te)&&(j||te&&b&N||ke&&b&A))return this.preventSrc(v)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function o_(p){if(oe(p,Xn))return Xn;var v=oe(p,Ws),b=oe(p,Us);return v&&b?Xn:v||b?v?Ws:Us:oe(p,ta)?ta:th}function r_(){if(!Ju)return!1;var p={},v=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=v?e.CSS.supports("touch-action",b):!0}),p}var ao=1,$t=2,ls=4,Pn=8,un=Pn,Ys=16,Ut=32;function hn(p){this.options=g({},this.defaults,p||{}),this.id=ue(),this.manager=null,this.options.enable=I(this.options.enable,!0),this.state=ao,this.simultaneous={},this.requireFail=[]}hn.prototype={defaults:{},set:function(p){return g(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(d(p,"recognizeWith",this))return this;var v=this.simultaneous;return p=lo(p,this),v[p.id]||(v[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return d(p,"dropRecognizeWith",this)?this:(p=lo(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(d(p,"requireFailure",this))return this;var v=this.requireFail;return p=lo(p,this),xe(v,p)===-1&&(v.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(d(p,"dropRequireFailure",this))return this;p=lo(p,this);var v=xe(this.requireFail,p);return v>-1&&this.requireFail.splice(v,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var v=this,b=this.state;function P(j){v.manager.emit(j,p)}b<Pn&&P(v.options.event+nh(b)),P(v.options.event),p.additionalEvent&&P(p.additionalEvent),b>=Pn&&P(v.options.event+nh(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=Ut},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(Ut|ao)))return!1;p++}return!0},recognize:function(p){var v=g({},p);if(!k(this.options.enable,[this,v])){this.reset(),this.state=Ut;return}this.state&(un|Ys|Ut)&&(this.state=ao),this.state=this.process(v),this.state&($t|ls|Pn|Ys)&&this.tryEmit(v)},process:function(p){},getTouchAction:function(){},reset:function(){}};function nh(p){return p&Ys?"cancel":p&Pn?"end":p&ls?"move":p&$t?"start":""}function sh(p){return p==x?"down":p==y?"up":p==ln?"left":p==cn?"right":""}function lo(p,v){var b=v.manager;return b?b.get(p):p}function zt(){hn.apply(this,arguments)}C(zt,hn,{defaults:{pointers:1},attrTest:function(p){var v=this.options.pointers;return v===0||p.pointers.length===v},process:function(p){var v=this.state,b=p.eventType,P=v&($t|ls),j=this.attrTest(p);return P&&(b&ht||!j)?v|Ys:P||j?b&We?v|Pn:v&$t?v|ls:$t:Ut}});function co(){zt.apply(this,arguments),this.pX=null,this.pY=null}C(co,zt,{defaults:{event:"pan",threshold:10,pointers:1,direction:F},getTouchAction:function(){var p=this.options.direction,v=[];return p&N&&v.push(Us),p&A&&v.push(Ws),v},directionTest:function(p){var v=this.options,b=!0,P=p.distance,j=p.direction,te=p.deltaX,ke=p.deltaY;return j&v.direction||(v.direction&N?(j=te===0?Vt:te<0?ln:cn,b=te!=this.pX,P=Math.abs(p.deltaX)):(j=ke===0?Vt:ke<0?y:x,b=ke!=this.pY,P=Math.abs(p.deltaY))),p.direction=j,b&&P>v.threshold&&j&v.direction},attrTest:function(p){return zt.prototype.attrTest.call(this,p)&&(this.state&$t||!(this.state&$t)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var v=sh(p.direction);v&&(p.additionalEvent=this.options.event+v),this._super.emit.call(this,p)}});function sa(){zt.apply(this,arguments)}C(sa,zt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Xn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&$t)},emit:function(p){if(p.scale!==1){var v=p.scale<1?"in":"out";p.additionalEvent=this.options.event+v}this._super.emit.call(this,p)}});function ia(){hn.apply(this,arguments),this._timer=null,this._input=null}C(ia,hn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[th]},process:function(p){var v=this.options,b=p.pointers.length===v.pointers,P=p.distance<v.threshold,j=p.deltaTime>v.time;if(this._input=p,!P||!b||p.eventType&(We|ht)&&!j)this.reset();else if(p.eventType&Be)this.reset(),this._timer=h(function(){this.state=un,this.tryEmit()},v.time,this);else if(p.eventType&We)return un;return Ut},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===un&&(p&&p.eventType&We?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function oa(){zt.apply(this,arguments)}C(oa,zt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Xn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&$t)}});function ra(){zt.apply(this,arguments)}C(ra,zt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:N|A,pointers:1},getTouchAction:function(){return co.prototype.getTouchAction.call(this)},attrTest:function(p){var v=this.options.direction,b;return v&(N|A)?b=p.overallVelocity:v&N?b=p.overallVelocityX:v&A&&(b=p.overallVelocityY),this._super.attrTest.call(this,p)&&v&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(b)>this.options.velocity&&p.eventType&We},emit:function(p){var v=sh(p.offsetDirection);v&&this.manager.emit(this.options.event+v,p),this.manager.emit(this.options.event,p)}});function uo(){hn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(uo,hn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ta]},process:function(p){var v=this.options,b=p.pointers.length===v.pointers,P=p.distance<v.threshold,j=p.deltaTime<v.time;if(this.reset(),p.eventType&Be&&this.count===0)return this.failTimeout();if(P&&j&&b){if(p.eventType!=We)return this.failTimeout();var te=this.pTime?p.timeStamp-this.pTime<v.interval:!0,ke=!this.pCenter||Xe(this.pCenter,p.center)<v.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!ke||!te?this.count=1:this.count+=1,this._input=p;var lt=this.count%v.taps;if(lt===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=un,this.tryEmit()},v.interval,this),$t):un}return Ut},failTimeout:function(){return this._timer=h(function(){this.state=Ut},this.options.interval,this),Ut},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==un&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function dn(p,v){return v=v||{},v.recognizers=I(v.recognizers,dn.defaults.preset),new aa(p,v)}dn.VERSION="2.0.7",dn.defaults={domEvents:!1,touchAction:eh,enable:!0,inputTarget:null,inputClass:null,preset:[[oa,{enable:!1}],[sa,{enable:!1},["rotate"]],[ra,{direction:N}],[co,{direction:N},["swipe"]],[uo],[uo,{event:"doubletap",taps:2},["tap"]],[ia]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var a_=1,ih=2;function aa(p,v){this.options=g({},dn.defaults,v||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=U(this),this.touchAction=new na(this,this.options.touchAction),oh(this,!0),f(this.options.recognizers,function(b){var P=this.add(new b[0](b[1]));b[2]&&P.recognizeWith(b[2]),b[3]&&P.requireFailure(b[3])},this)}aa.prototype={set:function(p){return g(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?ih:a_},recognize:function(p){var v=this.session;if(!v.stopped){this.touchAction.preventDefaults(p);var b,P=this.recognizers,j=v.curRecognizer;(!j||j&&j.state&un)&&(j=v.curRecognizer=null);for(var te=0;te<P.length;)b=P[te],v.stopped!==ih&&(!j||b==j||b.canRecognizeWith(j))?b.recognize(p):b.reset(),!j&&b.state&($t|ls|Pn)&&(j=v.curRecognizer=b),te++}},get:function(p){if(p instanceof hn)return p;for(var v=this.recognizers,b=0;b<v.length;b++)if(v[b].options.event==p)return v[b];return null},add:function(p){if(d(p,"add",this))return this;var v=this.get(p.options.event);return v&&this.remove(v),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(d(p,"remove",this))return this;if(p=this.get(p),p){var v=this.recognizers,b=xe(v,p);b!==-1&&(v.splice(b,1),this.touchAction.update())}return this},on:function(p,v){if(p!==i&&v!==i){var b=this.handlers;return f(he(p),function(P){b[P]=b[P]||[],b[P].push(v)}),this}},off:function(p,v){if(p!==i){var b=this.handlers;return f(he(p),function(P){v?b[P]&&b[P].splice(xe(b[P],v),1):delete b[P]}),this}},emit:function(p,v){this.options.domEvents&&l_(p,v);var b=this.handlers[p]&&this.handlers[p].slice();if(!(!b||!b.length)){v.type=p,v.preventDefault=function(){v.srcEvent.preventDefault()};for(var P=0;P<b.length;)b[P](v),P++}},destroy:function(){this.element&&oh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function oh(p,v){var b=p.element;if(b.style){var P;f(p.options.cssProps,function(j,te){P=De(b.style,te),v?(p.oldCssProps[P]=b.style[P],b.style[P]=j):b.style[P]=p.oldCssProps[P]||""}),v||(p.oldCssProps={})}}function l_(p,v){var b=t.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=v,v.target.dispatchEvent(b)}g(dn,{INPUT_START:Be,INPUT_MOVE:Dt,INPUT_END:We,INPUT_CANCEL:ht,STATE_POSSIBLE:ao,STATE_BEGAN:$t,STATE_CHANGED:ls,STATE_ENDED:Pn,STATE_RECOGNIZED:un,STATE_CANCELLED:Ys,STATE_FAILED:Ut,DIRECTION_NONE:Vt,DIRECTION_LEFT:ln,DIRECTION_RIGHT:cn,DIRECTION_UP:y,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:N,DIRECTION_VERTICAL:A,DIRECTION_ALL:F,Manager:aa,Input:V,TouchAction:na,TouchInput:oo,MouseInput:xt,PointerEventInput:Jr,TouchMouseInput:ea,SingleTouchInput:qu,Recognizer:hn,AttrRecognizer:zt,Tap:uo,Pan:co,Swipe:ra,Pinch:sa,Rotate:oa,Press:ia,on:O,off:R,each:f,merge:w,extend:_,assign:g,inherit:C,bindFn:E,prefixed:De});var c_=typeof e<"u"?e:typeof self<"u"?self:{};c_.Hammer=dn,typeof i=="function"&&i.amd?i(function(){return dn}):n.exports?n.exports=dn:e[s]=dn})(window,document,"Hammer")})(Xc);var Em=Xc.exports;const Cm=wm(Em);function Wn(n){return n*Math.PI/180}function Pr(n){return n*180/Math.PI}function Sm(n,e,t,s){const i=n-t,o=e-s;return Math.sqrt(i*i+o*o)}function qc(n,e,t,s){const i=t-n,o=s-e;return Math.atan2(o,i)}function Kc(n,e){return{x:Math.cos(n)*e,y:Math.sin(n)*e}}function Zc(n,e){const t=Math.sqrt(Math.pow(n,2)+Math.pow(e,2));return{x:n/=t,y:e/=t}}function Or(n,e,t,s,i,o,r,a,l,c){let u=Math.PI*120/180,h=Math.PI/180*(+i||0),d=[],f,m=function(ve,ue,Q){const M=ve*Math.cos(Q)-ue*Math.sin(Q),H=ve*Math.sin(Q)+ue*Math.cos(Q);return{x:M,y:H}},g,_,w,C;if(c)g=c[0],_=c[1],w=c[2],C=c[3];else{f=m(n,e,-h),n=f.x,e=f.y,f=m(a,l,-h),a=f.x,l=f.y;let ve=(n-a)/2,ue=(e-l)/2,Q=ve*ve/(t*t)+ue*ue/(s*s);Q>1&&(Q=Math.sqrt(Q),t=Q*t,s=Q*s);let M=t*t,H=s*s,G=(o==r?-1:1)*Math.sqrt(Math.abs((M*H-M*ue*ue-H*ve*ve)/(M*ue*ue+H*ve*ve)));w=G*t*ue/s+(n+a)/2,C=G*-s*ve/t+(e+l)/2,g=Math.asin(Number(((e-C)/s).toFixed(9))),_=Math.asin(Number(((l-C)/s).toFixed(9))),g=n<w?Math.PI-g:g,_=a<w?Math.PI-_:_,g<0&&(g=Math.PI*2+g),_<0&&(_=Math.PI*2+_),r&&g>_&&(g=g-Math.PI*2),!r&&_>g&&(_=_-Math.PI*2)}let E=_-g;if(Math.abs(E)>u){let ve=_,ue=a,Q=l;_=g+u*(r&&_>g?1:-1),a=w+t*Math.cos(_),l=C+s*Math.sin(_),d=Or(a,l,t,s,i,0,r,ue,Q,[_,ve,w,C])}E=_-g;let k=Math.cos(g),I=Math.sin(g),O=Math.cos(_),R=Math.sin(_),ie=Math.tan(E/4),oe=4/3*t*ie,he=4/3*s*ie,xe=[n,e],ye=[n+oe*I,e-he*k],Ie=[a+oe*R,l-he*O],De=[a,l];return ye[0]=2*xe[0]-ye[0],ye[1]=2*xe[1]-ye[1],c?[[...ye,...Ie,...De]].concat(d):[[...ye,...Ie,...De]].concat(d).map(ve=>{const ue=[];for(let Q=0,M=ve.length;Q<M;Q++)ue[Q]=Q%2?m(ve[Q-1],ve[Q],h).y:m(ve[Q],ve[Q+1],h).x;return ue})}function Nr(n,e,t,s,i,o){return[n/3+.6666666666666666*t,e/3+.6666666666666666*s,i/3+.6666666666666666*t,o/3+.6666666666666666*s,i,o]}function As(n,e,t,s){return[n,e,t,s,t,s]}const Gi={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class ns{static createSVGElement(e="path",t){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",e);return t&&X.attribute(s,t),s}static createSvgPath(e){return this.createSVGElement("path",{d:e})}static downloadFromSVGElement(e,t="shape"){return Uc(um(e),`${t}.svg`)}static downloadFromSVGString(e,t="shape"){return Uc(Hc(e),`${t}.svg`)}static getSVGRawStringFromElement(e){return Wc(e)}static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e))}static parseSVGPath(e){const t=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,o)=>{let r=i.toLowerCase();const a=rp(o);for(r=="m"&&a.length>Gi[r]&&(t.push([i,...a.splice(0,Gi[r])]),r="l",i=i=="m"?"l":"L");a.length;){if(a.length<Gi[r])throw new Error(`parseSVGPath : ${s} : ${i} : $${a}`);t.push([i,...a.splice(0,Gi[r])])}return r=="z"&&t.push([i]),""}),t}static absolutizeSVGPath(e){let t=0,s=0,i=0,o=0;return e.map(function(r){const a=r[0],l=a.toUpperCase();if(a!=l)switch(r[0]=l,a){case"a":r[6]+=i,r[7]+=o;break;case"v":r[1]+=o;break;case"h":r[1]+=i;break;default:for(let c=1;c<r.length;)r[c++]+=i,r[c++]+=o}switch(l){case"Z":i=t,o=s;break;case"H":i=r[1];break;case"V":o=r[1];break;case"M":i=t=r[1],o=s=r[2];break;default:i=r[r.length-2],o=r[r.length-1]}return r})}static relativeSVGPath(e){let t=0,s=0,i=0,o=0;return e.map(function(r){const a=r[0],l=a.toLowerCase();if(a!=l)switch(r[0]=l,a){case"A":r[6]-=i,r[7]-=o;break;case"V":r[1]-=o;break;case"H":r[1]-=i;break;default:for(let c=1;c<r.length;)r[c++]-=i,r[c++]-=o}switch(l){case"z":i=t,o=s;break;case"h":i+=r[1];break;case"v":o+=r[1];break;case"m":i+=r[1],o+=r[2],t+=r[1],s+=r[2];break;default:i+=r[r.length-2],o+=r[r.length-1]}return r})}static normalizeSVGPath(e){let t=[],s=0,i=0,o=0,r=0,a=0,l=0,c=0,u=0,h;for(let d=0,f=e.length;d<f;d++){let m=e[d];const g=m[0];switch(g){case"M":s=m[1],i=m[2];break;case"A":const _=Or(o,r,m[1],m[2],m[3],m[4],m[5],m[6],m[7]);if(!_.length)continue;_.forEach((E,k)=>{const[I,O,R,ie,oe,he]=E;m=["C",I,O,R,ie,oe,he],k<_.length-1&&t.push(m)});break;case"S":let w=o,C=r;(h=="C"||h=="S")&&(w+=w-c,C+=C-u),m=["C",w,C,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=o*2-a,l=r*2-l):(a=o,l=r),m=["C",...Nr(o,r,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...Nr(o,r,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...As(o,r,m[1],m[2])];break;case"H":m=["C",...As(o,r,m[1],r)];break;case"V":m=["C",...As(o,r,o,m[1])];break;case"Z":m=["C",...As(o,r,s,i)];break}h=g,o=m[m.length-2],r=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=o,u=r),t.push(m)}return t}static catmullRom2bezier(e){let t=[];for(let s=0,i=e.length;i-2>s;s+=2){let o;s==0?o=[{x:e[s],y:e[s+1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}]:i-4==s?o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+2],y:e[s+3]}]:o=[{x:e[s-2],y:e[s-1]},{x:e[s],y:e[s+1]},{x:e[s+2],y:e[s+3]},{x:e[s+4],y:e[s+5]}];const r=[{x:o[1].x,y:o[1].y},{x:(-o[0].x+6*o[1].x+o[2].x)/6,y:(-o[0].y+6*o[1].y+o[2].y)/6},{x:(o[1].x+6*o[2].x-o[3].x)/6,y:(o[1].y+6*o[2].y-o[3].y)/6},{x:o[2].x,y:o[2].y}];t.push(["C",r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y])}return t}static zvhToLSVGPath(e){let t=[],s=["L",0,0],i;for(let o=0,r=e.length;o<r;o++){let a=e[o];switch(a[0]){case"M":s=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(s);break;case"H":i=t[t.length-1]||["L",0,0],t.push(["L",a[1],i[i.length-1]]);break;case"V":i=t[t.length-1]||["L",0,0],t.push(["L",i[i.length-2],a[1]]);break;default:t.push(a)}}return t}static longhandSVGPath(e){const t={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,o=0;for(let r=0,a=e.length;r<a;r++){const l=e[r],c=t[l[0]];c&&(l[0]=c.to,s&&(s[0]===c.to?(i=2*Number(s[c.x+2])-Number(s[c.x]),o=2*Number(s[c.x+3])-Number(s[c.x+1])):(i=Number(s[s.length-2]),o=Number(s[s.length-1]))),l.splice(1,0,i,o)),s=l}return e}static SVGPathDataToD(e){return e.map(t=>{switch(t[0].toLowerCase()){case"a":return`${t[0]} ${t[1]},${t[2]} ${t[3]} ${t[4]},${t[5]} ${t[6]},${t[7]}`;case"c":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]} ${t[5]},${t[6]}`;case"s":case"q":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]}`;default:return t[0]+" "+t.slice(1).join(",")}}).join(" ")}static curveDim(e,t,s,i,o,r,a,l){const c=[],u=[[],[]];let h,d,f,m,g,_,w,C;for(let O=0;O<2;++O){if(O===0?(d=6*e-12*s+6*o,h=-3*e+9*s-9*o+3*a,f=3*s-3*e):(d=6*t-12*i+6*r,h=-3*t+9*i-9*r+3*l,f=3*i-3*t),Math.abs(h)<1e-12){if(Math.abs(d)<1e-12)continue;m=-f/d,m>0&&m<1&&c.push(m);continue}w=d*d-4*f*h,C=Math.sqrt(w),!(w<0)&&(g=(-d+C)/(2*h),g>0&&g<1&&c.push(g),_=(-d-C)/(2*h),_>0&&_<1&&c.push(_))}let E=c.length,k;const I=E;for(;E--;)m=c[E],k=1-m,u[0][E]=k*k*k*e+3*k*k*m*s+3*k*m*m*o+m*m*m*a,u[1][E]=k*k*k*t+3*k*k*m*i+3*k*m*m*r+m*m*m*l;return u[0][I]=e,u[1][I]=t,u[0][I+1]=a,u[1][I+1]=l,u[0].length=u[1].length=I+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}static base3(e,t,s,i,o){const r=-3*t+9*s-9*i+3*o,a=e*r+6*t-12*s+6*i;return e*a-3*t+3*s}static bezlen(e,t,s,i,o,r,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let g=0;g<h;g++){const _=u*d[g]+u,w=this.base3(_,e,s,o,a),C=this.base3(_,t,i,r,l),E=w*w+C*C;m+=f[g]*Math.sqrt(E)}return u*m}}const nt=ns;class Ft{id;x;prevX;y;prevY;degree;prevDegree;scaleOnOrigin;prevScaleOnOrigin;skewDegreeOnOrigin;prevSkewDegreeOnOrigin;vx;vy;ax;ay;mass;attrs;enableDrag;followMouse;targetToAfterDragFree;history=[];coordinateIsShapeCenter=!1;path2d=new Path2D;isDragging=!1;el;constructor(e){this.id=tp(),this.prevX=this.x=e?.x||0,this.prevY=this.y=e?.y||0,this.prevDegree=this.degree=e?.degree||0,this.prevScaleOnOrigin=this.scaleOnOrigin=e?.scaleOnOrigin||1,this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin=e?.skewDegreeOnOrigin||0,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||0,this.attrs=Object.assign({fill:"none",stroke:"none"},e?.attrs),this.enableDrag=e?.enableDrag||!1,this.followMouse=e?.followMouse||!1,this.targetToAfterDragFree=e?.targetToAfterDragFree}save(){this.history.push(ac(this))}restore(){const e=this.history.pop();e&&(this.id=e.id,this.x=e.x,this.y=e.y,this.prevDegree=this.degree=e.degree,this.prevScaleOnOrigin=this.scaleOnOrigin=e.scaleOnOrigin,this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin=e.skewDegreeOnOrigin,this.vx=e.vx,this.vy=e.vy,this.ax=e.ax,this.ay=e.ay,this.mass=e.mass,this.attrs=e.attrs)}getBoundingClientRect(){return null}toSVGPathD(){const e=[],t=this.toSVGPathData();return t[0]&&Array.isArray(t[0])?e.push(...t):e.push(t),nt.SVGPathDataToD(e)}distanceTo(e){return Sm(this.x,this.y,e.x,e.y)}angleTo(e){return this.degree=Pr(qc(this.x,this.y,e.x,e.y)),this.degree}velocityTo(e){return{vx:e.x-this.x,vy:e.y-this.y}}followTo(e,t=3){const s=this.angleTo(e),{x:i,y:o}=Kc(Wn(s),t);this.vx=i,this.vy=o,this.nextFrame()}followAccelerationTo(e,t=.05){const s=this.angleTo(e),{x:i,y:o}=Kc(Wn(s),t);this.ax=i,this.ay=o,this.nextFrame()}nextFrame(e){const t=e?.gravity??0,s=e?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=t,s>0){const i=Math.atan2(this.vy,this.vx);let o=Math.sqrt(this.vx*this.vx+this.vy*this.vy);o>s?o-=s:o=0,this.vx=Math.cos(i)*o,this.vy=Math.sin(i)*o}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,t){const s=t?.gravity??0,i=t?.friction??1,o=t?.easing??.05,r=e.x-this.x,a=e.y-this.y;this.vx=r*o,this.vy=a*o,this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(e,t){const s=t?.gravity??0,i=t?.friction??.95,o=t?.spring??.03;(Array.isArray(e)?e:[e]).forEach(a=>{const l=a.x-this.x,c=a.y-this.y,u=l*o,h=c*o;this.vx+=u,this.vy+=h}),this.vy+=s,this.vx*=i,this.vy*=i,this.x+=this.vx,this.y+=this.vy}nextFrameSpringConnect(e,t){const s=t?.gravity??0,i=t?.friction??.95,o=t?.spring??.03,r=t?.springLength??100,a=this.angleTo(e);this.nextFrameSpringTo(new at({x:e.x-Math.cos(Wn(a))*r,y:e.y-Math.sin(Wn(a))*r}),{spring:o,friction:i,gravity:s})}}class Ot extends Ft{width;height;borderRadius;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0}static fromBezier(e,t,s,i,o,r,a,l){const c=ns.curveDim(e,t,s,i,o,r,a,l);return new Ot({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return this}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["M",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(e){e.beginPath(),this.borderRadius<=0?e.rect(0,0,this.width,this.height):(e.moveTo(0,this.borderRadius),e.lineTo(0,this.height-this.borderRadius),e.quadraticCurveTo(0,this.height,this.borderRadius,this.height),e.lineTo(this.width-this.borderRadius,this.height),e.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),e.lineTo(this.width,this.borderRadius),e.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),e.lineTo(this.borderRadius,0),e.quadraticCurveTo(0,0,0,this.borderRadius)),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height&&this.borderRadius===e.borderRadius}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height}clone(e){return new Ot({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}class at extends Ft{radius;constructor(e){super(e),this.coordinateIsShapeCenter=!0,this.radius=e?.radius||0}getBoundingClientRect(){return new Ot({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return this.radius?[["M",this.x,this.y],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:["M",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}toArray(){return[this.x,this.y]}setX(e){this.x=e}setY(e){this.y=e}setXY(e,t){this.x=e,this.y=t}eq(e){return this.x===e.x&&this.y===e.y}midPointBtw(e){return new at({x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2})}clone(e){return new at({x:e.x,y:e.y,radius:e.radius})}nextFrameCollisionTo(e){const t=e.x-this.x,s=e.y-this.y;if(Math.sqrt(t*t+s*s)<this.radius+e.radius){const r=Math.atan2(s,t),a=Math.sin(r),l=Math.cos(r),c={x:0,y:0},u=o(t,s,a,l,!0),h=o(this.vx,this.vy,a,l,!0),d=o(e.vx,e.vy,a,l,!0),f=h.x-d.x;h.x=((this.mass-e.mass)*h.x+2*e.mass*d.x)/(this.mass+e.mass),d.x=f+h.x;const m=Math.abs(h.x)+Math.abs(d.x),g=this.radius+e.radius-Math.abs(c.x-u.x);c.x+=h.x/m*g,u.x+=d.x/m*g;const _=o(c.x,c.y,a,l,!1),w=o(u.x,u.y,a,l,!1);e.x=this.x+w.x,e.y=this.y+w.y,this.x=this.x+_.x,this.y=this.y+_.y;const C=o(h.x,h.y,a,l,!1),E=o(d.x,d.y,a,l,!1);this.vx=C.x,this.vy=C.y,e.vx=E.x,e.vy=E.y}function o(r,a,l,c,u=!1){return{x:u?r*c+a*l:r*c-a*l,y:u?a*c-r*l:a*c+r*l}}}nextFrameBounce(e,t){const s=e.x,i=e.y,o=e.x+e.width,r=e.y+e.height,a=t?.bounce??-1;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=a):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=a),this.y+this.radius>r?(this.y=r-this.radius,this.vy*=a):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=a)}}class km{constructor(){}static getFormatKeyNames(e){const t=_m(),s=[];return e.ctrl&&s.push(t?"Cmd":"Ctrl"),e.shift&&s.push("Shift"),e.alt&&s.push("Alt"),typeof e.key=="string"?s.push(ar(e.key)):Array.isArray(e.key)&&(e.key.map(i=>ar(i)),s.push(...e.key)),s}static matchKeyScheme(e,t){const s=e.ctrl??!1,i=e.shift??!1,o=e.alt??!1;if(e.exact)return(s===t.metaKey||s===t.ctrlKey)&&i===t.shiftKey&&o===t.altKey;const r=[];return s&&r.push(s===t.metaKey||s===t.ctrlKey),i&&r.push(i===t.shiftKey),o&&r.push(o===t.altKey),r.every(a=>a)}static on(e,t){if(e?.key===void 0||e?.key===null)return t;const s=e?.target??window;let i=!1;const o=this.getFormatKeyNames(e),r=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&o.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(e,a)){a.preventDefault();const l=t(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return t.title=e?.title??"",t.formatedKeyNames=o,t.pause=()=>i=!0,t.restart=()=>i=!1,t.removeListener=()=>s.removeEventListener("keydown",r),s.addEventListener("keydown",r),t}}class Se extends dc{container;width;height;mousePoint;hammer;domEventRemoveListeners=[];constructor(e=document.documentElement,t=!0){super(),this.container=e,this.width=this.container.clientWidth,this.height=this.container.clientHeight,this.hammer=new Cm(this.container),this.mousePoint=new at({x:0,y:0}),t&&this.start()}_emitDebounce=ap((e,...t)=>super.emit(e,...t),50);emit(e,...t){switch(e){case"panLeft":case"panRight":this._emitDebounce(e,...t);break;default:super.emit(e,...t);break}return this}static singleton;static globalScrollChangeCallbacks=[];static get page(){if(Se.singleton)return Se.singleton;Se.singleton=new Se,Se.singleton.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{hm().then(t=>dm(t[0])).then(t=>{Se.singleton.emit("openFile",t)}).catch(t=>{Se.singleton.emit("openFileError",t)})}),Se.singleton.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>Se.globalScrollChangeCallbacks.forEach(t=>t());return Se.singleton.registerGlobalScrollChange=t=>{Se.globalScrollChangeCallbacks.push(t),Se.globalScrollChangeCallbacks.length==1&&document.addEventListener("scroll",e)},Se.singleton.removeGlobalScrollChange=t=>{const s=Se.globalScrollChangeCallbacks.findIndex(i=>i==t);s>=0&&(Se.globalScrollChangeCallbacks.splice(s,1),Se.globalScrollChangeCallbacks.length==0&&document.removeEventListener("scroll",e))},Se.singleton}start(){this.initMouseEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventRemoveListeners(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParentWhenScrollChange()}restart(){this.destroy(),this.start()}destroy(){this.domEventRemoveListeners.forEach(e=>e()),this.removeAllListeners()}addDOMEventRemoveListeners(e){this.domEventRemoveListeners.push(e)}setMousePoint(e){const t=vm(this.container,e);return this.mousePoint.x=t.x,this.mousePoint.y=t.y,t}initMouseEventListeners(){const e=M=>{this.emit("mouseDown",M),this.container.style.userSelect="none"},t=M=>{this.emit("mouseUp",M),this.container.style.userSelect=""},s=M=>{this.emit("mouseMove",M)},i=M=>{this.emit("mouseOver",M)},o=M=>{this.emit("mouseOut",M),this.container.style.userSelect=""},r=M=>{this.emit("mouseClick",M)},a=M=>{this.emit("mouseDoubleClick",M)},l=M=>{this.emit("mouseWheel",M)},c=M=>{this.emit("mouseContextMenu",M)},u=M=>{this.emit("touchStart",M),this.container.style.userSelect="none"},h=M=>{this.emit("touchEnd",M),this.container.style.userSelect=""},d=M=>{this.emit("touchCancel",M),this.container.style.userSelect=""},f=M=>{this.emit("touchMove",M)},m=M=>{this.emit("pointerDown",M),this.container.style.userSelect="none"},g=M=>{this.emit("pointerUp",M),this.container.style.userSelect=""},_=M=>{this.emit("pointerCancel",M),this.container.style.userSelect=""},w=M=>{this.emit("pointerMove",M)},C=M=>{this.emit("pan",M)},E=M=>{this.emit("panStart",M),this.container.style.userSelect="none"},k=M=>{this.emit("panMove",M)},I=M=>{this.emit("panEnd",M),this.container.style.userSelect=""},O=M=>{this.emit("panCancel",M),this.container.style.userSelect=""},R=M=>{this.emit("panLeft",M)},ie=M=>{this.emit("panRight",M)},oe=M=>{this.emit("panUp",M),this.container.style.userSelect=""},he=M=>{this.emit("panDown",M),this.container.style.userSelect="none"},xe=M=>{this.emit("pinch",M)},ye=M=>{this.emit("press",M)},Ie=M=>{this.emit("rotate",M)},De=M=>{this.emit("swipe",M)},ve=M=>{this.emit("tap",M)},ue=M=>{!M.target||this.container==M.target||this.container.contains(M.target)||this.emit("tapOutSide",M)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",t),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",o),this.container.addEventListener("click",r),this.container.addEventListener("dblclick",a),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",d),this.container.addEventListener("touchmove",f),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",g),this.container.addEventListener("pointercancel",_),this.container.addEventListener("pointermove",w),this.hammer.on("pan",C),this.hammer.on("panstart",E),this.hammer.on("panmove",k),this.hammer.on("panend",I),this.hammer.on("pancancel",O),this.hammer.on("panleft",R),this.hammer.on("panright",ie),this.hammer.on("panup",oe),this.hammer.on("pandown",he),this.hammer.on("pinch",xe),this.hammer.on("press",ye),this.hammer.on("rotate",Ie),this.hammer.on("swipe",De),this.hammer.on("tap",ve),document.addEventListener("pointerdown",ue,!1);const Q=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",t),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",o),this.container.removeEventListener("click",r),this.container.removeEventListener("dblclick",a),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",d),this.container.removeEventListener("touchmove",f),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",g),this.container.removeEventListener("pointercancel",_),this.container.removeEventListener("pointermove",w),this.hammer.off("pan",C),this.hammer.off("panstart",E),this.hammer.off("panmove",k),this.hammer.off("panend",I),this.hammer.off("pancancel",O),this.hammer.off("panleft",R),this.hammer.off("panright",ie),this.hammer.off("panup",oe),this.hammer.off("pandown",he),this.hammer.off("pinch",xe),this.hammer.off("press",ye),this.hammer.off("rotate",Ie),this.hammer.off("swipe",De),this.hammer.off("tap",ve),document.removeEventListener("pointerdown",ue,!1),document.removeEventListener("touchstart",ue,!1),document.removeEventListener("mousedown",ue,!1)};return this.addDOMEventRemoveListeners(Q),Q}registerKeyDown(e,t,s){const i=km.on(e,r=>(t(r,i.formatedKeyNames,i.pause,i.restart),s)),o=()=>{i.removeListener?.()};return this.addDOMEventRemoveListeners(o),o}registerResizeObserver(){const e=new ResizeObserver(s=>{const{width:i,height:o}=s[0].contentRect;this.width=i,this.height=o,this.emit("resize",i,o)});e.observe(this.container);const t=()=>{e.unobserve(this.container)};return this.addDOMEventRemoveListeners(t),t}registerMatchMediaChange(e){let t="";switch(e){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=e;break}const s=o=>{this.emit(t,o.matches)};window.matchMedia(e).addEventListener("change",s);const i=()=>{window.matchMedia(e).removeEventListener("change",s)};return this.addDOMEventRemoveListeners(i),i}registerElementDisplayInParentWhenScrollChange(e){const t={threshold:e?.threshold||.5,root:e?.parentElement},s=new IntersectionObserver((o,r)=>{let a=o[0];if(o.length>1){const c=o.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=t.threshold?this.emit("showInParent"):this.emit("showOffParent")},t);s.observe(this.container);const i=()=>{s.unobserve(this.container)};return this.addDOMEventRemoveListeners(i),i}registerPullDownRefresh(e){const t=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=this.mousePoint.y-s,i>0&&i<t&&this.emit("pullDownIng",i)},end:()=>{i>=t&&this.emit("pullDown")}})}registerPullUpLoading(e){const t=e?.distance||50;let s=0,i=0;return this.captureMove({start:o=>{s=this.setMousePoint(o).y},move:()=>{i=s-this.mousePoint.y,i>0&&i<t&&this.emit("pullUpIng",i)},end:()=>{i>=t&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const t=r=>{this.container.setPointerCapture(r.pointerId),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("pointerDown",t),this.on("pointerUp",s),this.on("pointerCancel",s),this.on("pointerMove",i);const o=()=>{this.off("pointerDown",t),this.off("pointerUp",s),this.off("pointerCancel",s),this.off("pointerMove",i)};return this.addDOMEventRemoveListeners(o),o}captureMoveUseMouse(e){const t=r=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",s,!1),this.container.style.userSelect="none",e?.start?.(r)},s=r=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",s,!1),this.container.style.userSelect="",e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("mouseDown",t);const o=()=>{this.off("mouseDown",t)};return this.addDOMEventRemoveListeners(o),o}captureMoveUseTouch(e){const t=r=>{r.preventDefault(),e?.start?.(r)},s=r=>{e?.end?.(r)},i=r=>{e?.move?.(r)};this.on("touchStart",t),this.on("touchEnd",s),this.on("touchCancel",s),this.on("touchMove",i);const o=()=>{this.off("touchStart",t),this.off("touchEnd",s),this.off("touchCancel",s),this.off("touchMove",i)};return this.addDOMEventRemoveListeners(o),o}static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class Ir{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",t=>{t.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const t=document.createElement("iframe"),s=document.createElement("video"),i=document.createElement("source"),o=new MediaSource;o.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(o),i.media="(min-width:10px)",s.append(i),t.width="5",t.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(t),t.contentDocument?.body.append(s),setTimeout(()=>{t.width="15"}),setTimeout(()=>{t.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(t=>{e.play().then(()=>{e.autoplay=!0,t(!0)}).catch(()=>{Ir.setAutoPlayWhenClick(e),t(!1)})})}static setAutoPlayWhenClick(e){function t(){e.autoplay=!0,e.play(),document.removeEventListener("click",t),document.removeEventListener("touchend",t)}document.addEventListener("click",t),document.addEventListener("touchend",t)}}class Tm extends dc{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=ep(this.source);if(e===0){this.emit("finish");return}let t,s,i=sc(this.source,0);for(let o=1;o<e;o++)t=s,s=i,i=sc(this.source,o),this.raw+=s,s&&this.step(s,i,t);i&&this.step(i,void 0,s),this.emit("finish")}step(e,t,s){e==`
54
+ `&&this.emit("newline"),this.act(e,t,s)}act(e,t,s){switch(this.mode){case"text":switch(e){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=e,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=e;break}break;case"entity":sn("whitespace",e)?(this.textchunk+=X.entity2text(this.entity),this.mode="text"):e==";"?(this.textchunk+=X.entity2text(this.entity+e),this.mode="text"):this.entity+=e;break;case"special":if(s=="!"&&e=="-"&&t=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&e=="["){this.mode="cdata",this.textchunk="";break}if(e==">"||e=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=e;break;case"cdata":if(s=="]"&&e=="]"&&t==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,t,s)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":t==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&s=="-"&&t==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):e=="eof"?this.emit("comment",this.textchunk):this.textchunk+=e;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(e=="?"&&t==">"){this.mode="declaration end";break}e=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=e;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(e=="eof"){this.emit("text","<");break}if(!sn("whitespace",e)){if(this.mode="tag name",e=="/"){this.mode="close tag name start";break}else if(e=="!"){this.mode="special",this.textchunk="";break}else if(e=="?"){this.mode="declaration";break}this.act(e,t,s)}break;case"close tag name start":sn("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,t,s));break;case"close tag name":if(sn("whitespace",e))this.tagname=this.nodename;else switch(e){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=e);break}break;case"tag name":if(sn("whitespace",e))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(e){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=t,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=e;break}break;case"attr start":sn("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,t,s));break;case"attr":if(sn("whitespace",e)||e=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(e){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=e;break}break;case"attr value start":if(!sn("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,t,s)}break;case"attr value":if(sn("whitespace",e)&&!this.quote)this.mode="attr start";else if(e==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(e){case'"':case"'":this.quote==e&&s!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=e;break}break}}}function Qc(n,e){if(typeof e<"u")window.localStorage.setItem(n,e);else return window.localStorage.getItem(n)??void 0}Se.page.on("matchMediaChangePrefersColorSchemeDark",n=>{Dr(n?"dark":"light")}),Pm();function Dr(n){Qc("colorScheme",n),document.documentElement.classList.toggle("dark",n=="dark")}function Pm(){const n=Qc("colorScheme");if(n=="dark"||n=="light")return Dr(n),n;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Dr(e),e}}const Z={safeAreaTop:X.getCSSVar("--safe-area-inset-top"),safeAreaRight:X.getCSSVar("--safe-area-inset-right"),safeAreaBottom:X.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:X.getCSSVar("--safe-area-inset-left"),colorPrimary:X.getCSSVar("--color-primary")||"#5078f0",colorRed:X.getCSSVar("--color-red")||"#ff5050",colorOrange:X.getCSSVar("--color-orange")||"#fa8c00",colorYellow:X.getCSSVar("--color-yellow")||"#fadc32",colorGreen:X.getCSSVar("--color-green")||"#00c878",colorBlue:X.getCSSVar("--color-blue")||"#00b4fa",colorPurple:X.getCSSVar("--color-purple")||"#6464fa",colorBlack:X.getCSSVar("--color-black")||"#001428",colorGray00:X.getCSSVar("--color-gray-00")||"#000000",colorGray33:X.getCSSVar("--color-gray-33")||"#333333",colorGray66:X.getCSSVar("--color-gray-66")||"#666666",colorGray99:X.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:X.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:X.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:X.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:X.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:X.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:X.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:X.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:X.getCSSVar("--font-line-height")||"1,4",fontSize32:X.getCSSVar("--font-size-32")||"32px",fontSize24:X.getCSSVar("--font-size-24")||"24px",fontSize20:X.getCSSVar("--font-size-20")||"20px",fontSize18:X.getCSSVar("--font-size-18")||"18px",fontSize16:X.getCSSVar("--font-size-16")||"16px",fontSize14:X.getCSSVar("--font-size-14")||"14px",fontSize12:X.getCSSVar("--font-size-12")||"12px",fontSize11:X.getCSSVar("--font-size-11")||"11px",gap4:X.getCSSVar("--gap-4")||"4px",gap8:X.getCSSVar("--gap-8")||"8px",gap12:X.getCSSVar("--gap-12")||"12px",gap16:X.getCSSVar("--gap-16")||"16px",gap20:X.getCSSVar("--gap-20")||"20px",gap40:X.getCSSVar("--gap-40")||"40px",height44:X.getCSSVar("--height-44")||"44px",height32:X.getCSSVar("--height-32")||"32px",borderRadius:X.getCSSVar("--border-radius")||"4px"},Om=()=>`#${Math.random().toString(16).slice(2,8).padEnd(6,"0")}`,Nm=function(n,e=1){const t=n>>16&255,s=n>>8&255,i=n&255,o=e<0?0:e>1?1:e;return o===1?"rgb("+t+","+s+","+i+")":"rgba("+t+","+s+","+i+","+o+")"},Jc=function(n){return n[0]==="#"&&(n=n.slice(1)),parseInt(n,16)},eu=function(n,e=1){const t=Jc(n);return Nm(t,e)};function rn(n,e){let t=parseInt(n.substring(1,3),16),s=parseInt(n.substring(3,5),16),i=parseInt(n.substring(5,7),16);t==0&&(t=32),s==0&&(s=32),i==0&&(i=32),t=t*(100+e)/100,s=s*(100+e)/100,i=i*(100+e)/100,t=t<255?t:255,s=s<255?s:255,i=i<255?i:255,t=Math.round(t),s=Math.round(s),i=Math.round(i);const o=t.toString(16).length==1?"0"+t.toString(16):t.toString(16),r=s.toString(16).length==1?"0"+s.toString(16):s.toString(16),a=i.toString(16).length==1?"0"+i.toString(16):i.toString(16);return"#"+o+r+a}const ji=new Map;async function tu(n){return new Promise((e,t)=>{Im(n,(s,i)=>s?t(s):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const Im=(n,e)=>{if(ji.has(n))return e(null,ji.get(n));const t=new Image;t.onload=function(){ji.set(n,{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height,element:t}),e(null,ji.get(n))},t.onerror=function(s){e(s,null)},t.src=n},nu=[1,0,0,1,0,0],su=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class mt{value;matrix3d;isEverTo3d=!1;_prev_translate_z=0;_prev_rotate=0;_prev_rotate_x=0;_prev_rotate_y=0;_prev_rotate_z=0;_prev_scale_z=1;constructor(e=nu){this.value=Array.from(e),this.matrix3d=this.toMatrix3D()}unit(){return this.value=Array.from(nu),this.matrix3d=this.toMatrix3D(),this}transformPoint(e,t,s=0,i=0){const o=e-s,r=t-i;return e=o*this.value[0]+r*this.value[2]+this.value[4],t=o*this.value[1]+r*this.value[3]+this.value[5],[e+s,t+i]}fromString(e){const t=nc("number",e);return t.length===6?t.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix3D(e=this.matrix3d){const t=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return e?(e.value=t,e):new ss(t)}clone(){return new mt(this.value)}multiply(e){const t=this.value;let s;e instanceof mt?s=e.value:s=e;const i=t[0]*s[0]+t[2]*s[1],o=t[1]*s[0]+t[3]*s[1],r=t[0]*s[2]+t[2]*s[3],a=t[1]*s[2]+t[3]*s[3],l=t[0]*s[4]+t[2]*s[5]+t[4],c=t[1]*s[4]+t[3]*s[5]+t[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=l,t[5]=c,this}inverse(){const e=new mt(this.value),t=e.value,s=1/(t[0]*t[3]-t[1]*t[2]),i=t[3]*s,o=-t[1]*s,r=-t[2]*s,a=t[0]*s,l=s*(t[2]*t[5]-t[3]*t[4]),c=s*(t[1]*t[4]-t[0]*t[5]);return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=l,t[5]=c,e}offset(e=0,t=0){return[e-this.value[4],t-this.value[5]]}translate(e,t){return this.matrix3d.translate(e,t,0),this.multiply([1,0,0,1,e,t])}translateTo(e,t){const s=this.offset(e,t);return this.translate(s[0],s[1])}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.value[5])}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.value[4],e)}translateZ(e){return this.isEverTo3d=!0,this.matrix3d.translate(0,0,e)}translateZTo(e){return this.translateZ(e-this._prev_translate_z),this._prev_translate_z=e,this}translate3d(e,t,s){return this.isEverTo3d=!0,this.matrix3d.translate(e,t,s)}translate3dTo(e,t,s){return this.translate3d(e-this.matrix3d.value[12],e-this.matrix3d.value[13],s-this._prev_translate_z),this._prev_translate_z=s,this}rotate(e,t=0,s=0){const i=Wn(e),o=+Math.cos(i).toFixed(9),r=+Math.sin(i).toFixed(9);return this.multiply([o,r,-r,o,t,s]),this.translate(-t,-s),this}rotateTo(e,t=0,s=0){return this.rotate(e-this._prev_rotate,t,s),this._prev_rotate=e,this}rotateX(e){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e)}rotateXTo(e){return this.rotateX(e-this._prev_rotate_x),this._prev_rotate_x=e,this}rotateY(e){return this.isEverTo3d=!0,this.matrix3d.rotate("y",e)}rotateYTo(e){return this.rotateY(e-this._prev_rotate_y),this._prev_rotate_y=e,this}rotateZ(e){return this.isEverTo3d=!0,this.matrix3d.rotate("z",e)}rotateZTo(e){return this.rotateZ(e-this._prev_rotate_z),this._prev_rotate_z=e,this}rotate3d(e,t,s){return this.isEverTo3d=!0,this.matrix3d.rotate("x",e).rotate("y",t).rotate("z",s)}rotate3dTo(e,t,s){return this.rotate3d(e-this._prev_rotate_x,t-this._prev_rotate_y,s-this._prev_rotate_z),this._prev_rotate_x=e,this._prev_rotate_y=t,this._prev_rotate_z=s,this}scale(e,t=e,s=0,i=0){return this.matrix3d.scale(e,t,1),this.translate(s,i),this.multiply([e,0,0,t,0,0]),this.translate(-s,-i),this}scaleTo(e,t=e,s=0,i=0){return this.scale(e/this.value[0],t/this.value[3],s,i),this}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.value[0],1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.value[3])}scaleZ(e){return this.isEverTo3d=!0,this.matrix3d.scale(1,1,e)}scaleZTo(e){return this.scaleZ(e/this._prev_scale_z),this._prev_scale_z=e,this}scale3d(e,t,s){return this.isEverTo3d=!0,this.matrix3d.scale(e,t,s)}scale3dTo(e,t,s){return this.scale3d(e/this.matrix3d.value[0],t/this.matrix3d.value[5],s/this._prev_scale_z),this._prev_scale_z=s,this}skew(e,t=e){const s=e*Math.PI/180,i=t*Math.PI/180,o=Math.tan(s),r=Math.tan(i);return this.multiply([1,r,o,1,0,0])}skewTo(e,t=e){return this.skew(e-this.value[2],t-this.value[1])}skewX(e){return this.skew(e,this.value[1])}skewXTo(e){return this.skewTo(e,this.value[1])}skewY(e){return this.skew(this.value[2],e)}skewYTo(e){return this.skewTo(this.value[2],e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,t,s){return this}skew3dTo(e,t,s){return this}split(){const e={dx:0,dy:0,scalex:1,scaley:1,shear:1,rotate:0,isSimple:!0,isSuperSimple:!0,noRotation:!1};e.dx=this.value[4],e.dy=this.value[5];const t=[[this.value[0],this.value[2]],[this.value[1],this.value[3]]];e.scalex=Math.sqrt(Math.pow(t[0][0],2)+Math.pow(t[0][1],2));let s=Zc(t[0][0],t[0][1]);t[0][0]=s.x,t[0][1]=s.y,e.shear=t[0][0]*t[1][0]+t[0][1]*t[1][1],t[1]=[t[1][0]-t[0][0]*e.shear,t[1][1]-t[0][1]*e.shear],e.scaley=Math.sqrt(Math.pow(t[1][0],2)+Math.pow(t[1][1],2)),s=Zc(t[1][0],t[1][1]),t[1][0]=s.x,t[1][1]=s.y,e.shear/=e.scaley;const i=-t[0][1],o=t[1][1];return o<0?(e.rotate=Pr(Math.acos(o)),i<0&&(e.rotate=360-e.rotate)):e.rotate=Pr(Math.asin(i)),e.isSimple=!+e.shear.toFixed(9)&&(e.scalex.toFixed(9)==e.scaley.toFixed(9)||!e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e}static split2(e){const t=Math.atan2(e[1],e[0]),s=Math.pow(e[0],2)+Math.pow(e[1],2),i=Math.sqrt(s),o=(e[0]*e[3]-e[2]*e[1])/i;return{rotation:t/(Math.PI/180),scaleX:i,scaleY:o,x:e[4],y:e[5]}}static getGroupCoords(e,t){const s=e[0],i=e[1],o=e[2],r=e[3],a=e[4],l=e[5],c=t[0],u=t[1],h=t[2],d=t[3],f=t[4],m=t[5],g=c*d,_=u*h,w=(h*i-s*d)/(_-g),C=(c*i-s*u)/(g-_),E=(h*r-o*d)/(_-g),k=(c*r-o*u)/(g-_),I=(h*(l-m)+d*(f-a))/(_-g),O=(c*(l-m)+u*(f-a))/(g-_),R=[w,C,E,k,I,O];return mt.split2(R)}toTransformString(){const e=this.split();return e.isSimple?(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx&&e.dy?"t"+[e.dx,e.dy]:"")+(e.scalex!=1||e.scaley!=1?"s"+[e.scalex,e.scaley,0,0]:"")+(e.rotate?"r"+[e.rotate,0,0]:"")):"matrix"+[this.value[0],this.value[1],this.value[2],this.value[3],this.value[4],this.value[5]]}toString(){return this.isEverTo3d?this.toMatrix3DString():`matrix(${this.value.map(e=>cc(e,6)).join(",")})`}toMatrix3DString(){return this.matrix3d.toString()}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class ss{value;constructor(e=su){this.value=Array.from(e)}unit(){return this.value=Array.from(su),this}fromString(e){const t=nc("number",e);return t.length===16?t.forEach((s,i)=>{s.fullMatch&&(this.value[i]=parseFloat(s.fullMatch))}):this.unit(),this}toMatrix(e){const t=[this.value[0],this.value[1],this.value[4],this.value[5],this.value[12],this.value[13]];return e?(e.value=t,e):new mt(t)}multiplyMatrix(e){const t=this.value[0],s=this.value[1],i=this.value[2],o=this.value[3],r=this.value[4],a=this.value[5],l=this.value[6],c=this.value[7],u=this.value[8],h=this.value[9],d=this.value[10],f=this.value[11],m=this.value[12],g=this.value[13],_=this.value[14],w=this.value[15],C=e.value[0],E=e.value[1],k=e.value[2],I=e.value[3],O=C*t+E*r+k*u+I*m,R=C*s+E*a+k*h+I*g,ie=C*i+E*l+k*d+I*_,oe=C*o+E*c+k*f+I*w;return new mt([O,R,ie,oe,0,0])}multiply(e){const t=new mt([e.value[0],e.value[1],e.value[2],e.value[3],0,0]),s=new mt([e.value[4],e.value[5],e.value[6],e.value[7],0,0]),i=new mt([e.value[8],e.value[9],e.value[10],e.value[11],0,0]),o=new mt([e.value[12],e.value[13],e.value[14],e.value[15],0,0]),r=this.multiplyMatrix(t),a=this.multiplyMatrix(s),l=this.multiplyMatrix(i),c=this.multiplyMatrix(o);return this.value[0]=r.value[0],this.value[1]=r.value[1],this.value[2]=r.value[2],this.value[3]=r.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=l.value[0],this.value[9]=l.value[1],this.value[10]=l.value[2],this.value[11]=l.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(e=0,t=0,s=0){return this.multiply(new ss([1,0,0,0,0,1,0,0,0,0,1,0,e,t,s,1]))}scale(e=1,t=1,s=1){return this.multiply(new ss([e,0,0,0,0,t,0,0,0,0,s,0,0,0,0,1]))}rotate(e,t){const s=Wn(t),i=Math.sin,o=Math.cos;let r;switch(e){case"x":r=[1,0,0,0,0,o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1];break;case"y":r=[o(s),0,-i(s),0,0,1,0,0,i(s),0,o(s),0,0,0,0,1];break;case"z":r=[o(s),i(s),0,0,-i(s),o(s),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new ss(r))}toString(){return`matrix3d(${this.value.map(e=>cc(e,6)).join(",")})`}}function Bi(n){const e=new mt;return n.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(t,s,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const o=[];for(let r=0,a=i.length;r<a;r++)i[r].trim()&&o.push(parseFloat(""+i[r]));switch(s.toLowerCase()){case"t":case"translate":e.translate(o[0],o[1]);break;case"translatex":e.translateX(o[0]);break;case"translatey":e.translateY(o[0]);break;case"translatez":e.translateZ(o[0]);break;case"translate3d":e.translate3d(o[0],o[1],o[2]);break;case"r":case"rotate":e.rotate(o[0],o[1]??0,o[2]??0);break;case"rotatex":e.rotateX(o[0]);break;case"rotatey":e.rotateY(o[0]);break;case"rotatez":e.rotateZ(o[0]);break;case"rotate3d":e.rotate3d(o[0],o[1],o[2]);break;case"s":case"scale":e.scale(o[0],o[1]??o[0]);break;case"scalex":e.scaleX(o[0]);break;case"scaley":e.scaleY(o[0]);break;case"scalez":e.scaleZ(o[0]);break;case"scale3d":e.scale3d(o[0],o[1],o[2]);break;case"skew":e.skew(o[0],o[1]??0);break;case"skewx":e.skewX(o[0]);break;case"skewy":e.skewY(o[0]);break;case"skewz":e.skewZ(o[0]);break;case"skew3d":e.skew3d(o[0],o[1],o[2]);break;case"m":case"matrix":e.multiply([o[0],o[1],o[2],o[3],o[4],o[5]]);break;case"matrix3d":e.matrix3d.multiply(new ss(o));break}return""}),e}class Dm extends Tm{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(t,s)=>{switch(this.text="",this.currentItem={type:t},t){case"g":this.groups.push(this.currentItem);break}this.processAttrs(t,s)}),this.on("text",t=>{if(this.currentItem.type=="style"){try{const s=lp(t);for(let i of s.stylesheet.rules)for(let o of i.declarations)for(let r of i.selectors)this.globalStyles[r]=this.globalStyles[r]||[],this.globalStyles[r].push(`${o.property}:${o.value}`)}catch{console.error("CAN'T parse css text: "+t)}return}this.text+=t}),this.on("/tag",(t,s)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let o="",r="";for(let a in this.groups[i])a=="transform"?o=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?r=this.globalStyles["."+this.groups[i][a]].join(";")+";"+r:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?r=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+r:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=o:this.currentItem.transform+=" "+o,typeof this.currentItem.style>"u"?this.currentItem.style=r:this.currentItem.style=r+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),Mr(this.currentItem.style,this.currentItem,Rr)}switch(this.processAttrs(t,s),t){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(e,t){let s=[],i;switch(e){case"svg":let o="",r="";if(t.width&&t.height)o=t.width,r=t.height;else if(t.viewBox){const a=t.viewBox.split(/\s+/gi);a.length==4&&(o=String(parseFloat(a[2])-parseFloat(a[0])),r=String(parseFloat(a[3])-parseFloat(a[1])))}o&&r&&this.items.push({type:"viewbox",width:o,height:r});break;case"line":typeof t.x1=="number"&&typeof t.y1=="number"&&typeof t.x2=="number"&&typeof t.y2=="number"&&(this.currentItem.path="M"+[t.x1,t.y1,t.x2,t.y2]);break;case"stop":i={},t.style&&Mr(t.style,i),i.offset=i.offset||t.offset,i.color=i["stop-color"]||t["stop-color"],i.opacity=i["stop-opacity"]||t["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+$r(parseFloat(t.x1),parseFloat(t.y1),parseFloat(t.x2),parseFloat(t.y2),parseFloat(t.x1)+100,parseFloat(t.y1))).toFixed(2),s=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?s.push(i.color+":"+i.offset):s.push(i.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let o in t){const r=t[o];if(Rr.includes(o)&&(this.currentItem[o]=r),o==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:o,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:o,stops:[]})),o==="style"&&Mr(r,this.currentItem,Rr),o==="transform"&&(this.currentItem.transform=r+(this.currentItem.transform||" ")),o==="fill"){const a=r.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}o==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+r+"z"),o==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=r),o==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=r)}}addToItems(){this.items.push(this.currentItem)}}function $r(n,e,t,s,i,o){if(typeof i>"u"||typeof o>"u"){const r=n-t,a=e-s;return!r&&!a?0:(180+Math.atan2(-a,-r)*180/Math.PI+360)%360}else return $r(n,e,i,o)-$r(t,s,i,o)}function Mr(n,e,t){const s=(n+"").split(";"),i=/^\s+|\s+$/g;for(let o=0,r=s.length;o<r;o++){let a=s[o].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!t||t.includes(l))&&(e[l]=a[1].replace(i,""))}}const Rr=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];let iu=class{app;rootEl;shapes=[];isMouseDown=!1;currentEnableMouseInShapeID="";constructor(e,t,s){this.app=e,this.rootEl=nt.createSVGElement("svg"),X.empty(this.app.container),X.insert(this.app.container,this.rootEl),t&&s?this.setSize(t,s):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableMouseInShapeID){this.setCursor();return}let i=0,o=this.shapes.length;for(;i<o;i++){const r=this.shapes[i];if(!(r instanceof _t))continue;if((r.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1)&&r.enableDrag){this.currentEnableMouseInShapeID=r.id;break}}i>=o&&(this.currentEnableMouseInShapeID=""),this.setCursor()}})}setSize(e,t){return X.attribute(this.rootEl,{viewBox:`0 0 ${e} ${t}`,width:`${e}`,height:`${t}`}),this}setCursor(){this.currentEnableMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.app.container.style.cursor="default"}download(){return nt.downloadFromSVGElement(this.rootEl)}attr(e,t,s){const i=e.el||e;if(!(i instanceof SVGElement))return this;if(t===void 0&&s===void 0)return X.attribute(i);if(typeof t=="string"&&s===void 0)return X.attribute(i,Sn(t))||"";if(typeof t=="object"){if(X.attribute(i,t),e instanceof Ft)for(let o in t)e.attrs[Sn(o)]=t[o]}else typeof t=="string"&&s!==void 0&&(X.attribute(i,Sn(t),s),e instanceof Ft&&(e.attrs[Sn(t)]=s));return this}clickInPath(e){const t=()=>{this.shapes.forEach(s=>{s instanceof _t&&s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)&&e(s)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}path(e){if(e instanceof Ui)return e.paths.forEach(s=>{s.el=nt.createSvgPath(e.toSVGPathD()),X.insert(this.rootEl,s.el),this.update(s),this.shapes.push(s)}),e;let t;return e instanceof st||e instanceof _t?t=e:e instanceof Ft?(t=_t.fromSVGPathD(e.toSVGPathD()),rc(t,e),t.prevDegree=0,t.prevScaleOnOrigin=1,t.prevSkewDegreeOnOrigin=0):t=_t.fromSVGPathD(e||"M0,0"),t.el=nt.createSvgPath(t instanceof st?`M ${t.fromX} ${t.fromY} `+t.toSVGPathD():t.toSVGPathD()),X.insert(this.rootEl,t.el),this.update(t),this.shapes.push(t),t instanceof st?_t.fromSVGPathD(t.toSVGPathD()):t}update(e){const t=[];e instanceof Ui?t.push(...e.paths):t.push(e),t.forEach(s=>{if(s instanceof _t){if(s.followMouse&&(!Ns(s.x,this.app.mousePoint.x,5)||!Ns(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new at({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableMouseInShapeID==s.id){if(s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,!s.coordinateIsShapeCenter){const i=s.getBoundingClientRect();i&&i.width&&i.height&&(s.x-=i.width/2,s.y-=i.height/2)}s.isDragging=!0,this.shapes.filter(i=>i.id!=s.id).forEach(i=>i.isDragging=!1)}if((s.x!=s.prevX||s.y!=s.prevY)&&s.translate(s.x-s.prevX,s.y-s.prevY),s.degree!=s.prevDegree){const i=s.getBoundingClientRect();s.rotate(s.degree-s.prevDegree,i.x+i.width/2,i.y+i.height/2)}if(s.scaleOnOrigin!=s.prevScaleOnOrigin){const i=s.getBoundingClientRect();s.scale(s.scaleOnOrigin/s.prevScaleOnOrigin,s.scaleOnOrigin/s.prevScaleOnOrigin,i.x+i.width/2,i.y+i.height/2)}}this.attr(s,s.attrs),this.attr(s,"d",s instanceof st?`M ${s.fromX} ${s.fromY} `+s.toSVGPathD():s.toSVGPathD())})}delete(e){e.el&&X.remove(e.el),this.shapes=this.shapes.filter(t=>t.id!=e.id)}clear(){this.shapes.forEach(e=>{e.el&&X.remove(e.el)}),this.shapes=[]}pathRosetta(e,t,s,i,o){if(o==0)throw new Error("no dividing by zero, please");const r=new _t({x:e,y:t}),a=360/o;for(let l=0;l<o;l+=1){const c=a*l*Math.PI/180,u=e+2*s*Math.cos(c),h=t+2*s*Math.sin(c);r.addLine(new Vs({x:u,y:h,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),r.addLine(new Vs({x:e,y:t,rx:s,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return this.path(r)}trailPath(e,t,s=0){const i=e.getTotalLength();return this.attr(t,"d",e.getSubpath(0,s*i).toSVGPathD()),e.getPointAtLength(s*i)}circle(e,t,s){return this.path(new at({x:e,y:t,radius:s}))}circleEl(e,t,s){const i=nt.createSVGElement("circle",{cx:String(e),cy:String(t),r:String(s)});return X.insert(this.rootEl,i),i}ellipse(e,t,s,i){return this.path(new Lm({x:e,y:t,rx:s,ry:i}))}ellipseEl(e,t,s,i){const o=nt.createSVGElement("ellipse",{cx:String(e),cy:String(t),rx:String(s),ry:String(i)});return X.insert(this.rootEl,o),o}rect(e,t,s,i){return this.path(new Ot({x:e,y:t,width:s,height:i}))}rectEl(e,t,s,i){const o=nt.createSVGElement("rect",{x:String(e),y:String(t),width:String(s),height:String(i)});return X.insert(this.rootEl,o),o}image(e,t,s,i,o){}text(e,t,s,i="1.2em"){const o=nt.createSVGElement("text",{x:String(e),y:String(t)});return s.split(`
55
+ `).forEach(r=>{if(r.trim()){const a=nt.createSVGElement("tspan",{x:String(e),dy:i});X.html(a,r),X.insert(o,a)}}),X.insert(this.rootEl,o),o}};const ou=$m("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function $m(n,e=10){const t={},s=n.split(",");for(let i=0;i<s.length;i+=2){const o="&"+s[i+1]+";",r=parseInt(s[i],e);t[o]="&#"+r+";"}return t["\\xa0"]="&#160;",t}function yt(n,e){const t=Object.keys(e);for(let s=0;s<t.length;s++)n=n.replace(new RegExp("{"+t[s]+"}","gi"),""+e[t[s]]);return n}function Hi(n){let e,t;if(!n)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",t=0;t<12;t++)e+=s[Math.floor(Math.random()*s.length)];while(n[e]);return e}function Mm(n){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[n]||e.start}function Rm(n){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[n]||e.alphabetic}const Ls={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"}};class Ar{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}addColorStop(e,t){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+e),t.indexOf("rgba")!==-1){const o=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);o&&(s.setAttribute("stop-color",yt("rgb({r},{g},{b})",{r:o[1],g:o[2],b:o[3]})),s.setAttribute("stop-opacity",o[4]))}else s.setAttribute("stop-color",t);this.__root.appendChild(s)}}class ru{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}}class Wi{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:t=500,height:s=500}){e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=t,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(Ls);for(let t=0,s=e.length;t<s;t++){const i=e[t];this[i]=Ls[i].canvas}}__getStyleState(){const e={},t=Object.keys(Ls);for(let s=0,i=t.length;s<i;s++){const o=t[s];e[o]=this[o]}return e}__applyStyleState(e){const t=Object.keys(e);for(let s=0,i=t.length;s<i;s++){const o=t[s];this[o]=e[o]}}__createElement(e,t={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),o=Object.keys(t);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let r=0;r<o.length;r++){const a=o[r];i.setAttribute(a,t[a])}return i}__applyStyleToCurrentElement(e){let t=this.__currentElement;const s=this.__currentElementsToStyle;s&&(t.setAttribute(e,""),t=s.element,s.children.forEach(o=>{o.setAttribute(e,"")}));const i=Object.keys(Ls);for(let o=0;o<i.length;o++){const r=Ls[i[o]],a=this[i[o]];if(r.apply){if(a instanceof ru){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}t.setAttribute(r.apply,yt("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Ar)t.setAttribute(r.apply,yt("url(#{id})",{id:a.__root.getAttribute("id")}));else if(r.apply.indexOf(e)!==-1&&r.svg!==a)if((r.svgAttr==="stroke"||r.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);t.setAttribute(r.svgAttr,yt("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),t.setAttribute(r.svgAttr+"-opacity",""+u)}else{let l=r.svgAttr;if(i[o]==="globalAlpha"&&(l=e+"-"+r.svgAttr,t.getAttribute(l)))continue;l&&t.setAttribute(l,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let t=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(t)&&(t=t.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(ou);for(let o=0,r=i.length;o<r;o++){const a=i[o],l=ou[a],c=new RegExp(a,"gi");c.test(t)&&(t=t.replace(c,l))}}return t}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),t=this.__closestGroupOrSvg();this.__groupStack.push(t),t.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const t=this.__styleStack.pop();t&&this.__applyStyleState(t)}__addTransform(e){const t=this.__closestGroupOrSvg();if(t.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:t,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");t.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=e,this.__currentElement.setAttribute("transform",s)}scale(e,t){t===void 0&&(t=e),this.__addTransform(yt("scale({x},{y})",{x:e,y:t}))}rotate(e){const t=e*180/Math.PI;this.__addTransform(yt("rotate({angle},{cx},{cy})",{angle:t,cx:0,cy:0}))}translate(e,t){this.__addTransform(yt("translate({x},{y})",{x:e,y:t}))}transform(e,t,s,i,o,r){this.__addTransform(yt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:t,c:s,d:i,e:o,f:r}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"&&e.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,t){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:t},this.__addPathCommand(yt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,t){this.__currentPosition={x:e,y:t},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(yt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(yt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,t,s,i,o,r){this.__currentPosition={x:o,y:r},this.__addPathCommand(yt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:t,cp2x:s,cp2y:i,x:o,y:r}))}quadraticCurveTo(e,t,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(yt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:t,x:s,y:i}))}normalize(e){const t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}arcTo(e,t,s,i,o){const r=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof r>"u"||typeof a>"u")return;if(o<0)throw new Error("IndexSizeError: The radius provided ("+o+") is negative.");if(r===e&&a===t||e===s&&t===i||o===0){this.lineTo(e,t);return}const l=this.normalize([r-e,a-t]),c=this.normalize([s-e,i-t]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(e,t);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),d=this.normalize([l[0]+c[0],l[1]+c[1]]),f=o/Math.sin(h/2),m=e+f*d[0],g=t+f*d[1],_=[-l[1],l[0]],w=[c[1],-c[0]],C=function(I){const O=I[0];return I[1]>=0?Math.acos(O):-Math.acos(O)},E=C(_),k=C(w);this.lineTo(m+_[0]*o,g+_[1]*o),this.arc(m,g,o,E,k)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,t,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,t),this.lineTo(e+s,t),this.lineTo(e+s,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.closePath()}fillRect(e,t,s,i){const o=this.__createElement("rect",{x:e,y:t,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("fill")}strokeRect(e,t,s,i){const o=this.__createElement("rect",{x:e,y:t,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(o),this.__currentElement=o,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let o=i.length-1;o>=0;o--)i[o]&&s.removeChild(i[o]);this.__currentElement=s,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(e,t,s,i){if(e===0&&t===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const o=this.__closestGroupOrSvg(),r=this.__createElement("rect",{x:e,y:t,width:s,height:i,fill:"#FFFFFF"},!0);o.appendChild(r)}createLinearGradient(e,t,s,i){const o=this.__createElement("linearGradient",{id:Hi(this.__ids),x1:e+"px",x2:s+"px",y1:t+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(o),new Ar(o,this)}createRadialGradient(e,t,s,i,o,r){const a=this.__createElement("radialGradient",{id:Hi(this.__ids),cx:i+"px",cy:o+"px",r:r+"px",fx:e+"px",fy:t+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Ar(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(e,t){if(e.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),s.appendChild(t),s}return t}__applyText(e,t,s,i){const o=this.__parseFont(),r=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":o.family,"font-size":o.size,"font-style":o.style,"font-weight":o.weight,"text-decoration":o.decoration,x:t,y:s,"text-anchor":Mm(this.textAlign),"dominant-baseline":Rm(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),r.appendChild(this.__wrapTextLink(o,a))}fillText(e,t,s){this.__applyText(e,t,s,"fill")}strokeText(e,t,s){this.__applyText(e,t,s,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,t,s,i,o,r){if(i===o)return;i=i%(2*Math.PI),o=o%(2*Math.PI),i===o&&(o=(o+2*Math.PI-.001*(r?-1:1))%(2*Math.PI));const a=e+s*Math.cos(o),l=t+s*Math.sin(o),c=e+s*Math.cos(i),u=t+s*Math.sin(i),h=r?0:1;let d=0,f=o-i;f<0&&(f+=2*Math.PI),r?d=f>Math.PI?0:1:d=f>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(yt("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:d,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const e=this.__closestGroupOrSvg(),t=this.__createElement("clipPath"),s=Hi(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),t.setAttribute("id",s),t.appendChild(this.__currentElement),this.__SVGdefs.appendChild(t),e.setAttribute("clip-path",yt("url(#{id})",{id:s})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let t=e[0],s,i,o,r,a=0,l=0,c,u,h,d,f,m,g,_;if(e.length===3)s=e[1],i=e[2],c=t.width,u=t.height,o=c,r=u;else if(e.length===5)s=e[1],i=e[2],o=e[3],r=e[4],c=t.width,u=t.height;else if(e.length===9)a=e[1],l=e[2],c=e[3],u=e[4],s=e[5],i=e[6],o=e[7],r=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const w=this.__closestGroupOrSvg();this.__currentElement;const C="translate("+s+", "+i+")";if(t instanceof Wi){if(h=t.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(d=h.childNodes[0];d.childNodes.length;)_=d.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(d.childNodes[0]);if(f=h.childNodes[1],f){const E=f.getAttribute("transform");let k;E?k=E+" "+C:k=C,f.setAttribute("transform",k),w.appendChild(f)}}}else(t.nodeName==="CANVAS"||t.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",o),m.setAttribute("height",r),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==t.width||u!==t.height)&&(g=this.__document.createElement("canvas"),g.width=o,g.height=r,g.getContext("2d")?.drawImage(t,a,l,c,u,0,0,o,r),t=g),m.setAttribute("transform",C),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),w.appendChild(m))}createPattern(e,t){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Hi(this.__ids);let o;return s.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(o=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),o.setAttribute("width",""+e.width),o.setAttribute("height",""+e.height),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),s.appendChild(o),this.__SVGdefs.appendChild(s)):e instanceof Wi&&(s.setAttribute("width",""+e.width),s.setAttribute("height",""+e.height),s.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new ru(s,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Lr{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(e){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),this.customContext=new Wi({canvas:this.canvas,width:this.canvas.width,height:this.canvas.height})}set lineWidth(e){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=e,this.customContext.lineWidth=e}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=e,this.customContext.lineCap=e}get lineCap(){return this.context.lineCap}set lineJoin(e){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=e,this.customContext.lineCap=e}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=e,this.customContext.lineDashOffset=e}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=e,this.customContext.miterLimit=e}get miterLimit(){return this.context.miterLimit}set globalAlpha(e){this.context.globalAlpha=e,this.customContext.globalAlpha=e}get globalAlpha(){return this.context.globalAlpha}set fillStyle(e){this.hasSetCustomFillStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.fillStyle=e,this.customContext.fillStyle=e):(this.context.fillStyle=e.gradient,this.customContext.fillStyle=e.gradientCustom)}get fillStyle(){return this.context.fillStyle}set strokeStyle(e){this.hasSetCustomStrokeStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.strokeStyle=e,this.customContext.strokeStyle=e):(this.context.strokeStyle=e.gradient,this.customContext.strokeStyle=e.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(e){this.context.font=e,this.customContext.font=e}get font(){return this.context.font}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext.fill()),this}fillRect(e,t,s,i){return this.context.fillRect(e,t,s,i),this.customContext.fillRect(e,t,s,i),this}fillText(e,t,s,i){return this.context.fillText(e,t,s,i),this.customContext.fillText(e,t,s),this}setLineDash(e){return this.context.setLineDash(e),this.customContext.setLineDash(e),this}stroke(e){return e?this.context.stroke(e):(this.context.stroke(),this.customContext.stroke()),this}strokeText(e,t,s,i){return this.context.strokeText(e,t,s,i),this.customContext.strokeText(e,t,s),this}strokeRect(e,t,s,i){return this.context.strokeRect(e,t,s,i),this.customContext.strokeRect(e,t,s,i),this}measureText(e){return this.context.measureText(e)}clearRect(e=0,t=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,t,s,i),this.customContext.clearRect(e,t,s,i),this}save(){return this.context.save(),this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(e=this.currentPath2D,t=this.currentMatrix){const s=new Path2D;s.addPath(e,t),this.currentPath2D=s}isPointInStroke(...e){return e[0]instanceof Path2D?this.context.isPointInStroke(e[0],e[1],e[2]):this.context.isPointInStroke(e[0],e[1])}isPointInPath(...e){return e[0]instanceof Path2D?this.context.isPointInPath(e[0],e[1],e[2]):this.context.isPointInPath(e[0],e[1])}translate(e,t){return this.context.translate(e,t),this.customContext.translate(e,t),this.currentMatrix.translate(e,t),this.changePath2D(),this}rotate(e){return this.context.rotate(e),this.customContext.rotate(e),this.currentMatrix.rotate(e),this.changePath2D(),this}scale(e,t=e){return this.context.scale(e,t),this.customContext.scale(e,t),this.currentMatrix.scale(e,t),this.changePath2D(),this}moveTo(e,t){return this.context.moveTo(e,t),this.customContext.moveTo(e,t),this.currentPath2D.moveTo(e,t),this}lineTo(e,t){return this.context.lineTo(e,t),this.customContext.lineTo(e,t),this.currentPath2D.lineTo(e,t),this}arc(e,t,s,i,o,r){return this.context.arc(e,t,s,i,o,r),this.customContext.arc(e,t,s,i,o,r?-1:1),this.currentPath2D.arc(e,t,s,i,o,r),this}arcTo(e,t,s,i,o){return this.context.arcTo(e,t,s,i,o),this.customContext.arcTo(e,t,s,i,o),this.currentPath2D.arcTo(e,t,s,i,o),this}ellipse(e,t,s,i,o,r,a,l){return this.context.ellipse(e,t,s,i,o,r,a,l),this.currentPath2D.ellipse(e,t,s,i,o,r,a,l),this}quadraticCurveTo(e,t,s,i){return this.context.quadraticCurveTo(e,t,s,i),this.customContext.quadraticCurveTo(e,t,s,i),this.currentPath2D.quadraticCurveTo(e,t,s,i),this}bezierCurveTo(e,t,s,i,o,r){return this.context.bezierCurveTo(e,t,s,i,o,r),this.customContext.bezierCurveTo(e,t,s,i,o,r),this.currentPath2D.bezierCurveTo(e,t,s,i,o,r),this}rect(e,t,s,i){return this.context.rect(e,t,s,i),this.customContext.rect(e,t,s,i),this.currentPath2D.rect(e,t,s,i),this}createLinearGradient(e,t,s,i,o){const r=this.context.createLinearGradient(e,t,s,i),a=this.customContext.createLinearGradient(e,t,s,i);return o&&Object.keys(o).forEach(l=>{const c=parseFloat(l);r.addColorStop(c,o[c]),a.addColorStop(c,o[c])}),{gradient:r,gradientCustom:a}}createRadialGradient(e,t,s,i,o,r,a){const l=this.context.createRadialGradient(e,t,s,i,o,r),c=this.customContext.createRadialGradient(e,t,s,i,o,r);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);l.addColorStop(h,a[h]),c.addColorStop(h,a[h])}),{gradient:l,gradientCustom:c}}drawImage(e,...t){if(t.length===0)this.context.drawImage(e,0,0);else if(t.length===2){const s=t[0],i=t[1];this.context.drawImage(e,s,i)}else if(t.length===4){const s=t[0],i=t[1],o=t[2],r=t[3];this.context.drawImage(e,s,i,o,r)}else if(t.length===8){const s=t[0],i=t[1],o=t[2],r=t[3],a=t[4],l=t[5],c=t[6],u=t[7];this.context.drawImage(e,s,i,o,r,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+t.length);return this.customContext.drawImage(e,...t),this}getImageData(e=0,t=0,s=this.canvas.width,i=this.canvas.height,o){return this.context.getImageData(e,t,s,i,o)}putImageData(e,t=0,s=0){return this.context.putImageData(e,t,s)}toRawSVG(){const e=this.customContext.getSerializedSvg(!0),t=this.customContext.getSvg();return{raw:e,element:t}}}const Am=Lr;class st extends Ft{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,t){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new st({x:e[1],y:e[2],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.lineTo(this.x,this.y)}getBoundingClientRect(){const e=qc(this.fromX,this.fromY,this.x,this.y);if(e===0){const t=Math.min(this.x,this.fromX),s=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),o=Math.max(this.y,this.fromY);return new Ot({x:t,y:s,width:i-t,height:o-s})}else{const t=Math.sin(e),s=Math.cos(e),i=s*this.fromX-t*this.fromY,o=s*this.x-t*this.y,r=s*this.fromY+t*this.fromX,a=s*this.y+t*this.x;return new Ot({x:Math.min(i,o),y:Math.min(r,a),width:Math.max(i,o)-Math.min(i,o),height:Math.max(r,a)-Math.min(r,a)})}}interpolate(e){return{x:this.fromX+e*(this.x-this.fromX),y:this.fromY+e*(this.y-this.fromY)}}}class Fr extends st{c1x;c1y;c2x;c2y;constructor(e){super(e),this.c1x=e.c1x,this.c1y=e.c1y,this.c2x=e.c2x,this.c2y=e.c2y}static fromSVGPathData(e,t){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Fr({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const e=nt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new Ot({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}interpolate(e){return{x:Math.pow(1-e,3)*this.fromX+3*Math.pow(1-e,2)*e*this.c1x+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2x+Math.pow(e,3)*this.x,y:Math.pow(1-e,3)*this.fromY+3*Math.pow(1-e,2)*e*this.c1y+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2y+Math.pow(e,3)*this.y}}length(e=1){return nt.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,e)}getTatLen(e){const t=this.fromX,s=this.fromY,i=this.c1x,o=this.c1y,r=this.c2x,a=this.c2y,l=this.x,c=this.y;if(e<0||nt.bezlen(t,s,i,o,r,a,l,c)<e)return 0;let u=1,h=u/2,d=u-h,f,m=.01;for(f=nt.bezlen(t,s,i,o,r,a,l,c,d);Math.abs(f-e)>m;)h/=2,d+=(f<e?1:-1)*h,f=nt.bezlen(t,s,i,o,r,a,l,c,d);return d}getPointAtSegmentLength(e){const t=this.getTatLen(e),s=this.fromX,i=this.fromY,o=this.c1x,r=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-t,d=Math.pow(h,3),f=Math.pow(h,2),m=t*t,g=m*t,_=d*s+f*3*t*o+h*3*t*t*a+g*c,w=d*i+f*3*t*r+h*3*t*t*l+g*u,C=s+2*t*(o-s)+m*(a-2*o+s),E=i+2*t*(r-i)+m*(l-2*r+i),k=o+2*t*(a-o)+m*(c-2*a+o),I=r+2*t*(l-r)+m*(u-2*l+r),O=h*s+t*o,R=h*i+t*r,ie=h*a+t*c,oe=h*l+t*u,he=90-Math.atan2(C-k,E-I)*180/Math.PI;return{x:_,y:w,m:{x:C,y:E},n:{x:k,y:I},start:{x:O,y:R},end:{x:ie,y:oe},alpha:he}}}const is=Fr;class Fs extends st{cx;cy;isLineThrough;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy,this.isLineThrough=typeof e.isLineThrough=="boolean"?e.isLineThrough:!0}static fromSVGPathData(e,t){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new Fs({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e){if(e.beginPath(),e.moveTo(this.fromX,this.fromY),this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,s=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(t,s,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(e){return{x:(1-e)*(1-e)*this.fromX+2*(1-e)*e*this.cx+e*e*this.x,y:(1-e)*(1-e)*this.fromY+2*(1-e)*e*this.cy+e*e*this.y}}}class Vs extends st{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(e){super(e),this.rx=e.rx,this.ry=e.ry,this.xAxisRotate=e?.xAxisRotate??0,this.largeArcFlag=e?.largeArcFlag??1,this.sweepFlag=e?.sweepFlag??1}static fromSVGPathData(e,t){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Vs({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(e){e.beginPath();const[t,s,i,o,r,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);e.ellipse(t,s,i,o,r,a,l,!this.sweepFlag)}convertSVGToCanvas(e,t,s,i,o,r,a,l,c){const u=a/180*Math.PI,h=(e-s)/2,d=(t-i)/2,f=Math.cos(u)*h+Math.sin(u)*d,m=-Math.sin(u)*h+Math.cos(u)*d,g=f*f/(o*o)+m*m/(r*r);if(g>1){const xe=Math.sqrt(g);throw o=xe*o,r=xe*r,new Error(`Radii are too small to build an arc. Correcting them to ${o}/${r}.`)}const _=Math.sqrt((o*o*r*r-o*o*m*m-r*r*f*f)/(o*o*m*m+r*r*f*f)),w=l!=c?1:-1,C=w*_*o*m/r,E=w*_*-r*f/o,k=(e+s)/2,I=(t+i)/2,O=Math.cos(u)*C-Math.sin(u)*E+k,R=Math.sin(u)*C+Math.cos(u)*E+I,ie=(xe,ye,Ie,De)=>(xe*De>=ye*Ie?1:-1)*Math.acos((xe*Ie+ye*De)/(Math.sqrt(xe*xe+ye*ye)*Math.sqrt(Ie*Ie+De*De))),oe=ie(1,0,e-O,t-R)-u,he=ie(e-O,t-R,s-O,i-R);return[O,R,o,r,u,oe,oe+he]}}class _t extends Ft{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(e){super(e),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}addLine(e){if(e instanceof Vs){Or(this.prevPathX,this.prevPathY,e.rx,e.ry,e.xAxisRotate,e.largeArcFlag,e.sweepFlag,e.x,e.y).forEach(c=>{const[u,h,d,f,m,g]=c;this.normalizedLines.push(new is({c1x:u,c1y:h,c2x:d,c2y:f,x:m,y:g,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=m,this.prevPathY=g});return}let t,s,i,o,r,a;e instanceof is?(t=e.c1x,s=e.c1y,i=e.c2x,o=e.c2y,r=e.x,a=e.y):e instanceof Fs?[t,s,i,o,r,a]=Nr(this.prevPathX,this.prevPathY,e.cx,e.cy,e.x,e.y):[t,s,i,o,r,a]=As(this.prevPathX,this.prevPathY,e.x,e.y),this.normalizedLines.push(new is({c1x:t,c1y:s,c2x:i,c2y:o,x:r,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=r,this.prevPathY=a}static fromSVGPathD(e,t){if(!nt.isSVGPath(e))throw new Error("Not a SVG path!");return this.fromSVGPathData(nt.parseSVGPath(e),t)}static fromSVGPathData(e,t){const s=new _t,i=nt.normalizeSVGPath(nt.absolutizeSVGPath(e));for(let r=0,a=i.length;r<a;r++){const l=i[r];if(l[0]=="M"){s.prevPathX=s.startPathX=l[1],s.prevPathY=s.startPathY=l[2];continue}s.addLine(new is({c1x:l[1],c1y:l[2],c2x:l[3],c2y:l[4],x:l[5],y:l[6]}))}const o=Bi(t??"");return s.transform(o)}toSVGPathData(){const e=[];e.push(["M",this.startPathX,this.startPathY]);for(let t=0,s=this.normalizedLines.length;t<s;t++)e.push(this.normalizedLines[t].toSVGPathData());return e}toCanvasContext(e){e.beginPath(),e.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(t=>{const[s,...i]=t.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}transform(e){return[this.startPathX,this.startPathY]=e.transformPoint(this.startPathX,this.startPathY),[this.prevPathX,this.prevPathY]=e.transformPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(t=>{[t.fromX,t.fromY]=e.transformPoint(t.fromX,t.fromY),[t.c1x,t.c1y]=e.transformPoint(t.c1x,t.c1y),[t.c2x,t.c2y]=e.transformPoint(t.c2x,t.c2y),[t.x,t.y]=e.transformPoint(t.x,t.y)}),this}translate(e,t){const s=new mt().translate(e,t);return this.transform(s),this.prevX=this.x,this.prevY=this.y,this}rotate(e,t=0,s=0){const i=new mt().rotate(e,t,s);return this.transform(i),this.prevDegree=this.degree,this}scale(e,t=e,s=0,i=0){const o=new mt().scale(e,t,s,i);return this.transform(o),this.prevScaleOnOrigin=this.scaleOnOrigin,this}skew(e,t=0){const s=new mt().skew(e,t);return this.transform(s),this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin,this}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}getBoundingClientRect(){let e=0,t=0,s=[],i=[];e=this.startPathX,t=this.startPathY,s.push(e),i.push(t),this.normalizedLines.forEach(c=>{const u=nt.curveDim(e,t,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);s=s.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),e=c.x,t=c.y});const o=Math.min.apply(0,s),r=Math.min.apply(0,i),a=Math.max.apply(0,s),l=Math.max.apply(0,i);return new Ot({x:o,y:r,width:a-o,height:l-r})}getTotalLength(){return this.normalizedLines.reduce((e,t)=>e+=t.length(),0)}interpolate(e){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(e);{let t=e*this.normalizedLines.length,s=this.normalizedLines[0];if(t--,t>1)for(let i=1,o=this.normalizedLines.length;i<o&&(s=this.normalizedLines[i],t>1);i++)t-=1;return s.interpolate(t)}}getPointAtLength(e){let t={x:0,y:0,alpha:0},s=0;for(let i=0,o=this.normalizedLines.length;i<o;i++){const r=this.normalizedLines[i],a=r.length();if(s+a>e){t=r.getPointAtSegmentLength(e-s);break}s+=a}return t}getSubpathsAtLength(e,t,s){let i=null,o=0;const r=new _t;r.prevPathX=r.startPathX=e.x,r.prevPathY=r.startPathY=e.y;for(let a=0,l=e.normalizedLines.length;a<l;a++){const c=e.normalizedLines[a],u=c.length();if(o+u>t&&!i){const h=c.getPointAtSegmentLength(t-o);if(r.addLine(new is({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),s)return r;i=r,r.prevPathX=h.x,r.prevPathY=h.y,r.addLine(new is({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),o+=u;continue}o+=u,r.addLine(c)}return r}getSubpath(e,t){if(this.getTotalLength()-t<1e-6)return this.getSubpathsAtLength(this,e);{const s=this.getSubpathsAtLength(this,t,1);return e?this.getSubpathsAtLength(s,e):s}}isPointInPath(e,t,s){if(s instanceof Lr)return s.isPointInPath(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=s.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(e,t,s){if(s instanceof Lr)return s.isPointInStroke(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=s.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}}class Ui extends _t{svgWidth=0;svgHeight=0;width=0;height=0;paths=[];constructor(e){if(super(e),e?.svg){const t=new Dm(e.svg).parse();for(let s=0,i=t.length;s<i;s++){const o=t[s];if(o.type=="viewbox"&&o.width&&o.height){if(this.svgWidth=parseFloat(o.width),this.svgHeight=parseFloat(o.height),e.width){const u=this.svgWidth/this.svgHeight;this.width=e.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(o.type!="path"||!ns.isSVGPath(o.path))continue;const r={};for(const u in o)u==="type"||u==="path"||u==="transform"||(r[u]=o[u]);const a=ns.absolutizeSVGPath(ns.parseSVGPath(o.path));let l=[],c=[];for(let u=0,h=a.length;u<h;u++){const d=a[u];c.push(d),d[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=_t.fromSVGPathData(u,o.transform);rc(h,e),h.attrs={...h.attrs,...r,...e.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.paths.push(h)})}}}}class Lm extends Ft{rx;ry;constructor(e){super(e),this.coordinateIsShapeCenter=!0,this.rx=e?.rx||0,this.ry=e?.ry||0}getBoundingClientRect(){return new Ot({x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2})}toSVGPathData(){return[["M",this.x,this.y],["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(e){e.beginPath(),e.ellipse(this.x,this.y,this.rx,this.ry,0,0,2*Math.PI,!0),e.closePath()}}class Vr extends Ft{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=[];for(let t=0,s=this.length;t<s;t++)e.push([t===0?"M":"L",this.points[t].x,this.points[t].y]);return e}toCanvasContext(e){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");e.beginPath();const s=(this.points[0].x+this.points[t-1].x)/2,i=(this.points[0].y+this.points[t-1].y)/2;e.moveTo(s,i);let o=0;for(;o<t-1;o++){const r=(this.points[o].x+this.points[o+1].x)/2,a=(this.points[o].y+this.points[o+1].y)/2;e.quadraticCurveTo(this.points[o].x-this.x,this.points[o].y-this.y,r-this.x,a-this.y)}e.quadraticCurveTo(this.points[o].x-this.x,this.points[o].y-this.y,s-this.x,i-this.y)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,t){const s=this.length;let i=!1;const o=2e-10;for(let r=0,a=s-1;r<s;a=r,r++){const l=this.points[r].x,c=this.points[r].y,u=this.points[a].x,h=this.points[a].y;if(l===e&&c===t||u===e&&h===t||t===c&&t===h)return!0;if(t>=c&&t<h||t<c&&t>=h){const d=(u-l)/(h-c),f=l+d*(t-c);if(f===e||Math.abs(f-e)<o)return!0;f>e&&(i=!i)}}return i}[Symbol.iterator](){let e=0;return{next:()=>({value:e>=this.length-1?this.points[++e]:void 0,done:e>=this.length})}}static generateInMultiplePoint(e,t,s,i,o=1){const r=new Vr;for(let a=0;a<=o*s;a+=1){const l=Math.floor(a/o)/s*2*Math.PI,c=e+Math.cos(l)*i,u=t+Math.sin(l)*i;r.addPoint(new at({x:c,y:u}))}return r}}class au extends Ft{constructor(e){super(e),this.coordinateIsShapeCenter=!0}toSVGPathData(){return[["M",this.x,this.y],["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath()}}class Fm extends Ft{constructor(e){super(e),this.coordinateIsShapeCenter=!0}toSVGPathData(){return[["M",this.x,this.y],["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(4,24),e.lineTo(8,16),e.lineTo(14,10),e.lineTo(15,0),e.lineTo(9,-10),e.lineTo(2,0),e.lineTo(-2,0),e.lineTo(-9,-10),e.lineTo(-15,0),e.lineTo(-14,10),e.lineTo(-8,16),e.lineTo(-4,24),e.closePath()}}(function(){let n=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const t=new Date().getTime(),s=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+s)},s);return n=t+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Vm=n=>{let e=window.requestAnimationFrame(function t(s){e=window.requestAnimationFrame(t),n(s,e)});return()=>window.cancelAnimationFrame(e)};class zm{id=0;renders={};cancelFn;constructor(){}get length(){let e=0;for(let t in this.renders)e++;return e}register(e){const t=this.id++;this.renders[t]=e,this.run()}registerAccurateSetTimeout(e,t=0){let s;this.register(i=>(s||(s=i),i-s>=t?(e(),!1):!0))}run(){this.cancelFn||(this.cancelFn=Vm((e,t)=>{const s=[];for(let i in this.renders)this.renders[i](e)===!1&&s.push(parseInt(i));for(let i of s)delete this.renders[i];!this.length&&this.cancelFn&&(this.cancelFn(),this.cancelFn=void 0)}))}}const it=new zm;let zs;typeof self>"u"&&typeof process<"u"&&process.hrtime?zs=function(){const n=process.hrtime();return n[0]*1e3+n[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?zs=self.performance.now.bind(self.performance):Date.now!==void 0?zs=Date.now:zs=function(){return new Date().getTime()};const os=zs;class Gs{static _nextId=0;static nextId(){return Gs._nextId++}}const Yi={Linear:{None:function(n){return n}},Ease:{In:function(n){return Math.pow(n,1.7)}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}},Back:{In:function(n){return n===1?1:n*n*((1.70158+1)*n-1.70158)},Out:function(n){return n===0?0:--n*n*((1.70158+1)*n+1.70158)+1},InOut:function(n){const e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)}},Bounce:{In:function(n){return 1-Yi.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?Yi.Bounce.In(n*2)*.5:Yi.Bounce.Out(n*2-1)*.5+.5}},generatePow:function(n=4){return n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(e){return e**n},Out:function(e){return 1-(1-e)**n},InOut:function(e){return e<.5?(e*2)**n/2:(1-(2-e*2)**n)/2+.5}}},random:function(n){return Math.random()},createStep:function(n){return function(e){return Math.floor(e*n)/n}},createNoisyEasing:function(n,e=.1){const t=1-e;return function(s){return e*Math.random()+t*n(s)}}},zr=Yi,js={Utils:{Linear:function(n,e,t){return(e-n)*t+n},Factorial:function(){const n=[1];return function(e){let t=1;if(n[e])return n[e];for(let s=e;s>1;s--)t*=s;return n[e]=t,t}}(),Bernstein:function(n,e){const t=js.Utils.Factorial;return t(n)/t(e)/t(n-e)},CatmullRom:function(n,e,t,s,i){const o=(t-n)*.5,r=(s-e)*.5,a=i*i,l=i*a;return(2*e-2*t+o+r)*l+(-3*e+3*t-2*o-r)*a+o*i+e}},Linear:function(n,e){const t=n.length-1,s=t*e,i=Math.floor(s),o=js.Utils.Linear;return e<0?o(n[0],n[1],s):e>1?o(n[t],n[t-1],t-s):o(n[i],n[i+1>t?t:i+1],s-i)},Bezier:function(n,e){let t=0;const s=n.length-1,i=Math.pow,o=js.Utils.Bernstein;for(let r=0;r<=s;r++)t+=i(1-e,s-r)*i(e,r)*n[r]*o(s,r);return t},CatmullRom:function(n,e){const t=n.length-1;let s=t*e,i=Math.floor(s);const o=js.Utils.CatmullRom;return n[0]===n[t]?(e<0&&(i=Math.floor(s=t*(1+e))),o(n[(i-1+t)%t],n[i],n[(i+1)%t],n[(i+2)%t],s-i)):e<0?n[0]-(o(n[0],n[0],n[1],n[1],-s)-n[0]):e>1?n[t]-(o(n[t],n[t],n[t-1],n[t-1],s-t)-n[t]):o(n[i?i-1:0],n[i],n[t<i+1?t:i+1],n[t<i+2?t:i+2],s-i)}},Gr=js;class lu{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=os(),t=!1){let s=Object.keys(this._tweens);if(s.length===0)return!1;for(;s.length>0;){this._tweensAddedDuringUpdate={};for(let i=0;i<s.length;i++){const o=this._tweens[s[i]],r=!t;o&&o.update(e,r)===!1&&!t&&delete this._tweens[s[i]]}s=Object.keys(this._tweensAddedDuringUpdate)}return!0}}const It=new lu;class Gm{constructor(e,t=It){this._object=e,this._group=t}_id=Gs.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=zr.Linear.None;_interpolationFunction=Gr.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,t){return this._valuesEnd=Object.create(e),t!==void 0&&(this._durationTime=t),this}duration(e=1e3){return this._durationTime=e,this}start(e=os()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const t in this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,t,s,i){for(const o in s){const r=e[o],a=Array.isArray(r),l=a?"array":typeof r,c=!a&&Array.isArray(s[o]);if(!(l==="undefined"||l==="function")){if(c){let u=s[o];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,r)),s[o]=[r].concat(u)}if((l==="object"||a)&&r&&!c){t[o]=a?[]:{};for(const u in r)t[o][u]=r[u];i[o]=a?[]:{},this._setupProperties(r,t[o],s[o],i[o])}else typeof t[o]>"u"&&(t[o]=r),a||(t[o]*=1),c?i[o]=s[o].slice().reverse():i[o]=t[o]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=os()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=os()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this}group(e=It){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=zr.Linear.None){return this._easingFunction=e,this}interpolation(e=Gr.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=os(),t=!0){if(this._isPaused)return!0;let s,i;const o=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>o)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(e-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const r=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,r),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,t,s,i){for(const o in s){if(t[o]===void 0)continue;const r=t[o]||0;let a=s[o];const l=Array.isArray(e[o]),c=Array.isArray(a);!l&&c?e[o]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(e[o],r,a,i):(a=this._handleRelativeValue(r,a),typeof a=="number"&&(e[o]=r+(a-r)*i))}}_handleRelativeValue(e,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?e+parseFloat(t):parseFloat(t)}_swapEndStartRepeatValues(e){const t=this._valuesStartRepeat[e],s=this._valuesEnd[e];typeof s=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(s):this._valuesStartRepeat[e]=s,this._valuesEnd[e]=t}}const jm=Gm,Bm=Gs.nextId,Hm=It.getAll.bind(It),Wm=It.removeAll.bind(It),Um=It.add.bind(It),Ym=It.remove.bind(It),Xm=It.update.bind(It),re={now:os,Sequence:Gs,Easing:zr,Interpolation:Gr,Group:lu,Tween:jm,nextId:Bm,getAll:Hm,removeAll:Wm,add:Um,remove:Ym,update:Xm};function cu(n){switch(n){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const qm={attributeName:["display"],values:[["block","block"]]},kt={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class je{currentPredefinedAnimateName;currentPredefinedAnimateArgs;objects=[];currentObjects=[];isRunning=!1;constructor(){}destroy(){}hasObjects(){return this.objects.length>0}fromDOM(e){return Array.isArray(e)||(e=[e]),this.objects=[],e.forEach(t=>{this.objects.push({width:parseFloat(X.getStyle(t,"width")),height:parseFloat(X.getStyle(t,"height")),el:t,originCSSObject:{}})}),this}static isRunningGlobalTween=!1;static runGlobalTween(e){je.isRunningGlobalTween||it.register(()=>(je.isRunningGlobalTween=re.update(e?.()),je.isRunningGlobalTween))}static toTween(e,t,s){const i=s?.onUpdate??(()=>{}),o=s?.onStart??(()=>{}),r=s?.onComplete??(()=>{}),a=s?.duration??1e3,l=s?.delay??0,c=s?.easeFunction??re.Easing.Linear.None,u=s?.repeat??0,h=s?.yoyo??!1,d=new re.Tween(e).to(t,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(o).onUpdate(function(f,m){i(f,m)}).onComplete(r);return s?.interpolationFunction&&d.interpolation(s.interpolationFunction),{tween:d,startAuto:f=>{d.start(f?.()),it.register(()=>{const m=d.update(f?.());if(s?.precision){let g=!0;for(let _ in e)Ns(e[_],t[_],s.precision)||(g=!1);return g?!1:m}return m})}}}static toTweenCSS(e,t,s,i){const o={_matrix:Bi(X.getStyle(e,"transform")??"")},r=i?.onUpdate??(()=>{});return je.toTween(t,s,Object.assign(i??{},{onUpdate:(a,l)=>{for(let c in a)je.setCSSObjectTransformUseMatrix(c,a[c],o);e.style.transform=o.transform,r(a,l)}}))}static setCSSObjectTransformUseMatrix(e,t,s={},i){switch(e){case"translate":s._matrix.translate(t[0]??0,t[1]??0);break;case"translateTo":s._matrix.translateTo(t[0]??0,t[1]??0);break;case"translateX":s._matrix.translateX(t??0);break;case"translateXTo":s._matrix.translateXTo(t??0);break;case"translateY":s._matrix.translateY(t??0);break;case"translateYTo":s._matrix.translateYTo(t??0);break;case"translateZ":s._matrix.translateZ(t??0);break;case"translateZTo":s._matrix.translateZTo(t??0);break;case"translate3d":s._matrix.translate3d(t[0]??0,t[1]??0,t[2]??0);break;case"translate3dTo":s._matrix.translate3dTo(t[0]??0,t[1]??0,t[2]??0);break;case"rotate":typeof t=="number"?s._matrix.rotate(t??0):s._matrix.rotate(t[0]??0,t[1]??0,t[2]??0);break;case"rotateTo":typeof t=="number"?s._matrix.rotateTo(t??0):s._matrix.rotateTo(t[0]??0,t[1]??0,t[2]??0);break;case"rotateX":s._matrix.rotateX(t??0);break;case"rotateXTo":s._matrix.rotateXTo(t??0);break;case"rotateY":s._matrix.rotateY(t??0);break;case"rotateYTo":s._matrix.rotateYTo(t??0);break;case"rotateZ":s._matrix.rotateZ(t??0);break;case"rotateZTo":s._matrix.rotateZTo(t??0);break;case"rotate3d":s._matrix.rotate3d(t[0]??0,t[1]??0,t[2]??0);break;case"rotate3dTo":s._matrix.rotate3dTo(t[0]??0,t[1]??0,t[2]??0);break;case"scale":typeof t=="number"?s._matrix.scale(t??1):s._matrix.scale(t[0]??1,t[1]??1,t[2]??0,t[3]??0);break;case"scaleTo":typeof t=="number"?s._matrix.scaleTo(t??1):s._matrix.scaleTo(t[0]??1,t[1]??1,t[2]??0,t[3]??0);break;case"scaleX":s._matrix.scaleX(t??1);break;case"scaleXTo":s._matrix.scaleXTo(t??1);break;case"scaleY":s._matrix.scaleY(t??1);break;case"scaleYTo":s._matrix.scaleYTo(t??1);break;case"scaleZ":s._matrix.scaleZ(t??1);break;case"scaleZTo":s._matrix.scaleZTo(t??1);break;case"scale3d":s._matrix.scale3d(t??1);break;case"scale3dTo":s._matrix.scale3dTo(t??1);break;case"skew":typeof t=="number"?s._matrix.skew(t??0):s._matrix.skew(t[0]??0,t[1]??0);break;case"skewTo":typeof t=="number"?s._matrix.skewTo(t??0):s._matrix.skewTo(t[0]??0,t[1]??0);break;case"skewX":s._matrix.skewX(t??0);break;case"skewXTo":s._matrix.skewXTo(t??1);break;case"skewY":s._matrix.skewY(t??0);break;case"skewYTo":s._matrix.skewYTo(t??1);break;case"skewZ":case"skewZTo":case"skew3d":case"skew3dTo":break;default:i&&!Object.prototype.hasOwnProperty.call(i.originCSSObject,e)&&(i.originCSSObject[e]=X.getStyle(i.el,e)),Object.assign(s,{[e]:`${t??""}`});break}return Object.assign(s,{transform:s._matrix.toString()}),s}_addCurrentObject(e=qm,t=kt,s=0,i,o=!1){const r=t.keyTimes??[0,1],a=[];r.forEach((c,u)=>{u>0&&a.push(cu(t.easeName??"linear"))});const l=t.dur??300;return this.currentObjects=o?[]:this.currentObjects,this.currentObjects.push({objectIndex:s,sequenceType:i,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,begin:t.begin??0,dur:l,keyTimes:r,realKeyTimes:r.map(c=>l*c),keySplines:a,repeatCount:t.repeatCount??1,direction:t.direction??"normal",fill:t.fill??"freeze",onComplete:t.onComplete}),this}_resetGroupCurrentObjects(e,t,s,i,o=kt,r=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;r=cr(r,0,h);let d=r-1;d=cr(d,0,h);let f=r+1;f=cr(f,0,h);const m=this.objects[r],g=this.objects[d],_=this.objects[f];if(g&&d!==r){const w=e(g);w&&(this._addCurrentObject(w,o,d,"prev",a),a=!1,l=!0)}if(m){const w=t(m);w&&(this._addCurrentObject(w,o,r,"current",a),a=!1,c=!0)}if(_&&f!==r){const w=s(_);w&&(this._addCurrentObject(w,o,f,"next",a),a=!1,u=!0)}this.objects.forEach((w,C)=>{if(!(C==d&&l||C==r&&c||C==f&&u)){const E=i(w);E&&(this._addCurrentObject(E,o,C,"other",a),a=!1)}})}toCSS(e,...t){if(!this.hasObjects()||this.isRunning)return;switch(this.currentPredefinedAnimateName=e,this.currentPredefinedAnimateArgs=t,this[e](...t),this.objects[0].el&&this.objects[0].el.parentElement&&(this.objects[0].el.parentElement.style.position=X.getStyle(this.objects[0].el.parentElement,"transform")||"relative",this.objects[0].el.parentElement.style.perspective=X.getStyle(this.objects[0].el.parentElement,"perspective")||"1000px"),e){default:this.objects.forEach((o,r)=>{X.setStyle(o.el,Object.assign(o?.originCSSObject??{},{position:"absolute","z-index":String(2e3+r),"transform-style":"preserve-3d","backface-visibility":"hidden"}))});break}let s=0;const i=()=>{this.isRunning=!0,this.currentObjects.forEach((o,r)=>{const a=this.objects[o.objectIndex];let l=[],c=[];Array.isArray(o.attributeName)?(l=o.attributeName,c=o.values):o.attributeName&&(l=[o.attributeName],c=[o.values]);const u=o.keyTimes.length;let h=o.begin;o.keyTimes.forEach((d,f)=>{if(f==0||o.immediate){const m={_matrix:Bi("")};l.forEach((g,_)=>{const w=c[_][o.direction=="reverse"?u-1-f:f];je.setCSSObjectTransformUseMatrix(g,w,m,a)}),X.setStyle(a.el,Object.assign(m,{transition:"all 0ms!important"}))}else it.registerAccurateSetTimeout(((m,g,_)=>()=>{const w={_matrix:Bi("")};l.forEach((C,E)=>{const k=c[E][g.direction=="reverse"?u-1-m:m];je.setCSSObjectTransformUseMatrix(C,k,w,_)}),X.setStyle(_.el,Object.assign(w,{transition:`all ${g.realKeyTimes[m]}ms cubic-bezier(${g.keySplines[m-1].join(",")})`}))})(f,o,a),h+1),h+=o.realKeyTimes[f]}),it.registerAccurateSetTimeout(((d,f)=>()=>{d.fill==="remove"&&X.setStyle(a.el,a.originCSSObject??{}),f==this.currentObjects.length-1&&(d.onComplete?.(),this.isRunning=!1,(typeof d.repeatCount=="number"&&++s<d.repeatCount||d.repeatCount=="infinite")&&requestAnimationFrame(()=>{this.currentPredefinedAnimateName===e&&i()}))})(o,r),o.begin+o.dur)})};i()}slideLeft(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[s.width,0],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[s.width,0],[s.width,0]]],immediate:!0}),e,t)}slideRight(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-s.width,0],[0,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[s.width,0]]]}),s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-s.width,0],[-s.width,0]]],immediate:!0}),e,t)}slideDown(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-s.height],[0,-s.height]]],immediate:!0}),e,t)}slideUp(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-s.height]]]}),s=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,s.height],[0,0]]]}),s=>{},s=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,s.height],[0,s.height]]],immediate:!0}),e,t)}flipLeft(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipRight(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipDown(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipUp(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),s=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popIn(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popOut(e=kt,t=this.objects.length-1){this._resetGroupCurrentObjects(s=>{},s=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),s=>{},s=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}rotate(e=kt,t=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const s=e.degree??360;this._resetGroupCurrentObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,s]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}static flipCSS(e,t,s=kt){const i=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=X.getStyle(e,"backgroundColor"),a=X.getStyle(t,"backgroundColor");t.style.transition="none",t.style.left=""+i.left,t.style.top=""+i.top,t.style.width=i.width+"px",t.style.height=i.height+"px",r&&(t.style.backgroundColor=r),it.registerAccurateSetTimeout(()=>{t.style.transition=`all ${s.dur}ms cubic-bezier(${cu(s.easeName??"linear").join(",")})`,t.style.left=""+o.left,t.style.top=""+o.top,t.style.width=o.width+"px",t.style.height=o.height+"px",a&&(t.style.backgroundColor=a)},s.begin)}}let jr=class{app;ctx;shapes=[];isMouseDown=!1;currentEnableMouseInShapeID="";constructor(e){this.app=e,this.ctx=new Am(this.app.container),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableMouseInShapeID){this.setCursor();return}let t=0,s=this.shapes.length;for(;t<s;t++){const i=this.shapes[t];this.ctx.save(),this.transformCtxBaseOnShape(i);const o=this.ctx.isPointInPath(i.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),o&&i.enableDrag){this.currentEnableMouseInShapeID=i.id;break}}t>=s&&(this.currentEnableMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.app.container.style.cursor="default"}transformCtxBaseOnShape(e){!(e instanceof st)&&!(e instanceof _t)&&this.ctx.translate(e.x,e.y),this.ctx.rotate(Wn(e.degree)),this.ctx.scale(e.scaleOnOrigin,e.scaleOnOrigin)}draw(e=[]){const t=[];return sp(e)?t.push(...e):t.push(e),this.shapes=[],t.forEach(s=>{s instanceof Ui?this.shapes.push(...s.paths):this.shapes.push(s)}),this.shapes.forEach(s=>{if(this.ctx.save(),X.attrsToCanvas(this.ctx,s.attrs),s.followMouse&&(!Ns(s.x,this.app.mousePoint.x,5)||!Ns(s.y,this.app.mousePoint.y,5))&&(s.angleTo(this.app.mousePoint),s.followTo(this.app.mousePoint)),s.targetToAfterDragFree&&(this.isMouseDown||s.nextFrameEaseTo(new at({x:s.targetToAfterDragFree.targetX,y:s.targetToAfterDragFree.targetY}),{easing:s.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableMouseInShapeID==s.id){if(s.x=this.app.mousePoint.x,s.y=this.app.mousePoint.y,!s.coordinateIsShapeCenter){const i=s.getBoundingClientRect();i&&i.width&&i.height&&(s.x-=i.width/2,s.y-=i.height/2)}s.isDragging=!0,this.shapes.filter(i=>i.id!=s.id).forEach(i=>i.isDragging=!1)}this.transformCtxBaseOnShape(s),s.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),s.path2d=this.ctx.currentPath2D,this.ctx.restore()}),this}clickInPath(e){const t=()=>{this.shapes.filter(s=>s instanceof _t).forEach(s=>{s.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)&&e(s)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}drawMouseMoveLine(e="line",t){switch(e){case"brush":const s=(t&&t.brushSize)??10,i=(t&&t.brushDensity)??50,o=(t&&t.brushColor)??"#000000",r=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=r.data,l=Jc(o);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*s,d=this.app.mousePoint.x+Math.cos(u)*h|0,f=this.app.mousePoint.y+Math.sin(u)*h|0,m=(d+f*r.width)*4;a[m]=l>>16&255,a[m+1]=l>>8&255,a[m+2]=l&255,a[m+3]=255}this.ctx.putImageData(r)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}};class Km{map;constructor(e,t=120.619585,s=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(t,s),i)}}const Zm=K({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("span",{class:"icon",style:B(["color: "+t.color])},[se(Ee(Bc),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),Qm=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
56
+ `,ee=(n,e)=>{const t=n.__vccOpts||n;for(const[s,i]of e)t[s]=i;return t},uu=ee(Zm,[["styles",[Qm]],["__scopeId","data-v-b2d9b612"]]),Jm=K({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("span",{class:"icon",style:B(["color: "+t.color])},[se(Ee(Bc),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),f_="",Wt=ee(Jm,[["__scopeId","data-v-8789b4ce"]]),an=ee(K({customOptions:{},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(s.borderColor),a=$(s.bgColor),l=$(s.fontColor),c=$(s.borderColor),u=$(s.bgColor);function h(E){switch(E){case"outline":r.value=s.borderColor??Z.colorPrimary,a.value=s.bgColor??Z.colorGrayFF,l.value=s.fontColor??Z.colorPrimary,c.value=r.value,u.value=a.value;break;default:r.value=s.borderColor??Z.colorPrimary,a.value=s.bgColor??Z.colorPrimary,l.value=s.fontColor??Z.colorGrayFF,c.value=r.value,u.value=a.value;break}}ge(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const d=$(s.isDisabled?"0.6":"1"),f=$(s.isDisabled?"not-allowed":"pointer");let m=!1;const g=()=>{s.isDisabled||(m=!0,r.value=rn(c.value,10),a.value=rn(u.value,10))},_=()=>{s.isDisabled||(m=!1,r.value=c.value,a.value=u.value)},C=uc(()=>{s.isDisabled||(r.value=rn(c.value,-10),a.value=rn(u.value,-10),setTimeout(()=>{m?g():_()},150),i("ceClick"),i("click"))},500);return e({wrapper:o}),(E,k)=>(D(),L("div",{ref_key:"wrapper",ref:o,class:"button",style:B([`opacity: ${d.value}`,`border: 1px solid ${r.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${f.value}`,"user-select: none"]),onMouseover:g,onMouseleave:_,onClick:k[0]||(k[0]=(...I)=>Ee(C)&&Ee(C)(...I))},[S("label",{class:"label truncate",style:B({padding:"0 "+E.padding,cursor:f.value})},[ze(E.$slots,"default",{},()=>[E.icon&&E.iconPosition==="left"?(D(),Je(Wt,{key:0,icon:E.icon,color:l.value,style:B({marginRight:Ee(Z).gap4,cursor:f.value})},null,8,["icon","color","style"])):Re("",!0),S("span",{style:B({cursor:f.value})},_e(E.label),5),E.icon&&E.iconPosition==="right"?(D(),Je(Wt,{key:1,icon:E.icon,color:l.value,style:B({marginLeft:Ee(Z).gap4,cursor:f.value})},null,8,["icon","color","style"])):Re("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-22531d76]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-22531d76]{display:inline-flex;justify-content:center;align-items:center}
57
+ `]],["__scopeId","data-v-22531d76"]]),eg=K({customOptions:{},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{}},emits:["ceClick","click"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(s.borderColor),a=$(s.bgColor),l=$(s.fontColor),c=$(s.borderColor),u=$(s.bgColor);function h(E){switch(E){case"outline":r.value=s.borderColor??Z.colorPrimary,a.value=s.bgColor??Z.colorGrayFF,l.value=s.fontColor??Z.colorPrimary,c.value=r.value,u.value=a.value;break;default:r.value=s.borderColor??Z.colorPrimary,a.value=s.bgColor??Z.colorPrimary,l.value=s.fontColor??Z.colorGrayFF,c.value=r.value,u.value=a.value;break}}ge(()=>s.stylePattern,()=>{h(s.stylePattern)},{immediate:!0});const d=$(s.isDisabled?"0.6":"1"),f=$(s.isDisabled?"not-allowed":"pointer");let m=!1;const g=()=>{s.isDisabled||(m=!0,r.value=rn(c.value,10),a.value=rn(u.value,10))},_=()=>{s.isDisabled||(m=!1,r.value=c.value,a.value=u.value)},C=uc(()=>{s.isDisabled||(r.value=rn(c.value,-10),a.value=rn(u.value,-10),setTimeout(()=>{m?g():_()},150),i("ceClick"),i("click"))},500);return e({wrapper:o}),(E,k)=>(D(),L("div",{ref_key:"wrapper",ref:o,class:"button",style:B([`opacity: ${d.value}`,`border: 1px solid ${r.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${f.value}`,"user-select: none"]),onMouseover:g,onMouseleave:_,onClick:k[0]||(k[0]=(...I)=>Ee(C)&&Ee(C)(...I))},[S("label",{class:"label truncate",style:B({padding:"0 "+E.padding,cursor:f.value})},[ze(E.$slots,"default",{},()=>[E.icon&&E.iconPosition==="left"?(D(),Je(Wt,{key:0,icon:E.icon,color:l.value,style:B({marginRight:Ee(Z).gap4,cursor:f.value})},null,8,["icon","color","style"])):Re("",!0),S("span",{style:B({cursor:f.value})},_e(E.label),5),E.icon&&E.iconPosition==="right"?(D(),Je(Wt,{key:1,icon:E.icon,color:l.value,style:B({marginLeft:Ee(Z).gap4,cursor:f.value})},null,8,["icon","color","style"])):Re("",!0)],!0)],4)],36))}}),g_="",Te=ee(eg,[["__scopeId","data-v-ee116edd"]]),tg=["onClick","value"],ng={class:"option-inner"},sg=ee(K({customOptions:{Icon:Wt,Button:Te},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;bn(()=>{X.setStyleSheet(`
57
58
  :root {
58
- --select-option-bg-color: ${q.colorGrayFF};
59
- --select-option-bg-color-hover: ${q.colorGrayF5};
59
+ --select-option-bg-color: ${Z.colorGrayFF};
60
+ --select-option-bg-color-hover: ${Z.colorGrayF5};
60
61
  }
61
- `)});const i=$(!1),o=$(n.initIndex);me(o,function(){s("change",o.value,n.options[o.value])});function r(){i.value=!i.value}function l(a){o.value=a,i.value=!1}return(a,c)=>(I(),L("div",{class:"select",style:B(["font-size:"+a.fontSize])},[k("div",{onClick:r},[Ae(a.$slots,"button",{selectedIndex:o.value},()=>[se(Ee,{icon:"carbon:chevron-sort",iconPosition:"right",label:a.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),Do(k("div",{class:"options",style:B({border:"1px solid "+_e(q).colorGrayCC})},[(I(!0),L(De,null,ft(a.options,(u,h)=>(I(),L("div",{onClick:d=>l(h),class:"option",key:h,value:h,style:B({borderTop:(h==0?"0":"1px")+" solid "+_e(q).colorGrayCC})},[k("div",ng,[Ae(a.$slots,"default",{item:u,index:h},()=>[k("span",null,ge(u),1),h==o.value?(I(),Xe(Bt,{key:0,icon:"mingcute:check-fill",class:"icon"})):Ie("",!0)],!0)])],12,tg))),128))],4),[[xi,i.value]])],4))}}),[["styles",[`.select[data-v-2b1ef62b]{display:inline-block;position:relative}.options[data-v-2b1ef62b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-2b1ef62b]{cursor:pointer}.option-inner[data-v-2b1ef62b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-2b1ef62b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-2b1ef62b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
62
- `]],["__scopeId","data-v-2b1ef62b"]]),ig=["width","height"],og=["fill"],rg=Z({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:q.colorGrayCC}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,og)],8,ig))}}),d_="",ji=Q(rg,[["__scopeId","data-v-b1f2ae20"]]),ag={class:"button-default"},lg={class:"truncate"},cg=["onClick","value"],ug=Z({customOptions:{SVGDown:ji},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:q.colorGrayFF},hoverColor:{default:q.colorGrayF5},selectedColor:{default:q.colorPrimary},fontColor:{default:q.colorGray33},duration:{default:300}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;mn(()=>{ee.setStyleSheet(`
62
+ `)});const i=$(!1),o=$(t.initIndex);ge(o,function(){s("change",o.value,t.options[o.value])});function r(){i.value=!i.value}function a(l){o.value=l,i.value=!1}return(l,c)=>(D(),L("div",{class:"select",style:B(["font-size:"+l.fontSize])},[S("div",{onClick:r},[ze(l.$slots,"button",{selectedIndex:o.value},()=>[se(Te,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[o.value],style:{width:"100%"}},null,8,["label"])],!0)]),Vo(S("div",{class:"options",style:B({border:"1px solid "+Ee(Z).colorGrayCC})},[(D(!0),L(Me,null,gt(l.options,(u,h)=>(D(),L("div",{onClick:d=>a(h),class:"option",key:h,value:h,style:B({borderTop:(h==0?"0":"1px")+" solid "+Ee(Z).colorGrayCC})},[S("div",ng,[ze(l.$slots,"default",{item:u,index:h},()=>[S("span",null,_e(u),1),h==o.value?(D(),Je(Wt,{key:0,icon:"mingcute:check-fill",class:"icon"})):Re("",!0)],!0)])],12,tg))),128))],4),[[Oi,i.value]])],4))}}),[["styles",[`.select[data-v-2b1ef62b]{display:inline-block;position:relative}.options[data-v-2b1ef62b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-2b1ef62b]{cursor:pointer}.option-inner[data-v-2b1ef62b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-2b1ef62b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-2b1ef62b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
63
+ `]],["__scopeId","data-v-2b1ef62b"]]),ig=["width","height"],og=["fill"],rg=K({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Z.colorGrayCC}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,og)],8,ig))}}),__="",Xi=ee(rg,[["__scopeId","data-v-b1f2ae20"]]),ag={class:"button-default"},lg={class:"truncate"},cg=["onClick","value"],ug=K({customOptions:{SVGDown:Xi},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:Z.colorGrayFF},hoverColor:{default:Z.colorGrayF5},selectedColor:{default:Z.colorPrimary},fontColor:{default:Z.colorGray33},duration:{default:300}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;bn(()=>{X.setStyleSheet(`
63
64
  :root {
64
- --select-option-bg-color: ${n.bgColor};
65
- --select-option-bg-color-hover: ${n.hoverColor};
65
+ --select-option-bg-color: ${t.bgColor};
66
+ --select-option-bg-color-hover: ${t.hoverColor};
66
67
  }
67
- `)});const i=$(!1),o=$(n.initIndex);me(o,function(){s("change",o.value,n.options[o.value])});function r(){i.value=!i.value}function l(c){o.value=c,i.value=!1}const a=$("rotate(-180deg)");return Za(()=>{a.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(I(),L("div",{class:"select-absolute",style:B({fontSize:n.fontSize,backgroundColor:n.bgColor})},[k("div",{class:"select-absolute-button",onClick:r},[Ae(c.$slots,"button",{selectedIndex:o.value},()=>[k("div",ag,[k("div",lg,ge(c.options[o.value]),1),se(ji,{class:"icon-down",width:"20px",style:B({transition:`transform ${n.duration}ms ease-in-out`,transform:a.value})},null,8,["style"])])],!0)]),k("div",{class:"options",style:B({maxHeight:i.value?"200px":0,transition:`all ${n.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(I(!0),L(De,null,ft(c.options,(h,d)=>(I(),L("div",{onClick:f=>l(d),class:"option",key:d,value:d},[Ae(c.$slots,"default",{item:h,index:d},()=>[k("div",{class:"option-default",style:B({color:o.value==d?n.selectedColor:n.fontColor})},ge(h),5)],!0)],8,cg))),128))],4)],4))}}),cu=Q(ug,[["styles",[`.select-absolute[data-v-fd6e278c]{display:block;position:relative;width:100%}.select-absolute-button[data-v-fd6e278c]{overflow:hidden}.button-default[data-v-fd6e278c]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-fd6e278c]{flex:0 0 auto}.truncate[data-v-fd6e278c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-fd6e278c]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-fd6e278c]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-fd6e278c]::-webkit-scrollbar:vertical{width:2px}.options[data-v-fd6e278c]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-fd6e278c]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-fd6e278c]{cursor:pointer}.option-default[data-v-fd6e278c]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-fd6e278c]:hover{background-color:var(--select-option-bg-color-hover)}
68
- `]],["__scopeId","data-v-fd6e278c"]]),hg=Z({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:q.colorPrimary},colorBgOn:{default:q.colorGrayEF},colorBgOff:{default:q.colorGrayF5}},emits:["change"],setup(t,{emit:e}){const n=t,s=Ss(n.width),i=Ss(n.height),o=Ss(n.padding),r=i.number-o.number*2+i.suffix,l=n.padding,a=s.number-Ss(l).number-Ss(r).number+s.suffix,c=e,u=$(n.init);me(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(d,f)=>(I(),L("div",{class:"switch",onClick:h,style:B(["width: "+n.width,"height: "+n.height,"background-color: "+(u.value?n.colorBgOn:n.colorBgOff)])},[k("span",{class:"round",style:B(["width: "+r,"height: "+r,"background-color: "+(u.value?n.colorPrimary:_e(sn)(n.colorPrimary,30)),"transform: translate("+(u.value?a:_e(l))+", 0)"])},null,4)],4))}}),dg=Q(hg,[["styles",[`.switch[data-v-3e04e7d9]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-3e04e7d9]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
69
- `]],["__scopeId","data-v-3e04e7d9"]]),fg={class:"wrap"},pg=["onClick"],mg=["stroke","fill"],gg=["stroke","fill"],vg=["stroke"],yg=Z({customOptions:{},__name:"RadioGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:q.colorPrimary},colorBg:{default:q.colorGrayFF},colorBorder:{default:q.colorGrayCC},fontSize:{default:q.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;let i=$(n.initIndexs??0);me(i,function(){s("change",n.options[i.value])});const o=function(r){i.value=r};return(r,l)=>(I(),L("div",fg,[(I(!0),L(De,null,ft(r.options,(a,c)=>(I(),L("span",{class:"item",key:c,onClick:u=>o(c),style:B(["margin-left:"+(c>0?n.itemPadding:0)])},[Ae(r.$slots,"default",{label:a,index:c},()=>[(I(),L("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:B(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?Ie("",!0):(I(),L("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:r.isFullfilled&&_e(i)===c?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&_e(i)===c?r.colorPath:r.colorBg,"fill-opacity":1},null,8,mg)),n.isRounded?(I(),L("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:r.isFullfilled&&_e(i)===c?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&_e(i)===c?r.colorPath:r.colorBg,"fill-opacity":1},null,8,gg)):Ie("",!0),Do(k("path",{d:"M7 13l3 3 7-7",stroke:r.isFullfilled?r.colorBg:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,vg),[[xi,_e(i)===c]])],4)),k("span",{style:B(["font-size:"+n.fontSize])},ge(a),5)],!0)],12,pg))),128))]))}}),_g=Q(yg,[["styles",[`.wrap[data-v-35baba24]{display:inline-block;position:relative}.item[data-v-35baba24]{display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.icon[data-v-35baba24]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
70
- `]],["__scopeId","data-v-35baba24"]]),bg={class:"wrap"},xg=["onClick"],wg=["stroke","fill"],Cg=["stroke","fill"],Eg=["stroke"],Sg=Z({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:q.colorPrimary},colorBg:{default:q.colorGrayFF},colorBorder:{default:q.colorGrayCC},fontSize:{default:q.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(t,{emit:e}){const n=t,s=e;let i=nt(n.initIndexs??[0]);me(i,function(){s("change",i.map(r=>n.options[r]))});const o=function(r){const l=i.findIndex(a=>a===r);l>=0?i.splice(l,1):i.push(r)};return(r,l)=>(I(),L("div",bg,[(I(!0),L(De,null,ft(r.options,(a,c)=>(I(),L("span",{class:"item",key:c,onClick:u=>o(c),style:B(["margin-left:"+(c>0?n.itemPadding:0)])},[Ae(r.$slots,"default",{label:a,index:c},()=>[(I(),L("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:B(["margin-right:"+n.labelPadding,"width:"+n.itemWidth])},[n.isRounded?Ie("",!0):(I(),L("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:r.isFullfilled&&_e(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&_e(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBg,"fill-opacity":1},null,8,wg)),n.isRounded?(I(),L("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:r.isFullfilled&&_e(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&_e(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBg,"fill-opacity":1},null,8,Cg)):Ie("",!0),Do(k("path",{d:"M7 13l3 3 7-7",stroke:r.isFullfilled?r.colorBg:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Eg),[[xi,_e(i).findIndex(u=>u===c)>=0]])],4)),k("span",{style:B(["font-size:"+n.fontSize])},ge(a),5)],!0)],12,xg))),128))]))}}),kg=Q(Sg,[["styles",[`.wrap[data-v-784ff4be]{display:inline-block;position:relative}.item[data-v-784ff4be]{display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.icon[data-v-784ff4be]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
71
- `]],["__scopeId","data-v-784ff4be"]]),Tg=["width","height"],Pg=["fill"],Ng=["fill"],Og=["fill"],Ig=Z({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:q.colorRed}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12ZM19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z",fill:e.color},null,8,Pg),k("path",{d:"M12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4665 15.4946 11.4665 15.2001L11.4665 10.9334C11.4665 10.6388 11.7053 10.4001 11.9999 10.4001C12.2944 10.4001 12.5332 10.6388 12.5332 10.9334L12.5332 15.2001Z",fill:e.color},null,8,Ng),k("path",{d:"M12.5332 8.80006C12.5332 9.09462 12.2944 9.3334 11.9999 9.3334C11.7053 9.3334 11.4665 9.09462 11.4665 8.80006C11.4665 8.50551 11.7053 8.26673 11.9999 8.26673C12.2944 8.26673 12.5332 8.50551 12.5332 8.80006Z",fill:e.color},null,8,Og)],8,Tg))}}),v_="",uu=Q(Ig,[["__scopeId","data-v-41294f60"]]),$g={class:"wrap"},Dg=["type","required"],Mg={class:"ellipsis"},Rg={key:1,style:{}},Ag=Z({customOptions:{SVGPrompt:uu},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:q.colorPrimary},errorColor:{default:q.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=s.placeholder.split(""),r=s.duration/o.length,l=$(!1),a=$(""),c=$("");function u(){l.value=!0,i("focus"),i("ceFocus")}function h(){l.value=!1,i("blur"),i("ceBlur"),f()}function d(m){c.value=m.target.value,f()}function f(){if(c.value&&s.validator){const m=s.validator(c.value);if(!m.isValidated){a.value=m.msg;return}}a.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return Re(()=>{}),e({}),(m,v)=>(I(),L("div",$g,[k("input",{type:s.type,required:s.required,autocomplete:"off",style:B({height:s.height,lineHeight:s.height,borderRadius:s.borderRadius,color:s.fontColor,borderColor:a.value?s.errorColor:l.value?s.focusColor:c.value?s.bgColor:"transparent",transition:s.duration+"ms"}),class:xt([l.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:d,onChange:d},null,46,Dg),k("div",{class:"placeholder",style:B({lineHeight:l.value||c.value?1.3:s.height,color:s.placeholderColor,transition:s.placeholderJump?"":s.duration+"ms",transform:s.placeholderJump?"":l.value||c.value?"translateY(-100%)":"none"})},[a.value?(I(),L("div",{key:0,style:B({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[se(uu,{class:"icon"}),k("div",Mg,ge(a.value),1)],4)):Ie("",!0),!a.value&&!s.placeholderJump?(I(),L("div",Rg,ge(s.placeholder),1)):Ie("",!0),!a.value&&s.placeholderJump?(I(!0),L(De,{key:2},ft(_e(o),(y,w)=>(I(),L("span",{key:w,style:B({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${r*w}ms`,transform:l.value||c.value?`translateX(${100*w}%) translateY(-100%)`:`translateX(${100*w}%)`}),class:"single"},ge(y),5))),128)):Ie("",!0)],4),k("div",{class:"bg",style:B({transition:s.duration+"ms",backgroundColor:l.value||c.value?"transparent":s.bgColor,height:l.value||c.value?s.height:"2px",borderRadius:s.borderRadius})},null,4)]))}}),Lg=Q(Ag,[["styles",[`.wrap[data-v-133a3bfb]{position:relative;box-sizing:border-box;font-size:1em}.input[data-v-133a3bfb]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.bg[data-v-133a3bfb]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-133a3bfb]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-133a3bfb]{font-size:.75em}.placeholder>div[data-v-133a3bfb]{width:100%;display:flex;justify-content:flex-start;align-items:center}.icon[data-v-133a3bfb]{flex:0 0 auto}.ellipsis[data-v-133a3bfb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.placeholder>span.single[data-v-133a3bfb]{position:absolute;left:0;top:0}
72
- `]],["__scopeId","data-v-133a3bfb"]]),Fg=["width","height"],Vg=["fill"],zg=Z({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[k("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Vg)],8,Fg))}}),__="",hu=Q(zg,[["__scopeId","data-v-4747d4a7"]]),Gg=Z({customOptions:{SVGDelete:hu},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:q.colorGrayFF},deleteColor:{default:q.colorRed},fontColor:{default:q.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(!1),r=()=>{i("delete"),o.value=!1};let l;const a=$();return me(a,()=>{a.value&&(l=new we(a.value),l.on("panLeft",()=>{o.value=!0}),l.on("panRight",()=>{o.value=!1}),l.on("tapOutSide",()=>{o.value=!1}))}),Re(()=>{l?.destroy()}),e({}),(c,u)=>(I(),L("div",{class:"parent",ref_key:"item",ref:a,style:B({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[k("div",{class:"content",style:B({transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[Ae(c.$slots,"default",{},void 0,!0)],4),k("div",{class:"delete",onClick:r,style:B({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[se(hu,{color:s.fontColor},null,8,["color"])],4)],4))}}),du=Q(Gg,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
73
- `]],["__scopeId","data-v-4ea80232"]]),jg=t=>{const e={};for(const n of t.attributes)e[n.name]=n.value;return e},Bg={class:"overlay-content",style:B(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},Hg=Z({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Qc(q.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(t,{expose:e,emit:n}){const s=t,i=$();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return me(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,l)=>s.visible?(I(),L("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:B([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[k("div",Bg,[Ae(r.$slots,"default",{},void 0,!0)])],4)):Ie("",!0)}}),x_="",xn=Q(Hg,[["__scopeId","data-v-1972073d"]]),Wg=(t=>(Mn("data-v-ad23bc09"),t=t(),Rn(),t))(()=>k("div",null,null,-1)),Ug=Z({customOptions:{Overlay:xn},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$();let r;const l=nt({}),a=nt({});function c(){switch(zn(l),zn(a),s.directionFrom){case"absolute":r="",l.display="block",a.width="100%",a.height="100%";break;case"top":r="slideDown",l.display="block",a.width="100%",a.top="0",a.left="0";break;case"left":r="slideRight",l.display="block",a.height="100%",a.top="0",a.left="0";break;case"right":r="slideLeft",l.display="block",a.height="100%",a.top="0",a.right="0";break;case"bottom":r="slideUp",l.display="block",a.width="100%",a.bottom="0",a.left="0";break;case"center":default:r="popIn",l.display="flex",l.justifyContent="center",l.alignItems="center";break}}me(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new Ve,h=(w=!0)=>{!r||!o.value||(w?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};me(o,()=>{o.value&&h(!0)},{});const d=$(!1);function f(){d.value=!0}function m(){s.directionFrom=="absolute"?v():h(!1)}function v(){d.value=!1,i("close")}function y(w){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(w.target)&&s.closeWhenClickOverlay&&v():o.value&&!o.value.contains(w.target)&&s.closeWhenClickOverlay&&m()}return e({open:f,close:m}),(w,E)=>(I(),Xe(xn,{visible:d.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Te(()=>[k("div",{class:"pop-parent",style:B([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},l]),onClick:y},[k("div",{ref_key:"pop",ref:o,class:"pop",style:B([{position:"absolute","z-index":"3000"},a])},[Ae(w.$slots,"default",{},()=>[Wg],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),C_="",Pt=Q(Ug,[["__scopeId","data-v-ad23bc09"]]),Yg={class:"dialog-parent"},Xg={key:0,class:"title"},qg={key:0,class:"title-inner truncate"},Kg={class:"custom-content"},Zg={class:"custom-content-default"},Qg={key:1,class:"btns"},Jg=Z({customOptions:{Overlay:xn,Pop:Pt,Icon:Bt,Button:Ee},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(""),l=$(""),a=$(!1),c=$(""),u=$("");let h,d,f;function m(E){r.value=E?.title||"",l.value=E?.content||"",a.value=typeof E?.showClose=="boolean"?E?.showClose:!1,c.value=E?.cancelText||"",u.value=E?.confirmText||"",o.value.open(),h=E?.onClose,d=E?.onCancel,f=E?.onConfirm,i("open")}function v(){o.value.close(),h?.(),i("close")}function y(){v(),d?.(),i("cancel")}function w(){v(),f?.(),i("confirm")}return e({open:m,close:v}),(E,C)=>(I(),Xe(Pt,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Te(()=>[k("div",Yg,[k("div",{class:"dialog",style:B({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||a.value?(I(),L("div",Xg,[r.value?(I(),L("div",qg,ge(r.value),1)):Ie("",!0),a.value?(I(),L("div",{key:1,class:"close",onClick:v},[se(Bt,{icon:"ic:baseline-close",color:_e(q).colorGrayCC},null,8,["color"])])):Ie("",!0)])):Ie("",!0),k("div",Kg,[Ae(E.$slots,"default",{},()=>[k("div",Zg,ge(l.value),1)],!0)]),c.value||u.value?(I(),L("div",Qg,[c.value?(I(),Xe(Ee,{key:0,onClick:y,class:"btn",bgColor:_e(q).colorGrayE6,borderColor:_e(q).colorGrayE6,fontColor:_e(q).colorGray33,borderRadius:"0"},{default:Te(()=>[Le(ge(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ie("",!0),u.value?(I(),Xe(Ee,{key:1,onClick:w,class:"btn",borderRadius:"0"},{default:Te(()=>[Le(ge(u.value),1)]),_:1})):Ie("",!0)])):Ie("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),E_="",Bi=Q(Jg,[["__scopeId","data-v-6bd255c9"]]),e0={class:"loading-8"},t0={viewBox:"25 25 50 50"},n0=Z({__name:"Loading8",props:{color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("div",e0,[(I(),L("svg",t0,[k("circle",{cx:"50",cy:"50",r:"20",style:B(["stroke: "+e.color])},null,4)]))]))}}),S_="",fu=Q(n0,[["__scopeId","data-v-e5e3cf4c"]]),Lr=t=>(Mn("data-v-85491020"),t=t(),Rn(),t),s0=[Lr(()=>k("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Lr(()=>k("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Lr(()=>k("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],i0=Z({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{style:B(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},s0,4))}}),N_="",Fr=Q(i0,[["__scopeId","data-v-85491020"]]);function ts(t){let e=!1;return t=="123"&&(e=!0),{isValidated:e,msg:t+"不对!"}}function O_(t){return t}document.getElementById("teleport")||document.documentElement;function Vr(t,e){{const n=document.querySelector("yz-dialog-toast#globalDialogToast");n&&"_instance"in n&&n._instance.exposed.open(t,e)}}function o0(t){{const e=document.querySelector("yz-dialog-loading#globalDialogLoading");return e&&"_instance"in e&&e._instance.exposed.open(t),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function r0(t){{const e=document.querySelector("yz-dialog#globalDialog");return e&&"_instance"in e&&e._instance.exposed.open(t),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function ns(t,e="bottom"){let n;t instanceof HTMLElement?n=Fe(Pt,{directionFrom:e},()=>Fe("div",{...jg(t),innerHTML:t.innerHTML})):n=Fe(Pt,{directionFrom:e},()=>t),Ci(n,document.getElementById("teleport")||document.documentElement),n.component?.exposed?.open();const s=()=>{n.component?.exposed?.close()};return s.vnode=n,s}function pu(t){return ns(t,"bottom")}function mu(t){return ns(t,"top")}function gu(t){return ns(t,"left")}function vu(t){return ns(t,"right")}function yu(t){return ns(t,"center")}function Hi(t){return ns(t,"absolute")}const a0=()=>pu(Fe("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Fe("yz-input",{placeholder:"请输入姓名",validator:ts}))),l0=()=>mu(Fe("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Fe("yz-input",{placeholder:"请输入姓名",validator:ts}))),c0=()=>gu(Fe("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Fe("yz-input",{placeholder:"请输入姓名",validator:ts}))),u0=()=>vu(Fe("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Fe("yz-input",{placeholder:"请输入姓名",validator:ts}))),h0=()=>yu(Fe("div",{style:"width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Fe("yz-input",{placeholder:"请输入姓名",validator:ts}))),d0=()=>Hi(Fe("div",{style:"position:absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Fe("yz-input",{placeholder:"请输入姓名",validator:ts})));let Wi;function _u(t){{const e=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return e&&"_instance"in e&&(Wi&&e.removeEventListener("plates",Wi),Wi=n=>{"detail"in n&&t?.onPlates?.(n.detail[0])},e.addEventListener("plates",Wi),e.initPlates=t?.initPlates,e.completePlateLength=t?.completePlateLength,e._instance.exposed.open()),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}const f0={class:"content"},p0=Q(Z({customOptions:{},inheritAttrs:!0,__name:"MouseOver.ce",props:{coverColor:{default:"#3cefff"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(!1),l=nt({}),a=nt({}),c=nt({});let u=1,h;me(o,()=>{o.value&&(f(),h=new we(o.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const y=Math.min(m,v);a.width=y+"px",a.height=y+"px",f()}),h.on("mouseOver",()=>{i("mouseOver"),r.value=!0,f()}),h.on("mouseOut",()=>{i("mouseOut"),r.value=!1,f()}),h.start())});function d(){ee.copyToClipboard(ee.getInnerText(o.value)).then(()=>{Vr("复制成功")}).catch(m=>{Vr(m.toString())})}function f(){switch(s.coverDirection){case"bottomLeft":a.top="100%",a.right="100%",a.borderRadius="50%",a.transformOrigin="center",a.transform=`translate3d(50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,a.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"bottomRight":a.top="100%",a.left="100%",a.borderRadius="50%",a.transformOrigin="center",a.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,a.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topLeft":a.bottom="100%",a.right="100%",a.borderRadius="50%",a.transformOrigin="center",a.transform=`translate3d(50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,a.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topRight":a.bottom="100%",a.left="100%",a.borderRadius="50%",a.transformOrigin="center",a.transform=`translate3d(-50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,a.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"center":a.top="50%",a.left="50%",a.borderRadius="50%",a.transformOrigin="center",a.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,a.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"slideUp":a.top="0",a.bottom="0",a.left="0",a.right="0",a.width="100%",a.height="100%",a.borderRadius="0",a.transformOrigin=`${r.value?"center bottom":"center top"}`,a.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,a.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideDown":a.top="0",a.bottom="0",a.left="0",a.right="0",a.width="100%",a.height="100%",a.borderRadius="0",a.transformOrigin=`${r.value?"center top":"center bottom"}`,a.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,a.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideRight":a.top="0",a.bottom="0",a.left="0",a.right="0",a.width="100%",a.height="100%",a.borderRadius="0",a.transformOrigin=`${r.value?"center left":"center right"}`,a.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideLeft":a.top="0",a.bottom="0",a.left="0",a.right="0",a.width="100%",a.height="100%",a.borderRadius="0",a.transformOrigin=`${r.value?"center right":"center left"}`,a.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"animationJelly":a.transform="scale(0)",l.animation=`${r.value?"jelly 0.5s":"none"}`;break;case"floatUp":a.transform="scale(0)",l.transform=`${r.value?"translateY(-4px)":"translateY(0)"}`,l.willChange="box-shadow, transform",l.transition=`transform ${s.timeGap}ms ease,box-shadow ${s.timeGap}ms ease `;break;case"underlineRight":a.bottom="0",a.left="0",a.right="0",a.width="100%",a.height="2px",a.transformOrigin=`${r.value?"bottom left":"bottom right"}`,a.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineRightInit":a.bottom="0",a.left="0",a.right="0",a.width="100%",a.height="2px",a.transformOrigin=`${r.value?"bottom right":"bottom left"}`,a.transform=`${r.value?"scaleX(0)":"scaleX(1)"}`,a.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineCenter":a.bottom="0",a.left="50%",a.width="100%",a.height="2px",a.transformOrigin="center",a.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"lineThrough":a.top="50%",a.left="0",a.right="0",a.width="100%",a.height="3px",a.transformOrigin=`${r.value?"center right":"center left"}`,a.transform=`${r.value?"scaleX(0)":"scaleX(1)"} translateY(-50%)`,a.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineRight":a.top="0",a.left="0",a.right="0",a.width="100%",a.height="2px",a.transformOrigin=`${r.value?"bottom left":"bottom right"}`,a.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineCenter":a.top="0",a.left="50%",a.width="100%",a.height="2px",a.transformOrigin="center",a.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"pillars1":a.top="0",a.bottom="0",a.width="2px",a.height="100%",a.transformOrigin=`${r.value?"center bottom":"center top"}`,a.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,a.transition=`transform ${s.timeGap*u}ms ease`,Qn(a,c),c.right="0";break;case"pillars2":a.top="0",a.bottom="0",a.width="2px",a.height="100%",a.transformOrigin=`${r.value?"center bottom":"center top"}`,a.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,a.transition=`transform ${s.timeGap*u}ms ease`,Qn(a,c),c.transformOrigin=`${r.value?"center top":"center bottom"}`,c.right="0";break;case"pillars3":a.top="0",a.bottom="0",a.width="2px",a.height="100%",a.transformOrigin="center",a.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,a.transition=`transform ${s.timeGap*u}ms ease`,Qn(a,c),c.right="0";break;case"bars1":a.left="0",a.right="0",a.width="100%",a.height="2px",a.transformOrigin=`${r.value?"center left":"center right"}`,a.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap*u}ms ease`,Qn(a,c),c.bottom="0";break;case"bars2":a.left="0",a.right="0",a.width="100%",a.height="2px",a.transformOrigin=`${r.value?"center right":"center left"}`,a.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap*u}ms ease`,Qn(a,c),a.transformOrigin=`${r.value?"center left":"center right"}`,c.bottom="0";break;case"bars3":a.left="50%",a.right="0",a.width="100%",a.height="2px",a.transformOrigin="center",a.transform=` translateX(-50%) ${r.value?"scaleX(1)":"scaleX(0)"}`,a.transition=`transform ${s.timeGap*u}ms ease`,Qn(a,c),c.bottom="0";break}}return Re(()=>{h?.destroy()}),e({}),(m,v)=>(I(),L("div",{ref_key:"wrap",ref:o,class:"wrap",style:B({...l}),onClick:d},[k("div",{class:"before",style:B({backgroundColor:s.coverColor,...a})},null,4),k("div",f0,[Ae(m.$slots,"default",{},void 0,!0)]),k("div",{class:"after",style:B({backgroundColor:s.coverColor,...c})},null,4)],4))}}),[["styles",[`@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}
74
- `,`.wrap[data-v-3f105cd4]{box-sizing:border-box;position:relative;display:inline-block;cursor:pointer;overflow:hidden}.before[data-v-3f105cd4],.after[data-v-3f105cd4]{position:absolute;z-index:0}.content[data-v-3f105cd4]{position:relative;z-index:1}
75
- `]],["__scopeId","data-v-3f105cd4"]]),m0=Q(Z({customOptions:{SVGDown:ji},inheritAttrs:!0,__name:"Accordion.ce",props:{initOpen:{type:Boolean,default:!1},height:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(Number.MAX_SAFE_INTEGER+"px"),r=$(),l=$(!0);let a;me(r,()=>{r.value&&(o.value=r.value.getBoundingClientRect().height+"px",a=new we(r.value),a.on("resize",(h,d)=>{i("resize",h,d)}),l.value=s.initOpen)});function c(){l.value=!l.value,l.value?i("open"):i("close")}const u=$("rotate(0deg)");return Za(()=>{u.value=l.value?"rotate(0deg)":"rotate(-90deg)"}),Re(()=>{a?.destroy()}),e({}),(h,d)=>(I(),L("div",{class:"wrap",style:B({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[k("div",{class:"title",onClick:c,style:B({height:s.height,lineHeight:s.height,margin:`0 ${s.padding}`,transitionDelay:`${l.value?0:s.duration}ms`,borderBottom:`${l.value?1:0}px solid ${s.borderColor}`})},[Ae(h.$slots,"title",{},()=>[Le("title")],!0),se(ji,{class:"arrow",style:B({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),k("div",{ref_key:"content",ref:r,class:"content",style:B({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[Ae(h.$slots,"content",{},void 0,!0)],4)],4))}}),[["styles",[`.wrap[data-v-68d65f8a]{font-size:1em;position:relative;overflow:hidden}.title[data-v-68d65f8a]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.content[data-v-68d65f8a]{word-break:break-all;overflow:hidden}
76
- `]],["__scopeId","data-v-68d65f8a"]]),g0=Z({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(0);function r(){o.value=0}function l(a){const c=o.value,u=Math.min(Math.max(0,a),100);Ve.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:l}),(a,c)=>(I(),L("div",{class:"wrap",style:B({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[k("div",{class:"bar",style:B({width:o.value+"%",backgroundColor:s.progressColor})},ge(s.showText?o.value+"%":""),5)],4))}}),A_="",Ui=Q(g0,[["__scopeId","data-v-30de81f6"]]),v0=["width","height"],y0=["src","type"],_0={class:"bar-wrap"},bu=Q(Z({customOptions:{ProgressBar:Ui},inheritAttrs:!0,__name:"Video.ce",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(t,{expose:e,emit:n}){const s=t;function i(){Ve.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{r.value?.start()},onUpdate:a=>{r.value?.goto(a.x)}}).startAuto(()=>this.currentTime)}const o=$(),r=$();me(o,()=>{o.value&&(o.value.addEventListener("play",i),s.autoplay&&wr.tryAutoPlayOrAutoPlayAfterClick(o.value))}),Re(()=>{o.value?.removeEventListener(i)});function l(){o.value?.play()}return e({play:l}),(a,c)=>(I(),L("div",{class:"wrap",style:B({width:s.width,height:s.height}),onClick:l},[k("video",{ref_key:"video",ref:o,width:s.width,height:s.height,preload:"metadata"},[k("source",{src:s.src,type:s.type},null,8,y0)],8,v0),k("div",_0,[se(Ui,{ref_key:"bar",ref:r,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),[["styles",[`.wrap[data-v-0e47aeaa]{position:relative;overflow:hidden;background-color:#f5f5f5}.bar-wrap[data-v-0e47aeaa]{position:absolute;bottom:0;left:0}
77
- `]],["__scopeId","data-v-0e47aeaa"]]),b0=Z({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(),l=$(0),a=$(0),c=$(0),u=$(0),h=$(1),d=$(0),f=$(0);Jc(s.src).then(D=>{c.value=D.width,u.value=D.height,h.value=D.aspectRatio,E()});let m;me(o,()=>{o.value&&(m=new we(o.value,!1),m.on("resize",(D,N)=>{l.value=D,a.value=N,E()}),m.start())});let v=!1;const y={x:0,y:0,width:0,height:0};let w;function E(){if(!(!l.value||!a.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(d.value=l.value,f.value=d.value/h.value,f.value>a.value&&(f.value=a.value,d.value=f.value*h.value)):(f.value=a.value,d.value=f.value*h.value,d.value>l.value&&(d.value=l.value,f.value=d.value/h.value));break;case"aspectFill":h.value>=1?(f.value=a.value,d.value=f.value*h.value):(d.value=l.value,f.value=d.value/h.value);break;case"widthFix":d.value=l.value,f.value=d.value/h.value;break;case"heightFix":f.value=a.value,d.value=f.value*h.value;break;case"scaleToFill":default:d.value=l.value,f.value=a.value;break}ti(()=>{const D=r.value.getBoundingClientRect();i("settled",D.x,D.y,d.value,f.value),v&&w(y.x,y.y,y.width,y.height)})}}function C(D,N,R,ae){const le=(ke,qe,Ke,ze,Ce,ce,M,W,j)=>{if(!Ce||!ce||!M||!W){const te=Ne.vnode.el.getBoundingClientRect(),Se=te.width,Ze=te.height;let He=0,We=0;h.value>=1?(He=Se,We=He/h.value,We>Ze&&(We=Ze,He=We*h.value)):(We=Ze,He=We*h.value,He>Se.value&&(He=Se.value,We=He/h.value)),Ce=(Se-He)/2,ce=(Ze-We)/2,M=He,W=We}const fe=200;Ve.toTween({left:ke,top:qe,width:Ke,height:ze},{left:Ce,top:ce,width:M,height:W},{duration:fe,onStart(){},onUpdate(te){he.el.style.left=te.left+"px",he.el.style.top=te.top+"px",he.el.style.width=te.width+"px",he.el.style.height=te.height+"px"},onComplete(te){y.x=te.left,y.y=te.top,y.width=te.width,y.height=te.height,j?.()}}).startAuto()},he=Fe("div",{style:`
68
+ `)});const i=$(!1),o=$(t.initIndex);ge(o,function(){s("change",o.value,t.options[o.value])});function r(){i.value=!i.value}function a(c){o.value=c,i.value=!1}const l=$("rotate(-180deg)");return sl(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(D(),L("div",{class:"select-absolute",style:B({fontSize:t.fontSize,backgroundColor:t.bgColor})},[S("div",{class:"select-absolute-button",onClick:r},[ze(c.$slots,"button",{selectedIndex:o.value},()=>[S("div",ag,[S("div",lg,_e(c.options[o.value]),1),se(Xi,{class:"icon-down",width:"20px",style:B({transition:`transform ${t.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),S("div",{class:"options",style:B({maxHeight:i.value?"200px":0,transition:`all ${t.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(D(!0),L(Me,null,gt(c.options,(h,d)=>(D(),L("div",{onClick:f=>a(d),class:"option",key:d,value:d},[ze(c.$slots,"default",{item:h,index:d},()=>[S("div",{class:"option-default",style:B({color:o.value==d?t.selectedColor:t.fontColor})},_e(h),5)],!0)],8,cg))),128))],4)],4))}}),hu=ee(ug,[["styles",[`.select-absolute[data-v-fd6e278c]{display:block;position:relative;width:100%}.select-absolute-button[data-v-fd6e278c]{overflow:hidden}.button-default[data-v-fd6e278c]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-fd6e278c]{flex:0 0 auto}.truncate[data-v-fd6e278c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-fd6e278c]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-fd6e278c]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-fd6e278c]::-webkit-scrollbar:vertical{width:2px}.options[data-v-fd6e278c]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-fd6e278c]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-fd6e278c]{cursor:pointer}.option-default[data-v-fd6e278c]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-fd6e278c]:hover{background-color:var(--select-option-bg-color-hover)}
69
+ `]],["__scopeId","data-v-fd6e278c"]]),hg=K({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Z.colorPrimary},colorBgOn:{default:Z.colorGrayEF},colorBgOff:{default:Z.colorGrayF5}},emits:["change"],setup(n,{emit:e}){const t=n,s=Is(t.width),i=Is(t.height),o=Is(t.padding),r=i.number-o.number*2+i.suffix,a=t.padding,l=s.number-Is(a).number-Is(r).number+s.suffix,c=e,u=$(t.init);ge(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(d,f)=>(D(),L("div",{class:"switch",onClick:h,style:B(["width: "+t.width,"height: "+t.height,"background-color: "+(u.value?t.colorBgOn:t.colorBgOff)])},[S("span",{class:"round",style:B(["width: "+r,"height: "+r,"background-color: "+(u.value?t.colorPrimary:Ee(rn)(t.colorPrimary,30)),"transform: translate("+(u.value?l:Ee(a))+", 0)"])},null,4)],4))}}),dg=ee(hg,[["styles",[`.switch[data-v-3e04e7d9]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-3e04e7d9]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
70
+ `]],["__scopeId","data-v-3e04e7d9"]]),fg={class:"wrap"},pg=["onClick"],mg=["stroke","fill"],gg=["stroke","fill"],vg=["stroke"],yg=K({customOptions:{},__name:"RadioGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!0},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Z.colorPrimary},colorBg:{default:Z.colorGrayFF},colorBorder:{default:Z.colorGrayCC},fontSize:{default:Z.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let i=$(t.initIndexs??0);ge(i,function(){s("change",t.options[i.value])});const o=function(r){i.value=r};return(r,a)=>(D(),L("div",fg,[(D(!0),L(Me,null,gt(r.options,(l,c)=>(D(),L("span",{class:"item",key:c,onClick:u=>o(c),style:B(["margin-left:"+(c>0?t.itemPadding:0)])},[ze(r.$slots,"default",{label:l,index:c},()=>[(D(),L("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:B(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Re("",!0):(D(),L("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:r.isFullfilled&&Ee(i)===c?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&Ee(i)===c?r.colorPath:r.colorBg,"fill-opacity":1},null,8,mg)),t.isRounded?(D(),L("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:r.isFullfilled&&Ee(i)===c?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&Ee(i)===c?r.colorPath:r.colorBg,"fill-opacity":1},null,8,gg)):Re("",!0),Vo(S("path",{d:"M7 13l3 3 7-7",stroke:r.isFullfilled?r.colorBg:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,vg),[[Oi,Ee(i)===c]])],4)),S("span",{style:B(["font-size:"+t.fontSize])},_e(l),5)],!0)],12,pg))),128))]))}}),_g=ee(yg,[["styles",[`.wrap[data-v-35baba24]{display:inline-block;position:relative}.item[data-v-35baba24]{display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.icon[data-v-35baba24]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
71
+ `]],["__scopeId","data-v-35baba24"]]),bg={class:"wrap"},xg=["onClick"],wg=["stroke","fill"],Eg=["stroke","fill"],Cg=["stroke"],Sg=K({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},initIndexs:{},isRounded:{type:Boolean,default:!1},isFullfilled:{type:Boolean,default:!1},colorPath:{default:Z.colorPrimary},colorBg:{default:Z.colorGrayFF},colorBorder:{default:Z.colorGrayCC},fontSize:{default:Z.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(n,{emit:e}){const t=n,s=e;let i=ot(t.initIndexs??[0]);ge(i,function(){s("change",i.map(r=>t.options[r]))});const o=function(r){const a=i.findIndex(l=>l===r);a>=0?i.splice(a,1):i.push(r)};return(r,a)=>(D(),L("div",bg,[(D(!0),L(Me,null,gt(r.options,(l,c)=>(D(),L("span",{class:"item",key:c,onClick:u=>o(c),style:B(["margin-left:"+(c>0?t.itemPadding:0)])},[ze(r.$slots,"default",{label:l,index:c},()=>[(D(),L("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:B(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Re("",!0):(D(),L("rect",{key:0,x:"0",y:"0",width:"22",height:"22",stroke:r.isFullfilled&&Ee(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&Ee(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBg,"fill-opacity":1},null,8,wg)),t.isRounded?(D(),L("circle",{key:1,cx:"12",cy:"12",r:"11",stroke:r.isFullfilled&&Ee(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBorder,"strke-width":"1",fill:r.isFullfilled&&Ee(i).findIndex(u=>u===c)>=0?r.colorPath:r.colorBg,"fill-opacity":1},null,8,Eg)):Re("",!0),Vo(S("path",{d:"M7 13l3 3 7-7",stroke:r.isFullfilled?r.colorBg:r.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Cg),[[Oi,Ee(i).findIndex(u=>u===c)>=0]])],4)),S("span",{style:B(["font-size:"+t.fontSize])},_e(l),5)],!0)],12,xg))),128))]))}}),kg=ee(Sg,[["styles",[`.wrap[data-v-784ff4be]{display:inline-block;position:relative}.item[data-v-784ff4be]{display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.icon[data-v-784ff4be]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
72
+ `]],["__scopeId","data-v-784ff4be"]]),Tg=["width","height"],Pg=["fill"],Og=["fill"],Ng=["fill"],Ig=K({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Z.colorRed}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12ZM19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z",fill:e.color},null,8,Pg),S("path",{d:"M12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4665 15.4946 11.4665 15.2001L11.4665 10.9334C11.4665 10.6388 11.7053 10.4001 11.9999 10.4001C12.2944 10.4001 12.5332 10.6388 12.5332 10.9334L12.5332 15.2001Z",fill:e.color},null,8,Og),S("path",{d:"M12.5332 8.80006C12.5332 9.09462 12.2944 9.3334 11.9999 9.3334C11.7053 9.3334 11.4665 9.09462 11.4665 8.80006C11.4665 8.50551 11.7053 8.26673 11.9999 8.26673C12.2944 8.26673 12.5332 8.50551 12.5332 8.80006Z",fill:e.color},null,8,Ng)],8,Tg))}}),C_="",du=ee(Ig,[["__scopeId","data-v-41294f60"]]),Dg={class:"wrap"},$g=["type","required"],Mg={class:"ellipsis"},Rg={key:1,style:{}},Ag=K({customOptions:{SVGPrompt:du},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:Z.colorPrimary},errorColor:{default:Z.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=s.placeholder.split(""),r=s.duration/o.length,a=$(!1),l=$(""),c=$("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),f()}function d(m){c.value=m.target.value,f()}function f(){if(c.value&&s.validator){const m=s.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return Le(()=>{}),e({}),(m,g)=>(D(),L("div",Dg,[S("input",{type:s.type,required:s.required,autocomplete:"off",style:B({height:s.height,lineHeight:s.height,borderRadius:s.borderRadius,color:s.fontColor,borderColor:l.value?s.errorColor:a.value?s.focusColor:c.value?s.bgColor:"transparent",transition:s.duration+"ms"}),class:Et([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:d,onChange:d},null,46,$g),S("div",{class:"placeholder",style:B({lineHeight:a.value||c.value?1.3:s.height,color:s.placeholderColor,transition:s.placeholderJump?"":s.duration+"ms",transform:s.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(D(),L("div",{key:0,style:B({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[se(du,{class:"icon"}),S("div",Mg,_e(l.value),1)],4)):Re("",!0),!l.value&&!s.placeholderJump?(D(),L("div",Rg,_e(s.placeholder),1)):Re("",!0),!l.value&&s.placeholderJump?(D(!0),L(Me,{key:2},gt(Ee(o),(_,w)=>(D(),L("span",{key:w,style:B({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${r*w}ms`,transform:a.value||c.value?`translateX(${100*w}%) translateY(-100%)`:`translateX(${100*w}%)`}),class:"single"},_e(_),5))),128)):Re("",!0)],4),S("div",{class:"bg",style:B({transition:s.duration+"ms",backgroundColor:a.value||c.value?"transparent":s.bgColor,height:a.value||c.value?s.height:"2px",borderRadius:s.borderRadius})},null,4)]))}}),Lg=ee(Ag,[["styles",[`.wrap[data-v-133a3bfb]{position:relative;box-sizing:border-box;font-size:1em}.input[data-v-133a3bfb]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.bg[data-v-133a3bfb]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-133a3bfb]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-133a3bfb]{font-size:.75em}.placeholder>div[data-v-133a3bfb]{width:100%;display:flex;justify-content:flex-start;align-items:center}.icon[data-v-133a3bfb]{flex:0 0 auto}.ellipsis[data-v-133a3bfb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.placeholder>span.single[data-v-133a3bfb]{position:absolute;left:0;top:0}
73
+ `]],["__scopeId","data-v-133a3bfb"]]),Fg=["width","height"],Vg=["fill"],zg=K({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[S("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,Vg)],8,Fg))}}),k_="",fu=ee(zg,[["__scopeId","data-v-4747d4a7"]]),Gg=K({customOptions:{SVGDelete:fu},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:Z.colorGrayFF},deleteColor:{default:Z.colorRed},fontColor:{default:Z.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(!1),r=()=>{i("delete"),o.value=!1};let a;const l=$();return ge(l,()=>{l.value&&(a=new Se(l.value),a.on("panLeft",()=>{o.value=!0}),a.on("panRight",()=>{o.value=!1}),a.on("tapOutSide",()=>{o.value=!1}))}),Le(()=>{a?.destroy()}),e({}),(c,u)=>(D(),L("div",{class:"parent",ref_key:"item",ref:l,style:B({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[S("div",{class:"content",style:B({transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[ze(c.$slots,"default",{},void 0,!0)],4),S("div",{class:"delete",onClick:r,style:B({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:o.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[se(fu,{color:s.fontColor},null,8,["color"])],4)],4))}}),pu=ee(Gg,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
74
+ `]],["__scopeId","data-v-4ea80232"]]),jg=n=>{const e={};for(const t of n.attributes)e[t.name]=t.value;return e},Bg={class:"overlay-content",style:B(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},Hg=K({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:eu(Z.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:e,emit:t}){const s=n,i=$();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return ge(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,a)=>s.visible?(D(),L("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:B([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[S("div",Bg,[ze(r.$slots,"default",{},void 0,!0)])],4)):Re("",!0)}}),P_="",kn=ee(Hg,[["__scopeId","data-v-1972073d"]]),Wg=(n=>(yn("data-v-ad23bc09"),n=n(),_n(),n))(()=>S("div",null,null,-1)),Ug=K({customOptions:{Overlay:kn},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();let r;const a=ot({}),l=ot({});function c(){switch(Bn(a),Bn(l),s.directionFrom){case"absolute":r="",a.display="block",l.width="100%",l.height="100%";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}ge(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new je,h=(w=!0)=>{!r||!o.value||(w?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{g()}}))};ge(o,()=>{o.value&&h(!0)},{});const d=$(!1);function f(){d.value=!0}function m(){s.directionFrom=="absolute"?g():h(!1)}function g(){d.value=!1,i("close")}function _(w){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(w.target)&&s.closeWhenClickOverlay&&g():o.value&&!o.value.contains(w.target)&&s.closeWhenClickOverlay&&m()}return e({open:f,close:m}),(w,C)=>(D(),Je(kn,{visible:d.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Oe(()=>[S("div",{class:"pop-parent",style:B([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[S("div",{ref_key:"pop",ref:o,class:"pop",style:B([{position:"absolute","z-index":"3000"},l])},[ze(w.$slots,"default",{},()=>[Wg],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),N_="",Nt=ee(Ug,[["__scopeId","data-v-ad23bc09"]]),Yg={class:"dialog-parent"},Xg={key:0,class:"title"},qg={key:0,class:"title-inner truncate"},Kg={class:"custom-content"},Zg={class:"custom-content-default"},Qg={key:1,class:"btns"},Jg=K({customOptions:{Overlay:kn,Pop:Nt,Icon:Wt,Button:Te},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(""),a=$(""),l=$(!1),c=$(""),u=$("");let h,d,f;function m(C){r.value=C?.title||"",a.value=C?.content||"",l.value=typeof C?.showClose=="boolean"?C?.showClose:!1,c.value=C?.cancelText||"",u.value=C?.confirmText||"",o.value.open(),h=C?.onClose,d=C?.onCancel,f=C?.onConfirm,i("open")}function g(){o.value.close(),h?.(),i("close")}function _(){g(),d?.(),i("cancel")}function w(){g(),f?.(),i("confirm")}return e({open:m,close:g}),(C,E)=>(D(),Je(Nt,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Oe(()=>[S("div",Yg,[S("div",{class:"dialog",style:B({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||l.value?(D(),L("div",Xg,[r.value?(D(),L("div",qg,_e(r.value),1)):Re("",!0),l.value?(D(),L("div",{key:1,class:"close",onClick:g},[se(Wt,{icon:"ic:baseline-close",color:Ee(Z).colorGrayCC},null,8,["color"])])):Re("",!0)])):Re("",!0),S("div",Kg,[ze(C.$slots,"default",{},()=>[S("div",Zg,_e(a.value),1)],!0)]),c.value||u.value?(D(),L("div",Qg,[c.value?(D(),Je(Te,{key:0,onClick:_,class:"btn",bgColor:Ee(Z).colorGrayE6,borderColor:Ee(Z).colorGrayE6,fontColor:Ee(Z).colorGray33,borderRadius:"0"},{default:Oe(()=>[Fe(_e(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Re("",!0),u.value?(D(),Je(Te,{key:1,onClick:w,class:"btn",borderRadius:"0"},{default:Oe(()=>[Fe(_e(u.value),1)]),_:1})):Re("",!0)])):Re("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),I_="",qi=ee(Jg,[["__scopeId","data-v-6bd255c9"]]),e0={class:"loading-8"},t0={viewBox:"25 25 50 50"},n0=K({__name:"Loading8",props:{color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("div",e0,[(D(),L("svg",t0,[S("circle",{cx:"50",cy:"50",r:"20",style:B(["stroke: "+e.color])},null,4)]))]))}}),D_="",mu=ee(n0,[["__scopeId","data-v-e5e3cf4c"]]),Br=n=>(yn("data-v-85491020"),n=n(),_n(),n),s0=[Br(()=>S("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Br(()=>S("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Br(()=>S("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],i0=K({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{style:B(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},s0,4))}}),A_="",Hr=ee(i0,[["__scopeId","data-v-85491020"]]);function rs(n){let e=!1;return n=="123"&&(e=!0),{isValidated:e,msg:n+"不对!"}}function L_(n){return n}document.getElementById("teleport")||document.documentElement;function Wr(n,e){{const t=document.querySelector("yz-dialog-toast#globalDialogToast");t&&"_instance"in t&&t._instance.exposed.open(n,e)}}function o0(n){{const e=document.querySelector("yz-dialog-loading#globalDialogLoading");return e&&"_instance"in e&&e._instance.exposed.open(n),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function r0(n){{const e=document.querySelector("yz-dialog#globalDialog");return e&&"_instance"in e&&e._instance.exposed.open(n),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function as(n,e="bottom"){let t;n instanceof HTMLElement?t=Ge(Nt,{directionFrom:e},()=>Ge("div",{...jg(n),innerHTML:n.innerHTML})):t=Ge(Nt,{directionFrom:e},()=>n),Ii(t,document.getElementById("teleport")||document.documentElement),t.component?.exposed?.open();const s=()=>{t.component?.exposed?.close()};return s.vnode=t,s}function gu(n){return as(n,"bottom")}function vu(n){return as(n,"top")}function yu(n){return as(n,"left")}function _u(n){return as(n,"right")}function bu(n){return as(n,"center")}function Ki(n){return as(n,"absolute")}const a0=()=>gu(Ge("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Ge("yz-input",{placeholder:"请输入姓名",validator:rs}))),l0=()=>vu(Ge("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},Ge("yz-input",{placeholder:"请输入姓名",validator:rs}))),c0=()=>yu(Ge("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Ge("yz-input",{placeholder:"请输入姓名",validator:rs}))),u0=()=>_u(Ge("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},Ge("yz-input",{placeholder:"请输入姓名",validator:rs}))),h0=()=>bu(Ge("div",{style:"width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Ge("yz-input",{placeholder:"请输入姓名",validator:rs}))),d0=()=>Ki(Ge("div",{style:"position:absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},Ge("yz-input",{placeholder:"请输入姓名",validator:rs})));let Zi;function xu(n){{const e=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return e&&"_instance"in e&&(Zi&&e.removeEventListener("plates",Zi),Zi=t=>{"detail"in t&&n?.onPlates?.(t.detail[0])},e.addEventListener("plates",Zi),e.initPlates=n?.initPlates,e.completePlateLength=n?.completePlateLength,e._instance.exposed.open()),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}const f0={class:"content"},p0=ee(K({customOptions:{},inheritAttrs:!0,__name:"MouseOver.ce",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(!1),a=ot({}),l=ot({}),c=ot({});let u=1,h;ge(o,()=>{o.value&&(f(),h=new Se(o.value,!1),h.on("resize",(m,g)=>{u=Math.max(m,g)/Math.min(m,g);const _=Math.min(m,g);l.width=_+"px",l.height=_+"px",f()}),h.on("mouseOver",()=>{i("mouseOver"),r.value=!0,f()}),h.on("mouseOut",()=>{i("mouseOut"),r.value=!1,f()}),h.start())});function d(){X.copyToClipboard(X.getInnerText(o.value)).then(()=>{Wr("复制成功")}).catch(m=>{Wr(m.toString())})}function f(){switch(s.coverDirection){case"bottomLeft":l.top="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"bottomRight":l.top="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topLeft":l.bottom="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"topRight":l.bottom="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, 50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"center":l.top="50%",l.left="50%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${r.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${s.timeGap*u}ms ease-in-out`;break;case"slideUp":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideDown":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center top":"center bottom"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideRight":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center left":"center right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"slideLeft":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${r.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${r.value?"translateY(-4px)":"translateY(0)"}`,a.willChange="box-shadow, transform",a.transition=`transform ${s.timeGap}ms ease,box-shadow ${s.timeGap}ms ease `;break;case"underlineRight":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom left":"bottom right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineRightInit":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom right":"bottom left"}`,l.transform=`${r.value?"scaleX(0)":"scaleX(1)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"underlineCenter":l.bottom="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"lineThrough":l.top="50%",l.left="0",l.right="0",l.width="100%",l.height="3px",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(0)":"scaleX(1)"} translateY(-50%)`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineRight":l.top="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"bottom left":"bottom right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease`;break;case"overlineCenter":l.top="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u*.5}ms ease-in-out`;break;case"pillars1":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,ts(l,c),c.right="0";break;case"pillars2":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${r.value?"center bottom":"center top"}`,l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,ts(l,c),c.transformOrigin=`${r.value?"center top":"center bottom"}`,c.right="0";break;case"pillars3":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin="center",l.transform=`${r.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,ts(l,c),c.right="0";break;case"bars1":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"center left":"center right"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,ts(l,c),c.bottom="0";break;case"bars2":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${r.value?"center right":"center left"}`,l.transform=`${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,ts(l,c),l.transformOrigin=`${r.value?"center left":"center right"}`,c.bottom="0";break;case"bars3":l.left="50%",l.right="0",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=` translateX(-50%) ${r.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${s.timeGap*u}ms ease`,ts(l,c),c.bottom="0";break}}return Le(()=>{h?.destroy()}),e({}),(m,g)=>(D(),L("div",{ref_key:"wrap",ref:o,class:"wrap",style:B({...a}),onClick:d},[S("div",{class:"before",style:B({backgroundColor:s.coverColor,...l})},null,4),S("div",f0,[ze(m.$slots,"default",{},void 0,!0)]),S("div",{class:"after",style:B({backgroundColor:s.coverColor,...c})},null,4)],4))}}),[["styles",[`@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}
75
+ `,`.wrap[data-v-96cc6e22]{box-sizing:border-box;position:relative;display:inline-block;cursor:pointer;overflow:hidden}.before[data-v-96cc6e22],.after[data-v-96cc6e22]{position:absolute;z-index:0}.content[data-v-96cc6e22]{position:relative;z-index:1}
76
+ `]],["__scopeId","data-v-96cc6e22"]]),m0=ee(K({customOptions:{SVGDown:Xi},inheritAttrs:!0,__name:"Accordion.ce",props:{initOpen:{type:Boolean,default:!1},height:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(Number.MAX_SAFE_INTEGER+"px"),r=$(),a=$(!0);let l;ge(r,()=>{r.value&&(o.value=r.value.getBoundingClientRect().height+"px",l=new Se(r.value),l.on("resize",(h,d)=>{i("resize",h,d)}),a.value=s.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=$("rotate(0deg)");return sl(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),Le(()=>{l?.destroy()}),e({}),(h,d)=>(D(),L("div",{class:"wrap",style:B({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[S("div",{class:"title",onClick:c,style:B({height:s.height,lineHeight:s.height,margin:`0 ${s.padding}`,transitionDelay:`${a.value?0:s.duration}ms`,borderBottom:`${a.value?1:0}px solid ${s.borderColor}`})},[ze(h.$slots,"title",{},()=>[Fe("title")],!0),se(Xi,{class:"arrow",style:B({transition:`transform ${s.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),S("div",{ref_key:"content",ref:r,class:"content",style:B({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:a.value?o.value:"0"})},[ze(h.$slots,"content",{},void 0,!0)],4)],4))}}),[["styles",[`.wrap[data-v-68d65f8a]{font-size:1em;position:relative;overflow:hidden}.title[data-v-68d65f8a]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.content[data-v-68d65f8a]{word-break:break-all;overflow:hidden}
77
+ `]],["__scopeId","data-v-68d65f8a"]]),g0=K({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(0);function r(){o.value=0}function a(l){const c=o.value,u=Math.min(Math.max(0,l),100);je.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:a}),(l,c)=>(D(),L("div",{class:"wrap",style:B({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[S("div",{class:"bar",style:B({width:o.value+"%",backgroundColor:s.progressColor})},_e(s.showText?o.value+"%":""),5)],4))}}),B_="",Qi=ee(g0,[["__scopeId","data-v-30de81f6"]]),v0=["width","height"],y0=["src","type"],_0={class:"bar-wrap"},wu=ee(K({customOptions:{ProgressBar:Qi},inheritAttrs:!0,__name:"Video.ce",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(n,{expose:e,emit:t}){const s=n;function i(){je.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{r.value?.start()},onUpdate:l=>{r.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const o=$(),r=$();ge(o,()=>{o.value&&(o.value.addEventListener("play",i),s.autoplay&&Ir.tryAutoPlayOrAutoPlayAfterClick(o.value))}),Le(()=>{o.value?.removeEventListener(i)});function a(){o.value?.play()}return e({play:a}),(l,c)=>(D(),L("div",{class:"wrap",style:B({width:s.width,height:s.height}),onClick:a},[S("video",{ref_key:"video",ref:o,width:s.width,height:s.height,preload:"metadata"},[S("source",{src:s.src,type:s.type},null,8,y0)],8,v0),S("div",_0,[se(Qi,{ref_key:"bar",ref:r,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),[["styles",[`.wrap[data-v-0e47aeaa]{position:relative;overflow:hidden;background-color:#f5f5f5}.bar-wrap[data-v-0e47aeaa]{position:absolute;bottom:0;left:0}
78
+ `]],["__scopeId","data-v-0e47aeaa"]]),b0=K({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(),a=$(0),l=$(0),c=$(0),u=$(0),h=$(1),d=$(0),f=$(0);tu(s.src).then(I=>{c.value=I.width,u.value=I.height,h.value=I.aspectRatio,C()});let m;ge(o,()=>{o.value&&(m=new Se(o.value,!1),m.on("resize",(I,O)=>{a.value=I,l.value=O,C()}),m.start())});let g=!1;const _={x:0,y:0,width:0,height:0};let w;function C(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(d.value=a.value,f.value=d.value/h.value,f.value>l.value&&(f.value=l.value,d.value=f.value*h.value)):(f.value=l.value,d.value=f.value*h.value,d.value>a.value&&(d.value=a.value,f.value=d.value/h.value));break;case"aspectFill":h.value>=1?(f.value=l.value,d.value=f.value*h.value):(d.value=a.value,f.value=d.value/h.value);break;case"widthFix":d.value=a.value,f.value=d.value/h.value;break;case"heightFix":f.value=l.value,d.value=f.value*h.value;break;case"scaleToFill":default:d.value=a.value,f.value=l.value;break}ci(()=>{const I=r.value.getBoundingClientRect();i("settled",I.x,I.y,d.value,f.value),g&&w(_.x,_.y,_.width,_.height)})}}function E(I,O,R,ie){const oe=(ye,Ie,De,ve,ue,Q,M,H,G)=>{if(!ue||!Q||!M||!H){const ne=xe.vnode.el.getBoundingClientRect(),Pe=ne.width,Ke=ne.height;let Ue=0,Ye=0;h.value>=1?(Ue=Pe,Ye=Ue/h.value,Ye>Ke&&(Ye=Ke,Ue=Ye*h.value)):(Ye=Ke,Ue=Ye*h.value,Ue>Pe.value&&(Ue=Pe.value,Ye=Ue/h.value)),ue=(Pe-Ue)/2,Q=(Ke-Ye)/2,M=Ue,H=Ye}const pe=200;je.toTween({left:ye,top:Ie,width:De,height:ve},{left:ue,top:Q,width:M,height:H},{duration:pe,onStart(){},onUpdate(ne){he.el.style.left=ne.left+"px",he.el.style.top=ne.top+"px",he.el.style.width=ne.width+"px",he.el.style.height=ne.height+"px"},onComplete(ne){_.x=ne.left,_.y=ne.top,_.width=ne.width,_.height=ne.height,G?.()}}).startAuto()},he=Ge("div",{style:`
78
79
  position:absolute;
79
- left:${D}px;
80
- top:${N}px;
80
+ left:${I}px;
81
+ top:${O}px;
81
82
  width: ${R}px;
82
- height: ${ae}px;
83
+ height: ${ie}px;
83
84
  background-image: url(${s.src});
84
85
  background-repeat: no-repeat;
85
86
  background-position: center center;
86
- background-size: 100% 100%`,onVnodeMounted:()=>{le(D,N,R,ae)}}),Ne=Hi(Fe("div",{style:`
87
+ background-size: 100% 100%`,onVnodeMounted:()=>{oe(I,O,R,ie)}}),xe=Ki(Ge("div",{style:`
87
88
  position:absolute;
88
89
  width: 100%;
89
90
  height: 100%;
@@ -91,17 +92,17 @@ Expected function or array of functions, received type ${typeof t}.`),Je)}functi
91
92
  display: flex;
92
93
  justify-content: center;
93
94
  align-items: center;
94
- `,onClick:()=>{const{x:ke,y:qe,width:Ke,height:ze}=r.value.getBoundingClientRect();le(y.x,y.y,y.width,y.height,ke,qe,Ke,ze,()=>{Ne(),v=!1})}},he));return le}function S(){if(!o.value||!s.openImageViewWhenClick)return;v=!0;const{x:D,y:N,width:R,height:ae}=r.value.getBoundingClientRect();w=C(D,N,R,ae)}return Re(()=>{m?.destroy()}),e({}),(D,N)=>(I(),L("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:B({backgroundColor:s.bgColor}),onClick:S},[k("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:B({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${d.value}px ${f.value}px`})},null,4)],4))}}),xu=Q(b0,[["styles",[`.image[data-v-9bb005e6]{box-sizing:border-box;position:relative;overflow:hidden;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-inner[data-v-9bb005e6]{background-repeat:no-repeat;background-position:center center}
95
- `]],["__scopeId","data-v-9bb005e6"]]),x0=Z({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$();let r=[],l;const a=new Ve;let c=0,u=!1;const h={};function d(){switch(zn(h),s.direction){case"none":l="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":l="slideDown";break;case"leftToRight":l="slideRight";break;case"rightToLeft":l="slideLeft";break;case"bottomToTop":l="slideUp";break}}d();function f(){o.value&&(Ci(Fe("div",{class:"routes-inner-wrap",style:""},r.map(N=>Fe("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Fe(N.component,{...N.attributes,style:{...N.attributes.style||{},...h}})))),o.value),a?.fromDOM([...o.value.children[0].children]))}const m=N=>{if(!(!l||u||!r.length)){if(u=!0,N.push&&(c=r.length-1),N.pop){if(!r.length){u=!1;return}c=r.length-1}if(N.reset&&(c=0),N.forward){if(c>=r.length-1){u=!1;return}c++}if(N.back&&c<=0){u=!1;return}a.toCSS(l,{easeName:s.easeName,dur:N?.dur??s.duration,direction:N.back||N.pop?"reverse":"normal",onComplete:()=>{(N.back||N.pop)&&c--,N.pop&&(r.pop(),f()),i("finish",c),u=!1,N?.onComplete?.()}},c)}};function v(N=[],R){r=[],N.forEach(ae=>r.push({component:ae.component,attributes:ae.attributes??{}})),f(),m({reset:!0,onComplete:R})}function y(N,R={}){r.push({component:N,attributes:R}),f(),m({push:!0})}function w(){m({pop:!0})}function E(){m({forward:!0})}function C(){m({back:!0})}function S(N,R){N>r.length-1||N<0||N==c||(R||(R=s.duration/Math.abs(N-c)),c<N?m({forward:!0,dur:R,onComplete:()=>{setTimeout(()=>{S(N,R)})}}):m({back:!0,dur:R,onComplete:()=>{setTimeout(()=>{S(N,R)})}}))}function D(){f(),m({resize:!0})}return mn(()=>{we.page.on("resize",D)}),Re(()=>{a.destroy(),we.page.off("resize",D)}),e({reset:v,push:y,pop:w,forward:E,back:C,goto:S}),(N,R)=>(I(),L("div",{ref_key:"routesContainerRef",ref:o,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),G_="",wu=Q(x0,[["__scopeId","data-v-210d799a"]]),w0=Z({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(),l=$(0),a=$(0),c=$(0),u=$(0),h=$(1),d=$(0),f=$(0);Jc(s.src).then(D=>{c.value=D.width,u.value=D.height,h.value=D.aspectRatio,E()});let m;me(o,()=>{o.value&&(m=new we(o.value,!1),m.on("resize",(D,N)=>{l.value=D,a.value=N,E()}),m.start())});let v=!1;const y={x:0,y:0,width:0,height:0};let w;function E(){if(!(!l.value||!a.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(d.value=l.value,f.value=d.value/h.value,f.value>a.value&&(f.value=a.value,d.value=f.value*h.value)):(f.value=a.value,d.value=f.value*h.value,d.value>l.value&&(d.value=l.value,f.value=d.value/h.value));break;case"aspectFill":h.value>=1?(f.value=a.value,d.value=f.value*h.value):(d.value=l.value,f.value=d.value/h.value);break;case"widthFix":d.value=l.value,f.value=d.value/h.value;break;case"heightFix":f.value=a.value,d.value=f.value*h.value;break;case"scaleToFill":default:d.value=l.value,f.value=a.value;break}ti(()=>{const D=r.value.getBoundingClientRect();i("settled",D.x,D.y,d.value,f.value),v&&w(y.x,y.y,y.width,y.height)})}}function C(D,N,R,ae){const le=(ke,qe,Ke,ze,Ce,ce,M,W,j)=>{if(!Ce||!ce||!M||!W){const te=Ne.vnode.el.getBoundingClientRect(),Se=te.width,Ze=te.height;let He=0,We=0;h.value>=1?(He=Se,We=He/h.value,We>Ze&&(We=Ze,He=We*h.value)):(We=Ze,He=We*h.value,He>Se.value&&(He=Se.value,We=He/h.value)),Ce=(Se-He)/2,ce=(Ze-We)/2,M=He,W=We}const fe=200;Ve.toTween({left:ke,top:qe,width:Ke,height:ze},{left:Ce,top:ce,width:M,height:W},{duration:fe,onStart(){},onUpdate(te){he.el.style.left=te.left+"px",he.el.style.top=te.top+"px",he.el.style.width=te.width+"px",he.el.style.height=te.height+"px"},onComplete(te){y.x=te.left,y.y=te.top,y.width=te.width,y.height=te.height,j?.()}}).startAuto()},he=Fe("div",{style:`
95
+ `,onClick:()=>{const{x:ye,y:Ie,width:De,height:ve}=r.value.getBoundingClientRect();oe(_.x,_.y,_.width,_.height,ye,Ie,De,ve,()=>{xe(),g=!1})}},he));return oe}function k(){if(!o.value||!s.openImageViewWhenClick)return;g=!0;const{x:I,y:O,width:R,height:ie}=r.value.getBoundingClientRect();w=E(I,O,R,ie)}return Le(()=>{m?.destroy()}),e({}),(I,O)=>(D(),L("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:B({backgroundColor:s.bgColor}),onClick:k},[S("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:B({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${d.value}px ${f.value}px`})},null,4)],4))}}),Eu=ee(b0,[["styles",[`.image[data-v-9bb005e6]{box-sizing:border-box;position:relative;overflow:hidden;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-inner[data-v-9bb005e6]{background-repeat:no-repeat;background-position:center center}
96
+ `]],["__scopeId","data-v-9bb005e6"]]),x0=K({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();let r=[],a;const l=new je;let c=0,u=!1;const h={};function d(){switch(Bn(h),s.direction){case"none":a="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":a="slideDown";break;case"leftToRight":a="slideRight";break;case"rightToLeft":a="slideLeft";break;case"bottomToTop":a="slideUp";break}}d();function f(){o.value&&(Ii(Ge("div",{class:"routes-inner-wrap",style:""},r.map(O=>Ge("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Ge(O.component,{...O.attributes,style:{...O.attributes.style||{},...h}})))),o.value),l?.fromDOM([...o.value.children[0].children]))}const m=O=>{if(!(!a||u||!r.length)){if(u=!0,O.push&&(c=r.length-1),O.pop){if(!r.length){u=!1;return}c=r.length-1}if(O.reset&&(c=0),O.forward){if(c>=r.length-1){u=!1;return}c++}if(O.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:s.easeName,dur:O?.dur??s.duration,direction:O.back||O.pop?"reverse":"normal",onComplete:()=>{(O.back||O.pop)&&c--,O.pop&&(r.pop(),f()),i("finish",c),u=!1,O?.onComplete?.()}},c)}};function g(O=[],R){r=[],O.forEach(ie=>r.push({component:ie.component,attributes:ie.attributes??{}})),f(),m({reset:!0,onComplete:R})}function _(O,R={}){r.push({component:O,attributes:R}),f(),m({push:!0})}function w(){m({pop:!0})}function C(){m({forward:!0})}function E(){m({back:!0})}function k(O,R){O>r.length-1||O<0||O==c||(R||(R=s.duration/Math.abs(O-c)),c<O?m({forward:!0,dur:R,onComplete:()=>{setTimeout(()=>{k(O,R)})}}):m({back:!0,dur:R,onComplete:()=>{setTimeout(()=>{k(O,R)})}}))}function I(){f(),m({resize:!0})}return bn(()=>{Se.page.on("resize",I)}),Le(()=>{l.destroy(),Se.page.off("resize",I)}),e({reset:g,push:_,pop:w,forward:C,back:E,goto:k}),(O,R)=>(D(),L("div",{ref_key:"routesContainerRef",ref:o,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),X_="",Cu=ee(x0,[["__scopeId","data-v-210d799a"]]),w0=K({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(),a=$(0),l=$(0),c=$(0),u=$(0),h=$(1),d=$(0),f=$(0);tu(s.src).then(I=>{c.value=I.width,u.value=I.height,h.value=I.aspectRatio,C()});let m;ge(o,()=>{o.value&&(m=new Se(o.value,!1),m.on("resize",(I,O)=>{a.value=I,l.value=O,C()}),m.start())});let g=!1;const _={x:0,y:0,width:0,height:0};let w;function C(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(s.mode){case"aspectFit":h.value>=1?(d.value=a.value,f.value=d.value/h.value,f.value>l.value&&(f.value=l.value,d.value=f.value*h.value)):(f.value=l.value,d.value=f.value*h.value,d.value>a.value&&(d.value=a.value,f.value=d.value/h.value));break;case"aspectFill":h.value>=1?(f.value=l.value,d.value=f.value*h.value):(d.value=a.value,f.value=d.value/h.value);break;case"widthFix":d.value=a.value,f.value=d.value/h.value;break;case"heightFix":f.value=l.value,d.value=f.value*h.value;break;case"scaleToFill":default:d.value=a.value,f.value=l.value;break}ci(()=>{const I=r.value.getBoundingClientRect();i("settled",I.x,I.y,d.value,f.value),g&&w(_.x,_.y,_.width,_.height)})}}function E(I,O,R,ie){const oe=(ye,Ie,De,ve,ue,Q,M,H,G)=>{if(!ue||!Q||!M||!H){const ne=xe.vnode.el.getBoundingClientRect(),Pe=ne.width,Ke=ne.height;let Ue=0,Ye=0;h.value>=1?(Ue=Pe,Ye=Ue/h.value,Ye>Ke&&(Ye=Ke,Ue=Ye*h.value)):(Ye=Ke,Ue=Ye*h.value,Ue>Pe.value&&(Ue=Pe.value,Ye=Ue/h.value)),ue=(Pe-Ue)/2,Q=(Ke-Ye)/2,M=Ue,H=Ye}const pe=200;je.toTween({left:ye,top:Ie,width:De,height:ve},{left:ue,top:Q,width:M,height:H},{duration:pe,onStart(){},onUpdate(ne){he.el.style.left=ne.left+"px",he.el.style.top=ne.top+"px",he.el.style.width=ne.width+"px",he.el.style.height=ne.height+"px"},onComplete(ne){_.x=ne.left,_.y=ne.top,_.width=ne.width,_.height=ne.height,G?.()}}).startAuto()},he=Ge("div",{style:`
96
97
  position:absolute;
97
- left:${D}px;
98
- top:${N}px;
98
+ left:${I}px;
99
+ top:${O}px;
99
100
  width: ${R}px;
100
- height: ${ae}px;
101
+ height: ${ie}px;
101
102
  background-image: url(${s.src});
102
103
  background-repeat: no-repeat;
103
104
  background-position: center center;
104
- background-size: 100% 100%`,onVnodeMounted:()=>{le(D,N,R,ae)}}),Ne=Hi(Fe("div",{style:`
105
+ background-size: 100% 100%`,onVnodeMounted:()=>{oe(I,O,R,ie)}}),xe=Ki(Ge("div",{style:`
105
106
  position:absolute;
106
107
  width: 100%;
107
108
  height: 100%;
@@ -109,34 +110,36 @@ Expected function or array of functions, received type ${typeof t}.`),Je)}functi
109
110
  display: flex;
110
111
  justify-content: center;
111
112
  align-items: center;
112
- `,onClick:()=>{const{x:ke,y:qe,width:Ke,height:ze}=r.value.getBoundingClientRect();le(y.x,y.y,y.width,y.height,ke,qe,Ke,ze,()=>{Ne(),v=!1})}},he));return le}function S(){if(!o.value||!s.openImageViewWhenClick)return;v=!0;const{x:D,y:N,width:R,height:ae}=r.value.getBoundingClientRect();w=C(D,N,R,ae)}return Re(()=>{m?.destroy()}),e({}),(D,N)=>(I(),L("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:B({backgroundColor:s.bgColor}),onClick:S},[k("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:B({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${d.value}px ${f.value}px`})},null,4)],4))}}),B_="",Cu=Q(w0,[["__scopeId","data-v-928690db"]]),C0={style:{position:"absolute",width:"100%",height:"100%"}},E0={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Eu=Q(Z({customOptions:{Image:Cu},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]}},setup(t,{expose:e,emit:n}){const s=t,i=$(),o=$(),r=$(),l=$(0);let a;function c(m){l.value=m}function u(){r.value?.forward()}function h(){r.value?.back()}me(o,()=>{o.value&&(a?.destroy(),a=new we(o.value),a.on("panLeft",u),a.on("panRight",h),a.on("tap",f))}),me(r,()=>{r.value&&r.value.reset(s.urls.map(m=>({component:Fe("div",{style:"position:absolute;width:100%;height:100%"},Fe(Cu,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function d(){i.value?.open()}function f(){i.value?.close()}return Re(()=>{a?.destroy()}),e({open:d,close:f}),(m,v)=>(I(),Xe(Pt,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Te(()=>[k("div",C0,[s.urls.length>1?(I(),L("div",E0,ge(l.value+1)+" / "+ge(s.urls.length),1)):Ie("",!0),k("div",{ref_key:"pageRef",ref:o,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[se(wu,{ref_key:"routesRef",ref:r,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),[["styles",[""]],["__scopeId","data-v-06f6e07e"]]),U_="",S0={class:"page"},k0={class:"header"},T0={class:"main"},P0={class:"main-scroll"},N0={class:"footer"},O0=Q(Z({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(t,{expose:e,emit:n}){return _m(t.designWidth),e({}),(i,o)=>(I(),L("div",S0,[k("header",k0,[Ae(i.$slots,"header",{},void 0,!0)]),k("div",T0,[k("div",P0,[Ae(i.$slots,"main",{},void 0,!0)])]),k("footer",N0,[Ae(i.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
113
- `]],["__scopeId","data-v-20686fd2"]]),I0=Q(Z({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(t,{expose:e,emit:n}){const s=t,i=nt({}),o=nt({});function r(){switch(zn(i),zn(o),s.type){case"table":i.display="table",o.display="table-cell",o.verticalAlign="middle",o.textAlign="center";break;case"transform":o.position="absolute",o.top="50%",o.left="50%",o.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",o.margin="auto"}}return r(),Re(()=>{}),e({}),(l,a)=>(I(),L("div",{class:"layout-center",style:B(i)},[k("div",{style:B(o)},[Ae(l.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-db9c6bab]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
114
- `]],["__scopeId","data-v-db9c6bab"]]),$0={class:"overlay-content",style:B(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},D0=Z({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:Qc(q.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(t,{expose:e,emit:n}){const s=t,i=$();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return me(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,l)=>s.visible?(I(),L("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:B([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[k("div",$0,[Ae(r.$slots,"default",{},void 0,!0)])],4)):Ie("",!0)}}),Yi=Q(D0,[["styles",[""]],["__scopeId","data-v-52bb4ad4"]]),M0=(t=>(Mn("data-v-11361011"),t=t(),Rn(),t))(()=>k("div",null,null,-1)),Bn=Q(Z({customOptions:{Overlay:xn},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$();let r;const l=nt({}),a=nt({});function c(){switch(zn(l),zn(a),s.directionFrom){case"absolute":r="",l.display="block",a.width="100%",a.height="100%";break;case"top":r="slideDown",l.display="block",a.width="100%",a.top="0",a.left="0";break;case"left":r="slideRight",l.display="block",a.height="100%",a.top="0",a.left="0";break;case"right":r="slideLeft",l.display="block",a.height="100%",a.top="0",a.right="0";break;case"bottom":r="slideUp",l.display="block",a.width="100%",a.bottom="0",a.left="0";break;case"center":default:r="popIn",l.display="flex",l.justifyContent="center",l.alignItems="center";break}}me(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new Ve,h=(w=!0)=>{!r||!o.value||(w?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};me(o,()=>{o.value&&h(!0)},{});const d=$(!1);function f(){d.value=!0}function m(){s.directionFrom=="absolute"?v():h(!1)}function v(){d.value=!1,i("close")}function y(w){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(w.target)&&s.closeWhenClickOverlay&&v():o.value&&!o.value.contains(w.target)&&s.closeWhenClickOverlay&&m()}return e({open:f,close:m}),(w,E)=>(I(),Xe(xn,{visible:d.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Te(()=>[k("div",{class:"pop-parent",style:B([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},l]),onClick:y},[k("div",{ref_key:"pop",ref:o,class:"pop",style:B([{position:"absolute","z-index":"3000"},a])},[Ae(w.$slots,"default",{},()=>[M0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-11361011"]]),R0=(t=>(Mn("data-v-8d198707"),t=t(),Rn(),t))(()=>k("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Su=Q(Z({customOptions:{Pop:Pt,Button:Ee},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(t){const e=t,n=$(),s=$(),i=$(),o=nt({left:"0",top:"0"});me(s,()=>{r()}),me(i,()=>{r()});function r(){if(!s.value||!i.value)return;const a=br(),c=s.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,d=u.height;let f=c.x+c.width+e.gap,m=c.y;f=Math.max(e.gap,Math.min(f,a.width-h-e.gap)),m=Math.max(e.gap,Math.min(m,a.height-d-e.gap)),o.left=`${f}px`,o.top=`${m}px`}function l(){n.value.open()}return(a,c)=>(I(),L(De,null,[k("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:l},[Ae(a.$slots,"button",{},()=>[se(Ee,null,{default:Te(()=>[Le("popover-default-button")]),_:1})],!0)],512),se(Pt,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal},{default:Te(()=>[k("div",{ref_key:"popoverPanelRef",ref:i,style:B([{display:"inline-block",position:"absolute"},o])},[Ae(a.$slots,"panel",{},()=>[R0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),A0={class:"dialog-parent"},L0={key:0,class:"title"},F0={key:0,class:"title-inner truncate"},V0={class:"custom-content"},z0={class:"custom-content-default"},G0={key:1,class:"btns"},Xi=Q(Z({customOptions:{Overlay:xn,Pop:Pt,Icon:Bt,Button:Ee},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(""),l=$(""),a=$(!1),c=$(""),u=$("");let h,d,f;function m(E){r.value=E?.title||"",l.value=E?.content||"",a.value=typeof E?.showClose=="boolean"?E?.showClose:!1,c.value=E?.cancelText||"",u.value=E?.confirmText||"",o.value.open(),h=E?.onClose,d=E?.onCancel,f=E?.onConfirm,i("open")}function v(){o.value.close(),h?.(),i("close")}function y(){v(),d?.(),i("cancel")}function w(){v(),f?.(),i("confirm")}return e({open:m,close:v}),(E,C)=>(I(),Xe(Pt,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Te(()=>[k("div",A0,[k("div",{class:"dialog",style:B({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||a.value?(I(),L("div",L0,[r.value?(I(),L("div",F0,ge(r.value),1)):Ie("",!0),a.value?(I(),L("div",{key:1,class:"close",onClick:v},[se(Bt,{icon:"ic:baseline-close",color:_e(q).colorGrayCC},null,8,["color"])])):Ie("",!0)])):Ie("",!0),k("div",V0,[Ae(E.$slots,"default",{},()=>[k("div",z0,ge(l.value),1)],!0)]),c.value||u.value?(I(),L("div",G0,[c.value?(I(),Xe(Ee,{key:0,onClick:y,class:"btn",bgColor:_e(q).colorGrayE6,borderColor:_e(q).colorGrayE6,fontColor:_e(q).colorGray33,borderRadius:"0"},{default:Te(()=>[Le(ge(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ie("",!0),u.value?(I(),Xe(Ee,{key:1,onClick:w,class:"btn",borderRadius:"0"},{default:Te(()=>[Le(ge(u.value),1)]),_:1})):Ie("",!0)])):Ie("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-8c45bc83]{display:flex;justify-content:center;align-items:center}.dialog[data-v-8c45bc83]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-8c45bc83]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-8c45bc83]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-8c45bc83]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-8c45bc83]{font-size:16px;word-break:break-all}.custom-content-default[data-v-8c45bc83]{padding:1em}.btns[data-v-8c45bc83]{display:flex;justify-content:center}.btn[data-v-8c45bc83]{flex:1 1 auto;border-radius:0}
115
- `]],["__scopeId","data-v-8c45bc83"]]),j0={class:"loading"},B0={class:"icon"},H0={style:{width:"8em"}},W0={key:0,class:"content"},ku=Q(Z({customOptions:{Overlay:xn,Pop:Pt,Dialog:Bi,Loading8:fu},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$("");function l(c){r.value=c||"",o.value.open(),i("open")}function a(){o.value.close(),i("close")}return e({open:l,close:a}),(c,u)=>(I(),Xe(Bi,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:Te(()=>[k("div",j0,[k("div",B0,[Ae(c.$slots,"default",{},()=>[k("div",H0,[se(fu)])],!0)]),r.value?(I(),L("div",W0,ge(r.value),1)):Ie("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-8a5155ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-8a5155ef]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-8a5155ef]{font-size:1em;margin-top:-1em;margin-bottom:1em}
116
- `]],["__scopeId","data-v-8a5155ef"]]),U0={class:"toast"},Y0={class:"content"},Tu=Q(Z({customOptions:{Overlay:xn,Pop:Pt,Dialog:Bi},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$("");function l(c,u=1500){r.value=c,o.value.open(),i("open"),setTimeout(()=>{a()},u)}function a(){o.value.close(),i("close")}return e({open:l,close:a}),(c,u)=>(I(),Xe(Bi,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Te(()=>[k("div",U0,[k("div",Y0,ge(r.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.toast[data-v-9b0eec22]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-9b0eec22]{font-size:1em}
117
- `]],["__scopeId","data-v-9b0eec22"]]),X0={class:"tabs"},q0=["onClick"],K0={class:"content"},Z0=Q(Z({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(s.initIndex),r=nt([]),l=$(),a=$(0),c=$(0),u=$(0),h=$([]),d=[],f=Rd(),m=f.default&&f.default();m&&(Es(r,m),w(o.value));const v=(C,S)=>{if(C){if(d.push({index:S,el:C}),d.length<r.length)return;h.value=d}};me([l,h],()=>{y()});function y(){if(l.value&&h.value.length){const C=l.value.getBoundingClientRect(),S=h.value[o.value].el.getBoundingClientRect();a.value=S.x-C.x,c.value=S.y-C.y+S.height-2,u.value=S.width}}function w(C){o.value=C,i("changedIndex",C),y(),E.value.goto(C)}const E=$();return me(E,()=>{E.value&&E.value.reset(s.pages,()=>{E.value.goto(s.initIndex)})}),e({}),(C,S)=>(I(),L("div",X0,[k("div",{class:"header",ref_key:"headerRef",ref:l},[(I(!0),L(De,null,ft(s.labels,(D,N)=>(I(),L("div",{key:D,class:xt(N==o.value?"active":""),onClick:R=>w(N)},[k("div",{ref_for:!0,ref:R=>v(R,N)},ge(D),513)],10,q0))),128)),k("div",{class:"indicator",style:B({top:c.value+"px",left:a.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),k("div",K0,[se(wu,{ref_key:"routesRef",ref:E,direction:"rightToLeft",duration:200},null,512)])]))}}),[["styles",[`.tabs[data-v-d151e665]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-d151e665]{flex:1 1 auto}.header[data-v-d151e665]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-d151e665]{color:#5a82f0}.header>div[data-v-d151e665]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-d151e665]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-d151e665]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
118
- `]],["__scopeId","data-v-d151e665"]]),Q0=["width","height"],J0=Z({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(t,{expose:e,emit:n}){const s=t;let i=()=>{};const o=$();return me(o,()=>{if(!o.value)return;const r=new we(o.value),l=new Ar(r);l.ctx.strokeStyle=s.brushColor,l.ctx.lineWidth=s.brushSize,l.drawMouseMoveLine("line"),i=()=>{qc.downloadFromSVGString(l.ctx.toRawSVG().raw,s.downloadFileName)}}),e({download:()=>i()}),(r,l)=>(I(),L("canvas",{ref_key:"panelRef",ref:o,width:s.canvasWidth,height:s.canvasHeight,style:B([`border: 1px solid ${r.borderColor}`])},null,12,Q0))}}),zr=Q(Z({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(0);function r(){o.value=0}function l(a){const c=o.value,u=Math.min(Math.max(0,a),100);Ve.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:l}),(a,c)=>(I(),L("div",{class:"wrap",style:B({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[k("div",{class:"bar",style:B({width:o.value+"%",backgroundColor:s.progressColor})},ge(s.showText?o.value+"%":""),5)],4))}}),[["styles",[`.wrap[data-v-c0eb8856]{position:relative;overflow:hidden}.bar[data-v-c0eb8856]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
119
- `]],["__scopeId","data-v-c0eb8856"]]),ev={class:"wrap",style:{}},Pu=Q(Z({customOptions:{ProgressBar:Ui},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=()=>{const l=fm();i("progress",l),o.value?.goto(l)};return we.page.registerGlobalScrollChange(r),Re(()=>{we.page.removeGlobalScrollChange(r)}),e({}),(l,a)=>(I(),L("div",ev,[se(Ui,{ref_key:"bar",ref:o,width:"100%",height:"100%",bgColor:s.bgColor,progressColor:s.progressColor,borderColor:s.borderColor,borderRadius:s.borderRadius,duringTimeGap:s.duringTimeGap,showText:s.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.wrap[data-v-5084cdef]{position:relative;overflow:hidden;width:100%;height:100%}
120
- `]],["__scopeId","data-v-5084cdef"]]),tv=["fill"],nv=["fill"],sv=Z({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{style:B(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,tv),k("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,nv)],4))}}),g1="",Nu=Q(sv,[["__scopeId","data-v-987aed3d"]]),qi=t=>(Mn("data-v-330c7adc"),t=t(),Rn(),t),iv=qi(()=>k("div",{class:"title"},"车牌颜色",-1)),ov={class:"plate-types"},rv=["onClick"],av=qi(()=>k("div",{class:"title"},"车牌号码",-1)),lv={class:"plate-numbers"},cv=qi(()=>k("div",{class:"dot"},"·",-1)),uv=["onClick"],hv=qi(()=>k("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Ou=Q(Z({customOptions:{SVGCheck:Nu},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],r=$(0),l=nt([]),a=$(-1);function c(){_u({initPlates:l,completePlateLength:o[r.value].completePlateLength,onPlates:d=>{Es(l,d),a.value=l.length,l.length===o[r.value].completePlateLength&&i("complete",o[r.value].name,l.join(""))}})}const u=d=>{r.value=d,a.value<=o[d].completePlateLength&&l.length<o[d].completePlateLength?(a.value=l.length,c(),i("clear")):Es(l,l.slice(0,o[d].completePlateLength)),o[d].completePlateLength===l.length&&i("complete",o[r.value].name,l.join(""))},h=d=>{Es(l,l.slice(0,d)),a.value=Math.min(Math.max(0,a.value),d),c(),i("clear")};return e({}),(d,f)=>(I(),L("div",Yo(d.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[iv,k("div",ov,[(I(),L(De,null,ft(o,(m,v)=>k("div",{key:v,class:xt(v==r.value?"checked":""),onClick:y=>u(v)},[k("div",{style:B(m.style)},null,4),k("div",null,ge(m.name),1),k("div",null,[se(Nu,{color:"#ffffff",width:"0.14rem"})])],10,rv)),64))]),av,k("div",lv,[k("div",{onClick:f[0]||(f[0]=m=>h(0)),class:xt(a.value==0?"current":"")},ge(l[0]),3),k("div",{onClick:f[1]||(f[1]=m=>h(1)),class:xt(a.value==1?"current":"")},ge(l[1]),3),cv,(I(!0),L(De,null,ft(o[r.value].completePlateLength-2,m=>(I(),L("div",{key:m,class:xt(m+1==a.value?"current":""),onClick:v=>h(m+1)},ge(l[m+1]),11,uv))),128))]),hv],16))}}),[["styles",[`.plate-mobile[data-v-330c7adc]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-330c7adc]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-330c7adc]{display:flex;justify-content:center}.plate-types>div[data-v-330c7adc]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-330c7adc]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-330c7adc]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-330c7adc]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-330c7adc]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-330c7adc]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-330c7adc]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-330c7adc]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-330c7adc]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-types>div.checked[data-v-330c7adc]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(3){display:block}.plate-numbers[data-v-330c7adc]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-330c7adc]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-330c7adc]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-numbers>div.dot[data-v-330c7adc]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-330c7adc]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
121
- `]],["__scopeId","data-v-330c7adc"]]),dv=["data-number"],fv=["data-number","data-unactive"],pv=["data-number"],mv=["data-number","data-unactive"],Gr=Q(Z({customOptions:{Pop:Pt,SVGCleanUp:Fr},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(0),l=nt([]);function a(){l.length==0?r.value=0:l.length==1?r.value=1:r.value=2,l.length>=s.completePlateLength&&u()}me(()=>[...s.initPlates],()=>{Es(l,s.initPlates),a()},{immediate:!0});const c=()=>{o.value.open(),i("open")},u=()=>{o.value.close(),i("close")},h=()=>{l.pop(),a(),i("plates",l)},d=w=>{if(w.target.dataset.unactive||"")return;let C=w.target.dataset.number;C&&(l.push(C),a(),i("plates",l))};e({open:c,close:u});const f=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],y=["港","澳","学","警","使","领","挂","应","急"];return(w,E)=>(I(),Xe(Pt,{ref_key:"popRef",ref:o,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Te(()=>[k("div",{class:"popup-plate",style:B({paddingBottom:_e(q).safeAreaBottom})},[k("div",null,[k("div",{onClick:u},"关闭")]),k("div",{class:xt(["step",r.value==0?"":"hide"])},[(I(),L(De,null,ft(f,C=>k("div",{key:C,class:"popitem",onClick:d,"data-number":C},ge(C),9,dv)),64)),k("div",{class:"popitem popitem-clear",onClick:h},[se(Fr,{width:"16px"})])],2),k("div",{class:xt(["step",r.value!=0?"":"hide"])},[(I(),L(De,null,ft(m,C=>k("div",{key:C,class:xt(["popitem",r.value!=2?"unactive":""]),onClick:d,"data-number":C,"data-unactive":r.value!=2?"unactive":""},ge(C),11,fv)),64)),(I(),L(De,null,ft(v,C=>k("div",{key:C,class:"popitem",onClick:d,"data-number":C},ge(C),9,pv)),64)),(I(),L(De,null,ft(y,C=>k("div",{key:C,class:xt(["popitem",r.value!=2?"unactive":""]),onClick:d,"data-number":C,"data-unactive":r.value!=2?"unactive":""},ge(C),11,mv)),64)),k("div",{class:"popitem popitem-clear",onClick:h},[se(Fr,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-7fa8a410]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-7fa8a410]{display:none!important}.popup-plate>div[data-v-7fa8a410]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-7fa8a410]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-7fa8a410]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-7fa8a410]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-7fa8a410]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-7fa8a410]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-7fa8a410]{background-color:#eee;display:flex;justify-content:center;align-items:center}
122
- `]],["__scopeId","data-v-7fa8a410"]]),gv={class:"parent"},vv=Q(Z({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(t,{expose:e,emit:n}){const s=t,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function o(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function r(h){const d=i.filter(f=>f.name===h);return d.length?d[0]:r("未知")}const l=o(s.plate),a=$(r(s.plateType));let c=s.fontColor,u=s.fontSize;switch(s.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return e({}),(h,d)=>(I(),L("div",gv,[k("div",{class:xt(["leading",s.displayType]),style:B(a.value.style)},ge(a.value.name),7),k("div",{class:"text",style:B({color:_e(c),"font-size":_e(u)})},ge(_e(l)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
113
+ `,onClick:()=>{const{x:ye,y:Ie,width:De,height:ve}=r.value.getBoundingClientRect();oe(_.x,_.y,_.width,_.height,ye,Ie,De,ve,()=>{xe(),g=!1})}},he));return oe}function k(){if(!o.value||!s.openImageViewWhenClick)return;g=!0;const{x:I,y:O,width:R,height:ie}=r.value.getBoundingClientRect();w=E(I,O,R,ie)}return Le(()=>{m?.destroy()}),e({}),(I,O)=>(D(),L("div",{ref_key:"imageOutterRef",ref:o,class:"image",style:B({backgroundColor:s.bgColor}),onClick:k},[S("div",{ref_key:"imageInnerRef",ref:r,class:"image-inner",style:B({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${d.value}px ${f.value}px`})},null,4)],4))}}),K_="",Su=ee(w0,[["__scopeId","data-v-928690db"]]),E0={style:{position:"absolute",width:"100%",height:"100%"}},C0={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},ku=ee(K({customOptions:{Image:Su},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]}},setup(n,{expose:e,emit:t}){const s=n,i=$(),o=$(),r=$(),a=$(0);let l;function c(m){a.value=m}function u(){r.value?.forward()}function h(){r.value?.back()}ge(o,()=>{o.value&&(l?.destroy(),l=new Se(o.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",f))}),ge(r,()=>{r.value&&r.value.reset(s.urls.map(m=>({component:Ge("div",{style:"position:absolute;width:100%;height:100%"},Ge(Su,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function d(){i.value?.open()}function f(){i.value?.close()}return Le(()=>{l?.destroy()}),e({open:d,close:f}),(m,g)=>(D(),Je(Nt,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Oe(()=>[S("div",E0,[s.urls.length>1?(D(),L("div",C0,_e(a.value+1)+" / "+_e(s.urls.length),1)):Re("",!0),S("div",{ref_key:"pageRef",ref:o,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[se(Cu,{ref_key:"routesRef",ref:r,direction:s.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),[["styles",[""]],["__scopeId","data-v-06f6e07e"]]),J_="",S0={class:"page"},k0={class:"header"},T0={class:"main"},P0={class:"main-scroll"},O0={class:"footer"},N0=ee(K({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(n,{expose:e,emit:t}){return xm(n.designWidth),e({}),(i,o)=>(D(),L("div",S0,[S("header",k0,[ze(i.$slots,"header",{},void 0,!0)]),S("div",T0,[S("div",P0,[ze(i.$slots,"main",{},void 0,!0)])]),S("footer",O0,[ze(i.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
114
+ `]],["__scopeId","data-v-20686fd2"]]),I0=ee(K({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(n,{expose:e,emit:t}){const s=n,i=ot({}),o=ot({});function r(){switch(Bn(i),Bn(o),s.type){case"table":i.display="table",o.display="table-cell",o.verticalAlign="middle",o.textAlign="center";break;case"transform":o.position="absolute",o.top="50%",o.left="50%",o.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",o.margin="auto"}}return r(),Le(()=>{}),e({}),(a,l)=>(D(),L("div",{class:"layout-center",style:B(i)},[S("div",{style:B(o)},[ze(a.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-db9c6bab]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
115
+ `]],["__scopeId","data-v-db9c6bab"]]),D0={class:"overlay-content",style:B(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},$0=K({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:eu(Z.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(n,{expose:e,emit:t}){const s=n,i=$();function o(r){s.isGlobal?r?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&r&&(i.value.parentElement.style.overflow="hidden")}return ge(()=>s.visible,()=>{o(s.visible)},{immediate:!0}),e({}),(r,a)=>s.visible?(D(),L("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:B([`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${s.bgColor};`])},[S("div",D0,[ze(r.$slots,"default",{},void 0,!0)])],4)):Re("",!0)}}),Ji=ee($0,[["styles",[""]],["__scopeId","data-v-52bb4ad4"]]),M0=(n=>(yn("data-v-11361011"),n=n(),_n(),n))(()=>S("div",null,null,-1)),Un=ee(K({customOptions:{Overlay:kn},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();let r;const a=ot({}),l=ot({});function c(){switch(Bn(a),Bn(l),s.directionFrom){case"absolute":r="",a.display="block",l.width="100%",l.height="100%";break;case"top":r="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":r="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":r="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":r="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:r="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}ge(()=>s.directionFrom,()=>{c()},{immediate:!0});const u=new je,h=(w=!0)=>{!r||!o.value||(w?(u.fromDOM(o.value),u.toCSS(r,{easeName:"ease",dur:s.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(r,{easeName:"ease",dur:s.closeDurTime,direction:"reverse",onComplete:()=>{g()}}))};ge(o,()=>{o.value&&h(!0)},{});const d=$(!1);function f(){d.value=!0}function m(){s.directionFrom=="absolute"?g():h(!1)}function g(){d.value=!1,i("close")}function _(w){s.directionFrom=="absolute"?o.value&&o.value.children[0]&&!o.value.children[0].contains(w.target)&&s.closeWhenClickOverlay&&g():o.value&&!o.value.contains(w.target)&&s.closeWhenClickOverlay&&m()}return e({open:f,close:m}),(w,C)=>(D(),Je(kn,{visible:d.value,isGlobal:s.isGlobal,bgColor:s.overlayBgColor},{default:Oe(()=>[S("div",{class:"pop-parent",style:B([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[S("div",{ref_key:"pop",ref:o,class:"pop",style:B([{position:"absolute","z-index":"3000"},l])},[ze(w.$slots,"default",{},()=>[M0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-11361011"]]),R0=(n=>(yn("data-v-8d198707"),n=n(),_n(),n))(()=>S("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Tu=ee(K({customOptions:{Pop:Nt,Button:Te},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(n){const e=n,t=$(),s=$(),i=$(),o=ot({left:"0",top:"0"});ge(s,()=>{r()}),ge(i,()=>{r()});function r(){if(!s.value||!i.value)return;const l=kr(),c=s.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,d=u.height;let f=c.x+c.width+e.gap,m=c.y;f=Math.max(e.gap,Math.min(f,l.width-h-e.gap)),m=Math.max(e.gap,Math.min(m,l.height-d-e.gap)),o.left=`${f}px`,o.top=`${m}px`}function a(){t.value.open()}return(l,c)=>(D(),L(Me,null,[S("div",{ref_key:"popoverButtonRef",ref:s,style:{display:"inline-block"},onClick:a},[ze(l.$slots,"button",{},()=>[se(Te,null,{default:Oe(()=>[Fe("popover-default-button")]),_:1})],!0)],512),se(Nt,{ref_key:"popRef",ref:t,"direction-from":"absolute",isGlobal:e.isGlobal},{default:Oe(()=>[S("div",{ref_key:"popoverPanelRef",ref:i,style:B([{display:"inline-block",position:"absolute"},o])},[ze(l.$slots,"panel",{},()=>[R0],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),A0={class:"dialog-parent"},L0={key:0,class:"title"},F0={key:0,class:"title-inner truncate"},V0={class:"custom-content"},z0={class:"custom-content-default"},G0={key:1,class:"btns"},eo=ee(K({customOptions:{Overlay:kn,Pop:Nt,Icon:Wt,Button:Te},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(""),a=$(""),l=$(!1),c=$(""),u=$("");let h,d,f;function m(C){r.value=C?.title||"",a.value=C?.content||"",l.value=typeof C?.showClose=="boolean"?C?.showClose:!1,c.value=C?.cancelText||"",u.value=C?.confirmText||"",o.value.open(),h=C?.onClose,d=C?.onCancel,f=C?.onConfirm,i("open")}function g(){o.value.close(),h?.(),i("close")}function _(){g(),d?.(),i("cancel")}function w(){g(),f?.(),i("confirm")}return e({open:m,close:g}),(C,E)=>(D(),Je(Nt,{ref_key:"popRef",ref:o,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:s.overlayBgColor},{default:Oe(()=>[S("div",A0,[S("div",{class:"dialog",style:B({minWidth:s.minWidth,maxWidth:s.maxWidth})},[r.value||l.value?(D(),L("div",L0,[r.value?(D(),L("div",F0,_e(r.value),1)):Re("",!0),l.value?(D(),L("div",{key:1,class:"close",onClick:g},[se(Wt,{icon:"ic:baseline-close",color:Ee(Z).colorGrayCC},null,8,["color"])])):Re("",!0)])):Re("",!0),S("div",V0,[ze(C.$slots,"default",{},()=>[S("div",z0,_e(a.value),1)],!0)]),c.value||u.value?(D(),L("div",G0,[c.value?(D(),Je(Te,{key:0,onClick:_,class:"btn",bgColor:Ee(Z).colorGrayE6,borderColor:Ee(Z).colorGrayE6,fontColor:Ee(Z).colorGray33,borderRadius:"0"},{default:Oe(()=>[Fe(_e(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Re("",!0),u.value?(D(),Je(Te,{key:1,onClick:w,class:"btn",borderRadius:"0"},{default:Oe(()=>[Fe(_e(u.value),1)]),_:1})):Re("",!0)])):Re("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-8c45bc83]{display:flex;justify-content:center;align-items:center}.dialog[data-v-8c45bc83]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-8c45bc83]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-8c45bc83]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-8c45bc83]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-8c45bc83]{font-size:16px;word-break:break-all}.custom-content-default[data-v-8c45bc83]{padding:1em}.btns[data-v-8c45bc83]{display:flex;justify-content:center}.btn[data-v-8c45bc83]{flex:1 1 auto;border-radius:0}
116
+ `]],["__scopeId","data-v-8c45bc83"]]),j0={class:"loading"},B0={class:"icon"},H0={style:{width:"8em"}},W0={key:0,class:"content"},Pu=ee(K({customOptions:{Overlay:kn,Pop:Nt,Dialog:qi,Loading8:mu},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$("");function a(c){r.value=c||"",o.value.open(),i("open")}function l(){o.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(D(),Je(qi,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime},{default:Oe(()=>[S("div",j0,[S("div",B0,[ze(c.$slots,"default",{},()=>[S("div",H0,[se(mu)])],!0)]),r.value?(D(),L("div",W0,_e(r.value),1)):Re("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-8a5155ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-8a5155ef]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-8a5155ef]{font-size:1em;margin-top:-1em;margin-bottom:1em}
117
+ `]],["__scopeId","data-v-8a5155ef"]]),U0={class:"toast"},Y0={class:"content"},Ou=ee(K({customOptions:{Overlay:kn,Pop:Nt,Dialog:qi},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$("");function a(c,u=1500){r.value=c,o.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){o.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(D(),Je(qi,{ref_key:"dialogRef",ref:o,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,openDurTime:s.openDurTime,closeDurTime:s.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Oe(()=>[S("div",U0,[S("div",Y0,_e(r.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.toast[data-v-9b0eec22]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-9b0eec22]{font-size:1em}
118
+ `]],["__scopeId","data-v-9b0eec22"]]),X0={class:"tabs"},q0=["onClick"],K0={class:"content"},Z0=ee(K({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(s.initIndex),r=ot([]),a=$(),l=$(0),c=$(0),u=$(0),h=$([]),d=[],f=Fd(),m=f.default&&f.default();m&&(Os(r,m),w(o.value));const g=(E,k)=>{if(E){if(d.push({index:k,el:E}),d.length<r.length)return;h.value=d}};ge([a,h],()=>{_()});function _(){if(a.value&&h.value.length){const E=a.value.getBoundingClientRect(),k=h.value[o.value].el.getBoundingClientRect();l.value=k.x-E.x,c.value=k.y-E.y+k.height-2,u.value=k.width}}function w(E){o.value=E,i("changedIndex",E),_(),C.value.goto(E)}const C=$();return ge(C,()=>{C.value&&C.value.reset(s.pages,()=>{C.value.goto(s.initIndex)})}),e({}),(E,k)=>(D(),L("div",X0,[S("div",{class:"header",ref_key:"headerRef",ref:a},[(D(!0),L(Me,null,gt(s.labels,(I,O)=>(D(),L("div",{key:I,class:Et(O==o.value?"active":""),onClick:R=>w(O)},[S("div",{ref_for:!0,ref:R=>g(R,O)},_e(I),513)],10,q0))),128)),S("div",{class:"indicator",style:B({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),S("div",K0,[se(Cu,{ref_key:"routesRef",ref:C,direction:"rightToLeft",duration:200},null,512)])]))}}),[["styles",[`.tabs[data-v-d151e665]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-d151e665]{flex:1 1 auto}.header[data-v-d151e665]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-d151e665]{color:#5a82f0}.header>div[data-v-d151e665]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-d151e665]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-d151e665]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
119
+ `]],["__scopeId","data-v-d151e665"]]),Q0=["width","height"],J0=K({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(n,{expose:e,emit:t}){const s=n;let i=()=>{};const o=$();return ge(o,()=>{if(!o.value)return;const r=new Se(o.value),a=new jr(r);a.ctx.strokeStyle=s.brushColor,a.ctx.lineWidth=s.brushSize,a.drawMouseMoveLine("line"),i=()=>{ns.downloadFromSVGString(a.ctx.toRawSVG().raw,s.downloadFileName)}}),e({download:()=>i()}),(r,a)=>(D(),L("canvas",{ref_key:"panelRef",ref:o,width:s.canvasWidth,height:s.canvasHeight,style:B([`border: 1px solid ${r.borderColor}`])},null,12,Q0))}}),Ur=ee(K({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(0);function r(){o.value=0}function a(l){const c=o.value,u=Math.min(Math.max(0,l),100);je.toTween({width:c},{width:u},{duration:Math.abs(u-c)*s.duringTimeGap,onStart:()=>{},onUpdate:h=>{o.value=h.width},onComplete:()=>{i("complete",o.value)}}).startAuto()}return e({start:r,goto:a}),(l,c)=>(D(),L("div",{class:"wrap",style:B({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[S("div",{class:"bar",style:B({width:o.value+"%",backgroundColor:s.progressColor})},_e(s.showText?o.value+"%":""),5)],4))}}),[["styles",[`.wrap[data-v-c0eb8856]{position:relative;overflow:hidden}.bar[data-v-c0eb8856]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
120
+ `]],["__scopeId","data-v-c0eb8856"]]),ev={class:"wrap",style:{}},Nu=ee(K({customOptions:{ProgressBar:Qi},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=()=>{const a=mm();i("progress",a),o.value?.goto(a)};return Se.page.registerGlobalScrollChange(r),Le(()=>{Se.page.removeGlobalScrollChange(r)}),e({}),(a,l)=>(D(),L("div",ev,[se(Qi,{ref_key:"bar",ref:o,width:"100%",height:"100%",bgColor:s.bgColor,progressColor:s.progressColor,borderColor:s.borderColor,borderRadius:s.borderRadius,duringTimeGap:s.duringTimeGap,showText:s.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.wrap[data-v-5084cdef]{position:relative;overflow:hidden;width:100%;height:100%}
121
+ `]],["__scopeId","data-v-5084cdef"]]),tv=["fill"],nv=["fill"],sv=K({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{style:B(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,tv),S("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,nv)],4))}}),E1="",Iu=ee(sv,[["__scopeId","data-v-987aed3d"]]),to=n=>(yn("data-v-330c7adc"),n=n(),_n(),n),iv=to(()=>S("div",{class:"title"},"车牌颜色",-1)),ov={class:"plate-types"},rv=["onClick"],av=to(()=>S("div",{class:"title"},"车牌号码",-1)),lv={class:"plate-numbers"},cv=to(()=>S("div",{class:"dot"},"·",-1)),uv=["onClick"],hv=to(()=>S("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Du=ee(K({customOptions:{SVGCheck:Iu},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],r=$(0),a=ot([]),l=$(-1);function c(){xu({initPlates:a,completePlateLength:o[r.value].completePlateLength,onPlates:d=>{Os(a,d),l.value=a.length,a.length===o[r.value].completePlateLength&&i("complete",o[r.value].name,a.join(""))}})}const u=d=>{r.value=d,l.value<=o[d].completePlateLength&&a.length<o[d].completePlateLength?(l.value=a.length,c(),i("clear")):Os(a,a.slice(0,o[d].completePlateLength)),o[d].completePlateLength===a.length&&i("complete",o[r.value].name,a.join(""))},h=d=>{Os(a,a.slice(0,d)),l.value=Math.min(Math.max(0,l.value),d),c(),i("clear")};return e({}),(d,f)=>(D(),L("div",Jo(d.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[iv,S("div",ov,[(D(),L(Me,null,gt(o,(m,g)=>S("div",{key:g,class:Et(g==r.value?"checked":""),onClick:_=>u(g)},[S("div",{style:B(m.style)},null,4),S("div",null,_e(m.name),1),S("div",null,[se(Iu,{color:"#ffffff",width:"0.14rem"})])],10,rv)),64))]),av,S("div",lv,[S("div",{onClick:f[0]||(f[0]=m=>h(0)),class:Et(l.value==0?"current":"")},_e(a[0]),3),S("div",{onClick:f[1]||(f[1]=m=>h(1)),class:Et(l.value==1?"current":"")},_e(a[1]),3),cv,(D(!0),L(Me,null,gt(o[r.value].completePlateLength-2,m=>(D(),L("div",{key:m,class:Et(m+1==l.value?"current":""),onClick:g=>h(m+1)},_e(a[m+1]),11,uv))),128))]),hv],16))}}),[["styles",[`.plate-mobile[data-v-330c7adc]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-330c7adc]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-330c7adc]{display:flex;justify-content:center}.plate-types>div[data-v-330c7adc]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-330c7adc]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-330c7adc]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-330c7adc]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-330c7adc]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-330c7adc]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-330c7adc]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-330c7adc]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-330c7adc]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-types>div.checked[data-v-330c7adc]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(3){display:block}.plate-numbers[data-v-330c7adc]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-330c7adc]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-330c7adc]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-numbers>div.dot[data-v-330c7adc]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-330c7adc]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
122
+ `]],["__scopeId","data-v-330c7adc"]]),dv=["data-number"],fv=["data-number","data-unactive"],pv=["data-number"],mv=["data-number","data-unactive"],Yr=ee(K({customOptions:{Pop:Nt,SVGCleanUp:Hr},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(0),a=ot([]);function l(){a.length==0?r.value=0:a.length==1?r.value=1:r.value=2,a.length>=s.completePlateLength&&u()}ge(()=>[...s.initPlates],()=>{Os(a,s.initPlates),l()},{immediate:!0});const c=()=>{o.value.open(),i("open")},u=()=>{o.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},d=w=>{if(w.target.dataset.unactive||"")return;let E=w.target.dataset.number;E&&(a.push(E),l(),i("plates",a))};e({open:c,close:u});const f=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],g=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],_=["港","澳","学","警","使","领","挂","应","急"];return(w,C)=>(D(),Je(Nt,{ref_key:"popRef",ref:o,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Oe(()=>[S("div",{class:"popup-plate",style:B({paddingBottom:Ee(Z).safeAreaBottom})},[S("div",null,[S("div",{onClick:u},"关闭")]),S("div",{class:Et(["step",r.value==0?"":"hide"])},[(D(),L(Me,null,gt(f,E=>S("div",{key:E,class:"popitem",onClick:d,"data-number":E},_e(E),9,dv)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[se(Hr,{width:"16px"})])],2),S("div",{class:Et(["step",r.value!=0?"":"hide"])},[(D(),L(Me,null,gt(m,E=>S("div",{key:E,class:Et(["popitem",r.value!=2?"unactive":""]),onClick:d,"data-number":E,"data-unactive":r.value!=2?"unactive":""},_e(E),11,fv)),64)),(D(),L(Me,null,gt(g,E=>S("div",{key:E,class:"popitem",onClick:d,"data-number":E},_e(E),9,pv)),64)),(D(),L(Me,null,gt(_,E=>S("div",{key:E,class:Et(["popitem",r.value!=2?"unactive":""]),onClick:d,"data-number":E,"data-unactive":r.value!=2?"unactive":""},_e(E),11,mv)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[se(Hr,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-7fa8a410]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-7fa8a410]{display:none!important}.popup-plate>div[data-v-7fa8a410]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-7fa8a410]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-7fa8a410]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-7fa8a410]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-7fa8a410]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-7fa8a410]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-7fa8a410]{background-color:#eee;display:flex;justify-content:center;align-items:center}
123
+ `]],["__scopeId","data-v-7fa8a410"]]),gv={class:"parent"},vv=ee(K({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(n,{expose:e,emit:t}){const s=n,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function o(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function r(h){const d=i.filter(f=>f.name===h);return d.length?d[0]:r("未知")}const a=o(s.plate),l=$(r(s.plateType));let c=s.fontColor,u=s.fontSize;switch(s.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return e({}),(h,d)=>(D(),L("div",gv,[S("div",{class:Et(["leading",s.displayType]),style:B(l.value.style)},_e(l.value.name),7),S("div",{class:"text",style:B({color:Ee(c),"font-size":Ee(u)})},_e(Ee(a)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
123
124
  `]],["__scopeId","data-v-5a5145f8"]]),yv=`.resize-observer[data-v-16da9fc4]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-16da9fc4] object{position:absolute;top:0;left:0;height:100%;width:100%;display:block;overflow:hidden;pointer-events:none;z-index:-1}
124
- `,_v={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",xr&&this.$el.appendChild(t),t.data="about:blank",xr||this.$el.appendChild(t)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!xr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},bv={class:"resize-observer",tabindex:"-1"};function xv(t,e,n,s,i,o){return I(),L("div",bv)}const wv=Q(_v,[["render",xv],["styles",[yv]],["__scopeId","data-v-16da9fc4"]]),Cv=Q(Z({__name:"MapTianditu.ce",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(t,{expose:e,emit:n}){const s=t,i=$(s.mapWidth),o=$(s.mapHeight);let r;const l=$();return me(l,()=>{l.value&&(r=new we(l.value,!1),r.on("resize",(a,c)=>{i.value=a+"px",o.value=c+"px"}),r.start())}),mn(()=>{ee.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Km(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},a=>{console.log("error",a)})}),Re(()=>{r.destroy()}),e({}),(a,c)=>(I(),L("div",Yo({class:"mapDivWrap",ref_key:"mapWrap",ref:l},a.$attrs),[Ae(a.$slots,"default",{width:i.value,height:o.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
125
- `]],["__scopeId","data-v-7b13fce1"]]);var Rs=function(){var t=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(u){u.preventDefault(),s(++t%e.children.length)},!1);function n(u){return e.appendChild(u.dom),u}function s(u){for(var h=0;h<e.children.length;h++)e.children[h].style.display=h===u?"block":"none";t=u}var i=(performance||Date).now(),o=i,r=0,l=n(new Rs.Panel("FPS","#0ff","#002")),a=n(new Rs.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=n(new Rs.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:e,addPanel:n,showPanel:s,begin:function(){i=(performance||Date).now()},end:function(){r++;var u=(performance||Date).now();if(a.update(u-i,200),u>o+1e3&&(l.update(r*1e3/(u-o),100),o=u,r=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:e,setMode:s}};Rs.Panel=function(t,e,n){var s=1/0,i=0,o=Math.round,r=o(window.devicePixelRatio||1),l=80*r,a=48*r,c=3*r,u=2*r,h=3*r,d=15*r,f=74*r,m=30*r,v=document.createElement("canvas");v.width=l,v.height=a,v.style.cssText="width:80px;height:48px";var y=v.getContext("2d");return y.font="bold "+9*r+"px Helvetica,Arial,sans-serif",y.textBaseline="top",y.fillStyle=n,y.fillRect(0,0,l,a),y.fillStyle=e,y.fillText(t,c,u),y.fillRect(h,d,f,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(h,d,f,m),{dom:v,update:function(w,E){s=Math.min(s,w),i=Math.max(i,w),y.fillStyle=n,y.globalAlpha=1,y.fillRect(0,0,l,d),y.fillStyle=e,y.fillText(o(w)+" "+t+" ("+o(s)+"-"+o(i)+")",c,u),y.drawImage(v,h+r,d,f-r,m,h,d,f-r,m),y.fillRect(h+f-r,d,r,m),y.fillStyle=n,y.globalAlpha=.9,y.fillRect(h+f-r,d,r,o((1-w/E)*m))}}};const Ev=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(t,{expose:e}){const n=$();return mn(()=>{const s=new Rs,i=s.domElement.style;i.margin="1em",n.value.appendChild(s.domElement),gt.register(()=>(s.update(),!0))}),e({}),(s,i)=>(I(),L("div",{ref_key:"containerRef",ref:n},null,512))}}),Sv=["width","height"],kv=Z({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize","complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(),l=$(0),a=$(0);let c;me(o,()=>{o.value&&(c=new we(o.value,!1),c.on("resize",(y,w)=>{const E=br();l.value=Math.min(y,E.width),a.value=Math.min(w,E.height),f()}),c.start())}),me(r,()=>{r.value&&f()});let u,h,d;function f(){u||!r.value||!l.value||!a.value||(u=new we(r.value,!1),u.on("resize",(y,w)=>{i("resize",y,w)}),u.start(),h=new Ar(u),i("complete",h),d?.(h))}function m(){return new Promise(y=>{if(h)return y(h);d=y})}function v(y){u&&y(u)}return Re(()=>{u?.destroy(),c?.destroy()}),e({draw:v,getCanvasElement:()=>r.value,getCanvas:m}),(y,w)=>(I(),L("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[k("canvas",{ref_key:"canvasRef",ref:r,width:l.value,height:a.value,style:B({backgroundColor:s.bgColor})},null,12,Sv)],512))}}),k1="",kt=Q(kv,[["__scopeId","data-v-7bda10ec"]]),Tv={class:"ease-graph"},jr=Q(Z({customOptions:{Button:Ee,Canvas:kt},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$();let r;me(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",a)})});let l=!1;const a=()=>{if(!r||l)return;l=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let d=!1,f=!1;Ve.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:ne.Easing.Linear.None,onComplete:()=>{d=!0,d&&f&&(i("onCompleted",s.easeName),l=!1)}}).startAuto(),Ve.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{f=!0,d&&f&&(i("onCompleted",s.easeName),l=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return Re(()=>{r.app.off("showInParent",a)}),e({start:a}),(u,h)=>(I(),L("div",Tv,[k("div",null,"缓动:"+ge(u.easeName),1),k("div",null,[k("div",null,[se(Ee,{stylePattern:"outline",height:"32px",padding:"10px",onClick:a},{default:Te(()=>[Le(" 开始 ")]),_:1})]),k("div",null,[se(Ee,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Te(()=>[Le(" 选择 ")]),_:1},8,["stylePattern"])])]),k("div",{style:B({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[se(kt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-57053b1d]{display:inline-block}.ease-graph>div[data-v-57053b1d]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-57053b1d]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-57053b1d]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-57053b1d]{margin-left:10px}
126
- `]],["__scopeId","data-v-57053b1d"]]),Pv={class:"ease-graph"},Nv=Z({customOptions:{Button:Ee,Canvas:kt},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$();let r;me(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",a)})});let l=!1;const a=()=>{if(!r||l)return;l=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let d=!1,f=!1;Ve.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:ne.Easing.Linear.None,onComplete:()=>{d=!0,d&&f&&(i("onCompleted",s.easeName),l=!1)}}).startAuto(),Ve.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{f=!0,d&&f&&(i("onCompleted",s.easeName),l=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return Re(()=>{r.app.off("showInParent",a)}),e({start:a}),(u,h)=>(I(),L("div",Pv,[k("div",null,"缓动:"+ge(u.easeName),1),k("div",null,[k("div",null,[se(Ee,{stylePattern:"outline",height:"32px",padding:"10px",onClick:a},{default:Te(()=>[Le(" 开始 ")]),_:1})]),k("div",null,[se(Ee,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Te(()=>[Le(" 选择 ")]),_:1},8,["stylePattern"])])]),k("div",{style:B({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[se(kt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),N1="",Iu=Q(Nv,[["__scopeId","data-v-a2b487d0"]]),Ov=2e3,$u=Q(Z({customOptions:{EaseGraphDisplay:Iu},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:ne.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:ne.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:ne.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:ne.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:ne.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:ne.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:ne.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:ne.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:ne.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:ne.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:ne.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:ne.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:ne.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:ne.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:ne.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:ne.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:ne.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:ne.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:ne.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:ne.Easing.Circular.In},{easeName:"CircularOut",easeFunction:ne.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:ne.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:ne.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:ne.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:ne.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:ne.Easing.Back.In},{easeName:"BackOut",easeFunction:ne.Easing.Back.Out},{easeName:"BackInOut",easeFunction:ne.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:ne.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:ne.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:ne.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:ne.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:ne.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:ne.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:ne.Easing.createStep(4)},{easeName:"8 steps",easeFunction:ne.Easing.createStep(8)},{easeName:"12 steps",easeFunction:ne.Easing.createStep(12)},{easeName:"16 steps",easeFunction:ne.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:ne.Easing.createNoisyEasing(ne.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:ne.Easing.createNoisyEasing(ne.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:ne.Easing.createNoisyEasing(ne.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(t,{expose:e,emit:n}){const s=t,i=n,o={};function r(d,f){d&&(o[f]={el:d})}const l=new oc(10);function a(d){l.addTask(()=>(o[d].el.start(),new Promise(f=>{o[d].resolve=f})))}function c(d){o[d].resolve?.()}const u=$("Linear");function h(d,f){u.value=d,i("selectedEaseFunction",d,f)}return h("Linear",ne.Easing.Linear.None),e({}),(d,f)=>(I(),L("div",null,[(I(!0),L(De,null,ft(s.easeList,m=>(I(),L("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(I(),Xe(Iu,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:Ov,isSelected:u.value==m.easeName,onOnMounted:a,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:v=>r(v,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Ie("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-53891251]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-53891251]{margin:10px}
127
- `]],["__scopeId","data-v-53891251"]]),Iv={class:"interpolation-graph"},Du=1/6,Mu=5/6,Br=Q(Z({customOptions:{Button:Ee,Canvas:kt},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$();let r;me(o,()=>{o.value&&o.value.getCanvas().then(v=>{r=v,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const l=s.canvasWidth*Du,a=s.canvasHeight/2,c=[s.canvasWidth*Mu,s.canvasWidth/2],u=[s.canvasHeight*Du,s.canvasHeight*Mu],h=[...c,l],d=[...u,a];let f=!1;const m=()=>{if(!r||f)return;f=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(l-3,a-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)r.ctx.fillRect(c[v]-2,u[v]-2,4,4);let y=!1,w=!1;const E={x:l,y:a,old:{x:l,y:a}};Ve.toTween(E,{x:c,y:u},{duration:s.easeDuration,easeFunction:ne.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:S=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(S.old.x,S.old.y),r.ctx.lineTo(S.x,S.y),r.ctx.closePath(),r.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{y=!0,y&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto();const C={x:l,y:a,old:{x:l,y:a}};Ve.toTween(C,{x:h,y:d},{duration:s.easeDuration,easeFunction:ne.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:S=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(S.old.x,S.old.y),r.ctx.lineTo(S.x,S.y),r.ctx.closePath(),r.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{w=!0,y&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto()};return Re(()=>{r.app.off("showInParent",m)}),e({start:m}),(v,y)=>(I(),L("div",Iv,[k("div",null,[Le(" 插值:"+ge(v.interpolationName)+" ",1),se(Ee,{stylePattern:"outline",height:"32px",onClick:m},{default:Te(()=>[Le(" 开始 ")]),_:1})]),k("div",{style:B({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[se(kt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-8091299b]{display:inline-block}.interpolation-graph>div[data-v-8091299b]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
128
- `]],["__scopeId","data-v-8091299b"]]),$v={class:"interpolation-graph"},Ru=1/6,Au=5/6,Dv=Z({customOptions:{Button:Ee,Canvas:kt},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$();let r;me(o,()=>{o.value&&o.value.getCanvas().then(v=>{r=v,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const l=s.canvasWidth*Ru,a=s.canvasHeight/2,c=[s.canvasWidth*Au,s.canvasWidth/2],u=[s.canvasHeight*Ru,s.canvasHeight*Au],h=[...c,l],d=[...u,a];let f=!1;const m=()=>{if(!r||f)return;f=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(l-3,a-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)r.ctx.fillRect(c[v]-2,u[v]-2,4,4);let y=!1,w=!1;const E={x:l,y:a,old:{x:l,y:a}};Ve.toTween(E,{x:c,y:u},{duration:s.easeDuration,easeFunction:ne.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:S=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(S.old.x,S.old.y),r.ctx.lineTo(S.x,S.y),r.ctx.closePath(),r.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{y=!0,y&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto();const C={x:l,y:a,old:{x:l,y:a}};Ve.toTween(C,{x:h,y:d},{duration:s.easeDuration,easeFunction:ne.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:S=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(S.old.x,S.old.y),r.ctx.lineTo(S.x,S.y),r.ctx.closePath(),r.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{w=!0,y&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto()};return Re(()=>{r.app.off("showInParent",m)}),e({start:m}),(v,y)=>(I(),L("div",$v,[k("div",null,[Le(" 插值:"+ge(v.interpolationName)+" ",1),se(Ee,{stylePattern:"outline",height:"32px",onClick:m},{default:Te(()=>[Le(" 开始 ")]),_:1})]),k("div",{style:B({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[se(kt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),M1="",Lu=Q(Dv,[["__scopeId","data-v-18aca8d5"]]),Mv=2e3,Fu=Q(Z({customOptions:{InterpolationGraphDisplay:Lu},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:ne.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:ne.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:ne.Interpolation.CatmullRom}]}},setup(t,{expose:e,emit:n}){const s=t,i={};function o(c,u){c&&(i[u]={el:c})}const r=new oc(1);function l(c){r.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function a(c){i[c].resolve?.()}return e({}),(c,u)=>(I(),L("div",null,[(I(!0),L(De,null,ft(s.interpolationList,h=>(I(),L("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[se(Lu,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Mv,onOnMounted:l,onOnCompleted:a,ref_for:!0,ref:d=>o(d,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
129
- `]],["__scopeId","data-v-7128e350"]]),Rv={class:"wrap"},Av={class:"btns"},Lv={class:"tween-css",style:{width:"100%",height:"400px"}},Fv=Z({customOptions:{Button:Ee},inheritAttrs:!0,__name:"TweenCSS.ce",props:{easeFunction:{type:Function,default:ne.Easing.Linear.None}},setup(t){const e=t,n=nt({translateTo:{from:{translateTo:[0,0]},to:{translateTo:["150px","150px"]},selected:!1},translateXTo:{from:{translateXTo:0},to:{translateXTo:"150px"},selected:!1},translateYTo:{from:{translateYTo:0},to:{translateYTo:"150px"},selected:!1},translateZTo:{from:{translateZTo:0},to:{translateZTo:"150px"},selected:!1},translate3dTo:{from:{translate3dTo:[0,0,0]},to:{translate3dTo:["150px","150px","150px"]},selected:!1},rotateTo:{from:{rotateTo:0},to:{rotateTo:360},selected:!1},rotateXTo:{from:{rotateXTo:0},to:{rotateXTo:360},selected:!1},rotateYTo:{from:{rotateYTo:0},to:{rotateYTo:360},selected:!1},rotateZTo:{from:{rotateZTo:0},to:{rotateZTo:360},selected:!1},rotate3dTo:{from:{rotate3dTo:[0,0,0]},to:{rotate3dTo:[360,360,360]},selected:!1},scaleTo:{from:{scaleTo:1},to:{scaleTo:2},selected:!1},scaleXTo:{from:{scaleXTo:1},to:{scaleXTo:2},selected:!1},scaleYTo:{from:{scaleYTo:1},to:{scaleYTo:2},selected:!1},scaleZTo:{from:{scaleZTo:1},to:{scaleZTo:2},selected:!1},scale3dTo:{from:{scale3dTo:[1,1,1]},to:{scale3dTo:[2,2,2]},selected:!1},skewTo:{from:{skewTo:0},to:{skewTo:1},selected:!1},skewXTo:{from:{skewXTo:0},to:{skewXTo:1},selected:!1},skewYTo:{from:{skewYTo:0},to:{skewYTo:1},selected:!1}}),s=$();function i(o){if(!s.value)return;n[o].selected=!n[o].selected;const r={},l={};for(let a in n){const c=n[a];c.selected?(Object.assign(r,c.from),Object.assign(l,c.to)):(nc(r,c.from),nc(l,c.to))}s.value.style.transform="",Ve.toTweenCSS(s.value,r,l,{duration:2e3,easeFunction:e.easeFunction}).startAuto()}return Re(()=>{}),(o,r)=>(I(),L("div",Rv,[k("div",Av,[(I(!0),L(De,null,ft(n,(l,a,c)=>(I(),Xe(Ee,{onClick:u=>i(a.toString()),key:a,stylePattern:l.selected?"fullfilled":"outline"},{default:Te(()=>[Le(ge(a),1)]),_:2},1032,["onClick","stylePattern"]))),128))]),k("div",Lv,[k("div",{class:"tween-css-target",ref_key:"tweenCSSTargetRef",ref:s},null,512)])]))}}),Vu=Q(Fv,[["styles",[`.wrap[data-v-1ee21fe2]{display:block;position:relative;overflow:hidden}.btns[data-v-1ee21fe2]{display:flex;flex-wrap:wrap}.btns>div[data-v-1ee21fe2]{margin-right:10px;margin-bottom:10px}.tween-css[data-v-1ee21fe2]{position:relative;background-color:#333}.tween-css-target[data-v-1ee21fe2]{position:absolute;top:50px;left:50px;width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
130
- `]],["__scopeId","data-v-1ee21fe2"]]),Vv=["width","height"],As=Q(Z({__name:"Canvas.ce",props:{bgColor:{default:"#333333"}},emits:["resize","complete"],setup(t,{expose:e,emit:n}){const s=t,i=n,o=$(),r=$(),l=$(0),a=$(0);let c;me(o,()=>{o.value&&(c=new we(o.value,!1),c.on("resize",(y,w)=>{const E=br();l.value=Math.min(y,E.width),a.value=Math.min(w,E.height),f()}),c.start())}),me(r,()=>{r.value&&f()});let u,h,d;function f(){u||!r.value||!l.value||!a.value||(u=new we(r.value,!1),u.on("resize",(y,w)=>{i("resize",y,w)}),u.start(),h=new Ar(u),i("complete",h),d?.(h))}function m(){return new Promise(y=>{if(h)return y(h);d=y})}function v(y){u&&y(u)}return Re(()=>{u?.destroy(),c?.destroy()}),e({draw:v,getCanvasElement:()=>r.value,getCanvas:m}),(y,w)=>(I(),L("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[k("canvas",{ref_key:"canvasRef",ref:r,width:l.value,height:a.value,style:B({backgroundColor:s.bgColor})},null,12,Vv)],512))}}),[["styles",[`.canvas-wrap[data-v-6a90fa37]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
131
- `]],["__scopeId","data-v-6a90fa37"]]),zv={class:"wrap"},Gv={class:"btns"},jv={style:{height:"400px"}},zu=Q(Z({customOptions:{Button:Ee,Canvas:kt},inheritAttrs:!0,__name:"CanvasSport.ce",setup(t){const e=$(),n=$("");function s(){const d="Arrow";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const m=new su({scale:.5}),v=new mt({x:f.ctx.canvas.width/2,y:f.ctx.canvas.height/2});gt.register(()=>n.value!=d?!1:(f.ctx.clearRect(),f.flushShapes([{shape:v,extra:y=>{v.fromX=m.x,v.fromY=m.y,y.lineWidth=2,y.strokeStyle="pink"}},{shape:m,followMouseMove:!0,extra:y=>{y.fillStyle=y.createLinearGradient(0,0,100,100,{0:"#ffffff",1:"#ff0000"})}}]).draw(),console.log(`distance: ${m.distanceTo(v)}`),!0))}))}function i(){const d="RectGame";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const m=[];function v(){const N=new At({x:Math.random()*f.ctx.canvas.width,y:0,width:50,height:50});return m.push(N),N}let y=v();const w=.2,E=()=>{y&&(y.ay=.2)},C=()=>{y&&(y.ay=-.2)},S=()=>{y&&(y.ay=0)},D=[];D.push(f.app.registerKeyDown({key:"ArrowDown"},E,S)),D.push(f.app.registerKeyDown({key:"ArrowRight"},E,S)),D.push(f.app.registerKeyDown({key:"ArrowUp"},C,S)),D.push(f.app.registerKeyDown({key:"ArrowLeft"},C,S)),gt.register(()=>n.value!=d?(D.forEach(N=>N()),!1):(f.ctx.clearRect(),f.isMouseDown?f.flushShapes(m.map(N=>({shape:N,dragMouseMove:!0,extra:R=>{R.fillStyle="#ff0000"}}))).draw():(y&&y.nextFrame({gravity:w}),y&&y.y+y.height>=f.ctx.canvas.height&&(y.y=f.ctx.canvas.height-y.height,y=v()),f.flushShapes(m.map(N=>(y&&y!==N&&y.isIntersectRect(N)&&(y.y=N.y-y.height,y.y>=y.height?y=v():y=null),{shape:N,dragMouseMove:!0,extra:R=>{R.fillStyle="#ff0000"}}))).draw()),!0))}))}function o(){const d="PointWater";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const m=[];for(let v=0;v<80;v++){const y=new ht({x:f.ctx.canvas.width/2,y:f.ctx.canvas.height,radius:2});y.vx=Math.random()*2-1,y.vy=Math.random()*-10-10,m.push(y)}gt.register(()=>n.value!=d?!1:(f.ctx.clearRect(),f.flushShapes(m.map(v=>(v.nextFrame({gravity:.5}),(v.x-v.radius>f.ctx.canvas.width||v.x+v.radius<0||v.y-v.radius>f.ctx.canvas.height||v.y+v.radius<0)&&(v.x=f.ctx.canvas.width/2,v.y=f.ctx.canvas.height,v.vx=Math.random()*2-1,v.vy=Math.random()*-10-10),{shape:v,extra:y=>{y.fillStyle=Nm()}}))).draw(),!0))}))}function r(){const d="PointEase";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const m=f.ctx.canvas.width/2,v=f.ctx.canvas.height/2,y=new ht({x:m,y:v,radius:30});gt.register(()=>n.value!=d?!1:(f.ctx.clearRect(),f.flushShapes([{shape:y,extra:w=>{w.fillStyle="#00ff00"},dragMouseMove:!0,dragFreeEaseTo:{targetX:m,targetY:v}}]).draw(),!0))}))}function l(){const d="PointSpringChain";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const m=f.ctx.canvas.width/2,v=f.ctx.canvas.height/2,y=[];for(let D=0;D<3;D++)y.push(new ht({x:m,y:v,radius:20}));const w=new mt,E=.03,C=.9,S=2;gt.register(()=>n.value!=d?!1:(f.ctx.clearRect(),y.forEach((D,N)=>{if(N===0)D.nextFrameSpringTo(f.app.mousePoint,{spring:E,friction:C,gravity:S}),w.fromX=f.app.mousePoint.x,w.fromY=f.app.mousePoint.y,w.x=D.x,w.y=D.y;else{const R=y[N-1];D.nextFrameSpringTo(R,{spring:E,friction:C,gravity:S}),w.fromX=R.x,w.fromY=R.y,w.x=D.x,w.y=D.y}f.flushShapes({shape:w,extra:R=>{R.lineWidth=1,R.strokeStyle="#eeeeee"}}).draw()}),f.flushShapes(y.map(D=>({shape:D,extra:N=>{N.fillStyle="#0000ff"}}))).draw(),!0))}))}function a(){const d="PointSpringMulti";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const m=f.ctx.canvas.width/2,v=f.ctx.canvas.height/2,y=new ht({x:m,y:v,radius:20}),w=[];for(let C=0;C<3;C++)w.push(new ht({x:Math.random()*f.ctx.canvas.width,y:Math.random()*f.ctx.canvas.height,radius:10}));const E=[new mt,new mt,new mt];gt.register(()=>n.value!=d?!1:(f.ctx.clearRect(),y.nextFrameSpringTo(w,{spring:.03,friction:.9}),w.forEach((C,S)=>{E[S].fromX=y.x,E[S].fromY=y.y,E[S].x=C.x,E[S].y=C.y}),f.flushShapes([...E.map(C=>({shape:C,extra:S=>{S.lineWidth=1,S.strokeStyle="#eeeeee"}})),...w.map(C=>({shape:C,dragMouseMove:!0,extra:S=>{S.fillStyle="#00ff00"}})),{shape:y,extra:C=>{C.fillStyle="#ff0000"}}]).draw(),!0))}))}function c(){const d="PointSpringConnect";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const m=[];for(let w=0;w<3;w++)m.push(new ht({x:Math.random()*f.ctx.canvas.width,y:Math.random()*f.ctx.canvas.height,radius:15}));const v=[new mt,new mt,new mt],y={springLength:120,spring:.03,friction:.9};gt.register(()=>n.value!=d?!1:(f.ctx.clearRect(),m[0].isDragging||(m[0].nextFrameSpringConnect(m[1],y),m[0].nextFrameSpringConnect(m[2],y)),m[1].isDragging||(m[1].nextFrameSpringConnect(m[0],y),m[1].nextFrameSpringConnect(m[2],y)),m[2].isDragging||(m[2].nextFrameSpringConnect(m[0],y),m[2].nextFrameSpringConnect(m[1],y)),v[0].x=m[0].x,v[0].y=m[0].y,v[0].fromX=m[1].x,v[0].fromY=m[1].y,v[1].x=m[1].x,v[1].y=m[1].y,v[1].fromX=m[2].x,v[1].fromY=m[2].y,v[2].x=m[2].x,v[2].y=m[2].y,v[2].fromX=m[0].x,v[2].fromY=m[0].y,f.flushShapes([...v.map(w=>({shape:w,extra:E=>{E.strokeStyle="#eeeeee",E.lineWidth=1}})),...m.map(w=>({shape:w,dragMouseMove:!0,extra:E=>{E.fillStyle="#ff0000"}}))]).draw(),!0))}))}function u(){const d="QuadraticBezierCurve";n.value!=d&&(n.value=d,e.value.getCanvas().then(f=>{const v=new $r({x:50,y:f.ctx.canvas.height-50,fromX:f.ctx.canvas.width-50,fromY:f.ctx.canvas.height-50,cx:f.app.mousePoint.x,cy:f.app.mousePoint.y});gt.register(()=>n.value!=d?!1:(f.ctx.clearRect(),v.cx=f.app.mousePoint.x,v.cy=f.app.mousePoint.y,f.flushShapes([{shape:v,isLineThrough:!1,extra:y=>{y.lineWidth=2,y.strokeStyle="#ff0000"}},{shape:v,isLineThrough:!0,extra:y=>{y.lineWidth=2,y.strokeStyle="#00ff00"}}]).draw(),!0))}))}function h(){const d="PointsRandom";n.value=d,e.value.getCanvas().then(f=>{f.ctx.clearRect();const m=[];for(let v=0;v<10;v++){const y=new ht({x:Math.random()*f.ctx.canvas.width,y:Math.random()*f.ctx.canvas.height});m.push(y),f.flushShapes({shape:new At({x:y.x,y:y.y,width:6,height:6}),extra:w=>{w.fillStyle="#eeeeee"}}).draw()}f.flushShapes({shape:new Ir(m),extra:v=>{v.lineWidth=2,v.strokeStyle="pink"}}).draw()})}return Re(()=>{}),(d,f)=>(I(),L("div",zv,[k("div",Gv,[se(Ee,{onClick:s,stylePattern:n.value=="Arrow"?"fullfilled":"outline"},{default:Te(()=>[Le(" Arrow ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:i,stylePattern:n.value=="RectGame"?"fullfilled":"outline"},{default:Te(()=>[Le(" Rect - 俄罗斯方块 ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:o,stylePattern:n.value=="PointWater"?"fullfilled":"outline"},{default:Te(()=>[Le(" Point - 喷泉 ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:r,stylePattern:n.value=="PointEase"?"fullfilled":"outline"},{default:Te(()=>[Le(" Point - ease ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:l,stylePattern:n.value=="PointSpringChain"?"fullfilled":"outline"},{default:Te(()=>[Le(" Point - 链式弹簧 ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:a,stylePattern:n.value=="PointSpringMulti"?"fullfilled":"outline"},{default:Te(()=>[Le(" Point - 多点弹簧 ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:c,stylePattern:n.value=="PointSpringConnect"?"fullfilled":"outline"},{default:Te(()=>[Le(" Point - 连接弹簧 ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:u,stylePattern:n.value=="QuadraticBezierCurve"?"fullfilled":"outline"},{default:Te(()=>[Le(" QuadraticBezier - curve ")]),_:1},8,["stylePattern"]),se(Ee,{onClick:h,stylePattern:n.value=="PointsRandom"?"fullfilled":"outline"},{default:Te(()=>[Le(" Points - random ")]),_:1},8,["stylePattern"])]),k("div",jv,[se(kt,{ref_key:"canvas",ref:e},null,512)])]))}}),[["styles",[`.wrap[data-v-631039db]{display:block;position:relative;overflow:hidden}.btns[data-v-631039db]{display:flex;flex-wrap:wrap}.btns>div[data-v-631039db]{margin-right:10px;margin-bottom:10px}
132
- `]],["__scopeId","data-v-631039db"]]),Bv={class:"wrap"},Hv={class:"btns"},Wv={style:{height:"400px"}},Gu=Q(Z({customOptions:{Button:Ee,Canvas:kt},inheritAttrs:!0,__name:"CanvasShape.ce",setup(t){const e=$();me(e,()=>{if(!e.value)return;const s=new At({width:100,height:60,borderRadius:10}),i=new su({x:150,y:50,scale:.5}),o=new Dm({x:250,y:50,scale:1});e.value.getCanvas().then(r=>{gt.register(()=>(r.ctx.clearRect(),r.flushShapes([{shape:s,dragMouseMove:!0,extra:l=>{l.fillStyle=l.createRadialGradient(10,10,0,10,10,20,{0:"#ffffff",1:"#ff0000"})}},{shape:i,dragMouseMove:!0,extra:l=>{l.fillStyle="#5a82f0"}},{shape:o,dragMouseMove:!0,extra:l=>{l.fillStyle="rgb(200,80,80)"}}]).draw(),!0))})});function n(){}return Re(()=>{}),(s,i)=>(I(),L("div",Bv,[k("div",Hv,[se(Ee,{onClick:n},{default:Te(()=>[Le("start")]),_:1})]),k("div",Wv,[se(kt,{ref_key:"canvas",ref:e},null,512)])]))}}),[["styles",[`.wrap[data-v-f4552841]{display:block;position:relative;overflow:hidden}.btns[data-v-f4552841]{display:flex;flex-wrap:wrap}.btns>div[data-v-f4552841]{margin-right:10px;margin-bottom:10px}
133
- `]],["__scopeId","data-v-f4552841"]]),ju=Q(Z({customOptions:{Canvas:kt},inheritAttrs:!0,__name:"CanvasFromSVG.ce",props:{raw:{},bgColor:{default:"#ffffff"}},setup(t,{expose:e}){const n=t,s=$();me(s,()=>{s.value&&r()});let i;me(()=>n.raw,(l,a)=>{l!=a&&(i=new Or({svg:n.raw,width:300}),r())},{immediate:!0});function o(l,a){r()}function r(){if(!n.raw||!s.value)return;let l=-1,a;s.value.getCanvas().then(c=>{const u={shape:i,extra:h=>{h.lineWidth=4,h.strokeStyle="#ff0000"},clickInPath:h=>{l>=0&&(i.pgas[l]=a),l=h,a=Ei(i.pgas[h]),i.pgas[h].attrs.fill="pink",i.pgas[h].attrs.stroke="green",c.shapes=[u,{shape:i.pgas[h].pg.getBoundingClientRect(),extra:d=>{d.lineWidth=4,d.strokeStyle="#ff0000"}}],c.ctx.clearRect(),c.draw()}};c.flushShapes([u]).draw()})}return Re(()=>{}),e({}),(l,a)=>(I(),Xe(kt,{ref_key:"canvasRef",ref:s,bgColor:n.bgColor,onResize:o},null,8,["bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-9a053f23"]]),Uv=["fill"],Yv=["fill"],Xv=Z({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{style:B(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,Uv),k("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,Yv)],4))}}),qv=Q(Xv,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
134
- `]],["__scopeId","data-v-8fe3f9fd"]]),Hr=t=>(Mn("data-v-7aebdea0"),t=t(),Rn(),t),Kv=[Hr(()=>k("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Hr(()=>k("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Hr(()=>k("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],Zv=Z({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{style:B(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Kv,4))}}),Qv=Q(Zv,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
135
- `]],["__scopeId","data-v-7aebdea0"]]),Jv=["width","height"],ey=["fill"],ty=Z({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[k("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,ey)],8,Jv))}}),ny=Q(ty,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
136
- `]],["__scopeId","data-v-8745630f"]]),sy=["width","height"],iy=["fill"],oy=Z({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:q.colorGrayCC}},setup(t){const e=t;return(n,s)=>(I(),L("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[k("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,iy)],8,sy))}}),ry=Q(oy,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
137
- `]],["__scopeId","data-v-0e77f86d"]]),ay={class:"loading-1"},ly=Z({__name:"Loading1.ce",props:{color:{default:q.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(I(),L("div",ay,[k("div",{class:"rect1",style:n}),k("div",{class:"rect2",style:n}),k("div",{class:"rect3",style:n}),k("div",{class:"rect4",style:n}),k("div",{class:"rect5",style:n})]))}}),cy=Q(ly,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
138
- `]],["__scopeId","data-v-f7deb691"]]),uy={class:"loading-2"},hy=Z({__name:"Loading2.ce",props:{color:{default:q.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(I(),L("div",uy,[k("div",{class:"dot1",style:n}),k("div",{class:"dot2",style:n})]))}}),dy=Q(hy,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
139
- `]],["__scopeId","data-v-945f5b2e"]]),fy=Z({__name:"Loading3.ce",props:{fromColor:{default:q.colorPrimary},toColor:{default:q.colorRed}},setup(t){const e=t,n=`
125
+ `,_v={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const n=document.createElement("object");this._resizeObject=n,n.setAttribute("aria-hidden","true"),n.setAttribute("tabindex",-1),n.onload=this.addResizeHandlers,n.type="text/html",Tr&&this.$el.appendChild(n),n.data="about:blank",Tr||this.$el.appendChild(n)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Tr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},bv={class:"resize-observer",tabindex:"-1"};function xv(n,e,t,s,i,o){return D(),L("div",bv)}const wv=ee(_v,[["render",xv],["styles",[yv]],["__scopeId","data-v-16da9fc4"]]),Ev=ee(K({__name:"MapTianditu.ce",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(n,{expose:e,emit:t}){const s=n,i=$(s.mapWidth),o=$(s.mapHeight);let r;const a=$();return ge(a,()=>{a.value&&(r=new Se(a.value,!1),r.on("resize",(l,c)=>{i.value=l+"px",o.value=c+"px"}),r.start())}),bn(()=>{X.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new Km(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),Le(()=>{r.destroy()}),e({}),(l,c)=>(D(),L("div",Jo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[ze(l.$slots,"default",{width:i.value,height:o.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
126
+ `]],["__scopeId","data-v-7b13fce1"]]);var Bs=function(){var n=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(u){u.preventDefault(),s(++n%e.children.length)},!1);function t(u){return e.appendChild(u.dom),u}function s(u){for(var h=0;h<e.children.length;h++)e.children[h].style.display=h===u?"block":"none";n=u}var i=(performance||Date).now(),o=i,r=0,a=t(new Bs.Panel("FPS","#0ff","#002")),l=t(new Bs.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=t(new Bs.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:e,addPanel:t,showPanel:s,begin:function(){i=(performance||Date).now()},end:function(){r++;var u=(performance||Date).now();if(l.update(u-i,200),u>o+1e3&&(a.update(r*1e3/(u-o),100),o=u,r=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:e,setMode:s}};Bs.Panel=function(n,e,t){var s=1/0,i=0,o=Math.round,r=o(window.devicePixelRatio||1),a=80*r,l=48*r,c=3*r,u=2*r,h=3*r,d=15*r,f=74*r,m=30*r,g=document.createElement("canvas");g.width=a,g.height=l,g.style.cssText="width:80px;height:48px";var _=g.getContext("2d");return _.font="bold "+9*r+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=t,_.fillRect(0,0,a,l),_.fillStyle=e,_.fillText(n,c,u),_.fillRect(h,d,f,m),_.fillStyle=t,_.globalAlpha=.9,_.fillRect(h,d,f,m),{dom:g,update:function(w,C){s=Math.min(s,w),i=Math.max(i,w),_.fillStyle=t,_.globalAlpha=1,_.fillRect(0,0,a,d),_.fillStyle=e,_.fillText(o(w)+" "+n+" ("+o(s)+"-"+o(i)+")",c,u),_.drawImage(g,h+r,d,f-r,m,h,d,f-r,m),_.fillRect(h+f-r,d,r,m),_.fillStyle=t,_.globalAlpha=.9,_.fillRect(h+f-r,d,r,o((1-w/C)*m))}}};const Cv=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(n,{expose:e}){const t=$();return bn(()=>{const s=new Bs,i=s.domElement.style;i.margin="1em",t.value.appendChild(s.domElement),it.register(()=>(s.update(),!0))}),e({}),(s,i)=>(D(),L("div",{ref_key:"containerRef",ref:t},null,512))}}),Sv=["width","height"],kv=K({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(),a=$(0),l=$(0);let c;ge(o,()=>{o.value&&(c=new Se(o.value,!1),c.on("resize",(_,w)=>{const C=kr();a.value=Math.min(_,C.width),l.value=Math.min(w,C.height),f()}),c.start())}),ge(r,()=>{r.value&&f()});let u,h,d;function f(){u||!r.value||!a.value||!l.value||(u=new Se(r.value,!1),u.on("resize",(_,w)=>{i("resize",_,w)}),u.start(),h=new jr(u),d?.(h))}function m(){return new Promise(_=>{if(h)return _(h);d=_})}function g(_){u&&_(u)}return Le(()=>{u?.destroy(),c?.destroy()}),e({draw:g,getCanvasElement:()=>r.value,getCanvas:m}),(_,w)=>(D(),L("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[S("canvas",{ref_key:"canvasRef",ref:r,width:a.value,height:l.value,style:B({backgroundColor:s.bgColor})},null,12,Sv)],512))}}),$1="",Tt=ee(kv,[["__scopeId","data-v-83f4b281"]]),Tv={class:"ease-graph"},Xr=ee(K({customOptions:{Button:Te,Canvas:Tt},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();let r;ge(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!r||a)return;a=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let d=!1,f=!1;je.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:re.Easing.Linear.None,onComplete:()=>{d=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),je.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{f=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return Le(()=>{r.app.off("showInParent",l)}),e({start:l}),(u,h)=>(D(),L("div",Tv,[S("div",null,"缓动:"+_e(u.easeName),1),S("div",null,[S("div",null,[se(Te,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Oe(()=>[Fe(" 开始 ")]),_:1})]),S("div",null,[se(Te,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Oe(()=>[Fe(" 选择 ")]),_:1},8,["stylePattern"])])]),S("div",{style:B({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[se(Tt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-57053b1d]{display:inline-block}.ease-graph>div[data-v-57053b1d]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-57053b1d]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-57053b1d]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-57053b1d]{margin-left:10px}
127
+ `]],["__scopeId","data-v-57053b1d"]]),Pv={class:"ease-graph"},Ov=K({customOptions:{Button:Te,Canvas:Tt},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();let r;ge(o,()=>{o.value&&o.value.getCanvas().then(u=>{r=u,i("onMounted",s.easeName),r.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!r||a)return;a=!0,i("onStart",s.easeName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.lineWidth=.5,r.ctx.strokeStyle="rgb(230,230,230)",r.ctx.beginPath(),r.ctx.moveTo(0,s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),r.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),r.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),r.ctx.closePath(),r.ctx.stroke(),r.ctx.lineWidth=2,r.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},h={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap};let d=!1,f=!1;je.toTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{duration:s.easeDuration,easeFunction:re.Easing.Linear.None,onComplete:()=>{d=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto(),je.toTween(u,{y:s.graphVerticalGap},{duration:s.easeDuration,easeFunction:s.easeFunction,onUpdate:()=>{r.ctx.beginPath(),r.ctx.moveTo(h.x,h.y),r.ctx.lineTo(u.x,u.y),r.ctx.closePath(),r.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{f=!0,d&&f&&(i("onCompleted",s.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",s.easeName,s.easeFunction)};return Le(()=>{r.app.off("showInParent",l)}),e({start:l}),(u,h)=>(D(),L("div",Pv,[S("div",null,"缓动:"+_e(u.easeName),1),S("div",null,[S("div",null,[se(Te,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Oe(()=>[Fe(" 开始 ")]),_:1})]),S("div",null,[se(Te,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Oe(()=>[Fe(" 选择 ")]),_:1},8,["stylePattern"])])]),S("div",{style:B({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[se(Tt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),A1="",$u=ee(Ov,[["__scopeId","data-v-a2b487d0"]]),Nv=2e3,Mu=ee(K({customOptions:{EaseGraphDisplay:$u},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:re.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:re.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:re.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:re.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:re.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:re.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:re.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:re.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:re.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:re.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:re.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:re.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:re.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:re.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:re.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:re.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:re.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:re.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:re.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:re.Easing.Circular.In},{easeName:"CircularOut",easeFunction:re.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:re.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:re.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:re.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:re.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:re.Easing.Back.In},{easeName:"BackOut",easeFunction:re.Easing.Back.Out},{easeName:"BackInOut",easeFunction:re.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:re.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:re.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:re.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:re.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:re.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:re.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:re.Easing.createStep(4)},{easeName:"8 steps",easeFunction:re.Easing.createStep(8)},{easeName:"12 steps",easeFunction:re.Easing.createStep(12)},{easeName:"16 steps",easeFunction:re.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:re.Easing.createNoisyEasing(re.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:re.Easing.createNoisyEasing(re.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:re.Easing.createNoisyEasing(re.Easing.Circular.InOut,.1)}]}},emits:["selectedEaseFunction"],setup(n,{expose:e,emit:t}){const s=n,i=t,o={};function r(d,f){d&&(o[f]={el:d})}const a=new hc(10);function l(d){a.addTask(()=>(o[d].el.start(),new Promise(f=>{o[d].resolve=f})))}function c(d){o[d].resolve?.()}const u=$("Linear");function h(d,f){u.value=d,i("selectedEaseFunction",d,f)}return h("Linear",re.Easing.Linear.None),e({}),(d,f)=>(D(),L("div",null,[(D(!0),L(Me,null,gt(s.easeList,m=>(D(),L("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(D(),Je($u,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:Nv,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:g=>r(g,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Re("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-53891251]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-53891251]{margin:10px}
128
+ `]],["__scopeId","data-v-53891251"]]),Iv={class:"interpolation-graph"},Ru=1/6,Au=5/6,qr=ee(K({customOptions:{Button:Te,Canvas:Tt},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();let r;ge(o,()=>{o.value&&o.value.getCanvas().then(g=>{r=g,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const a=s.canvasWidth*Ru,l=s.canvasHeight/2,c=[s.canvasWidth*Au,s.canvasWidth/2],u=[s.canvasHeight*Ru,s.canvasHeight*Au],h=[...c,a],d=[...u,l];let f=!1;const m=()=>{if(!r||f)return;f=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(a-3,l-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var g=0;g<c.length;g++)r.ctx.fillRect(c[g]-2,u[g]-2,4,4);let _=!1,w=!1;const C={x:a,y:l,old:{x:a,y:l}};je.toTween(C,{x:c,y:u},{duration:s.easeDuration,easeFunction:re.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{_=!0,_&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto();const E={x:a,y:l,old:{x:a,y:l}};je.toTween(E,{x:h,y:d},{duration:s.easeDuration,easeFunction:re.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{w=!0,_&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto()};return Le(()=>{r.app.off("showInParent",m)}),e({start:m}),(g,_)=>(D(),L("div",Iv,[S("div",null,[Fe(" 插值:"+_e(g.interpolationName)+" ",1),se(Te,{stylePattern:"outline",height:"32px",onClick:m},{default:Oe(()=>[Fe(" 开始 ")]),_:1})]),S("div",{style:B({width:g.canvasWidth+"px",height:g.canvasHeight+"px"})},[se(Tt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-8091299b]{display:inline-block}.interpolation-graph>div[data-v-8091299b]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
129
+ `]],["__scopeId","data-v-8091299b"]]),Dv={class:"interpolation-graph"},Lu=1/6,Fu=5/6,$v=K({customOptions:{Button:Te,Canvas:Tt},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();let r;ge(o,()=>{o.value&&o.value.getCanvas().then(g=>{r=g,i("onMounted",s.interpolationName),r.app.on("showInParent",m)})});const a=s.canvasWidth*Lu,l=s.canvasHeight/2,c=[s.canvasWidth*Fu,s.canvasWidth/2],u=[s.canvasHeight*Lu,s.canvasHeight*Fu],h=[...c,a],d=[...u,l];let f=!1;const m=()=>{if(!r||f)return;f=!0,i("onStart",s.interpolationName),r.ctx.fillStyle="rgb(250,250,250)",r.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),r.ctx.fillStyle="rgb(200,200,200)",r.ctx.fillRect(a-3,l-3,6,6),r.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var g=0;g<c.length;g++)r.ctx.fillRect(c[g]-2,u[g]-2,4,4);let _=!1,w=!1;const C={x:a,y:l,old:{x:a,y:l}};je.toTween(C,{x:c,y:u},{duration:s.easeDuration,easeFunction:re.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.9)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{_=!0,_&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto();const E={x:a,y:l,old:{x:a,y:l}};je.toTween(E,{x:h,y:d},{duration:s.easeDuration,easeFunction:re.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:k=>{r.ctx.lineWidth=2,r.ctx.strokeStyle="rgba(255,127,127,0.5)",r.ctx.beginPath(),r.ctx.moveTo(k.old.x,k.old.y),r.ctx.lineTo(k.x,k.y),r.ctx.closePath(),r.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{w=!0,_&&w&&(i("onCompleted",s.interpolationName),f=!1)}}).startAuto()};return Le(()=>{r.app.off("showInParent",m)}),e({start:m}),(g,_)=>(D(),L("div",Dv,[S("div",null,[Fe(" 插值:"+_e(g.interpolationName)+" ",1),se(Te,{stylePattern:"outline",height:"32px",onClick:m},{default:Oe(()=>[Fe(" 开始 ")]),_:1})]),S("div",{style:B({width:g.canvasWidth+"px",height:g.canvasHeight+"px"})},[se(Tt,{ref_key:"canvasRef",ref:o,bgColor:"#ffffff"},null,512)],4)]))}}),G1="",Vu=ee($v,[["__scopeId","data-v-18aca8d5"]]),Mv=2e3,zu=ee(K({customOptions:{InterpolationGraphDisplay:Vu},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:re.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:re.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:re.Interpolation.CatmullRom}]}},setup(n,{expose:e,emit:t}){const s=n,i={};function o(c,u){c&&(i[u]={el:c})}const r=new hc(1);function a(c){r.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return e({}),(c,u)=>(D(),L("div",null,[(D(!0),L(Me,null,gt(s.interpolationList,h=>(D(),L("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[se(Vu,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Mv,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:d=>o(d,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
130
+ `]],["__scopeId","data-v-7128e350"]]),Rv={class:"wrap"},Av={class:"btns"},Lv={class:"tween-css",style:{width:"100%",height:"400px"}},Fv=K({customOptions:{Button:Te},inheritAttrs:!0,__name:"TweenCSS.ce",props:{easeFunction:{type:Function,default:re.Easing.Linear.None}},setup(n){const e=n,t=ot({translateTo:{from:{translateTo:[0,0]},to:{translateTo:["150px","150px"]},selected:!1},translateXTo:{from:{translateXTo:0},to:{translateXTo:"150px"},selected:!1},translateYTo:{from:{translateYTo:0},to:{translateYTo:"150px"},selected:!1},translateZTo:{from:{translateZTo:0},to:{translateZTo:"150px"},selected:!1},translate3dTo:{from:{translate3dTo:[0,0,0]},to:{translate3dTo:["150px","150px","150px"]},selected:!1},rotateTo:{from:{rotateTo:0},to:{rotateTo:360},selected:!1},rotateXTo:{from:{rotateXTo:0},to:{rotateXTo:360},selected:!1},rotateYTo:{from:{rotateYTo:0},to:{rotateYTo:360},selected:!1},rotateZTo:{from:{rotateZTo:0},to:{rotateZTo:360},selected:!1},rotate3dTo:{from:{rotate3dTo:[0,0,0]},to:{rotate3dTo:[360,360,360]},selected:!1},scaleTo:{from:{scaleTo:1},to:{scaleTo:2},selected:!1},scaleXTo:{from:{scaleXTo:1},to:{scaleXTo:2},selected:!1},scaleYTo:{from:{scaleYTo:1},to:{scaleYTo:2},selected:!1},scaleZTo:{from:{scaleZTo:1},to:{scaleZTo:2},selected:!1},scale3dTo:{from:{scale3dTo:[1,1,1]},to:{scale3dTo:[2,2,2]},selected:!1},skewTo:{from:{skewTo:0},to:{skewTo:1},selected:!1},skewXTo:{from:{skewXTo:0},to:{skewXTo:1},selected:!1},skewYTo:{from:{skewYTo:0},to:{skewYTo:1},selected:!1}}),s=$();function i(o){if(!s.value)return;t[o].selected=!t[o].selected;const r={},a={};for(let l in t){const c=t[l];c.selected?(Object.assign(r,c.from),Object.assign(a,c.to)):(lc(r,c.from),lc(a,c.to))}s.value.style.transform="",je.toTweenCSS(s.value,r,a,{duration:2e3,easeFunction:e.easeFunction}).startAuto()}return Le(()=>{}),(o,r)=>(D(),L("div",Rv,[S("div",Av,[(D(!0),L(Me,null,gt(t,(a,l,c)=>(D(),Je(Te,{onClick:u=>i(l.toString()),key:l,stylePattern:a.selected?"fullfilled":"outline"},{default:Oe(()=>[Fe(_e(l),1)]),_:2},1032,["onClick","stylePattern"]))),128))]),S("div",Lv,[S("div",{class:"tween-css-target",ref_key:"tweenCSSTargetRef",ref:s},null,512)])]))}}),Gu=ee(Fv,[["styles",[`.wrap[data-v-1ee21fe2]{display:block;position:relative;overflow:hidden}.btns[data-v-1ee21fe2]{display:flex;flex-wrap:wrap}.btns>div[data-v-1ee21fe2]{margin-right:10px;margin-bottom:10px}.tween-css[data-v-1ee21fe2]{position:relative;background-color:#333}.tween-css-target[data-v-1ee21fe2]{position:absolute;top:50px;left:50px;width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
131
+ `]],["__scopeId","data-v-1ee21fe2"]]),Vv=ee(K({__name:"SVG.ce",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();ge(o,()=>{o.value&&c()});let r,a,l;function c(){r||!o.value||(r=new Se(o.value,!1),r.on("resize",(h,d)=>{i("resize",h,d)}),r.start(),a=new iu(r),l?.(a))}function u(){return new Promise(h=>{if(a)return h(a);l=h})}return Le(()=>{r?.destroy()}),e({getSVGElement:()=>o.value,getSVG:u}),(h,d)=>(D(),L("div",{ref_key:"svgRef",ref:o,class:"svg",style:B({backgroundColor:s.bgColor})},null,4))}}),[["styles",[`.svg[data-v-488db676]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
132
+ `]],["__scopeId","data-v-488db676"]]),zv=["width","height"],Hs=ee(K({__name:"Canvas.ce",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$(),r=$(),a=$(0),l=$(0);let c;ge(o,()=>{o.value&&(c=new Se(o.value,!1),c.on("resize",(_,w)=>{const C=kr();a.value=Math.min(_,C.width),l.value=Math.min(w,C.height),f()}),c.start())}),ge(r,()=>{r.value&&f()});let u,h,d;function f(){u||!r.value||!a.value||!l.value||(u=new Se(r.value,!1),u.on("resize",(_,w)=>{i("resize",_,w)}),u.start(),h=new jr(u),d?.(h))}function m(){return new Promise(_=>{if(h)return _(h);d=_})}function g(_){u&&_(u)}return Le(()=>{u?.destroy(),c?.destroy()}),e({draw:g,getCanvasElement:()=>r.value,getCanvas:m}),(_,w)=>(D(),L("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:o},[S("canvas",{ref_key:"canvasRef",ref:r,width:a.value,height:l.value,style:B({backgroundColor:s.bgColor})},null,12,zv)],512))}}),[["styles",[`.canvas-wrap[data-v-99215834]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
133
+ `]],["__scopeId","data-v-99215834"]]),Gv={class:"wrap"},jv={class:"btns"},Bv={style:{height:"400px"}},ju=ee(K({customOptions:{Button:Te,Canvas:Tt},inheritAttrs:!0,__name:"CanvasSport.ce",setup(n){const e=$(),t=$("");function s(){const h="RectGame";t.value!=h&&(t.value=h,e.value.getCanvas().then(d=>{const f=[];function m(){const I=new Ot({x:Math.random()*d.ctx.canvas.width,y:0,width:50,height:50,attrs:{fill:"#ff0000"},enableDrag:!0});return f.push(I),I}let g=m();const _=.2,w=()=>{g&&(g.ay=.2)},C=()=>{g&&(g.ay=-.2)},E=()=>{g&&(g.ay=0)},k=[];k.push(d.app.registerKeyDown({key:"ArrowDown"},w,E)),k.push(d.app.registerKeyDown({key:"ArrowRight"},w,E)),k.push(d.app.registerKeyDown({key:"ArrowUp"},C,E)),k.push(d.app.registerKeyDown({key:"ArrowLeft"},C,E)),it.register(()=>t.value!=h?(k.forEach(I=>I()),!1):(d.ctx.clearRect(),d.isMouseDown?d.draw(f):(g&&g.nextFrame({gravity:_}),g&&g.y+g.height>=d.ctx.canvas.height&&(g.y=d.ctx.canvas.height-g.height,g=m()),d.draw(f.map(I=>(g&&g!==I&&g.isIntersectRect(I)&&(g.y=I.y-g.height,g.y>=g.height?g=m():g=null),I)))),!0))}))}function i(){const h="PointWater";t.value!=h&&(t.value=h,e.value.getCanvas().then(d=>{const f=[];for(let m=0;m<80;m++){const g=new at({x:d.ctx.canvas.width/2,y:d.ctx.canvas.height,radius:2,attrs:{fill:Om()}});g.vx=Math.random()*2-1,g.vy=Math.random()*-10-10,f.push(g)}it.register(()=>t.value!=h?!1:(d.ctx.clearRect(),d.draw(f.map(m=>(m.nextFrame({gravity:.5}),(m.x-m.radius>d.ctx.canvas.width||m.x+m.radius<0||m.y-m.radius>d.ctx.canvas.height||m.y+m.radius<0)&&(m.x=d.ctx.canvas.width/2,m.y=d.ctx.canvas.height,m.vx=Math.random()*2-1,m.vy=Math.random()*-10-10),m))),!0))}))}function o(){const h="PointEase";t.value!=h&&(t.value=h,e.value.getCanvas().then(d=>{const f=d.ctx.canvas.width/2,m=d.ctx.canvas.height/2,g=new at({x:f,y:m,radius:30,attrs:{fill:"#00ff00"},targetToAfterDragFree:{targetX:f,targetY:m},enableDrag:!0});it.register(()=>t.value!=h?!1:(d.ctx.clearRect(),d.draw(g),!0))}))}function r(){const h="PointSpringChain";t.value!=h&&(t.value=h,e.value.getCanvas().then(d=>{const f=d.ctx.canvas.width/2,m=d.ctx.canvas.height/2,g=[];for(let k=0;k<3;k++)g.push(new at({x:f,y:m,radius:20,attrs:{fill:"#0000ff"}}));const _=new st({attrs:{"stroke-width":"1",stroke:"#eeeeee"}}),w=.03,C=.9,E=2;it.register(()=>t.value!=h?!1:(d.ctx.clearRect(),g.forEach((k,I)=>{if(I===0)k.nextFrameSpringTo(d.app.mousePoint,{spring:w,friction:C,gravity:E}),_.fromX=d.app.mousePoint.x,_.fromY=d.app.mousePoint.y,_.x=k.x,_.y=k.y;else{const O=g[I-1];k.nextFrameSpringTo(O,{spring:w,friction:C,gravity:E}),_.fromX=O.x,_.fromY=O.y,_.x=k.x,_.y=k.y}d.draw(_)}),d.draw(g),!0))}))}function a(){const h="PointSpringMulti";t.value!=h&&(t.value=h,e.value.getCanvas().then(d=>{const f=d.ctx.canvas.width/2,m=d.ctx.canvas.height/2,g=new at({x:f,y:m,radius:20,attrs:{fill:"#ff0000"}}),_=[];for(let C=0;C<3;C++)_.push(new at({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height,radius:10,attrs:{fill:"#00ff00"},enableDrag:!0}));const w=[new st({attrs:{"stroke-width":"1",stroke:"#eeeeee"}}),new st({attrs:{"stroke-width":"1",stroke:"#eeeeee"}}),new st({attrs:{"stroke-width":"1",stroke:"#eeeeee"}})];it.register(()=>t.value!=h?!1:(d.ctx.clearRect(),g.nextFrameSpringTo(_,{spring:.03,friction:.9}),_.forEach((C,E)=>{w[E].fromX=g.x,w[E].fromY=g.y,w[E].x=C.x,w[E].y=C.y}),d.draw([...w,..._,g]),!0))}))}function l(){const h="PointSpringConnect";t.value!=h&&(t.value=h,e.value.getCanvas().then(d=>{const f=[];for(let _=0;_<3;_++)f.push(new at({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height,radius:15,attrs:{fill:"#ff0000"},enableDrag:!0}));const m=[new st({attrs:{stroke:"#eeeeee","stroke-width":"1"}}),new st({attrs:{stroke:"#eeeeee","stroke-width":"1"}}),new st({attrs:{stroke:"#eeeeee","stroke-width":"1"}})],g={springLength:120,spring:.03,friction:.9};it.register(()=>t.value!=h?!1:(d.ctx.clearRect(),f[0].isDragging||(f[0].nextFrameSpringConnect(f[1],g),f[0].nextFrameSpringConnect(f[2],g)),f[1].isDragging||(f[1].nextFrameSpringConnect(f[0],g),f[1].nextFrameSpringConnect(f[2],g)),f[2].isDragging||(f[2].nextFrameSpringConnect(f[0],g),f[2].nextFrameSpringConnect(f[1],g)),m[0].x=f[0].x,m[0].y=f[0].y,m[0].fromX=f[1].x,m[0].fromY=f[1].y,m[1].x=f[1].x,m[1].y=f[1].y,m[1].fromX=f[2].x,m[1].fromY=f[2].y,m[2].x=f[2].x,m[2].y=f[2].y,m[2].fromX=f[0].x,m[2].fromY=f[0].y,d.draw([...m,...f]),!0))}))}function c(){const h="QuadraticBezierCurve";t.value!=h&&(t.value=h,e.value.getCanvas().then(d=>{const m=new Fs({x:50,y:d.ctx.canvas.height-50,fromX:d.ctx.canvas.width-50,fromY:d.ctx.canvas.height-50,cx:d.app.mousePoint.x,cy:d.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),g=new Fs({x:50,y:d.ctx.canvas.height-50,fromX:d.ctx.canvas.width-50,fromY:d.ctx.canvas.height-50,cx:d.app.mousePoint.x,cy:d.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});it.register(()=>t.value!=h?!1:(d.ctx.clearRect(),g.cx=m.cx=d.app.mousePoint.x,g.cy=m.cy=d.app.mousePoint.y,d.draw([m,g]),!0))}))}function u(){const h="PointsRandom";t.value=h,e.value.getCanvas().then(d=>{d.ctx.clearRect();const f=[];for(let m=0;m<10;m++){const g=new at({x:Math.random()*d.ctx.canvas.width,y:Math.random()*d.ctx.canvas.height,attrs:{stroke:"pink","stroke-width":"2"}});f.push(g),d.draw(new Ot({x:g.x,y:g.y,width:6,height:6,attrs:{fill:"#eeeeee"}}))}d.draw(new Vr(f))})}return Le(()=>{}),(h,d)=>(D(),L("div",Gv,[S("div",jv,[se(Te,{onClick:s,stylePattern:t.value=="RectGame"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Rect - 俄罗斯方块 ")]),_:1},8,["stylePattern"]),se(Te,{onClick:i,stylePattern:t.value=="PointWater"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Point - 喷泉 ")]),_:1},8,["stylePattern"]),se(Te,{onClick:o,stylePattern:t.value=="PointEase"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Point - ease ")]),_:1},8,["stylePattern"]),se(Te,{onClick:r,stylePattern:t.value=="PointSpringChain"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Point - 链式弹簧 ")]),_:1},8,["stylePattern"]),se(Te,{onClick:a,stylePattern:t.value=="PointSpringMulti"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Point - 多点弹簧 ")]),_:1},8,["stylePattern"]),se(Te,{onClick:l,stylePattern:t.value=="PointSpringConnect"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Point - 连接弹簧 ")]),_:1},8,["stylePattern"]),se(Te,{onClick:c,stylePattern:t.value=="QuadraticBezierCurve"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" QuadraticBezier - curve ")]),_:1},8,["stylePattern"]),se(Te,{onClick:u,stylePattern:t.value=="PointsRandom"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Points - random ")]),_:1},8,["stylePattern"])]),S("div",Bv,[se(Tt,{ref_key:"canvas",ref:e},null,512)])]))}}),[["styles",[`.wrap[data-v-80d991c6]{display:block;position:relative;overflow:hidden}.btns[data-v-80d991c6]{display:flex;flex-wrap:wrap}.btns>div[data-v-80d991c6]{margin-right:10px;margin-bottom:10px}
134
+ `]],["__scopeId","data-v-80d991c6"]]),Hv=n=>(yn("data-v-8278218c"),n=n(),_n(),n),Wv={class:"wrap"},Uv=Hv(()=>S("div",{class:"btns"},null,-1)),Yv={style:{height:"400px"}},Bu=ee(K({customOptions:{Button:Te,Canvas:Tt},inheritAttrs:!0,__name:"CanvasShape.ce",setup(n){const e=$();return ge(e,()=>{e.value}),Le(()=>{}),(t,s)=>(D(),L("div",Wv,[Uv,S("div",Yv,[se(Tt,{ref_key:"canvas",ref:e},null,512)])]))}}),[["styles",[`.wrap[data-v-8278218c]{display:block;position:relative;overflow:hidden}.btns[data-v-8278218c]{display:flex;flex-wrap:wrap}.btns>div[data-v-8278218c]{margin-right:10px;margin-bottom:10px}
135
+ `]],["__scopeId","data-v-8278218c"]]),Xv=K({__name:"SVG",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(n,{expose:e,emit:t}){const s=n,i=t,o=$();ge(o,()=>{o.value&&c()});let r,a,l;function c(){r||!o.value||(r=new Se(o.value,!1),r.on("resize",(h,d)=>{i("resize",h,d)}),r.start(),a=new iu(r),l?.(a))}function u(){return new Promise(h=>{if(a)return h(a);l=h})}return Le(()=>{r?.destroy()}),e({getSVGElement:()=>o.value,getSVG:u}),(h,d)=>(D(),L("div",{ref_key:"svgRef",ref:o,class:"svg",style:B({backgroundColor:s.bgColor})},null,4))}}),J1="",Hu=ee(Xv,[["__scopeId","data-v-3a8033cf"]]),qv='<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M405.614 190.524c17.843 0 32.315-14.472 32.315-32.329s-14.472-32.329-32.315-32.329c-17.87 0-32.342 14.472-32.342 32.33 0 17.856 14.471 32.328 32.342 32.328zm21.479 7.867c-.528-.333-1.11-.569-1.665-.805a37.223 37.223 0 0 0-11.78-5.189l-8.034 8.103-7.811-8.2c-.028 0-.056.014-.084.014-4.135.985-8.2 2.747-11.821 5.133-.639.264-1.277.555-1.901.93-25.1 15.387-39.502 27.57-43.956 98.79-.43 6.924 4.842 12.876 11.738 13.306.278.014.541.028.805.028 6.577 0 12.099-5.12 12.529-11.766 1.512-24.045 3.927-39.627 7.437-50.38v43.47c0 3.386.652 6.535 1.804 9.421-.083.666-.167 1.319-.167 1.998l.028 120.172c0 8.186 6.618 14.832 14.819 14.832 8.2 0 14.832-6.646 14.832-14.832V320.283c.583.028 1.18.07 1.776.07.097 0 .222-.015.333-.015v103.078c0 8.2 6.632 14.832 14.832 14.832 8.2 0 14.833-6.632 14.833-14.832l.014-119.422c1.942-3.608 3.08-7.687 3.08-12.155v-43.11c3.427 10.74 5.827 26.238 7.312 50.02.416 6.646 5.952 11.766 12.515 11.766.25 0 .527 0 .791-.028 6.91-.43 12.168-6.396 11.752-13.306-4.454-71.234-18.87-83.403-43.97-98.79h-.041zm-21.41 66.087h-.152l-7.798-10.67 7.798-52.115h.152l7.798 52.115-7.798 10.67zM63.235 217.927c0 12.682 10.267 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.281-22.95-22.935-22.95c-12.696 0-22.963 10.282-22.963 22.95zm38.211 28.527c-.374-.222-.79-.402-1.179-.569a26.82 26.82 0 0 0-8.367-3.69l-5.702 5.757-5.564-5.827c-.014 0-.042.014-.056.014a26.862 26.862 0 0 0-8.394 3.649c-.458.194-.916.388-1.346.652-15.873 9.727-25.724 17.69-29.914 55.056h17.912c.985-8.366 2.276-14.68 3.857-19.564v19.564h46.981v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.899c-4.176-37.365-14.028-45.316-29.9-55.056v.014zM86.24 293.379h-.097l-5.536-7.576 5.536-36.99h.097l5.536 36.99-5.536 7.576zm67.432-75.452c0 12.682 10.281 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.267-22.95-22.935-22.95c-12.682 0-22.963 10.282-22.963 22.95zm38.212 28.527c-.375-.222-.791-.402-1.18-.569a26.54 26.54 0 0 0-8.366-3.69l-5.703 5.757-5.55-5.827c-.014 0-.042.014-.055.014a26.723 26.723 0 0 0-8.395 3.649c-.458.194-.916.388-1.36.652-15.873 9.727-25.724 17.69-29.914 55.056h17.926c.985-8.366 2.276-14.68 3.858-19.564v19.564h46.98v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.9c-4.191-37.365-14.042-45.316-29.915-55.056v.014zm-15.221 46.925h-.111l-5.536-7.576 5.536-36.99h.11l5.537 36.99-5.536 7.576zm-45.607-104.784c42.624 0 77.297-34.673 77.297-77.297C208.353 68.674 173.68 34 131.056 34c-42.624 0-77.298 34.674-77.298 77.298s34.674 77.297 77.298 77.297zm0-134.074c31.316 0 56.776 25.46 56.776 56.777 0 31.316-25.474 56.776-56.776 56.776-31.302 0-56.777-25.46-56.777-56.776 0-31.316 25.475-56.777 56.777-56.777z"/><path d="M170.918 103.084H139.27V69.908h-16.414v49.59h48.063zm30.137 305.277l-8.464-3.121a64.461 64.461 0 0 0-.707-18.732l8.172-3.774c5.106-2.345 7.354-8.422 4.995-13.528l-4.773-10.365c-2.345-5.106-8.408-7.353-13.514-4.995l-8.187 3.774a64.241 64.241 0 0 0-13.763-12.723l3.121-8.464c1.943-5.272-.763-11.155-6.035-13.098l-10.712-3.954c-5.106-1.873-11.21.944-13.098 6.036l-3.122 8.463a65.463 65.463 0 0 0-18.73.708l-3.775-8.186c-2.345-5.106-8.422-7.34-13.528-4.995L88.57 326.18c-5.106 2.358-7.353 8.436-4.995 13.528l3.774 8.172a64.996 64.996 0 0 0-12.723 13.778l-8.45-3.122c-5.106-1.9-11.21.916-13.112 6.022l-3.94 10.712a10.136 10.136 0 0 0 .305 7.797 10.124 10.124 0 0 0 5.73 5.287l8.464 3.135a64.95 64.95 0 0 0 .708 18.732l-8.187 3.774c-5.106 2.344-7.34 8.422-4.995 13.514l4.787 10.378c2.345 5.106 8.409 7.34 13.528 4.981l8.187-3.774a64.336 64.336 0 0 0 13.778 12.724l-3.122 8.464c-.958 2.553-.847 5.314.305 7.797a10.104 10.104 0 0 0 5.716 5.315l10.712 3.954c2.553.943 5.314.832 7.798-.305a10.034 10.034 0 0 0 5.286-5.73l3.136-8.464a64.931 64.931 0 0 0 18.731-.708l3.76 8.186c2.345 5.092 8.422 7.34 13.528 4.981l10.365-4.773c5.12-2.345 7.354-8.408 4.995-13.528l-3.774-8.172a64.24 64.24 0 0 0 12.71-13.778l8.463 3.136c2.567.957 5.328.832 7.812-.306 2.483-1.137 4.343-3.177 5.286-5.716l3.955-10.712c1.956-5.272-.736-11.141-6.022-13.084l-.014-.014zm-56.083 26.64c-5.342 2.456-11.017 3.705-16.858 3.705-15.693 0-30.08-9.213-36.644-23.463-9.296-20.202-.43-44.192 19.758-53.488a39.873 39.873 0 0 1 16.845-3.704c15.692 0 30.08 9.199 36.643 23.448 9.297 20.202.43 44.206-19.744 53.502zm142.635-185.578V76.458h-52.406V87.82h41.043v161.602H235.2v13.986h41.043v176.227H235.2v11.363h52.406V263.41h47.647l-.805-13.986z"/></g></svg>',Kv={class:"btns"},Zv={style:{height:"400px"}},Qv={style:{height:"400px"}},Wu=ee(K({customOptions:{Button:Te,SVG:Hu,Canvas:Tt},inheritAttrs:!0,__name:"SVGAndCanvas.ce",setup(n,{expose:e}){const t=$(""),s=$(),i=$();function o(){const l="PathDGroup";if(t.value==l||!s.value||!i.value)return;t.value=l;const c=new Ui({svg:qv,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}}),u=new at({x:0,y:0,radius:6,attrs:{fill:"#ff0000"}});let h;const d=new at({x:0,y:0,radius:3,attrs:{fill:"#00ff00"}});let f,m=[c,u,d],g,_,w=0,C=c.paths[w].getTotalLength(),E=0;const k=.01;s.value.getSVG().then(I=>{I.clear(),I.path(c),h=I.path(u),f=I.path(d),I.clickInPath(O=>{_&&I.delete(_),g&&(g.restore(),I.update(g)),g=O,O.save(),O.attrs.fill="pink",O.attrs.stroke="green",I.update(O);const R=O.getBoundingClientRect();R.attrs.fill="none",R.attrs.strokeWidth="4",R.attrs.stroke="#0000ff",_=I.path(R)}),it.register(()=>{if(t.value!==l)return!1;E>1&&(w++,E=0,w>c.paths.length-1&&(w=0),C=c.paths[w].getTotalLength());let{x:O,y:R}=c.paths[w].interpolate(E);h.x=O,h.y=R,I.update(h);let{x:ie,y:oe}=c.paths[w].getPointAtLength(E*C);return f.x=ie,f.y=oe,I.update(f),E+=k,I.update(c),!0})}),i.value.getCanvas().then(I=>{I.draw(m),I.clickInPath(O=>{I.ctx.clearRect(),g&&g.restore(),g=O,O.save(),O.attrs.fill="pink",O.attrs.stroke="green";const R=O.getBoundingClientRect();R.attrs.fill="none",R.attrs.strokeWidth="4",R.attrs.stroke="#0000ff",m=[c,R,u,d],I.draw(m)}),it.register(()=>{if(t.value!==l)return!1;E>1&&(w++,E=0,w>c.paths.length-1&&(w=0),C=c.paths[w].getTotalLength()),I.ctx.clearRect();let{x:O,y:R}=c.paths[w].interpolate(E);u.x=O,u.y=R;let{x:ie,y:oe}=c.paths[w].getPointAtLength(E*C);return d.x=ie,d.y=oe,E+=k,I.draw(m),!0})})}function r(){const l="Shapes";if(t.value==l||!s.value||!i.value)return;t.value=l;const c=new au({x:100,y:100,scaleOnOrigin:.5,attrs:{fill:"#5a82f0"},enableDrag:!0}),u=new Ot({width:100,height:60,x:200,y:40,borderRadius:10,attrs:{fill:"pink"},enableDrag:!0}),h=new Fm({x:400,y:100,scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)"},enableDrag:!0});s.value.getSVG().then(d=>{d.clear();const f=d.path(c),m=d.path(u),g=d.path(h);it.register(()=>t.value!==l?!1:(d.update(f),d.update(m),d.update(g),!0))}),i.value.getCanvas().then(d=>{it.register(()=>t.value!==l?!1:(d.ctx.clearRect(),d.draw([c,u,h]),!0))})}function a(){const l="Arrow";if(t.value==l||!s.value||!i.value)return;t.value=l;const c=new au({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:"pink"}});s.value.getSVG().then(u=>{const h=new st({x:u.app.width/2,y:u.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});u.clear();const d=u.path(c);u.path(h),it.register(()=>t.value!==l?!1:(u.update(d),h.fromX=d.x,h.fromY=d.y,u.update(h),!0))}),i.value.getCanvas().then(u=>{const h=new st({x:u.app.width/2,y:u.app.height/2,attrs:{"stroke-width":"2",stroke:"pink"}});it.register(()=>t.value!=l?!1:(u.ctx.clearRect(),h.fromX=c.x,h.fromY=c.y,u.draw([h,c]),console.log(`distance: ${c.distanceTo(h)}`),!0))})}return Le(()=>{}),e({}),(l,c)=>(D(),L(Me,null,[S("div",Kv,[se(Te,{onClick:o,stylePattern:t.value=="PathDGroup"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" PathDGroup ")]),_:1},8,["stylePattern"]),se(Te,{onClick:r,stylePattern:t.value=="Shapes"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Shapes ")]),_:1},8,["stylePattern"]),se(Te,{onClick:a,stylePattern:t.value=="Arrow"?"fullfilled":"outline"},{default:Oe(()=>[Fe(" Arrow ")]),_:1},8,["stylePattern"])]),S("div",Zv,[se(Hu,{ref_key:"svgRef",ref:s},null,512)]),S("div",Qv,[se(Tt,{ref_key:"canvasRef",ref:i},null,512)])],64))}}),[["styles",[`.btns[data-v-32a94c45]{display:flex;flex-wrap:wrap}.btns>div[data-v-32a94c45]{margin-right:10px;margin-bottom:10px}
136
+ `]],["__scopeId","data-v-32a94c45"]]),Jv=["fill"],ey=["fill"],ty=K({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{style:B(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,Jv),S("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,ey)],4))}}),ny=ee(ty,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
137
+ `]],["__scopeId","data-v-8fe3f9fd"]]),Kr=n=>(yn("data-v-7aebdea0"),n=n(),_n(),n),sy=[Kr(()=>S("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Kr(()=>S("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Kr(()=>S("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],iy=K({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{style:B(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},sy,4))}}),oy=ee(iy,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
138
+ `]],["__scopeId","data-v-7aebdea0"]]),ry=["width","height"],ay=["fill"],ly=K({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[S("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,ay)],8,ry))}}),cy=ee(ly,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
139
+ `]],["__scopeId","data-v-8745630f"]]),uy=["width","height"],hy=["fill"],dy=K({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:Z.colorGrayCC}},setup(n){const e=n;return(t,s)=>(D(),L("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:e.color},null,8,hy)],8,uy))}}),fy=ee(dy,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
140
+ `]],["__scopeId","data-v-0e77f86d"]]),py={class:"loading-1"},my=K({__name:"Loading1.ce",props:{color:{default:Z.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(D(),L("div",py,[S("div",{class:"rect1",style:t}),S("div",{class:"rect2",style:t}),S("div",{class:"rect3",style:t}),S("div",{class:"rect4",style:t}),S("div",{class:"rect5",style:t})]))}}),gy=ee(my,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
141
+ `]],["__scopeId","data-v-f7deb691"]]),vy={class:"loading-2"},yy=K({__name:"Loading2.ce",props:{color:{default:Z.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(D(),L("div",vy,[S("div",{class:"dot1",style:t}),S("div",{class:"dot2",style:t})]))}}),_y=ee(yy,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
142
+ `]],["__scopeId","data-v-945f5b2e"]]),by=K({__name:"Loading3.ce",props:{fromColor:{default:Z.colorPrimary},toColor:{default:Z.colorRed}},setup(n){const e=n,t=`
140
143
  @keyframes snake {
141
144
  0% {
142
145
  opacity: 0.3;
@@ -155,20 +158,20 @@ Expected function or array of functions, received type ${typeof t}.`),Je)}functi
155
158
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
156
159
  }
157
160
  }
158
- `,s={backgroundColor:e.fromColor,width:"20%"},i=$();return me(i,()=>{i.value&&ee.setStyleSheet(n,i.value)}),mn(()=>{}),Re(()=>{}),(o,r)=>(I(),L("div",{class:"loading-3",ref_key:"loading3",ref:i},[k("div",{class:"dot",style:B({...s,left:"0"})},null,4),k("div",{class:"dot",style:B({...s,left:"20%"})},null,4),k("div",{class:"dot",style:B({...s,left:"40%"})},null,4),k("div",{class:"dot",style:B({...s,left:"60%"})},null,4),k("div",{class:"dot",style:B({...s,left:"80%"})},null,4)],512))}}),py=Q(fy,[["styles",[`.loading-3[data-v-47c42038]{position:relative;display:inline-block;width:100%;height:100%;text-align:center;animation:rotate 2s infinite linear}.dot[data-v-47c42038]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-47c42038]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-47c42038]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-47c42038]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-47c42038]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-47c42038]:nth-child(5){animation-delay:.8s}
159
- `]],["__scopeId","data-v-47c42038"]]),my={class:"loading-4"},gy=Z({__name:"Loading4.ce",props:{color:{default:q.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(I(),L("div",my,[k("div",{class:"rect",style:n})]))}}),vy=Q(gy,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
160
- `]],["__scopeId","data-v-b2b74418"]]),yy={class:"loading-5"},_y=Z({__name:"Loading5.ce",props:{color:{default:q.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(I(),L("div",yy,[k("div",{class:"cube1",style:n}),k("div",{class:"cube2",style:n})]))}}),by=Q(_y,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
161
- `]],["__scopeId","data-v-2e49b1eb"]]),xy={class:"loading-6"},wy=Z({__name:"Loading6.ce",props:{color:{default:q.colorPrimary}},setup(t){const n={backgroundColor:t.color};return(s,i)=>(I(),L("div",xy,[k("div",{style:n}),k("div",{style:n}),k("div",{style:n})]))}}),Cy=Q(wy,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
162
- `]],["__scopeId","data-v-0e771b32"]]),Ey=[(t=>(Mn("data-v-aeb2a925"),t=t(),Rn(),t))(()=>k("div",null,null,-1))],Sy=Z({__name:"Loading7.ce",props:{color:{default:q.colorPrimary}},setup(t){const e=t,n=`
161
+ `,s={backgroundColor:e.fromColor,width:"20%"},i=$();return ge(i,()=>{i.value&&X.setStyleSheet(t,i.value)}),bn(()=>{}),Le(()=>{}),(o,r)=>(D(),L("div",{class:"loading-3",ref_key:"loading3",ref:i},[S("div",{class:"dot",style:B({...s,left:"0"})},null,4),S("div",{class:"dot",style:B({...s,left:"20%"})},null,4),S("div",{class:"dot",style:B({...s,left:"40%"})},null,4),S("div",{class:"dot",style:B({...s,left:"60%"})},null,4),S("div",{class:"dot",style:B({...s,left:"80%"})},null,4)],512))}}),xy=ee(by,[["styles",[`.loading-3[data-v-47c42038]{position:relative;display:inline-block;width:100%;height:100%;text-align:center;animation:rotate 2s infinite linear}.dot[data-v-47c42038]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-47c42038]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-47c42038]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-47c42038]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-47c42038]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-47c42038]:nth-child(5){animation-delay:.8s}
162
+ `]],["__scopeId","data-v-47c42038"]]),wy={class:"loading-4"},Ey=K({__name:"Loading4.ce",props:{color:{default:Z.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(D(),L("div",wy,[S("div",{class:"rect",style:t})]))}}),Cy=ee(Ey,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
163
+ `]],["__scopeId","data-v-b2b74418"]]),Sy={class:"loading-5"},ky=K({__name:"Loading5.ce",props:{color:{default:Z.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(D(),L("div",Sy,[S("div",{class:"cube1",style:t}),S("div",{class:"cube2",style:t})]))}}),Ty=ee(ky,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
164
+ `]],["__scopeId","data-v-2e49b1eb"]]),Py={class:"loading-6"},Oy=K({__name:"Loading6.ce",props:{color:{default:Z.colorPrimary}},setup(n){const t={backgroundColor:n.color};return(s,i)=>(D(),L("div",Py,[S("div",{style:t}),S("div",{style:t}),S("div",{style:t})]))}}),Ny=ee(Oy,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
165
+ `]],["__scopeId","data-v-0e771b32"]]),Iy=[(n=>(yn("data-v-aeb2a925"),n=n(),_n(),n))(()=>S("div",null,null,-1))],Dy=K({__name:"Loading7.ce",props:{color:{default:Z.colorPrimary}},setup(n){const e=n,t=`
163
166
  :root {
164
167
  --loading-7-bg-color: ${e.color}
165
168
  }
166
169
  :host {
167
170
  --loading-7-bg-color: ${e.color}
168
171
  }
169
- `,s=$();return me(s,()=>{s.value&&ee.setStyleSheet(n,s.value)}),mn(()=>{}),Re(()=>{}),(i,o)=>(I(),L("div",{class:"loading-7",ref_key:"loading7",ref:s},Ey,512))}}),ky=Q(Sy,[["styles",[`.loading-7[data-v-aeb2a925]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-aeb2a925]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-aeb2a925]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-aeb2a925 .5s linear infinite}.loading-7>div[data-v-aeb2a925]:after{content:"";width:100%;height:100%;animation:animate-aeb2a925 .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-aeb2a925{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-aeb2a925{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
170
- `]],["__scopeId","data-v-aeb2a925"]]),Ty={class:"loading-8"},Py={viewBox:"25 25 50 50"},Ny=Z({__name:"Loading8.ce",props:{color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("div",Ty,[(I(),L("svg",Py,[k("circle",{cx:"50",cy:"50",r:"20",style:B(["stroke: "+e.color])},null,4)]))]))}}),Bu=Q(Ny,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
171
- `]],["__scopeId","data-v-51a259a7"]]),Oy={class:"loading-9"},Iy=Z({__name:"Loading9.ce",props:{color:{default:q.colorPrimary}},setup(t){const n={borderTopColor:t.color};return(s,i)=>(I(),L("div",Oy,[k("div",{style:n})]))}}),$y=Q(Iy,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
172
- `]],["__scopeId","data-v-ee782ac8"]]),Dy={class:"loading-10"},My={viewBox:"0 0 50 50"},Ry=Z({__name:"Loading10.ce",props:{color:{default:q.colorPrimary}},setup(t){const e=t;return(n,s)=>(I(),L("div",Dy,[(I(),L("svg",My,[k("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:B(["stroke: rgba(0,0,0,0.1)"])},null,4),k("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:B(["fill: "+e.color])},null,4)]))]))}}),Ay=Q(Ry,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
173
- `]],["__scopeId","data-v-984ad184"]]);class Ly extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(e=>{if(e.media){const n=()=>{(e.media===this.video.currentSrc||!this.previousSiblingIsPlaying(e,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:e.media,handler:n}),window.matchMedia(e.media).addEventListener("change",n)}})}unbindMediaListeners(){this.listenedMedia.forEach(e=>{window.matchMedia(e.media).removeEventListener("change",e.handler)})}previousSiblingIsPlaying(e,n){const s=e;for(;e.previousElementSibling;)if(s.src===n)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const e=this.video.currentTime,n=this.video.playState;this.video.load();const s=()=>{this.video.playState=n,this.video.currentTime=e.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",s)};this.video.addEventListener("loadeddata",s)}}const Fy=Ly;function Vy(t,e="style.css"){for(let n of t){const s=document.querySelector(n)?.shadowRoot;if(s){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),s.appendChild(i)}}}const Wr={},Ur={},et=(t,e,n=!0)=>{const s=t.__name;Wr[s]=[];let i=[...t.styles||[]],o=0;for(let r in t.customOptions)Wr[s].push(r),`${t.customOptions[r].__scopeId}`,i=[...(Wr[r]||[]).reduce((l,a)=>(l.push(...(Ur[a]||[]).map(c=>ec(c))),l),[]),...(e[o++]?.styles||[]).map(l=>ec(l)),...i],Ur[r]=i;if(n)t.styles=i;else for(let r of t.styles){const l=document.createElement("style");l.innerHTML=r,document.head.insertBefore(l,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return Ur[s]=i,t},zy=()=>{const t=ue(lu);customElements.define("yz-icon",t);const e=ue(bn);customElements.define("yz-button",e);const n=ue(O0);customElements.define("yz-layout-mobile",n);const s=ue(I0);customElements.define("yz-layout-center",s),customElements.define("yz-loading-1",ue(cy)),customElements.define("yz-loading-2",ue(dy)),customElements.define("yz-loading-3",ue(py)),customElements.define("yz-loading-4",ue(vy)),customElements.define("yz-loading-5",ue(by)),customElements.define("yz-loading-6",ue(Cy)),customElements.define("yz-loading-7",ue(ky)),customElements.define("yz-loading-8",ue(Bu)),customElements.define("yz-loading-9",ue($y)),customElements.define("yz-loading-10",ue(Ay)),et(Bn,[Yi]);const i=ue(Bn);customElements.define("yz-pop",i),et(Xi,[Yi,Bn,lu,bn]);const o=ue(Xi);customElements.define("yz-dialog",o),et(ku,[Yi,Bn,Xi,Bu]);const r=ue(ku);customElements.define("yz-dialog-loading",r),et(Tu,[Yi,Bn,Xi]);const l=ue(Tu);customElements.define("yz-dialog-toast",l);const a=ue(sg);customElements.define("yz-select",a),et(cu,[ry]);const c=ue(cu);customElements.define("yz-select-absolute",c);const u=ue(dg);customElements.define("yz-switch",u);const h=ue(_g);customElements.define("yz-radiogroup",h);const d=ue(kg);customElements.define("yz-checkboxgroup",d),et(Su,[Bn,bn]);const f=ue(Su);customElements.define("yz-popover",f);const m=ue(wv);customElements.define("yz-resize-observer",m);const v=ue(Cv);customElements.define("yz-map-tianditu",v),et(Gr,[Bn,Qv]);const y=ue(Gr);customElements.define("yz-plate-keyboard",y),et(Ou,[qv,Gr]);const w=ue(Ou);customElements.define("yz-plate-mobile",w),et(du,[ny]);const E=ue(du);customElements.define("yz-slide-left-item",E);const C=ue(vv);customElements.define("yz-plate-display",C);const S=ue(Z0);customElements.define("yz-tabs",S);const D=ue(Ev);customElements.define("yz-fps-stats",D),et(jr,[bn,As]);const N=ue(jr);customElements.define("yz-ease-graph-display",N),et($u,[jr]);const R=ue($u);customElements.define("yz-ease-group-graph-display",R),et(Br,[bn,As]);const ae=ue(Br);customElements.define("yz-interpolation-graph-display",ae),et(Fu,[Br]);const le=ue(Fu);customElements.define("yz-interpolation-group-graph-display",le);const he=ue(zr);customElements.define("yz-progress-bar",he),et(Pu,[zr]);const Ne=ue(Pu);customElements.define("yz-page-vertical-scroll-progress-bar",Ne),et(Vu,[bn]);const ke=ue(Vu);customElements.define("yz-tween-css",ke),et(zu,[bn,As]);const qe=ue(zu);customElements.define("yz-canvas-sport",qe),et(Gu,[bn,As]);const Ke=ue(Gu);customElements.define("yz-canvas-shape",Ke),et(ju,[As]);const ze=ue(ju);customElements.define("yz-canvas-from-svg",ze),customElements.define("yz-hand-write-panel",ue(J0)),et(bu,[zr]);const Ce=ue(bu);customElements.define("yz-video",Ce),customElements.define("yz-input",ue(Lg)),customElements.define("yz-accordion",ue(m0)),customElements.define("yz-image",ue(xu)),et(Eu,[xu]);const ce=ue(Eu);customElements.define("yz-image-view",ce);const M=ue(p0);customElements.define("yz-mouse-over",M),customElements.define("yz-responsive-video",Fy);const W=document.getElementById("teleport")||document.documentElement,j=document.createElement("yz-dialog-toast");j.id="globalDialogToast",W?.appendChild(j);const fe=document.createElement("yz-dialog-loading");fe.id="globalDialogLoading",W?.appendChild(fe);const te=document.createElement("yz-dialog");te.id="globalDialog",W?.appendChild(te);const Se=document.createElement("yz-plate-keyboard");Se.id="globalPlateKeyboard",W?.appendChild(Se)};return Qe.dialog=r0,Qe.install=zy,Qe.linkChildrenComponentsStyles=Vy,Qe.loading=o0,Qe.mergeChildComponentCSS=et,Qe.plateKeyboard=_u,Qe.popAbsolute=Hi,Qe.popAbsoluteSample=d0,Qe.popBottom=pu,Qe.popBottomSample=a0,Qe.popCenter=yu,Qe.popCenterSample=h0,Qe.popLeft=gu,Qe.popLeftSample=c0,Qe.popRight=vu,Qe.popRightSample=u0,Qe.popTop=mu,Qe.popTopSample=l0,Qe.toast=Vr,Object.defineProperty(Qe,Symbol.toStringTag,{value:"Module"}),Qe}({});
172
+ `,s=$();return ge(s,()=>{s.value&&X.setStyleSheet(t,s.value)}),bn(()=>{}),Le(()=>{}),(i,o)=>(D(),L("div",{class:"loading-7",ref_key:"loading7",ref:s},Iy,512))}}),$y=ee(Dy,[["styles",[`.loading-7[data-v-aeb2a925]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-aeb2a925]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-aeb2a925]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-aeb2a925 .5s linear infinite}.loading-7>div[data-v-aeb2a925]:after{content:"";width:100%;height:100%;animation:animate-aeb2a925 .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-aeb2a925{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-aeb2a925{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
173
+ `]],["__scopeId","data-v-aeb2a925"]]),My={class:"loading-8"},Ry={viewBox:"25 25 50 50"},Ay=K({__name:"Loading8.ce",props:{color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("div",My,[(D(),L("svg",Ry,[S("circle",{cx:"50",cy:"50",r:"20",style:B(["stroke: "+e.color])},null,4)]))]))}}),Uu=ee(Ay,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
174
+ `]],["__scopeId","data-v-51a259a7"]]),Ly={class:"loading-9"},Fy=K({__name:"Loading9.ce",props:{color:{default:Z.colorPrimary}},setup(n){const t={borderTopColor:n.color};return(s,i)=>(D(),L("div",Ly,[S("div",{style:t})]))}}),Vy=ee(Fy,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
175
+ `]],["__scopeId","data-v-ee782ac8"]]),zy={class:"loading-10"},Gy={viewBox:"0 0 50 50"},jy=K({__name:"Loading10.ce",props:{color:{default:Z.colorPrimary}},setup(n){const e=n;return(t,s)=>(D(),L("div",zy,[(D(),L("svg",Gy,[S("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:B(["stroke: rgba(0,0,0,0.1)"])},null,4),S("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:B(["fill: "+e.color])},null,4)]))]))}}),By=ee(jy,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
176
+ `]],["__scopeId","data-v-984ad184"]]);class Hy extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(e=>{if(e.media){const t=()=>{(e.media===this.video.currentSrc||!this.previousSiblingIsPlaying(e,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:e.media,handler:t}),window.matchMedia(e.media).addEventListener("change",t)}})}unbindMediaListeners(){this.listenedMedia.forEach(e=>{window.matchMedia(e.media).removeEventListener("change",e.handler)})}previousSiblingIsPlaying(e,t){const s=e;for(;e.previousElementSibling;)if(s.src===t)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const e=this.video.currentTime,t=this.video.playState;this.video.load();const s=()=>{this.video.playState=t,this.video.currentTime=e.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",s)};this.video.addEventListener("loadeddata",s)}}const Wy=Hy;function Uy(n,e="style.css"){for(let t of n){const s=document.querySelector(t)?.shadowRoot;if(s){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),s.appendChild(i)}}}const Zr={},Qr={},et=(n,e,t=!0)=>{const s=n.__name;Zr[s]=[];let i=[...n.styles||[]],o=0;for(let r in n.customOptions)Zr[s].push(r),`${n.customOptions[r].__scopeId}`,i=[...(Zr[r]||[]).reduce((a,l)=>(a.push(...(Qr[l]||[]).map(c=>oc(c))),a),[]),...(e[o++]?.styles||[]).map(a=>oc(a)),...i],Qr[r]=i;if(t)n.styles=i;else for(let r of n.styles){const a=document.createElement("style");a.innerHTML=r,document.head.insertBefore(a,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return Qr[s]=i,n},Yy=()=>{const n=de(uu);customElements.define("yz-icon",n);const e=de(an);customElements.define("yz-button",e);const t=de(N0);customElements.define("yz-layout-mobile",t);const s=de(I0);customElements.define("yz-layout-center",s),customElements.define("yz-loading-1",de(gy)),customElements.define("yz-loading-2",de(_y)),customElements.define("yz-loading-3",de(xy)),customElements.define("yz-loading-4",de(Cy)),customElements.define("yz-loading-5",de(Ty)),customElements.define("yz-loading-6",de(Ny)),customElements.define("yz-loading-7",de($y)),customElements.define("yz-loading-8",de(Uu)),customElements.define("yz-loading-9",de(Vy)),customElements.define("yz-loading-10",de(By)),et(Un,[Ji]);const i=de(Un);customElements.define("yz-pop",i),et(eo,[Ji,Un,uu,an]);const o=de(eo);customElements.define("yz-dialog",o),et(Pu,[Ji,Un,eo,Uu]);const r=de(Pu);customElements.define("yz-dialog-loading",r),et(Ou,[Ji,Un,eo]);const a=de(Ou);customElements.define("yz-dialog-toast",a);const l=de(sg);customElements.define("yz-select",l),et(hu,[fy]);const c=de(hu);customElements.define("yz-select-absolute",c);const u=de(dg);customElements.define("yz-switch",u);const h=de(_g);customElements.define("yz-radiogroup",h);const d=de(kg);customElements.define("yz-checkboxgroup",d),et(Tu,[Un,an]);const f=de(Tu);customElements.define("yz-popover",f);const m=de(wv);customElements.define("yz-resize-observer",m);const g=de(Ev);customElements.define("yz-map-tianditu",g),et(Yr,[Un,oy]);const _=de(Yr);customElements.define("yz-plate-keyboard",_),et(Du,[ny,Yr]);const w=de(Du);customElements.define("yz-plate-mobile",w),et(pu,[cy]);const C=de(pu);customElements.define("yz-slide-left-item",C);const E=de(vv);customElements.define("yz-plate-display",E);const k=de(Z0);customElements.define("yz-tabs",k);const I=de(Cv);customElements.define("yz-fps-stats",I),et(Xr,[an,Hs]);const O=de(Xr);customElements.define("yz-ease-graph-display",O),et(Mu,[Xr]);const R=de(Mu);customElements.define("yz-ease-group-graph-display",R),et(qr,[an,Hs]);const ie=de(qr);customElements.define("yz-interpolation-graph-display",ie),et(zu,[qr]);const oe=de(zu);customElements.define("yz-interpolation-group-graph-display",oe);const he=de(Ur);customElements.define("yz-progress-bar",he),et(Nu,[Ur]);const xe=de(Nu);customElements.define("yz-page-vertical-scroll-progress-bar",xe),et(Gu,[an]);const ye=de(Gu);customElements.define("yz-tween-css",ye),et(ju,[an,Hs]);const Ie=de(ju);customElements.define("yz-canvas-sport",Ie),et(Bu,[an,Hs]);const De=de(Bu);customElements.define("yz-canvas-shape",De),et(Wu,[an,Vv,Hs]);const ve=de(Wu);customElements.define("yz-svg-and-canvas",ve),customElements.define("yz-hand-write-panel",de(J0)),et(wu,[Ur]);const ue=de(wu);customElements.define("yz-video",ue),customElements.define("yz-input",de(Lg)),customElements.define("yz-accordion",de(m0)),customElements.define("yz-image",de(Eu)),et(ku,[Eu]);const Q=de(ku);customElements.define("yz-image-view",Q);const M=de(p0);customElements.define("yz-mouse-over",M),customElements.define("yz-responsive-video",Wy);const H=document.getElementById("teleport")||document.documentElement,G=document.createElement("yz-dialog-toast");G.id="globalDialogToast",H?.appendChild(G);const pe=document.createElement("yz-dialog-loading");pe.id="globalDialogLoading",H?.appendChild(pe);const ne=document.createElement("yz-dialog");ne.id="globalDialog",H?.appendChild(ne);const Pe=document.createElement("yz-plate-keyboard");Pe.id="globalPlateKeyboard",H?.appendChild(Pe)};return Ze.dialog=r0,Ze.install=Yy,Ze.linkChildrenComponentsStyles=Uy,Ze.loading=o0,Ze.mergeChildComponentCSS=et,Ze.plateKeyboard=xu,Ze.popAbsolute=Ki,Ze.popAbsoluteSample=d0,Ze.popBottom=gu,Ze.popBottomSample=a0,Ze.popCenter=bu,Ze.popCenterSample=h0,Ze.popLeft=yu,Ze.popLeftSample=c0,Ze.popRight=_u,Ze.popRightSample=u0,Ze.popTop=vu,Ze.popTopSample=l0,Ze.toast=Wr,Object.defineProperty(Ze,Symbol.toStringTag,{value:"Module"}),Ze}({});
174
177
  //# sourceMappingURL=yz_custom_element.iife.js.map