@zyzgroup/core-vue 0.0.37 → 0.0.38

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.
@@ -2,27 +2,27 @@ var ZYZGroupCoreVue=function(at){"use strict";/**
2
2
  * @vue/shared v3.4.21
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function un(s,t){const e=new Set(s.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const Xt={}.NODE_ENV!=="production"?Object.freeze({}):{},hn={}.NODE_ENV!=="production"?Object.freeze([]):[],oe=()=>{},kh=()=>!1,En=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),yi=s=>s.startsWith("onUpdate:"),ne=Object.assign,Nr=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Eh=Object.prototype.hasOwnProperty,At=(s,t)=>Eh.call(s,t),bt=Array.isArray,Bs=s=>vi(s)==="[object Map]",Ya=s=>vi(s)==="[object Set]",Tt=s=>typeof s=="function",re=s=>typeof s=="string",fn=s=>typeof s=="symbol",Yt=s=>s!==null&&typeof s=="object",Fr=s=>(Yt(s)||Tt(s))&&Tt(s.then)&&Tt(s.catch),Xa=Object.prototype.toString,vi=s=>Xa.call(s),Lr=s=>vi(s).slice(8,-1),ja=s=>vi(s)==="[object Object]",$r=s=>re(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Pn=un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ph=un("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),_i=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},Oh=/-(\w)/g,dn=_i(s=>s.replace(Oh,(t,e)=>e?e.toUpperCase():"")),Ih=/\B([A-Z])/g,vs=_i(s=>s.replace(Ih,"-$1").toLowerCase()),bi=_i(s=>s.charAt(0).toUpperCase()+s.slice(1)),Gs=_i(s=>s?`on${bi(s)}`:""),_s=(s,t)=>!Object.is(s,t),On=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},xi=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},Dh=s=>{const t=parseFloat(s);return isNaN(t)?s:t};let Ua;const Vr=()=>Ua||(Ua=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function z(s){if(bt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],i=re(n)?Nh(n):z(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(re(s)||Yt(s))return s}const Rh=/;(?![^(]*\))/g,Ah=/:([^]+)/,Mh=/\/\*[^]*?\*\//g;function Nh(s){const t={};return s.replace(Mh,"").split(Rh).forEach(e=>{if(e){const n=e.split(Ah);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ie(s){let t="";if(re(s))t=s;else if(bt(s))for(let e=0;e<s.length;e++){const n=ie(s[e]);n&&(t+=n+" ")}else if(Yt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Fh=un("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ha(s){return!!s||s===""}const xt=s=>re(s)?s:s==null?"":bt(s)||Yt(s)&&(s.toString===Xa||!Tt(s.toString))?JSON.stringify(s,Wa,2):String(s),Wa=(s,t)=>t&&t.__v_isRef?Wa(s,t.value):Bs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],r)=>(e[zr(n,r)+" =>"]=i,e),{})}:Ya(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>zr(e))}:fn(t)?zr(t):Yt(t)&&!bt(t)&&!ja(t)?String(t):t,zr=(s,t="")=>{var e;return fn(s)?`Symbol(${(e=s.description)!=null?e:t})`:s};/**
5
+ **/function un(s,t){const e=new Set(s.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const Xt={}.NODE_ENV!=="production"?Object.freeze({}):{},hn={}.NODE_ENV!=="production"?Object.freeze([]):[],oe=()=>{},kh=()=>!1,En=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),yi=s=>s.startsWith("onUpdate:"),ie=Object.assign,Nr=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Eh=Object.prototype.hasOwnProperty,At=(s,t)=>Eh.call(s,t),xt=Array.isArray,Bs=s=>vi(s)==="[object Map]",Ya=s=>vi(s)==="[object Set]",Tt=s=>typeof s=="function",re=s=>typeof s=="string",fn=s=>typeof s=="symbol",Yt=s=>s!==null&&typeof s=="object",Fr=s=>(Yt(s)||Tt(s))&&Tt(s.then)&&Tt(s.catch),Xa=Object.prototype.toString,vi=s=>Xa.call(s),Lr=s=>vi(s).slice(8,-1),ja=s=>vi(s)==="[object Object]",$r=s=>re(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Pn=un(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ph=un("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),_i=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},Oh=/-(\w)/g,dn=_i(s=>s.replace(Oh,(t,e)=>e?e.toUpperCase():"")),Ih=/\B([A-Z])/g,vs=_i(s=>s.replace(Ih,"-$1").toLowerCase()),bi=_i(s=>s.charAt(0).toUpperCase()+s.slice(1)),Gs=_i(s=>s?`on${bi(s)}`:""),_s=(s,t)=>!Object.is(s,t),On=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},xi=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},Dh=s=>{const t=parseFloat(s);return isNaN(t)?s:t};let Ua;const Vr=()=>Ua||(Ua=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function z(s){if(xt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],i=re(n)?Nh(n):z(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(re(s)||Yt(s))return s}const Rh=/;(?![^(]*\))/g,Ah=/:([^]+)/,Mh=/\/\*[^]*?\*\//g;function Nh(s){const t={};return s.replace(Mh,"").split(Rh).forEach(e=>{if(e){const n=e.split(Ah);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Kt(s){let t="";if(re(s))t=s;else if(xt(s))for(let e=0;e<s.length;e++){const n=Kt(s[e]);n&&(t+=n+" ")}else if(Yt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Fh=un("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ha(s){return!!s||s===""}const bt=s=>re(s)?s:s==null?"":xt(s)||Yt(s)&&(s.toString===Xa||!Tt(s.toString))?JSON.stringify(s,Wa,2):String(s),Wa=(s,t)=>t&&t.__v_isRef?Wa(s,t.value):Bs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],r)=>(e[zr(n,r)+" =>"]=i,e),{})}:Ya(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>zr(e))}:fn(t)?zr(t):Yt(t)&&!xt(t)&&!ja(t)?String(t):t,zr=(s,t="")=>{var e;return fn(s)?`Symbol(${(e=s.description)!=null?e:t})`:s};/**
6
6
  * @vue/reactivity v3.4.21
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function bs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let Ge;class Lh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=Ge;try{return Ge=this,t()}finally{Ge=e}}else({}).NODE_ENV!=="production"&&bs("cannot run an inactive effect scope.")}on(){Ge=this}off(){Ge=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){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 $h(s,t=Ge){t&&t.active&&t.effects.push(s)}function Vh(){return Ge}let Ys;class Br{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,$h(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,ws();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(zh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Cs()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xs,e=Ys;try{return xs=!0,Ys=this,this._runnings++,qa(this),this.fn()}finally{Za(this),this._runnings--,Ys=e,xs=t}}stop(){var t;this.active&&(qa(this),Za(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function zh(s){return s.value}function qa(s){s._trackId++,s._depsLength=0}function Za(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)Qa(s.deps[t],s);s.deps.length=s._depsLength}}function Qa(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let xs=!0,Gr=0;const Ka=[];function ws(){Ka.push(xs),xs=!1}function Cs(){const s=Ka.pop();xs=s===void 0?!0:s}function Yr(){Gr++}function Xr(){for(Gr--;!Gr&&jr.length;)jr.shift()()}function Ja(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&Qa(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,ne({effect:s},e)))}}const jr=[];function tl(s,t,e){var n;Yr();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,ne({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&jr.push(i.scheduler)))}Xr()}const el=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},Ur=new WeakMap,Xs=Symbol({}.NODE_ENV!=="production"?"iterate":""),Hr=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function pe(s,t,e){if(xs&&Ys){let n=Ur.get(s);n||Ur.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=el(()=>n.delete(e))),Ja(Ys,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function qe(s,t,e,n,i,r){const o=Ur.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&bt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!fn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":bt(s)?$r(e)&&a.push(o.get("length")):(a.push(o.get(Xs)),Bs(s)&&a.push(o.get(Hr)));break;case"delete":bt(s)||(a.push(o.get(Xs)),Bs(s)&&a.push(o.get(Hr)));break;case"set":Bs(s)&&a.push(o.get(Xs));break}Yr();for(const l of a)l&&tl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);Xr()}const Bh=un("__proto__,__v_isRef,__isVue"),sl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(fn)),nl=Gh();function Gh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=It(this);for(let r=0,o=this.length;r<o;r++)pe(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(It)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){ws(),Yr();const n=It(this)[t].apply(this,e);return Xr(),Cs(),n}}),s}function Yh(s){const t=It(this);return pe(t,"has",s),t.hasOwnProperty(s)}class il{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?ml:pl:r?dl:fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=bt(t);if(!i){if(o&&At(nl,e))return Reflect.get(nl,e,n);if(e==="hasOwnProperty")return Yh}const a=Reflect.get(t,e,n);return(fn(e)?sl.has(e):Bh(e))||(i||pe(t,"get",e),r)?a:me(a)?o&&$r(e)?a:a.value:Yt(a)?i?gl(a):Jt(a):a}}class rl extends il{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=Ss(r);if(!Us(n)&&!Ss(n)&&(r=It(r),n=It(n)),!bt(t)&&me(r)&&!me(n))return l?!1:(r.value=n,!0)}const o=bt(t)&&$r(e)?Number(e)<t.length:At(t,e),a=Reflect.set(t,e,n,i);return t===It(i)&&(o?_s(n,r)&&qe(t,"set",e,n,r):qe(t,"add",e,n)),a}deleteProperty(t,e){const n=At(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&qe(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!fn(e)||!sl.has(e))&&pe(t,"has",e),n}ownKeys(t){return pe(t,"iterate",bt(t)?"length":Xs),Reflect.ownKeys(t)}}class ol extends il{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&bs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&bs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Xh=new rl,jh=new ol,Uh=new rl(!0),Hh=new ol(!0),Wr=s=>s,wi=s=>Reflect.getPrototypeOf(s);function Ci(s,t,e=!1,n=!1){s=s.__v_raw;const i=It(s),r=It(t);e||(_s(t,r)&&pe(i,"get",t),pe(i,"get",r));const{has:o}=wi(i),a=n?Wr:e?Zr:In;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Ti(s,t=!1){const e=this.__v_raw,n=It(e),i=It(s);return t||(_s(s,i)&&pe(n,"has",s),pe(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Si(s,t=!1){return s=s.__v_raw,!t&&pe(It(s),"iterate",Xs),Reflect.get(s,"size",s)}function al(s){s=It(s);const t=It(this);return wi(t).has.call(t,s)||(t.add(s),qe(t,"add",s,s)),this}function ll(s,t){t=It(t);const e=It(this),{has:n,get:i}=wi(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&hl(e,n,s):(s=It(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?_s(t,o)&&qe(e,"set",s,t,o):qe(e,"add",s,t),this}function cl(s){const t=It(this),{has:e,get:n}=wi(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&hl(t,e,s):(s=It(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&qe(t,"delete",s,void 0,r),o}function ul(){const s=It(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Bs(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&qe(s,"clear",void 0,void 0,e),n}function ki(s,t){return function(n,i){const r=this,o=r.__v_raw,a=It(o),l=t?Wr:s?Zr:In;return!s&&pe(a,"iterate",Xs),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Ei(s,t,e){return function(...n){const i=this.__v_raw,r=It(i),o=Bs(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?Wr:t?Zr:In;return!t&&pe(r,"iterate",l?Hr:Xs),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Ts(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";bs(`${bi(s)} operation ${e}failed: target is readonly.`,It(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Wh(){const s={get(r){return Ci(this,r)},get size(){return Si(this)},has:Ti,add:al,set:ll,delete:cl,clear:ul,forEach:ki(!1,!1)},t={get(r){return Ci(this,r,!1,!0)},get size(){return Si(this)},has:Ti,add:al,set:ll,delete:cl,clear:ul,forEach:ki(!1,!0)},e={get(r){return Ci(this,r,!0)},get size(){return Si(this,!0)},has(r){return Ti.call(this,r,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:ki(!0,!1)},n={get(r){return Ci(this,r,!0,!0)},get size(){return Si(this,!0)},has(r){return Ti.call(this,r,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:ki(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ei(r,!1,!1),e[r]=Ei(r,!0,!1),t[r]=Ei(r,!1,!0),n[r]=Ei(r,!0,!0)}),[s,e,t,n]}const[qh,Zh,Qh,Kh]=Wh();function Pi(s,t){const e=t?s?Kh:Qh:s?Zh:qh;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(At(e,i)&&i in n?e:n,i,r)}const Jh={get:Pi(!1,!1)},tf={get:Pi(!1,!0)},ef={get:Pi(!0,!1)},sf={get:Pi(!0,!0)};function hl(s,t,e){const n=It(e);if(n!==e&&t.call(s,n)){const i=Lr(s);bs(`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 fl=new WeakMap,dl=new WeakMap,pl=new WeakMap,ml=new WeakMap;function nf(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rf(s){return s.__v_skip||!Object.isExtensible(s)?0:nf(Lr(s))}function Jt(s){return Ss(s)?s:Oi(s,!1,Xh,Jh,fl)}function of(s){return Oi(s,!1,Uh,tf,dl)}function gl(s){return Oi(s,!0,jh,ef,pl)}function pn(s){return Oi(s,!0,Hh,sf,ml)}function Oi(s,t,e,n,i){if(!Yt(s))return{}.NODE_ENV!=="production"&&bs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=rf(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function js(s){return Ss(s)?js(s.__v_raw):!!(s&&s.__v_isReactive)}function Ss(s){return!!(s&&s.__v_isReadonly)}function Us(s){return!!(s&&s.__v_isShallow)}function qr(s){return js(s)||Ss(s)}function It(s){const t=s&&s.__v_raw;return t?It(t):s}function yl(s){return Object.isExtensible(s)&&xi(s,"__v_skip",!0),s}const In=s=>Yt(s)?Jt(s):s,Zr=s=>Yt(s)?gl(s):s,af="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 vl{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Br(()=>t(this._value),()=>Ii(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=It(this);return(!t._cacheable||t.effect.dirty)&&_s(t._value,t._value=t.effect.run())&&Ii(t,4),_l(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&bs(af,`
9
+ **/function bs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let Ge;class Lh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=Ge;try{return Ge=this,t()}finally{Ge=e}}else({}).NODE_ENV!=="production"&&bs("cannot run an inactive effect scope.")}on(){Ge=this}off(){Ge=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){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 $h(s,t=Ge){t&&t.active&&t.effects.push(s)}function Vh(){return Ge}let Ys;class Br{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,$h(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,ws();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(zh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Cs()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=xs,e=Ys;try{return xs=!0,Ys=this,this._runnings++,qa(this),this.fn()}finally{Za(this),this._runnings--,Ys=e,xs=t}}stop(){var t;this.active&&(qa(this),Za(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function zh(s){return s.value}function qa(s){s._trackId++,s._depsLength=0}function Za(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)Qa(s.deps[t],s);s.deps.length=s._depsLength}}function Qa(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let xs=!0,Gr=0;const Ka=[];function ws(){Ka.push(xs),xs=!1}function Cs(){const s=Ka.pop();xs=s===void 0?!0:s}function Yr(){Gr++}function Xr(){for(Gr--;!Gr&&jr.length;)jr.shift()()}function Ja(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&Qa(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,ie({effect:s},e)))}}const jr=[];function tl(s,t,e){var n;Yr();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,ie({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&jr.push(i.scheduler)))}Xr()}const el=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},Ur=new WeakMap,Xs=Symbol({}.NODE_ENV!=="production"?"iterate":""),Hr=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function pe(s,t,e){if(xs&&Ys){let n=Ur.get(s);n||Ur.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=el(()=>n.delete(e))),Ja(Ys,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function qe(s,t,e,n,i,r){const o=Ur.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&xt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!fn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":xt(s)?$r(e)&&a.push(o.get("length")):(a.push(o.get(Xs)),Bs(s)&&a.push(o.get(Hr)));break;case"delete":xt(s)||(a.push(o.get(Xs)),Bs(s)&&a.push(o.get(Hr)));break;case"set":Bs(s)&&a.push(o.get(Xs));break}Yr();for(const l of a)l&&tl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);Xr()}const Bh=un("__proto__,__v_isRef,__isVue"),sl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(fn)),nl=Gh();function Gh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=It(this);for(let r=0,o=this.length;r<o;r++)pe(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(It)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){ws(),Yr();const n=It(this)[t].apply(this,e);return Xr(),Cs(),n}}),s}function Yh(s){const t=It(this);return pe(t,"has",s),t.hasOwnProperty(s)}class il{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?ml:pl:r?dl:fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=xt(t);if(!i){if(o&&At(nl,e))return Reflect.get(nl,e,n);if(e==="hasOwnProperty")return Yh}const a=Reflect.get(t,e,n);return(fn(e)?sl.has(e):Bh(e))||(i||pe(t,"get",e),r)?a:me(a)?o&&$r(e)?a:a.value:Yt(a)?i?gl(a):te(a):a}}class rl extends il{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=Ss(r);if(!Us(n)&&!Ss(n)&&(r=It(r),n=It(n)),!xt(t)&&me(r)&&!me(n))return l?!1:(r.value=n,!0)}const o=xt(t)&&$r(e)?Number(e)<t.length:At(t,e),a=Reflect.set(t,e,n,i);return t===It(i)&&(o?_s(n,r)&&qe(t,"set",e,n,r):qe(t,"add",e,n)),a}deleteProperty(t,e){const n=At(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&qe(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!fn(e)||!sl.has(e))&&pe(t,"has",e),n}ownKeys(t){return pe(t,"iterate",xt(t)?"length":Xs),Reflect.ownKeys(t)}}class ol extends il{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&bs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&bs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Xh=new rl,jh=new ol,Uh=new rl(!0),Hh=new ol(!0),Wr=s=>s,wi=s=>Reflect.getPrototypeOf(s);function Ci(s,t,e=!1,n=!1){s=s.__v_raw;const i=It(s),r=It(t);e||(_s(t,r)&&pe(i,"get",t),pe(i,"get",r));const{has:o}=wi(i),a=n?Wr:e?Zr:In;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Ti(s,t=!1){const e=this.__v_raw,n=It(e),i=It(s);return t||(_s(s,i)&&pe(n,"has",s),pe(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Si(s,t=!1){return s=s.__v_raw,!t&&pe(It(s),"iterate",Xs),Reflect.get(s,"size",s)}function al(s){s=It(s);const t=It(this);return wi(t).has.call(t,s)||(t.add(s),qe(t,"add",s,s)),this}function ll(s,t){t=It(t);const e=It(this),{has:n,get:i}=wi(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&hl(e,n,s):(s=It(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?_s(t,o)&&qe(e,"set",s,t,o):qe(e,"add",s,t),this}function cl(s){const t=It(this),{has:e,get:n}=wi(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&hl(t,e,s):(s=It(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&qe(t,"delete",s,void 0,r),o}function ul(){const s=It(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Bs(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&qe(s,"clear",void 0,void 0,e),n}function ki(s,t){return function(n,i){const r=this,o=r.__v_raw,a=It(o),l=t?Wr:s?Zr:In;return!s&&pe(a,"iterate",Xs),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Ei(s,t,e){return function(...n){const i=this.__v_raw,r=It(i),o=Bs(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?Wr:t?Zr:In;return!t&&pe(r,"iterate",l?Hr:Xs),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Ts(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";bs(`${bi(s)} operation ${e}failed: target is readonly.`,It(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Wh(){const s={get(r){return Ci(this,r)},get size(){return Si(this)},has:Ti,add:al,set:ll,delete:cl,clear:ul,forEach:ki(!1,!1)},t={get(r){return Ci(this,r,!1,!0)},get size(){return Si(this)},has:Ti,add:al,set:ll,delete:cl,clear:ul,forEach:ki(!1,!0)},e={get(r){return Ci(this,r,!0)},get size(){return Si(this,!0)},has(r){return Ti.call(this,r,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:ki(!0,!1)},n={get(r){return Ci(this,r,!0,!0)},get size(){return Si(this,!0)},has(r){return Ti.call(this,r,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:ki(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ei(r,!1,!1),e[r]=Ei(r,!0,!1),t[r]=Ei(r,!1,!0),n[r]=Ei(r,!0,!0)}),[s,e,t,n]}const[qh,Zh,Qh,Kh]=Wh();function Pi(s,t){const e=t?s?Kh:Qh:s?Zh:qh;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(At(e,i)&&i in n?e:n,i,r)}const Jh={get:Pi(!1,!1)},tf={get:Pi(!1,!0)},ef={get:Pi(!0,!1)},sf={get:Pi(!0,!0)};function hl(s,t,e){const n=It(e);if(n!==e&&t.call(s,n)){const i=Lr(s);bs(`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 fl=new WeakMap,dl=new WeakMap,pl=new WeakMap,ml=new WeakMap;function nf(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rf(s){return s.__v_skip||!Object.isExtensible(s)?0:nf(Lr(s))}function te(s){return Ss(s)?s:Oi(s,!1,Xh,Jh,fl)}function of(s){return Oi(s,!1,Uh,tf,dl)}function gl(s){return Oi(s,!0,jh,ef,pl)}function pn(s){return Oi(s,!0,Hh,sf,ml)}function Oi(s,t,e,n,i){if(!Yt(s))return{}.NODE_ENV!=="production"&&bs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=rf(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function js(s){return Ss(s)?js(s.__v_raw):!!(s&&s.__v_isReactive)}function Ss(s){return!!(s&&s.__v_isReadonly)}function Us(s){return!!(s&&s.__v_isShallow)}function qr(s){return js(s)||Ss(s)}function It(s){const t=s&&s.__v_raw;return t?It(t):s}function yl(s){return Object.isExtensible(s)&&xi(s,"__v_skip",!0),s}const In=s=>Yt(s)?te(s):s,Zr=s=>Yt(s)?gl(s):s,af="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 vl{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Br(()=>t(this._value),()=>Ii(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=It(this);return(!t._cacheable||t.effect.dirty)&&_s(t._value,t._value=t.effect.run())&&Ii(t,4),_l(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&bs(af,`
10
10
 
11
- getter: `,this.getter),Ii(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function lf(s,t,e=!1){let n,i;const r=Tt(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{bs("Write operation failed: computed value is readonly")}:oe):(n=s.get,i=s.set);const o=new vl(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function _l(s){var t;xs&&Ys&&(s=It(s),Ja(Ys,(t=s.dep)!=null?t:s.dep=el(()=>s.dep=void 0,s instanceof vl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Ii(s,t=4,e){s=It(s);const n=s.dep;n&&tl(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function me(s){return!!(s&&s.__v_isRef===!0)}function M(s){return cf(s,!1)}function cf(s,t){return me(s)?s:new uf(s,t)}class uf{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:It(t),this._value=e?t:In(t)}get value(){return _l(this),this._value}set value(t){const e=this.__v_isShallow||Us(t)||Ss(t);t=e?t:It(t),_s(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:In(t),Ii(this,4,t))}}function Lt(s){return me(s)?s.value:s}const hf={get:(s,t,e)=>Lt(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return me(i)&&!me(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function bl(s){return js(s)?s:new Proxy(s,hf)}/**
11
+ getter: `,this.getter),Ii(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function lf(s,t,e=!1){let n,i;const r=Tt(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{bs("Write operation failed: computed value is readonly")}:oe):(n=s.get,i=s.set);const o=new vl(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function _l(s){var t;xs&&Ys&&(s=It(s),Ja(Ys,(t=s.dep)!=null?t:s.dep=el(()=>s.dep=void 0,s instanceof vl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Ii(s,t=4,e){s=It(s);const n=s.dep;n&&tl(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function me(s){return!!(s&&s.__v_isRef===!0)}function M(s){return cf(s,!1)}function cf(s,t){return me(s)?s:new uf(s,t)}class uf{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:It(t),this._value=e?t:In(t)}get value(){return _l(this),this._value}set value(t){const e=this.__v_isShallow||Us(t)||Ss(t);t=e?t:It(t),_s(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:In(t),Ii(this,4,t))}}function Mt(s){return me(s)?s.value:s}const hf={get:(s,t,e)=>Mt(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return me(i)&&!me(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function bl(s){return js(s)?s:new Proxy(s,hf)}/**
12
12
  * @vue/runtime-core v3.4.21
13
13
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
14
14
  * @license MIT
15
15
  **/const Hs=[];function Di(s){Hs.push(s)}function Ri(){Hs.pop()}function rt(s,...t){ws();const e=Hs.length?Hs[Hs.length-1].component:null,n=e&&e.appContext.config.warnHandler,i=ff();if(n)os(n,e,11,[s+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),e&&e.proxy,i.map(({vnode:r})=>`at <${qi(e,r.type)}>`).join(`
16
16
  `),i]);else{const r=[`[Vue warn]: ${s}`,...t];i.length&&r.push(`
17
17
  `,...df(i)),console.warn(...r)}Cs()}function ff(){let s=Hs[Hs.length-1];if(!s)return[];const t=[];for(;s;){const e=t[0];e&&e.vnode===s?e.recurseCount++:t.push({vnode:s,recurseCount:0});const n=s.component&&s.component.parent;s=n&&n.vnode}return t}function df(s){const t=[];return s.forEach((e,n)=>{t.push(...n===0?[]:[`
18
- `],...pf(e))}),t}function pf({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${qi(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...mf(s.props),r]:[i+r]}function mf(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...xl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function xl(s,t,e){return re(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:me(t)?(t=xl(s,It(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Tt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=It(t),e?t:[`${s}=`,t])}const Qr={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 os(s,t,e,n){try{return n?s(...n):s()}catch(i){Dn(i,t,e)}}function Ye(s,t,e,n){if(Tt(s)){const r=os(s,t,e,n);return r&&Fr(r)&&r.catch(o=>{Dn(o,t,e)}),r}const i=[];for(let r=0;r<s.length;r++)i.push(Ye(s[r],t,e,n));return i}function Dn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?Qr[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){os(l,null,10,[s,o,a]);return}}gf(s,e,i,n)}function gf(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=Qr[t];if(e&&Di(e),rt(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Ri(),n)throw s;console.error(s)}else console.error(s)}let Rn=!1,Kr=!1;const xe=[];let Ze=0;const mn=[];let as=null,ks=0;const wl=Promise.resolve();let Jr=null;const yf=100;function vf(s){const t=Jr||wl;return s?t.then(this?s.bind(this):s):t}function _f(s){let t=Ze+1,e=xe.length;for(;t<e;){const n=t+e>>>1,i=xe[n],r=An(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Ai(s){(!xe.length||!xe.includes(s,Rn&&s.allowRecurse?Ze+1:Ze))&&(s.id==null?xe.push(s):xe.splice(_f(s.id),0,s),Cl())}function Cl(){!Rn&&!Kr&&(Kr=!0,Jr=wl.then(El))}function bf(s){const t=xe.indexOf(s);t>Ze&&xe.splice(t,1)}function Tl(s){bt(s)?mn.push(...s):(!as||!as.includes(s,s.allowRecurse?ks+1:ks))&&mn.push(s),Cl()}function Sl(s,t,e=Rn?Ze+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<xe.length;e++){const n=xe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&to(t,n))continue;xe.splice(e,1),e--,n()}}}function kl(s){if(mn.length){const t=[...new Set(mn)].sort((e,n)=>An(e)-An(n));if(mn.length=0,as){as.push(...t);return}for(as=t,{}.NODE_ENV!=="production"&&(s=s||new Map),ks=0;ks<as.length;ks++)({}).NODE_ENV!=="production"&&to(s,as[ks])||as[ks]();as=null,ks=0}}const An=s=>s.id==null?1/0:s.id,xf=(s,t)=>{const e=An(s)-An(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function El(s){Kr=!1,Rn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(xf);const t={}.NODE_ENV!=="production"?e=>to(s,e):oe;try{for(Ze=0;Ze<xe.length;Ze++){const e=xe[Ze];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;os(e,null,14)}}}finally{Ze=0,xe.length=0,kl(s),Rn=!1,Jr=null,(xe.length||mn.length)&&El(s)}}function to(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>yf){const n=t.ownerInstance,i=n&&_c(n.type);return Dn(`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 s.set(t,e+1)}}let Ws=!1;const gn=new Set;({}).NODE_ENV!=="production"&&(Vr().__VUE_HMR_RUNTIME__={createRecord:eo(Pl),rerender:eo(Tf),reload:eo(Sf)});const qs=new Map;function wf(s){const t=s.type.__hmrId;let e=qs.get(t);e||(Pl(t,s.type),e=qs.get(t)),e.instances.add(s)}function Cf(s){qs.get(s.type.__hmrId).instances.delete(s)}function Pl(s,t){return qs.has(s)?!1:(qs.set(s,{initialDef:Mn(t),instances:new Set}),!0)}function Mn(s){return bc(s)?s.__vccOpts:s}function Tf(s,t){const e=qs.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Mn(n.type).render=t),n.renderCache=[],Ws=!0,n.effect.dirty=!0,n.update(),Ws=!1}))}function Sf(s,t){const e=qs.get(s);if(!e)return;t=Mn(t),Ol(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=Mn(i.type);gn.has(r)||(r!==e.initialDef&&Ol(r,t),gn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(gn.add(r),i.ceReload(t.styles),gn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ai(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.")}Tl(()=>{for(const i of n)gn.delete(Mn(i.type))})}function Ol(s,t){ne(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function eo(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Qe,Nn=[],so=!1;function Fn(s,...t){Qe?Qe.emit(s,...t):so||Nn.push({event:s,args:t})}function Il(s,t){var e,n;Qe=s,Qe?(Qe.enabled=!0,Nn.forEach(({event:i,args:r})=>Qe.emit(i,...r)),Nn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Il(r,t)}),setTimeout(()=>{Qe||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,so=!0,Nn=[])},3e3)):(so=!0,Nn=[])}function kf(s,t){Fn("app:init",s,t,{Fragment:$t,Text:Yn,Comment:Oe,Static:Xn})}function Ef(s){Fn("app:unmount",s)}const Pf=no("component:added"),Dl=no("component:updated"),Of=no("component:removed"),If=s=>{Qe&&typeof Qe.cleanupBuffer=="function"&&!Qe.cleanupBuffer(s)&&Of(s)};function no(s){return t=>{Fn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Df=Rl("perf:start"),Rf=Rl("perf:end");function Rl(s){return(t,e,n)=>{Fn(s,t.appContext.app,t.uid,t,e,n)}}function Af(s,t,e){Fn("component:emit",s.appContext.app,s,t,e)}function Mf(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Xt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(Gs(t)in h))&&rt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Gs(t)}" prop.`);else{const f=u[t];Tt(f)&&(f(...e)||rt(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Xt;f&&(i=e.map(m=>re(m)?m.trim():m)),h&&(i=e.map(Dh))}if({}.NODE_ENV!=="production"&&Af(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Gs(u)]&&rt(`Event "${u}" is emitted in component ${qi(s,s.type)} but the handler is registered for "${t}". 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 "${vs(t)}" instead of "${t}".`)}let a,l=n[a=Gs(t)]||n[a=Gs(dn(t))];!l&&r&&(l=n[a=Gs(vs(t))]),l&&Ye(l,s,6,i);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,Ye(c,s,6,i)}}function Al(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!Tt(s)){const l=c=>{const u=Al(c,t,!0);u&&(a=!0,ne(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Yt(s)&&n.set(s,null),null):(bt(r)?r.forEach(l=>o[l]=null):ne(o,r),Yt(s)&&n.set(s,o),o)}function Mi(s,t){return!s||!En(t)?!1:(t=t.slice(2).replace(/Once$/,""),At(s,t[0].toLowerCase()+t.slice(1))||At(s,vs(t))||At(s,t))}let ae=null,Ni=null;function Fi(s){const t=ae;return ae=s,Ni=s&&s.type.__scopeId||null,t}function Ln(s){Ni=s}function $n(){Ni=null}function Et(s,t=ae,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&ac(-1);const r=Fi(t);let o;try{o=s(...i)}finally{Fi(r),n._d&&ac(1)}return{}.NODE_ENV!=="production"&&Dl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let io=!1;function Li(){io=!0}function ro(s){const{type:t,vnode:e,proxy:n,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:m,ctx:d,inheritAttrs:S}=s;let k,_;const x=Fi(s);({}).NODE_ENV!=="production"&&(io=!1);try{if(e.shapeFlag&4){const w=i||n,b={}.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(w,{get(B,ct,O){return rt(`Property '${String(ct)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(B,ct,O)}}):w;k=je(u.call(b,w,h,r,m,f,d)),_=l}else{const w=t;({}).NODE_ENV!=="production"&&l===r&&Li(),k=je(w.length>1?w(r,{}.NODE_ENV!=="production"?{get attrs(){return Li(),l},slots:a,emit:c}:{attrs:l,slots:a,emit:c}):w(r,null)),_=t.props?l:Nf(l)}}catch(w){jn.length=0,Dn(w,s,1),k=ft(Oe)}let y=k,p;if({}.NODE_ENV!=="production"&&k.patchFlag>0&&k.patchFlag&2048&&([y,p]=Ml(k)),_&&S!==!1){const w=Object.keys(_),{shapeFlag:b}=y;if(w.length){if(b&7)o&&w.some(yi)&&(_=Ff(_,o)),y=Os(y,_);else if({}.NODE_ENV!=="production"&&!io&&y.type!==Oe){const B=Object.keys(l),ct=[],O=[];for(let R=0,A=B.length;R<A;R++){const D=B[R];En(D)?yi(D)||ct.push(D[2].toLowerCase()+D.slice(3)):O.push(D)}O.length&&rt(`Extraneous non-props attributes (${O.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ct.length&&rt(`Extraneous non-emits event listeners (${ct.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 e.dirs&&({}.NODE_ENV!=="production"&&!Nl(y)&&rt("Runtime directive used on component with non-element root node. The directives will not function as intended."),y=Os(y),y.dirs=y.dirs?y.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Nl(y)&&rt("Component inside <Transition> renders non-element root node that cannot be animated."),y.transition=e.transition),{}.NODE_ENV!=="production"&&p?p(y):k=y,Fi(x),k}const Ml=s=>{const t=s.children,e=s.dynamicChildren,n=oo(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Ml(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[je(n),o]};function oo(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(yn(i)){if(i.type!==Oe||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return oo(e.children)}}else return}return e}const Nf=s=>{let t;for(const e in s)(e==="class"||e==="style"||En(e))&&((t||(t={}))[e]=s[e]);return t},Ff=(s,t)=>{const e={};for(const n in s)(!yi(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Nl=s=>s.shapeFlag&7||s.type===Oe;function Lf(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Ws||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Fl(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!Mi(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Fl(n,o,c):!0:!!o;return!1}function Fl(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Mi(e,r))return!0}return!1}function $f({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const Vf=Symbol.for("v-ndc"),zf=s=>s.__isSuspense;function Bf(s,t){t&&t.pendingBranch?bt(s)?t.effects.push(...s):t.effects.push(s):Tl(s)}const Gf=Symbol.for("v-scx"),Yf=()=>{{const s=Bi(Gf);return s||{}.NODE_ENV!=="production"&&rt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Ll(s,t){return ao(s,null,t)}const $i={};function Mt(s,t,e){return{}.NODE_ENV!=="production"&&!Tt(t)&&rt("`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."),ao(s,t,e)}function ao(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Xt){if(t&&r){const B=t;t=(...ct)=>{B(...ct),b()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&rt('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"&&!t&&(e!==void 0&&rt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&rt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&rt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=B=>{rt("Invalid watch source: ",B,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=fe,u=B=>n===!0?B:Zs(B,n===!1?1:void 0);let h,f=!1,m=!1;if(me(s)?(h=()=>s.value,f=Us(s)):js(s)?(h=()=>u(s),f=!0):bt(s)?(m=!0,f=s.some(B=>js(B)||Us(B)),h=()=>s.map(B=>{if(me(B))return B.value;if(js(B))return u(B);if(Tt(B))return os(B,c,2);({}).NODE_ENV!=="production"&&l(B)})):Tt(s)?t?h=()=>os(s,c,2):h=()=>(d&&d(),Ye(s,c,3,[S])):(h=oe,{}.NODE_ENV!=="production"&&l(s)),t&&n){const B=h;h=()=>Zs(B())}let d,S=B=>{d=p.onStop=()=>{os(B,c,4),d=p.onStop=void 0}},k;if(Hi)if(S=oe,t?e&&Ye(t,c,3,[h(),m?[]:void 0,S]):h(),i==="sync"){const B=Yf();k=B.__watcherHandles||(B.__watcherHandles=[])}else return oe;let _=m?new Array(s.length).fill($i):$i;const x=()=>{if(!(!p.active||!p.dirty))if(t){const B=p.run();(n||f||(m?B.some((ct,O)=>_s(ct,_[O])):_s(B,_)))&&(d&&d(),Ye(t,c,3,[B,_===$i?void 0:m&&_[0]===$i?[]:_,S]),_=B)}else p.run()};x.allowRecurse=!!t;let y;i==="sync"?y=x:i==="post"?y=()=>Pe(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),y=()=>Ai(x));const p=new Br(h,oe,y),w=Vh(),b=()=>{p.stop(),w&&Nr(w.effects,p)};return{}.NODE_ENV!=="production"&&(p.onTrack=o,p.onTrigger=a),t?e?x():_=p.run():i==="post"?Pe(p.run.bind(p),c&&c.suspense):p.run(),k&&k.push(b),b}function Xf(s,t,e){const n=this.proxy,i=re(s)?s.includes(".")?$l(n,s):()=>n[s]:s.bind(n,n);let r;Tt(t)?r=t:(r=t.handler,e=t);const o=Wn(this),a=ao(i,r.bind(n),e);return o(),a}function $l(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function Zs(s,t,e=0,n){if(!Yt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),me(s))Zs(s.value,t,e,n);else if(bt(s))for(let i=0;i<s.length;i++)Zs(s[i],t,e,n);else if(Ya(s)||Bs(s))s.forEach(i=>{Zs(i,t,e,n)});else if(ja(s))for(const i in s)Zs(s[i],t,e,n);return s}function Vl(s){Ph(s)&&rt("Do not use built-in directive ids as custom directive id: "+s)}function Qs(s,t){if(ae===null)return{}.NODE_ENV!=="production"&&rt("withDirectives can only be used inside render functions."),s;const e=Wi(ae)||ae.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Xt]=t[i];r&&(Tt(r)&&(r={mounted:r,updated:r}),r.deep&&Zs(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function Ks(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(ws(),Ye(l,e,8,[s.el,a,s,t]),Cs())}}/*! #__NO_SIDE_EFFECTS__ */function lt(s,t){return Tt(s)?(()=>ne({name:s.name},t,{setup:s}))():s}const Vn=s=>!!s.type.__asyncLoader,lo=s=>s.type.__isKeepAlive;function jf(s,t){zl(s,"a",t)}function Uf(s,t){zl(s,"da",t)}function zl(s,t,e=fe){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(Vi(t,n,e),e){let i=e.parent;for(;i&&i.parent;)lo(i.parent.vnode)&&Hf(n,t,e,i),i=i.parent}}function Hf(s,t,e,n){const i=Vi(t,s,n,!0);le(()=>{Nr(n[t],i)},e)}function Vi(s,t,e=fe,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;ws();const a=Wn(e),l=Ye(t,e,s,o);return a(),Cs(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=Gs(Qr[s].replace(/ hook$/,""));rt(`${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 ls=s=>(t,e=fe)=>(!Hi||s==="sp")&&Vi(s,(...n)=>t(...n),e),Wf=ls("bm"),Es=ls("m"),qf=ls("bu"),Zf=ls("u"),Qf=ls("bum"),le=ls("um"),Kf=ls("sp"),Jf=ls("rtg"),td=ls("rtc");function ed(s,t=fe){Vi("ec",s,t)}function ge(s,t,e,n){let i;const r=e&&e[n];if(bt(s)||re(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&rt(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Yt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function St(s,t,e={},n,i){if(ae.isCE||ae.parent&&Vn(ae.parent)&&ae.parent.isCE)return t!=="default"&&(e.name=t),ft("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(rt("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."),r=()=>[]),r&&r._c&&(r._d=!1),F();const o=r&&Bl(r(e)),a=Bt($t,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Bl(s){return s.some(t=>yn(t)?!(t.type===Oe||t.type===$t&&!Bl(t.children)):!0)?s:null}const co=s=>s?pc(s)?Wi(s)||s.proxy:co(s.parent):null,Js=ne(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?pn(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?pn(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?pn(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?pn(s.refs):s.refs,$parent:s=>co(s.parent),$root:s=>co(s.root),$emit:s=>s.emit,$options:s=>po(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ai(s.update)}),$nextTick:s=>s.n||(s.n=vf.bind(s.proxy)),$watch:s=>Xf.bind(s)}),uo=s=>s==="_"||s==="$",ho=(s,t)=>s!==Xt&&!s.__isScriptSetup&&At(s,t),Gl={get({_:s},t){const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(ho(n,t))return o[t]=1,n[t];if(i!==Xt&&At(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&At(c,t))return o[t]=3,r[t];if(e!==Xt&&At(e,t))return o[t]=4,e[t];fo&&(o[t]=0)}}const u=Js[t];let h,f;if(u)return t==="$attrs"?(pe(s,"get",t),{}.NODE_ENV!=="production"&&Li()):{}.NODE_ENV!=="production"&&t==="$slots"&&pe(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Xt&&At(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,At(f,t))return f[t];({}).NODE_ENV!=="production"&&ae&&(!re(t)||t.indexOf("__v")!==0)&&(i!==Xt&&uo(t[0])&&At(i,t)?rt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ae&&rt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return ho(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&At(i,t)?(rt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Xt&&At(n,t)?(n[t]=e,!0):At(s.props,t)?({}.NODE_ENV!=="production"&&rt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&rt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Xt&&At(s,o)||ho(t,o)||(a=r[0])&&At(a,o)||At(n,o)||At(Js,o)||At(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:At(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(Gl.ownKeys=s=>(rt("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(s)));function sd(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(Js).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>Js[e](s),set:oe})}),t}function nd(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:oe})})}function id(s){const{ctx:t,setupState:e}=s;Object.keys(It(e)).forEach(n=>{if(!e.__isScriptSetup){if(uo(n[0])){rt(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:oe})}})}function rd(){return od().slots}function od(){const s=fc();return{}.NODE_ENV!=="production"&&!s&&rt("useContext() called without active instance."),s.setupContext||(s.setupContext=vc(s))}function Yl(s){return bt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function ad(){const s=Object.create(null);return(t,e)=>{s[e]?rt(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let fo=!0;function ld(s){const t=po(s),e=s.proxy,n=s.ctx;fo=!1,t.beforeCreate&&Xl(t.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:m,updated:d,activated:S,deactivated:k,beforeDestroy:_,beforeUnmount:x,destroyed:y,unmounted:p,render:w,renderTracked:b,renderTriggered:B,errorCaptured:ct,serverPrefetch:O,expose:R,inheritAttrs:A,components:D,directives:L,filters:X}=t,it={}.NODE_ENV!=="production"?ad():null;if({}.NODE_ENV!=="production"){const[W]=s.propsOptions;if(W)for(const nt in W)it("Props",nt)}if(c&&cd(c,n,it),o)for(const W in o){const nt=o[W];Tt(nt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,W,{value:nt.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[W]=nt.bind(e),{}.NODE_ENV!=="production"&&it("Methods",W)):{}.NODE_ENV!=="production"&&rt(`Method "${W}" has type "${typeof nt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Tt(i)&&rt("The data option must be a function. Plain object usage is no longer supported.");const W=i.call(e,e);if({}.NODE_ENV!=="production"&&Fr(W)&&rt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Yt(W))({}).NODE_ENV!=="production"&&rt("data() should return an object.");else if(s.data=Jt(W),{}.NODE_ENV!=="production")for(const nt in W)it("Data",nt),uo(nt[0])||Object.defineProperty(n,nt,{configurable:!0,enumerable:!0,get:()=>W[nt],set:oe})}if(fo=!0,r)for(const W in r){const nt=r[W],G=Tt(nt)?nt.bind(e,e):Tt(nt.get)?nt.get.bind(e,e):oe;({}).NODE_ENV!=="production"&&G===oe&&rt(`Computed property "${W}" has no getter.`);const j=!Tt(nt)&&Tt(nt.set)?nt.set.bind(e):{}.NODE_ENV!=="production"?()=>{rt(`Write operation failed: computed property "${W}" is readonly.`)}:oe,gt=Hd({get:G,set:j});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>gt.value,set:mt=>gt.value=mt}),{}.NODE_ENV!=="production"&&it("Computed",W)}if(a)for(const W in a)jl(a[W],n,e,W);if(l){const W=Tt(l)?l.call(e):l;Reflect.ownKeys(W).forEach(nt=>{md(nt,W[nt])})}u&&Xl(u,s,"c");function K(W,nt){bt(nt)?nt.forEach(G=>W(G.bind(e))):nt&&W(nt.bind(e))}if(K(Wf,h),K(Es,f),K(qf,m),K(Zf,d),K(jf,S),K(Uf,k),K(ed,ct),K(td,b),K(Jf,B),K(Qf,x),K(le,p),K(Kf,O),bt(R))if(R.length){const W=s.exposed||(s.exposed={});R.forEach(nt=>{Object.defineProperty(W,nt,{get:()=>e[nt],set:G=>e[nt]=G})})}else s.exposed||(s.exposed={});w&&s.render===oe&&(s.render=w),A!=null&&(s.inheritAttrs=A),D&&(s.components=D),L&&(s.directives=L)}function cd(s,t,e=oe){bt(s)&&(s=mo(s));for(const n in s){const i=s[n];let r;Yt(i)?"default"in i?r=Bi(i.from||n,i.default,!0):r=Bi(i.from||n):r=Bi(i),me(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function Xl(s,t,e){Ye(bt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function jl(s,t,e,n){const i=n.includes(".")?$l(e,n):()=>e[n];if(re(s)){const r=t[s];Tt(r)?Mt(i,r):{}.NODE_ENV!=="production"&&rt(`Invalid watch handler specified by key "${s}"`,r)}else if(Tt(s))Mt(i,s.bind(e));else if(Yt(s))if(bt(s))s.forEach(r=>jl(r,t,e,n));else{const r=Tt(s.handler)?s.handler.bind(e):t[s.handler];Tt(r)?Mt(i,r,s):{}.NODE_ENV!=="production"&&rt(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&rt(`Invalid watch option: "${n}"`,s)}function po(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>zi(l,c,o,!0)),zi(l,t,o)),Yt(t)&&r.set(t,l),l}function zi(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&zi(s,r,e,!0),i&&i.forEach(o=>zi(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&rt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=ud[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const ud={data:Ul,props:Hl,emits:Hl,methods:zn,computed:zn,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:zn,directives:zn,watch:fd,provide:Ul,inject:hd};function Ul(s,t){return t?s?function(){return ne(Tt(s)?s.call(this,this):s,Tt(t)?t.call(this,this):t)}:t:s}function hd(s,t){return zn(mo(s),mo(t))}function mo(s){if(bt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Ce(s,t){return s?[...new Set([].concat(s,t))]:t}function zn(s,t){return s?ne(Object.create(null),s,t):t}function Hl(s,t){return s?bt(s)&&bt(t)?[...new Set([...s,...t])]:ne(Object.create(null),Yl(s),Yl(t??{})):t}function fd(s,t){if(!s)return t;if(!t)return s;const e=ne(Object.create(null),s);for(const n in t)e[n]=Ce(s[n],t[n]);return e}function Wl(){return{app:null,config:{isNativeTag:kh,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 dd=0;function pd(s,t){return function(n,i=null){Tt(n)||(n=ne({},n)),i!=null&&!Yt(i)&&({}.NODE_ENV!=="production"&&rt("root props passed to app.mount() must be an object."),i=null);const r=Wl(),o=new WeakSet;let a=!1;const l=r.app={_uid:dd++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:xc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&rt("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&rt("Plugin has already been applied to target app."):c&&Tt(c.install)?(o.add(c),c.install(l,...u)):Tt(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&rt('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&rt("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&To(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&rt(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Vl(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&rt(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&rt("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__&&rt("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 f=ft(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Os(f),c,h)}),u&&t?t(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,kf(l,xc)),Wi(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Ef(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&rt("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&rt(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=Bn;Bn=l;try{return c()}finally{Bn=u}}};return l}}let Bn=null;function md(s,t){if(!fe)({}).NODE_ENV!=="production"&&rt("provide() can only be used inside setup().");else{let e=fe.provides;const n=fe.parent&&fe.parent.provides;n===e&&(e=fe.provides=Object.create(n)),e[s]=t}}function Bi(s,t,e=!1){const n=fe||ae;if(n||Bn){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Bn._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&Tt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&rt(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&rt("inject() can only be used inside setup() or functional components.")}function gd(s,t,e,n=!1){const i={},r={};xi(r,Xi,1),s.propsDefaults=Object.create(null),ql(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&tc(t||{},i,s),e?s.props=n?i:of(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function yd(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function vd(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=It(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&yd(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Mi(s.emitsOptions,f))continue;const m=t[f];if(l)if(At(r,f))m!==r[f]&&(r[f]=m,c=!0);else{const d=dn(f);i[d]=go(l,a,d,m,s,!1)}else m!==r[f]&&(r[f]=m,c=!0)}}}else{ql(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!At(t,h)&&((u=vs(h))===h||!At(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=go(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!At(t,h))&&(delete r[h],c=!0)}c&&qe(s,"set","$attrs"),{}.NODE_ENV!=="production"&&tc(t||{},i,s)}function ql(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Pn(l))continue;const c=t[l];let u;i&&At(i,u=dn(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Mi(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=It(e),c=a||Xt;for(let u=0;u<r.length;u++){const h=r[u];e[h]=go(i,l,h,c[h],s,!At(c,h))}}return o}function go(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=At(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Tt(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=Wn(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===vs(e))&&(n=!0))}return n}function Zl(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!Tt(s)){const u=h=>{l=!0;const[f,m]=Zl(h,t,!0);ne(o,f),m&&a.push(...m)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Yt(s)&&n.set(s,hn),hn;if(bt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!re(r[u])&&rt("props must be strings when using array syntax.",r[u]);const h=dn(r[u]);Ql(h)&&(o[h]=Xt)}else if(r){({}).NODE_ENV!=="production"&&!Yt(r)&&rt("invalid props options",r);for(const u in r){const h=dn(u);if(Ql(h)){const f=r[u],m=o[h]=bt(f)||Tt(f)?{type:f}:ne({},f);if(m){const d=Jl(Boolean,m.type),S=Jl(String,m.type);m[0]=d>-1,m[1]=S<0||d<S,(d>-1||At(m,"default"))&&a.push(h)}}}}const c=[o,a];return Yt(s)&&n.set(s,c),c}function Ql(s){return s[0]!=="$"&&!Pn(s)?!0:({}.NODE_ENV!=="production"&&rt(`Invalid prop name: "${s}" is a reserved property.`),!1)}function yo(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Kl(s,t){return yo(s)===yo(t)}function Jl(s,t){return bt(t)?t.findIndex(e=>Kl(e,s)):Tt(t)&&Kl(t,s)?0:-1}function tc(s,t,e){const n=It(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&_d(r,n[r],o,{}.NODE_ENV!=="production"?pn(n):n,!At(s,r)&&!At(s,vs(r)))}}function _d(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){rt('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=bt(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:m,expectedType:d}=xd(t,u[f]);h.push(d||""),c=m}if(!c){rt(wd(s,t,h));return}}a&&!a(t,n)&&rt('Invalid prop: custom validator check failed for prop "'+s+'".')}}const bd=un("String,Number,Boolean,Function,Symbol,BigInt");function xd(s,t){let e;const n=yo(t);if(bd(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Yt(s):n==="Array"?e=bt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function wd(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(bi).join(" | ")}`;const i=e[0],r=Lr(t),o=ec(t,i),a=ec(t,r);return e.length===1&&sc(i)&&!Cd(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,sc(r)&&(n+=`with value ${a}.`),n}function ec(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function sc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Cd(...s){return s.some(t=>t.toLowerCase()==="boolean")}const nc=s=>s[0]==="_"||s==="$stable",vo=s=>bt(s)?s.map(je):[je(s)],Td=(s,t,e)=>{if(t._n)return t;const n=Et((...i)=>({}.NODE_ENV!=="production"&&fe&&(!e||e.root===fe.root)&&rt(`Slot "${s}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),vo(t(...i))),e);return n._c=!1,n},ic=(s,t,e)=>{const n=s._ctx;for(const i in s){if(nc(i))continue;const r=s[i];if(Tt(r))t[i]=Td(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&rt(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=vo(r);t[i]=()=>o}}},rc=(s,t)=>{({}).NODE_ENV!=="production"&&!lo(s.vnode)&&rt("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=vo(t);s.slots.default=()=>e},Sd=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=It(t),xi(t,"_",e)):ic(t,s.slots={})}else s.slots={},t&&rc(s,t);xi(s.slots,Xi,1)},kd=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Xt;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Ws?(ne(i,t),qe(s,"set","$slots")):e&&a===1?r=!1:(ne(i,t),!e&&a===1&&delete i._):(r=!t.$stable,ic(t,i)),o=t}else t&&(rc(s,t),o={default:1});if(r)for(const a in i)!nc(a)&&o[a]==null&&delete i[a]};function _o(s,t,e,n,i=!1){if(bt(s)){s.forEach((f,m)=>_o(f,t&&(bt(t)?t[m]:t),e,n,i));return}if(Vn(n)&&!i)return;const r=n.shapeFlag&4?Wi(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){rt("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=t&&t.r,u=a.refs===Xt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(re(c)?(u[c]=null,At(h,c)&&(h[c]=null)):me(c)&&(c.value=null)),Tt(l))os(l,a,12,[o,u]);else{const f=re(l),m=me(l);if(f||m){const d=()=>{if(s.f){const S=f?At(h,l)?h[l]:u[l]:l.value;i?bt(S)&&Nr(S,r):bt(S)?S.includes(r)||S.push(r):f?(u[l]=[r],At(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,At(h,l)&&(h[l]=o)):m?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&rt("Invalid template ref type:",l,`(${typeof l})`)};o?(d.id=-1,Pe(d,e)):d()}else({}).NODE_ENV!=="production"&&rt("Invalid template ref type:",l,`(${typeof l})`)}}let Gn,Ps;function cs(s,t){s.appContext.config.performance&&Gi()&&Ps.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Df(s,t,Gi()?Ps.now():Date.now())}function us(s,t){if(s.appContext.config.performance&&Gi()){const e=`vue-${t}-${s.uid}`,n=e+":end";Ps.mark(n),Ps.measure(`<${qi(s,s.type)}> ${t}`,e,n),Ps.clearMarks(e),Ps.clearMarks(n)}({}).NODE_ENV!=="production"&&Rf(s,t,Gi()?Ps.now():Date.now())}function Gi(){return Gn!==void 0||(typeof window<"u"&&window.performance?(Gn=!0,Ps=window.performance):Gn=!1),Gn}function Ed(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"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.
18
+ `],...pf(e))}),t}function pf({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${qi(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...mf(s.props),r]:[i+r]}function mf(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...xl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function xl(s,t,e){return re(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:me(t)?(t=xl(s,It(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Tt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=It(t),e?t:[`${s}=`,t])}const Qr={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 os(s,t,e,n){try{return n?s(...n):s()}catch(i){Dn(i,t,e)}}function Ye(s,t,e,n){if(Tt(s)){const r=os(s,t,e,n);return r&&Fr(r)&&r.catch(o=>{Dn(o,t,e)}),r}const i=[];for(let r=0;r<s.length;r++)i.push(Ye(s[r],t,e,n));return i}function Dn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?Qr[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){os(l,null,10,[s,o,a]);return}}gf(s,e,i,n)}function gf(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=Qr[t];if(e&&Di(e),rt(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Ri(),n)throw s;console.error(s)}else console.error(s)}let Rn=!1,Kr=!1;const xe=[];let Ze=0;const mn=[];let as=null,ks=0;const wl=Promise.resolve();let Jr=null;const yf=100;function vf(s){const t=Jr||wl;return s?t.then(this?s.bind(this):s):t}function _f(s){let t=Ze+1,e=xe.length;for(;t<e;){const n=t+e>>>1,i=xe[n],r=An(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Ai(s){(!xe.length||!xe.includes(s,Rn&&s.allowRecurse?Ze+1:Ze))&&(s.id==null?xe.push(s):xe.splice(_f(s.id),0,s),Cl())}function Cl(){!Rn&&!Kr&&(Kr=!0,Jr=wl.then(El))}function bf(s){const t=xe.indexOf(s);t>Ze&&xe.splice(t,1)}function Tl(s){xt(s)?mn.push(...s):(!as||!as.includes(s,s.allowRecurse?ks+1:ks))&&mn.push(s),Cl()}function Sl(s,t,e=Rn?Ze+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<xe.length;e++){const n=xe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&to(t,n))continue;xe.splice(e,1),e--,n()}}}function kl(s){if(mn.length){const t=[...new Set(mn)].sort((e,n)=>An(e)-An(n));if(mn.length=0,as){as.push(...t);return}for(as=t,{}.NODE_ENV!=="production"&&(s=s||new Map),ks=0;ks<as.length;ks++)({}).NODE_ENV!=="production"&&to(s,as[ks])||as[ks]();as=null,ks=0}}const An=s=>s.id==null?1/0:s.id,xf=(s,t)=>{const e=An(s)-An(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function El(s){Kr=!1,Rn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(xf);const t={}.NODE_ENV!=="production"?e=>to(s,e):oe;try{for(Ze=0;Ze<xe.length;Ze++){const e=xe[Ze];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;os(e,null,14)}}}finally{Ze=0,xe.length=0,kl(s),Rn=!1,Jr=null,(xe.length||mn.length)&&El(s)}}function to(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>yf){const n=t.ownerInstance,i=n&&_c(n.type);return Dn(`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 s.set(t,e+1)}}let Ws=!1;const gn=new Set;({}).NODE_ENV!=="production"&&(Vr().__VUE_HMR_RUNTIME__={createRecord:eo(Pl),rerender:eo(Tf),reload:eo(Sf)});const qs=new Map;function wf(s){const t=s.type.__hmrId;let e=qs.get(t);e||(Pl(t,s.type),e=qs.get(t)),e.instances.add(s)}function Cf(s){qs.get(s.type.__hmrId).instances.delete(s)}function Pl(s,t){return qs.has(s)?!1:(qs.set(s,{initialDef:Mn(t),instances:new Set}),!0)}function Mn(s){return bc(s)?s.__vccOpts:s}function Tf(s,t){const e=qs.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Mn(n.type).render=t),n.renderCache=[],Ws=!0,n.effect.dirty=!0,n.update(),Ws=!1}))}function Sf(s,t){const e=qs.get(s);if(!e)return;t=Mn(t),Ol(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=Mn(i.type);gn.has(r)||(r!==e.initialDef&&Ol(r,t),gn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(gn.add(r),i.ceReload(t.styles),gn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ai(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.")}Tl(()=>{for(const i of n)gn.delete(Mn(i.type))})}function Ol(s,t){ie(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function eo(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Qe,Nn=[],so=!1;function Fn(s,...t){Qe?Qe.emit(s,...t):so||Nn.push({event:s,args:t})}function Il(s,t){var e,n;Qe=s,Qe?(Qe.enabled=!0,Nn.forEach(({event:i,args:r})=>Qe.emit(i,...r)),Nn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Il(r,t)}),setTimeout(()=>{Qe||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,so=!0,Nn=[])},3e3)):(so=!0,Nn=[])}function kf(s,t){Fn("app:init",s,t,{Fragment:Vt,Text:Yn,Comment:Oe,Static:Xn})}function Ef(s){Fn("app:unmount",s)}const Pf=no("component:added"),Dl=no("component:updated"),Of=no("component:removed"),If=s=>{Qe&&typeof Qe.cleanupBuffer=="function"&&!Qe.cleanupBuffer(s)&&Of(s)};function no(s){return t=>{Fn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Df=Rl("perf:start"),Rf=Rl("perf:end");function Rl(s){return(t,e,n)=>{Fn(s,t.appContext.app,t.uid,t,e,n)}}function Af(s,t,e){Fn("component:emit",s.appContext.app,s,t,e)}function Mf(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Xt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(Gs(t)in h))&&rt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Gs(t)}" prop.`);else{const f=u[t];Tt(f)&&(f(...e)||rt(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Xt;f&&(i=e.map(m=>re(m)?m.trim():m)),h&&(i=e.map(Dh))}if({}.NODE_ENV!=="production"&&Af(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Gs(u)]&&rt(`Event "${u}" is emitted in component ${qi(s,s.type)} but the handler is registered for "${t}". 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 "${vs(t)}" instead of "${t}".`)}let a,l=n[a=Gs(t)]||n[a=Gs(dn(t))];!l&&r&&(l=n[a=Gs(vs(t))]),l&&Ye(l,s,6,i);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,Ye(c,s,6,i)}}function Al(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!Tt(s)){const l=c=>{const u=Al(c,t,!0);u&&(a=!0,ie(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Yt(s)&&n.set(s,null),null):(xt(r)?r.forEach(l=>o[l]=null):ie(o,r),Yt(s)&&n.set(s,o),o)}function Mi(s,t){return!s||!En(t)?!1:(t=t.slice(2).replace(/Once$/,""),At(s,t[0].toLowerCase()+t.slice(1))||At(s,vs(t))||At(s,t))}let ae=null,Ni=null;function Fi(s){const t=ae;return ae=s,Ni=s&&s.type.__scopeId||null,t}function Ln(s){Ni=s}function $n(){Ni=null}function Et(s,t=ae,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&ac(-1);const r=Fi(t);let o;try{o=s(...i)}finally{Fi(r),n._d&&ac(1)}return{}.NODE_ENV!=="production"&&Dl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let io=!1;function Li(){io=!0}function ro(s){const{type:t,vnode:e,proxy:n,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:m,ctx:d,inheritAttrs:S}=s;let k,_;const x=Fi(s);({}).NODE_ENV!=="production"&&(io=!1);try{if(e.shapeFlag&4){const w=i||n,b={}.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(w,{get(B,ct,O){return rt(`Property '${String(ct)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(B,ct,O)}}):w;k=je(u.call(b,w,h,r,m,f,d)),_=l}else{const w=t;({}).NODE_ENV!=="production"&&l===r&&Li(),k=je(w.length>1?w(r,{}.NODE_ENV!=="production"?{get attrs(){return Li(),l},slots:a,emit:c}:{attrs:l,slots:a,emit:c}):w(r,null)),_=t.props?l:Nf(l)}}catch(w){jn.length=0,Dn(w,s,1),k=ft(Oe)}let y=k,p;if({}.NODE_ENV!=="production"&&k.patchFlag>0&&k.patchFlag&2048&&([y,p]=Ml(k)),_&&S!==!1){const w=Object.keys(_),{shapeFlag:b}=y;if(w.length){if(b&7)o&&w.some(yi)&&(_=Ff(_,o)),y=Os(y,_);else if({}.NODE_ENV!=="production"&&!io&&y.type!==Oe){const B=Object.keys(l),ct=[],O=[];for(let R=0,A=B.length;R<A;R++){const D=B[R];En(D)?yi(D)||ct.push(D[2].toLowerCase()+D.slice(3)):O.push(D)}O.length&&rt(`Extraneous non-props attributes (${O.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ct.length&&rt(`Extraneous non-emits event listeners (${ct.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 e.dirs&&({}.NODE_ENV!=="production"&&!Nl(y)&&rt("Runtime directive used on component with non-element root node. The directives will not function as intended."),y=Os(y),y.dirs=y.dirs?y.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Nl(y)&&rt("Component inside <Transition> renders non-element root node that cannot be animated."),y.transition=e.transition),{}.NODE_ENV!=="production"&&p?p(y):k=y,Fi(x),k}const Ml=s=>{const t=s.children,e=s.dynamicChildren,n=oo(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Ml(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[je(n),o]};function oo(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(yn(i)){if(i.type!==Oe||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return oo(e.children)}}else return}return e}const Nf=s=>{let t;for(const e in s)(e==="class"||e==="style"||En(e))&&((t||(t={}))[e]=s[e]);return t},Ff=(s,t)=>{const e={};for(const n in s)(!yi(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Nl=s=>s.shapeFlag&7||s.type===Oe;function Lf(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Ws||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Fl(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!Mi(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Fl(n,o,c):!0:!!o;return!1}function Fl(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Mi(e,r))return!0}return!1}function $f({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const Vf=Symbol.for("v-ndc"),zf=s=>s.__isSuspense;function Bf(s,t){t&&t.pendingBranch?xt(s)?t.effects.push(...s):t.effects.push(s):Tl(s)}const Gf=Symbol.for("v-scx"),Yf=()=>{{const s=Bi(Gf);return s||{}.NODE_ENV!=="production"&&rt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Ll(s,t){return ao(s,null,t)}const $i={};function Nt(s,t,e){return{}.NODE_ENV!=="production"&&!Tt(t)&&rt("`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."),ao(s,t,e)}function ao(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Xt){if(t&&r){const B=t;t=(...ct)=>{B(...ct),b()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&rt('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"&&!t&&(e!==void 0&&rt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&rt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&rt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=B=>{rt("Invalid watch source: ",B,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=fe,u=B=>n===!0?B:Zs(B,n===!1?1:void 0);let h,f=!1,m=!1;if(me(s)?(h=()=>s.value,f=Us(s)):js(s)?(h=()=>u(s),f=!0):xt(s)?(m=!0,f=s.some(B=>js(B)||Us(B)),h=()=>s.map(B=>{if(me(B))return B.value;if(js(B))return u(B);if(Tt(B))return os(B,c,2);({}).NODE_ENV!=="production"&&l(B)})):Tt(s)?t?h=()=>os(s,c,2):h=()=>(d&&d(),Ye(s,c,3,[S])):(h=oe,{}.NODE_ENV!=="production"&&l(s)),t&&n){const B=h;h=()=>Zs(B())}let d,S=B=>{d=p.onStop=()=>{os(B,c,4),d=p.onStop=void 0}},k;if(Hi)if(S=oe,t?e&&Ye(t,c,3,[h(),m?[]:void 0,S]):h(),i==="sync"){const B=Yf();k=B.__watcherHandles||(B.__watcherHandles=[])}else return oe;let _=m?new Array(s.length).fill($i):$i;const x=()=>{if(!(!p.active||!p.dirty))if(t){const B=p.run();(n||f||(m?B.some((ct,O)=>_s(ct,_[O])):_s(B,_)))&&(d&&d(),Ye(t,c,3,[B,_===$i?void 0:m&&_[0]===$i?[]:_,S]),_=B)}else p.run()};x.allowRecurse=!!t;let y;i==="sync"?y=x:i==="post"?y=()=>Pe(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),y=()=>Ai(x));const p=new Br(h,oe,y),w=Vh(),b=()=>{p.stop(),w&&Nr(w.effects,p)};return{}.NODE_ENV!=="production"&&(p.onTrack=o,p.onTrigger=a),t?e?x():_=p.run():i==="post"?Pe(p.run.bind(p),c&&c.suspense):p.run(),k&&k.push(b),b}function Xf(s,t,e){const n=this.proxy,i=re(s)?s.includes(".")?$l(n,s):()=>n[s]:s.bind(n,n);let r;Tt(t)?r=t:(r=t.handler,e=t);const o=Wn(this),a=ao(i,r.bind(n),e);return o(),a}function $l(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function Zs(s,t,e=0,n){if(!Yt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),me(s))Zs(s.value,t,e,n);else if(xt(s))for(let i=0;i<s.length;i++)Zs(s[i],t,e,n);else if(Ya(s)||Bs(s))s.forEach(i=>{Zs(i,t,e,n)});else if(ja(s))for(const i in s)Zs(s[i],t,e,n);return s}function Vl(s){Ph(s)&&rt("Do not use built-in directive ids as custom directive id: "+s)}function Qs(s,t){if(ae===null)return{}.NODE_ENV!=="production"&&rt("withDirectives can only be used inside render functions."),s;const e=Wi(ae)||ae.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Xt]=t[i];r&&(Tt(r)&&(r={mounted:r,updated:r}),r.deep&&Zs(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function Ks(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(ws(),Ye(l,e,8,[s.el,a,s,t]),Cs())}}/*! #__NO_SIDE_EFFECTS__ */function lt(s,t){return Tt(s)?(()=>ie({name:s.name},t,{setup:s}))():s}const Vn=s=>!!s.type.__asyncLoader,lo=s=>s.type.__isKeepAlive;function jf(s,t){zl(s,"a",t)}function Uf(s,t){zl(s,"da",t)}function zl(s,t,e=fe){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(Vi(t,n,e),e){let i=e.parent;for(;i&&i.parent;)lo(i.parent.vnode)&&Hf(n,t,e,i),i=i.parent}}function Hf(s,t,e,n){const i=Vi(t,s,n,!0);le(()=>{Nr(n[t],i)},e)}function Vi(s,t,e=fe,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;ws();const a=Wn(e),l=Ye(t,e,s,o);return a(),Cs(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=Gs(Qr[s].replace(/ hook$/,""));rt(`${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 ls=s=>(t,e=fe)=>(!Hi||s==="sp")&&Vi(s,(...n)=>t(...n),e),Wf=ls("bm"),Es=ls("m"),qf=ls("bu"),Zf=ls("u"),Qf=ls("bum"),le=ls("um"),Kf=ls("sp"),Jf=ls("rtg"),td=ls("rtc");function ed(s,t=fe){Vi("ec",s,t)}function ge(s,t,e,n){let i;const r=e&&e[n];if(xt(s)||re(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&rt(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Yt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function St(s,t,e={},n,i){if(ae.isCE||ae.parent&&Vn(ae.parent)&&ae.parent.isCE)return t!=="default"&&(e.name=t),ft("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(rt("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."),r=()=>[]),r&&r._c&&(r._d=!1),F();const o=r&&Bl(r(e)),a=Gt(Vt,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Bl(s){return s.some(t=>yn(t)?!(t.type===Oe||t.type===Vt&&!Bl(t.children)):!0)?s:null}const co=s=>s?pc(s)?Wi(s)||s.proxy:co(s.parent):null,Js=ie(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?pn(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?pn(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?pn(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?pn(s.refs):s.refs,$parent:s=>co(s.parent),$root:s=>co(s.root),$emit:s=>s.emit,$options:s=>po(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ai(s.update)}),$nextTick:s=>s.n||(s.n=vf.bind(s.proxy)),$watch:s=>Xf.bind(s)}),uo=s=>s==="_"||s==="$",ho=(s,t)=>s!==Xt&&!s.__isScriptSetup&&At(s,t),Gl={get({_:s},t){const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(ho(n,t))return o[t]=1,n[t];if(i!==Xt&&At(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&At(c,t))return o[t]=3,r[t];if(e!==Xt&&At(e,t))return o[t]=4,e[t];fo&&(o[t]=0)}}const u=Js[t];let h,f;if(u)return t==="$attrs"?(pe(s,"get",t),{}.NODE_ENV!=="production"&&Li()):{}.NODE_ENV!=="production"&&t==="$slots"&&pe(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Xt&&At(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,At(f,t))return f[t];({}).NODE_ENV!=="production"&&ae&&(!re(t)||t.indexOf("__v")!==0)&&(i!==Xt&&uo(t[0])&&At(i,t)?rt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ae&&rt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return ho(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&At(i,t)?(rt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Xt&&At(n,t)?(n[t]=e,!0):At(s.props,t)?({}.NODE_ENV!=="production"&&rt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&rt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Xt&&At(s,o)||ho(t,o)||(a=r[0])&&At(a,o)||At(n,o)||At(Js,o)||At(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:At(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(Gl.ownKeys=s=>(rt("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(s)));function sd(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(Js).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>Js[e](s),set:oe})}),t}function nd(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:oe})})}function id(s){const{ctx:t,setupState:e}=s;Object.keys(It(e)).forEach(n=>{if(!e.__isScriptSetup){if(uo(n[0])){rt(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:oe})}})}function rd(){return od().slots}function od(){const s=fc();return{}.NODE_ENV!=="production"&&!s&&rt("useContext() called without active instance."),s.setupContext||(s.setupContext=vc(s))}function Yl(s){return xt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function ad(){const s=Object.create(null);return(t,e)=>{s[e]?rt(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let fo=!0;function ld(s){const t=po(s),e=s.proxy,n=s.ctx;fo=!1,t.beforeCreate&&Xl(t.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:m,updated:d,activated:S,deactivated:k,beforeDestroy:_,beforeUnmount:x,destroyed:y,unmounted:p,render:w,renderTracked:b,renderTriggered:B,errorCaptured:ct,serverPrefetch:O,expose:R,inheritAttrs:A,components:D,directives:L,filters:X}=t,it={}.NODE_ENV!=="production"?ad():null;if({}.NODE_ENV!=="production"){const[W]=s.propsOptions;if(W)for(const nt in W)it("Props",nt)}if(c&&cd(c,n,it),o)for(const W in o){const nt=o[W];Tt(nt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,W,{value:nt.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[W]=nt.bind(e),{}.NODE_ENV!=="production"&&it("Methods",W)):{}.NODE_ENV!=="production"&&rt(`Method "${W}" has type "${typeof nt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Tt(i)&&rt("The data option must be a function. Plain object usage is no longer supported.");const W=i.call(e,e);if({}.NODE_ENV!=="production"&&Fr(W)&&rt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Yt(W))({}).NODE_ENV!=="production"&&rt("data() should return an object.");else if(s.data=te(W),{}.NODE_ENV!=="production")for(const nt in W)it("Data",nt),uo(nt[0])||Object.defineProperty(n,nt,{configurable:!0,enumerable:!0,get:()=>W[nt],set:oe})}if(fo=!0,r)for(const W in r){const nt=r[W],G=Tt(nt)?nt.bind(e,e):Tt(nt.get)?nt.get.bind(e,e):oe;({}).NODE_ENV!=="production"&&G===oe&&rt(`Computed property "${W}" has no getter.`);const j=!Tt(nt)&&Tt(nt.set)?nt.set.bind(e):{}.NODE_ENV!=="production"?()=>{rt(`Write operation failed: computed property "${W}" is readonly.`)}:oe,gt=Hd({get:G,set:j});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>gt.value,set:mt=>gt.value=mt}),{}.NODE_ENV!=="production"&&it("Computed",W)}if(a)for(const W in a)jl(a[W],n,e,W);if(l){const W=Tt(l)?l.call(e):l;Reflect.ownKeys(W).forEach(nt=>{md(nt,W[nt])})}u&&Xl(u,s,"c");function K(W,nt){xt(nt)?nt.forEach(G=>W(G.bind(e))):nt&&W(nt.bind(e))}if(K(Wf,h),K(Es,f),K(qf,m),K(Zf,d),K(jf,S),K(Uf,k),K(ed,ct),K(td,b),K(Jf,B),K(Qf,x),K(le,p),K(Kf,O),xt(R))if(R.length){const W=s.exposed||(s.exposed={});R.forEach(nt=>{Object.defineProperty(W,nt,{get:()=>e[nt],set:G=>e[nt]=G})})}else s.exposed||(s.exposed={});w&&s.render===oe&&(s.render=w),A!=null&&(s.inheritAttrs=A),D&&(s.components=D),L&&(s.directives=L)}function cd(s,t,e=oe){xt(s)&&(s=mo(s));for(const n in s){const i=s[n];let r;Yt(i)?"default"in i?r=Bi(i.from||n,i.default,!0):r=Bi(i.from||n):r=Bi(i),me(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function Xl(s,t,e){Ye(xt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function jl(s,t,e,n){const i=n.includes(".")?$l(e,n):()=>e[n];if(re(s)){const r=t[s];Tt(r)?Nt(i,r):{}.NODE_ENV!=="production"&&rt(`Invalid watch handler specified by key "${s}"`,r)}else if(Tt(s))Nt(i,s.bind(e));else if(Yt(s))if(xt(s))s.forEach(r=>jl(r,t,e,n));else{const r=Tt(s.handler)?s.handler.bind(e):t[s.handler];Tt(r)?Nt(i,r,s):{}.NODE_ENV!=="production"&&rt(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&rt(`Invalid watch option: "${n}"`,s)}function po(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>zi(l,c,o,!0)),zi(l,t,o)),Yt(t)&&r.set(t,l),l}function zi(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&zi(s,r,e,!0),i&&i.forEach(o=>zi(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&rt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=ud[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const ud={data:Ul,props:Hl,emits:Hl,methods:zn,computed:zn,beforeCreate:Ce,created:Ce,beforeMount:Ce,mounted:Ce,beforeUpdate:Ce,updated:Ce,beforeDestroy:Ce,beforeUnmount:Ce,destroyed:Ce,unmounted:Ce,activated:Ce,deactivated:Ce,errorCaptured:Ce,serverPrefetch:Ce,components:zn,directives:zn,watch:fd,provide:Ul,inject:hd};function Ul(s,t){return t?s?function(){return ie(Tt(s)?s.call(this,this):s,Tt(t)?t.call(this,this):t)}:t:s}function hd(s,t){return zn(mo(s),mo(t))}function mo(s){if(xt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Ce(s,t){return s?[...new Set([].concat(s,t))]:t}function zn(s,t){return s?ie(Object.create(null),s,t):t}function Hl(s,t){return s?xt(s)&&xt(t)?[...new Set([...s,...t])]:ie(Object.create(null),Yl(s),Yl(t??{})):t}function fd(s,t){if(!s)return t;if(!t)return s;const e=ie(Object.create(null),s);for(const n in t)e[n]=Ce(s[n],t[n]);return e}function Wl(){return{app:null,config:{isNativeTag:kh,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 dd=0;function pd(s,t){return function(n,i=null){Tt(n)||(n=ie({},n)),i!=null&&!Yt(i)&&({}.NODE_ENV!=="production"&&rt("root props passed to app.mount() must be an object."),i=null);const r=Wl(),o=new WeakSet;let a=!1;const l=r.app={_uid:dd++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:xc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&rt("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&rt("Plugin has already been applied to target app."):c&&Tt(c.install)?(o.add(c),c.install(l,...u)):Tt(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&rt('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&rt("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&To(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&rt(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Vl(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&rt(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&rt("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__&&rt("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 f=ft(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Os(f),c,h)}),u&&t?t(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,kf(l,xc)),Wi(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Ef(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&rt("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&rt(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=Bn;Bn=l;try{return c()}finally{Bn=u}}};return l}}let Bn=null;function md(s,t){if(!fe)({}).NODE_ENV!=="production"&&rt("provide() can only be used inside setup().");else{let e=fe.provides;const n=fe.parent&&fe.parent.provides;n===e&&(e=fe.provides=Object.create(n)),e[s]=t}}function Bi(s,t,e=!1){const n=fe||ae;if(n||Bn){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Bn._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&Tt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&rt(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&rt("inject() can only be used inside setup() or functional components.")}function gd(s,t,e,n=!1){const i={},r={};xi(r,Xi,1),s.propsDefaults=Object.create(null),ql(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&tc(t||{},i,s),e?s.props=n?i:of(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function yd(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function vd(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=It(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&yd(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Mi(s.emitsOptions,f))continue;const m=t[f];if(l)if(At(r,f))m!==r[f]&&(r[f]=m,c=!0);else{const d=dn(f);i[d]=go(l,a,d,m,s,!1)}else m!==r[f]&&(r[f]=m,c=!0)}}}else{ql(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!At(t,h)&&((u=vs(h))===h||!At(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=go(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!At(t,h))&&(delete r[h],c=!0)}c&&qe(s,"set","$attrs"),{}.NODE_ENV!=="production"&&tc(t||{},i,s)}function ql(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Pn(l))continue;const c=t[l];let u;i&&At(i,u=dn(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Mi(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=It(e),c=a||Xt;for(let u=0;u<r.length;u++){const h=r[u];e[h]=go(i,l,h,c[h],s,!At(c,h))}}return o}function go(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=At(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Tt(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=Wn(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===vs(e))&&(n=!0))}return n}function Zl(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!Tt(s)){const u=h=>{l=!0;const[f,m]=Zl(h,t,!0);ie(o,f),m&&a.push(...m)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Yt(s)&&n.set(s,hn),hn;if(xt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!re(r[u])&&rt("props must be strings when using array syntax.",r[u]);const h=dn(r[u]);Ql(h)&&(o[h]=Xt)}else if(r){({}).NODE_ENV!=="production"&&!Yt(r)&&rt("invalid props options",r);for(const u in r){const h=dn(u);if(Ql(h)){const f=r[u],m=o[h]=xt(f)||Tt(f)?{type:f}:ie({},f);if(m){const d=Jl(Boolean,m.type),S=Jl(String,m.type);m[0]=d>-1,m[1]=S<0||d<S,(d>-1||At(m,"default"))&&a.push(h)}}}}const c=[o,a];return Yt(s)&&n.set(s,c),c}function Ql(s){return s[0]!=="$"&&!Pn(s)?!0:({}.NODE_ENV!=="production"&&rt(`Invalid prop name: "${s}" is a reserved property.`),!1)}function yo(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Kl(s,t){return yo(s)===yo(t)}function Jl(s,t){return xt(t)?t.findIndex(e=>Kl(e,s)):Tt(t)&&Kl(t,s)?0:-1}function tc(s,t,e){const n=It(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&_d(r,n[r],o,{}.NODE_ENV!=="production"?pn(n):n,!At(s,r)&&!At(s,vs(r)))}}function _d(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){rt('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=xt(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:m,expectedType:d}=xd(t,u[f]);h.push(d||""),c=m}if(!c){rt(wd(s,t,h));return}}a&&!a(t,n)&&rt('Invalid prop: custom validator check failed for prop "'+s+'".')}}const bd=un("String,Number,Boolean,Function,Symbol,BigInt");function xd(s,t){let e;const n=yo(t);if(bd(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Yt(s):n==="Array"?e=xt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function wd(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(bi).join(" | ")}`;const i=e[0],r=Lr(t),o=ec(t,i),a=ec(t,r);return e.length===1&&sc(i)&&!Cd(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,sc(r)&&(n+=`with value ${a}.`),n}function ec(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function sc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Cd(...s){return s.some(t=>t.toLowerCase()==="boolean")}const nc=s=>s[0]==="_"||s==="$stable",vo=s=>xt(s)?s.map(je):[je(s)],Td=(s,t,e)=>{if(t._n)return t;const n=Et((...i)=>({}.NODE_ENV!=="production"&&fe&&(!e||e.root===fe.root)&&rt(`Slot "${s}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),vo(t(...i))),e);return n._c=!1,n},ic=(s,t,e)=>{const n=s._ctx;for(const i in s){if(nc(i))continue;const r=s[i];if(Tt(r))t[i]=Td(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&rt(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=vo(r);t[i]=()=>o}}},rc=(s,t)=>{({}).NODE_ENV!=="production"&&!lo(s.vnode)&&rt("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=vo(t);s.slots.default=()=>e},Sd=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=It(t),xi(t,"_",e)):ic(t,s.slots={})}else s.slots={},t&&rc(s,t);xi(s.slots,Xi,1)},kd=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Xt;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Ws?(ie(i,t),qe(s,"set","$slots")):e&&a===1?r=!1:(ie(i,t),!e&&a===1&&delete i._):(r=!t.$stable,ic(t,i)),o=t}else t&&(rc(s,t),o={default:1});if(r)for(const a in i)!nc(a)&&o[a]==null&&delete i[a]};function _o(s,t,e,n,i=!1){if(xt(s)){s.forEach((f,m)=>_o(f,t&&(xt(t)?t[m]:t),e,n,i));return}if(Vn(n)&&!i)return;const r=n.shapeFlag&4?Wi(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){rt("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=t&&t.r,u=a.refs===Xt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(re(c)?(u[c]=null,At(h,c)&&(h[c]=null)):me(c)&&(c.value=null)),Tt(l))os(l,a,12,[o,u]);else{const f=re(l),m=me(l);if(f||m){const d=()=>{if(s.f){const S=f?At(h,l)?h[l]:u[l]:l.value;i?xt(S)&&Nr(S,r):xt(S)?S.includes(r)||S.push(r):f?(u[l]=[r],At(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,At(h,l)&&(h[l]=o)):m?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&rt("Invalid template ref type:",l,`(${typeof l})`)};o?(d.id=-1,Pe(d,e)):d()}else({}).NODE_ENV!=="production"&&rt("Invalid template ref type:",l,`(${typeof l})`)}}let Gn,Ps;function cs(s,t){s.appContext.config.performance&&Gi()&&Ps.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Df(s,t,Gi()?Ps.now():Date.now())}function us(s,t){if(s.appContext.config.performance&&Gi()){const e=`vue-${t}-${s.uid}`,n=e+":end";Ps.mark(n),Ps.measure(`<${qi(s,s.type)}> ${t}`,e,n),Ps.clearMarks(e),Ps.clearMarks(n)}({}).NODE_ENV!=="production"&&Rf(s,t,Gi()?Ps.now():Date.now())}function Gi(){return Gn!==void 0||(typeof window<"u"&&window.performance?(Gn=!0,Ps=window.performance):Gn=!1),Gn}function Ed(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"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 Pe=Bf;function Pd(s){return Od(s)}function Od(s,t){Ed();const e=Vr();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Il(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:m=oe,insertStaticContent:d}=s,S=(C,I,$,U=null,q=null,et=null,ot=void 0,Q=null,st={}.NODE_ENV!=="production"&&Ws?!1:!!I.dynamicChildren)=>{if(C===I)return;C&&!Hn(C,I)&&(U=ee(C),Z(C,q,et,!0),C=null),I.patchFlag===-2&&(st=!1,I.dynamicChildren=null);const{type:J,ref:ht,shapeFlag:vt}=I;switch(J){case Yn:k(C,I,$,U);break;case Oe:_(C,I,$,U);break;case Xn:C==null?x(I,$,U,ot):{}.NODE_ENV!=="production"&&y(C,I,$,ot);break;case $t:L(C,I,$,U,q,et,ot,Q,st);break;default:vt&1?b(C,I,$,U,q,et,ot,Q,st):vt&6?X(C,I,$,U,q,et,ot,Q,st):vt&64||vt&128?J.process(C,I,$,U,q,et,ot,Q,st,Fe):{}.NODE_ENV!=="production"&&rt("Invalid VNode type:",J,`(${typeof J})`)}ht!=null&&q&&_o(ht,C&&C.ref,et,I||C,!I)},k=(C,I,$,U)=>{if(C==null)n(I.el=a(I.children),$,U);else{const q=I.el=C.el;I.children!==C.children&&c(q,I.children)}},_=(C,I,$,U)=>{C==null?n(I.el=l(I.children||""),$,U):I.el=C.el},x=(C,I,$,U)=>{[C.el,C.anchor]=d(C.children,I,$,U,C.el,C.anchor)},y=(C,I,$,U)=>{if(I.children!==C.children){const q=f(C.anchor);w(C),[I.el,I.anchor]=d(I.children,$,q,U)}else I.el=C.el,I.anchor=C.anchor},p=({el:C,anchor:I},$,U)=>{let q;for(;C&&C!==I;)q=f(C),n(C,$,U),C=q;n(I,$,U)},w=({el:C,anchor:I})=>{let $;for(;C&&C!==I;)$=f(C),i(C),C=$;i(I)},b=(C,I,$,U,q,et,ot,Q,st)=>{I.type==="svg"?ot="svg":I.type==="math"&&(ot="mathml"),C==null?B(I,$,U,q,et,ot,Q,st):R(C,I,q,et,ot,Q,st)},B=(C,I,$,U,q,et,ot,Q)=>{let st,J;const{props:ht,shapeFlag:vt,transition:yt,dirs:Ct}=C;if(st=C.el=o(C.type,et,ht&&ht.is,ht),vt&8?u(st,C.children):vt&16&&O(C.children,st,null,U,q,bo(C,et),ot,Q),Ct&&Ks(C,null,U,"created"),ct(st,C,C.scopeId,ot,U),ht){for(const Vt in ht)Vt!=="value"&&!Pn(Vt)&&r(st,Vt,null,ht[Vt],et,C.children,U,q,Ot);"value"in ht&&r(st,"value",null,ht.value,et),(J=ht.onVnodeBeforeMount)&&Ke(J,U,C)}({}).NODE_ENV!=="production"&&(Object.defineProperty(st,"__vnode",{value:C,enumerable:!1}),Object.defineProperty(st,"__vueParentComponent",{value:U,enumerable:!1})),Ct&&Ks(C,null,U,"beforeMount");const Rt=Id(q,yt);Rt&&yt.beforeEnter(st),n(st,I,$),((J=ht&&ht.onVnodeMounted)||Rt||Ct)&&Pe(()=>{J&&Ke(J,U,C),Rt&&yt.enter(st),Ct&&Ks(C,null,U,"mounted")},q)},ct=(C,I,$,U,q)=>{if($&&m(C,$),U)for(let et=0;et<U.length;et++)m(C,U[et]);if(q){let et=q.subTree;if({}.NODE_ENV!=="production"&&et.patchFlag>0&&et.patchFlag&2048&&(et=oo(et.children)||et),I===et){const ot=q.vnode;ct(C,ot,ot.scopeId,ot.slotScopeIds,q.parent)}}},O=(C,I,$,U,q,et,ot,Q,st=0)=>{for(let J=st;J<C.length;J++){const ht=C[J]=Q?Is(C[J]):je(C[J]);S(null,ht,I,$,U,q,et,ot,Q)}},R=(C,I,$,U,q,et,ot)=>{const Q=I.el=C.el;let{patchFlag:st,dynamicChildren:J,dirs:ht}=I;st|=C.patchFlag&16;const vt=C.props||Xt,yt=I.props||Xt;let Ct;if($&&tn($,!1),(Ct=yt.onVnodeBeforeUpdate)&&Ke(Ct,$,I,C),ht&&Ks(I,C,$,"beforeUpdate"),$&&tn($,!0),{}.NODE_ENV!=="production"&&Ws&&(st=0,ot=!1,J=null),J?(A(C.dynamicChildren,J,Q,$,U,bo(I,q),et),{}.NODE_ENV!=="production"&&Yi(C,I)):ot||G(C,I,Q,null,$,U,bo(I,q),et,!1),st>0){if(st&16)D(Q,I,vt,yt,$,U,q);else if(st&2&&vt.class!==yt.class&&r(Q,"class",null,yt.class,q),st&4&&r(Q,"style",vt.style,yt.style,q),st&8){const Rt=I.dynamicProps;for(let Vt=0;Vt<Rt.length;Vt++){const Ut=Rt[Vt],se=vt[Ut],Se=yt[Ut];(Se!==se||Ut==="value")&&r(Q,Ut,se,Se,q,C.children,$,U,Ot)}}st&1&&C.children!==I.children&&u(Q,I.children)}else!ot&&J==null&&D(Q,I,vt,yt,$,U,q);((Ct=yt.onVnodeUpdated)||ht)&&Pe(()=>{Ct&&Ke(Ct,$,I,C),ht&&Ks(I,C,$,"updated")},U)},A=(C,I,$,U,q,et,ot)=>{for(let Q=0;Q<I.length;Q++){const st=C[Q],J=I[Q],ht=st.el&&(st.type===$t||!Hn(st,J)||st.shapeFlag&70)?h(st.el):$;S(st,J,ht,null,U,q,et,ot,!0)}},D=(C,I,$,U,q,et,ot)=>{if($!==U){if($!==Xt)for(const Q in $)!Pn(Q)&&!(Q in U)&&r(C,Q,$[Q],null,ot,I.children,q,et,Ot);for(const Q in U){if(Pn(Q))continue;const st=U[Q],J=$[Q];st!==J&&Q!=="value"&&r(C,Q,J,st,ot,I.children,q,et,Ot)}"value"in U&&r(C,"value",$.value,U.value,ot)}},L=(C,I,$,U,q,et,ot,Q,st)=>{const J=I.el=C?C.el:a(""),ht=I.anchor=C?C.anchor:a("");let{patchFlag:vt,dynamicChildren:yt,slotScopeIds:Ct}=I;({}).NODE_ENV!=="production"&&(Ws||vt&2048)&&(vt=0,st=!1,yt=null),Ct&&(Q=Q?Q.concat(Ct):Ct),C==null?(n(J,$,U),n(ht,$,U),O(I.children||[],$,ht,q,et,ot,Q,st)):vt>0&&vt&64&&yt&&C.dynamicChildren?(A(C.dynamicChildren,yt,$,q,et,ot,Q),{}.NODE_ENV!=="production"?Yi(C,I):(I.key!=null||q&&I===q.subTree)&&Yi(C,I,!0)):G(C,I,$,ht,q,et,ot,Q,st)},X=(C,I,$,U,q,et,ot,Q,st)=>{I.slotScopeIds=Q,C==null?I.shapeFlag&512?q.ctx.activate(I,$,U,ot,st):it(I,$,U,q,et,ot,st):K(C,I,st)},it=(C,I,$,U,q,et,ot)=>{const Q=C.component=Vd(C,U,q);if({}.NODE_ENV!=="production"&&Q.type.__hmrId&&wf(Q),{}.NODE_ENV!=="production"&&(Di(C),cs(Q,"mount")),lo(C)&&(Q.ctx.renderer=Fe),{}.NODE_ENV!=="production"&&cs(Q,"init"),Bd(Q),{}.NODE_ENV!=="production"&&us(Q,"init"),Q.asyncDep){if(q&&q.registerDep(Q,W),!C.el){const st=Q.subTree=ft(Oe);_(null,st,I,$)}}else W(Q,C,I,$,q,et,ot);({}).NODE_ENV!=="production"&&(Ri(),us(Q,"mount"))},K=(C,I,$)=>{const U=I.component=C.component;if(Lf(C,I,$))if(U.asyncDep&&!U.asyncResolved){({}).NODE_ENV!=="production"&&Di(I),nt(U,I,$),{}.NODE_ENV!=="production"&&Ri();return}else U.next=I,bf(U.update),U.effect.dirty=!0,U.update();else I.el=C.el,U.vnode=I},W=(C,I,$,U,q,et,ot)=>{const Q=()=>{if(C.isMounted){let{next:ht,bu:vt,u:yt,parent:Ct,vnode:Rt}=C;{const Vs=oc(C);if(Vs){ht&&(ht.el=Rt.el,nt(C,ht,ot)),Vs.asyncDep.then(()=>{C.isUnmounted||Q()});return}}let Vt=ht,Ut;({}).NODE_ENV!=="production"&&Di(ht||C.vnode),tn(C,!1),ht?(ht.el=Rt.el,nt(C,ht,ot)):ht=Rt,vt&&On(vt),(Ut=ht.props&&ht.props.onVnodeBeforeUpdate)&&Ke(Ut,Ct,ht,Rt),tn(C,!0),{}.NODE_ENV!=="production"&&cs(C,"render");const se=ro(C);({}).NODE_ENV!=="production"&&us(C,"render");const Se=C.subTree;C.subTree=se,{}.NODE_ENV!=="production"&&cs(C,"patch"),S(Se,se,h(Se.el),ee(Se),C,q,et),{}.NODE_ENV!=="production"&&us(C,"patch"),ht.el=se.el,Vt===null&&$f(C,se.el),yt&&Pe(yt,q),(Ut=ht.props&&ht.props.onVnodeUpdated)&&Pe(()=>Ke(Ut,Ct,ht,Rt),q),{}.NODE_ENV!=="production"&&Dl(C),{}.NODE_ENV!=="production"&&Ri()}else{let ht;const{el:vt,props:yt}=I,{bm:Ct,m:Rt,parent:Vt}=C,Ut=Vn(I);if(tn(C,!1),Ct&&On(Ct),!Ut&&(ht=yt&&yt.onVnodeBeforeMount)&&Ke(ht,Vt,I),tn(C,!0),vt&&Ae){const se=()=>{({}).NODE_ENV!=="production"&&cs(C,"render"),C.subTree=ro(C),{}.NODE_ENV!=="production"&&us(C,"render"),{}.NODE_ENV!=="production"&&cs(C,"hydrate"),Ae(vt,C.subTree,C,q,null),{}.NODE_ENV!=="production"&&us(C,"hydrate")};Ut?I.type.__asyncLoader().then(()=>!C.isUnmounted&&se()):se()}else{({}).NODE_ENV!=="production"&&cs(C,"render");const se=C.subTree=ro(C);({}).NODE_ENV!=="production"&&us(C,"render"),{}.NODE_ENV!=="production"&&cs(C,"patch"),S(null,se,$,U,C,q,et),{}.NODE_ENV!=="production"&&us(C,"patch"),I.el=se.el}if(Rt&&Pe(Rt,q),!Ut&&(ht=yt&&yt.onVnodeMounted)){const se=I;Pe(()=>Ke(ht,Vt,se),q)}(I.shapeFlag&256||Vt&&Vn(Vt.vnode)&&Vt.vnode.shapeFlag&256)&&C.a&&Pe(C.a,q),C.isMounted=!0,{}.NODE_ENV!=="production"&&Pf(C),I=$=U=null}},st=C.effect=new Br(Q,oe,()=>Ai(J),C.scope),J=C.update=()=>{st.dirty&&st.run()};J.id=C.uid,tn(C,!0),{}.NODE_ENV!=="production"&&(st.onTrack=C.rtc?ht=>On(C.rtc,ht):void 0,st.onTrigger=C.rtg?ht=>On(C.rtg,ht):void 0,J.ownerInstance=C),J()},nt=(C,I,$)=>{I.component=C;const U=C.vnode.props;C.vnode=I,C.next=null,vd(C,I.props,U,$),kd(C,I.children,$),ws(),Sl(C),Cs()},G=(C,I,$,U,q,et,ot,Q,st=!1)=>{const J=C&&C.children,ht=C?C.shapeFlag:0,vt=I.children,{patchFlag:yt,shapeFlag:Ct}=I;if(yt>0){if(yt&128){gt(J,vt,$,U,q,et,ot,Q,st);return}else if(yt&256){j(J,vt,$,U,q,et,ot,Q,st);return}}Ct&8?(ht&16&&Ot(J,q,et),vt!==J&&u($,vt)):ht&16?Ct&16?gt(J,vt,$,U,q,et,ot,Q,st):Ot(J,q,et,!0):(ht&8&&u($,""),Ct&16&&O(vt,$,U,q,et,ot,Q,st))},j=(C,I,$,U,q,et,ot,Q,st)=>{C=C||hn,I=I||hn;const J=C.length,ht=I.length,vt=Math.min(J,ht);let yt;for(yt=0;yt<vt;yt++){const Ct=I[yt]=st?Is(I[yt]):je(I[yt]);S(C[yt],Ct,$,null,q,et,ot,Q,st)}J>ht?Ot(C,q,et,!0,!1,vt):O(I,$,U,q,et,ot,Q,st,vt)},gt=(C,I,$,U,q,et,ot,Q,st)=>{let J=0;const ht=I.length;let vt=C.length-1,yt=ht-1;for(;J<=vt&&J<=yt;){const Ct=C[J],Rt=I[J]=st?Is(I[J]):je(I[J]);if(Hn(Ct,Rt))S(Ct,Rt,$,null,q,et,ot,Q,st);else break;J++}for(;J<=vt&&J<=yt;){const Ct=C[vt],Rt=I[yt]=st?Is(I[yt]):je(I[yt]);if(Hn(Ct,Rt))S(Ct,Rt,$,null,q,et,ot,Q,st);else break;vt--,yt--}if(J>vt){if(J<=yt){const Ct=yt+1,Rt=Ct<ht?I[Ct].el:U;for(;J<=yt;)S(null,I[J]=st?Is(I[J]):je(I[J]),$,Rt,q,et,ot,Q,st),J++}}else if(J>yt)for(;J<=vt;)Z(C[J],q,et,!0),J++;else{const Ct=J,Rt=J,Vt=new Map;for(J=Rt;J<=yt;J++){const _e=I[J]=st?Is(I[J]):je(I[J]);_e.key!=null&&({}.NODE_ENV!=="production"&&Vt.has(_e.key)&&rt("Duplicate keys found during update:",JSON.stringify(_e.key),"Make sure keys are unique."),Vt.set(_e.key,J))}let Ut,se=0;const Se=yt-Rt+1;let Vs=!1,kr=0;const ln=new Array(Se);for(J=0;J<Se;J++)ln[J]=0;for(J=Ct;J<=vt;J++){const _e=C[J];if(se>=Se){Z(_e,q,et,!0);continue}let ke;if(_e.key!=null)ke=Vt.get(_e.key);else for(Ut=Rt;Ut<=yt;Ut++)if(ln[Ut-Rt]===0&&Hn(_e,I[Ut])){ke=Ut;break}ke===void 0?Z(_e,q,et,!0):(ln[ke-Rt]=J+1,ke>=kr?kr=ke:Vs=!0,S(_e,I[ke],$,null,q,et,ot,Q,st),se++)}const Er=Vs?Dd(ln):hn;for(Ut=Er.length-1,J=Se-1;J>=0;J--){const _e=Rt+J,ke=I[_e],Pr=_e+1<ht?I[_e+1].el:U;ln[J]===0?S(null,ke,$,Pr,q,et,ot,Q,st):Vs&&(Ut<0||J!==Er[Ut]?mt(ke,$,Pr,2):Ut--)}}},mt=(C,I,$,U,q=null)=>{const{el:et,type:ot,transition:Q,children:st,shapeFlag:J}=C;if(J&6){mt(C.component.subTree,I,$,U);return}if(J&128){C.suspense.move(I,$,U);return}if(J&64){ot.move(C,I,$,Fe);return}if(ot===$t){n(et,I,$);for(let vt=0;vt<st.length;vt++)mt(st[vt],I,$,U);n(C.anchor,I,$);return}if(ot===Xn){p(C,I,$);return}if(U!==2&&J&1&&Q)if(U===0)Q.beforeEnter(et),n(et,I,$),Pe(()=>Q.enter(et),q);else{const{leave:vt,delayLeave:yt,afterLeave:Ct}=Q,Rt=()=>n(et,I,$),Vt=()=>{vt(et,()=>{Rt(),Ct&&Ct()})};yt?yt(et,Rt,Vt):Vt()}else n(et,I,$)},Z=(C,I,$,U=!1,q=!1)=>{const{type:et,props:ot,ref:Q,children:st,dynamicChildren:J,shapeFlag:ht,patchFlag:vt,dirs:yt}=C;if(Q!=null&&_o(Q,null,$,C,!0),ht&256){I.ctx.deactivate(C);return}const Ct=ht&1&&yt,Rt=!Vn(C);let Vt;if(Rt&&(Vt=ot&&ot.onVnodeBeforeUnmount)&&Ke(Vt,I,C),ht&6)te(C.component,$,U);else{if(ht&128){C.suspense.unmount($,U);return}Ct&&Ks(C,null,I,"beforeUnmount"),ht&64?C.type.remove(C,I,$,q,Fe,U):J&&(et!==$t||vt>0&&vt&64)?Ot(J,I,$,!1,!0):(et===$t&&vt&384||!q&&ht&16)&&Ot(st,I,$),U&&V(C)}(Rt&&(Vt=ot&&ot.onVnodeUnmounted)||Ct)&&Pe(()=>{Vt&&Ke(Vt,I,C),Ct&&Ks(C,null,I,"unmounted")},$)},V=C=>{const{type:I,el:$,anchor:U,transition:q}=C;if(I===$t){({}).NODE_ENV!=="production"&&C.patchFlag>0&&C.patchFlag&2048&&q&&!q.persisted?C.children.forEach(ot=>{ot.type===Oe?i(ot.el):V(ot)}):Qt($,U);return}if(I===Xn){w(C);return}const et=()=>{i($),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(C.shapeFlag&1&&q&&!q.persisted){const{leave:ot,delayLeave:Q}=q,st=()=>ot($,et);Q?Q(C.el,et,st):st()}else et()},Qt=(C,I)=>{let $;for(;C!==I;)$=f(C),i(C),C=$;i(I)},te=(C,I,$)=>{({}).NODE_ENV!=="production"&&C.type.__hmrId&&Cf(C);const{bum:U,scope:q,update:et,subTree:ot,um:Q}=C;U&&On(U),q.stop(),et&&(et.active=!1,Z(ot,C,I,$)),Q&&Pe(Q,I),Pe(()=>{C.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve()),{}.NODE_ENV!=="production"&&If(C)},Ot=(C,I,$,U=!1,q=!1,et=0)=>{for(let ot=et;ot<C.length;ot++)Z(C[ot],I,$,U,q)},ee=C=>C.shapeFlag&6?ee(C.component.subTree):C.shapeFlag&128?C.suspense.next():f(C.anchor||C.el);let zt=!1;const Y=(C,I,$)=>{C==null?I._vnode&&Z(I._vnode,null,null,!0):S(I._vnode||null,C,I,null,null,null,$),zt||(zt=!0,Sl(),kl(),zt=!1),I._vnode=C},Fe={p:S,um:Z,m:mt,r:V,mt:it,mc:O,pc:G,pbc:A,n:ee,o:s};let ze,Ae;return t&&([ze,Ae]=t(Fe)),{render:Y,hydrate:ze,createApp:pd(Y,ze)}}function bo({type:s,props:t},e){return e==="svg"&&s==="foreignObject"||e==="mathml"&&s==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function tn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function Id(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function Yi(s,t,e=!1){const n=s.children,i=t.children;if(bt(n)&&bt(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Is(i[r]),a.el=o.el),e||Yi(o,a)),a.type===Yn&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Oe&&!a.el&&(a.el=o.el)}}function Dd(s){const t=s.slice(),e=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=e[e.length-1],s[i]<c){t[n]=i,e.push(n);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,s[e[a]]<c?r=a+1:o=a;c<s[e[r]]&&(r>0&&(t[n]=e[r-1]),e[r]=n)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function oc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oc(t)}const Rd=s=>s.__isTeleport,$t=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),Xn=Symbol.for("v-stc"),jn=[];let Xe=null;function F(s=!1){jn.push(Xe=s?null:[])}function Ad(){jn.pop(),Xe=jn[jn.length-1]||null}let Un=1;function ac(s){Un+=s}function lc(s){return s.dynamicChildren=Un>0?Xe||hn:null,Ad(),Un>0&&Xe&&Xe.push(s),s}function H(s,t,e,n,i,r){return lc(P(s,t,e,n,i,r,!0))}function Bt(s,t,e,n,i){return lc(ft(s,t,e,n,i,!0))}function yn(s){return s?s.__v_isVNode===!0:!1}function Hn(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&gn.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Md=(...s)=>uc(...s),Xi="__vInternal",cc=({key:s})=>s??null,ji=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?re(s)||me(s)||Tt(s)?{i:ae,r:s,k:t,f:!!e}:s:null);function P(s,t=null,e=null,n=0,i=null,r=s===$t?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&cc(t),ref:t&&ji(t),scopeId:Ni,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ae};return a?(xo(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=re(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&rt("VNode created with invalid key (NaN). VNode type:",l.type),Un>0&&!o&&Xe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Xe.push(l),l}const ft={}.NODE_ENV!=="production"?Md:uc;function uc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===Vf)&&({}.NODE_ENV!=="production"&&!s&&rt(`Invalid vnode type when creating vnode: ${s}.`),s=Oe),yn(s)){const a=Os(s,t,!0);return e&&xo(a,e),Un>0&&!r&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(s)]=a:Xe.push(a)),a.patchFlag|=-2,a}if(bc(s)&&(s=s.__vccOpts),t){t=Nd(t);let{class:a,style:l}=t;a&&!re(a)&&(t.class=ie(a)),Yt(l)&&(qr(l)&&!bt(l)&&(l=ne({},l)),t.style=z(l))}const o=re(s)?1:zf(s)?128:Rd(s)?64:Yt(s)?4:Tt(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&qr(s)&&(s=It(s),rt("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: `,s)),P(s,t,e,n,i,o,r,!0)}function Nd(s){return s?qr(s)||Xi in s?ne({},s):s:null}function Os(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?wo(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&cc(a),ref:t&&t.ref?e&&i?bt(i)?i.concat(ji(t)):[i,ji(t)]:ji(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&bt(o)?o.map(hc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==$t?r===-1?16:r|16:r,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Os(s.ssContent),ssFallback:s.ssFallback&&Os(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function hc(s){const t=Os(s);return bt(s.children)&&(t.children=s.children.map(hc)),t}function Kt(s=" ",t=0){return ft(Yn,null,s,t)}function Fd(s,t){const e=ft(Xn,null,s);return e.staticCount=t,e}function Gt(s="",t=!1){return t?(F(),Bt(Oe,null,s)):ft(Oe,null,s)}function je(s){return s==null||typeof s=="boolean"?ft(Oe):bt(s)?ft($t,null,s.slice()):typeof s=="object"?Is(s):ft(Yn,null,String(s))}function Is(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Os(s)}function xo(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(bt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),xo(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!(Xi in t)?t._ctx=ae:i===3&&ae&&(ae.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:ae},e=32):(t=String(t),n&64?(e=16,t=[Kt(t)]):e=8);s.children=t,s.shapeFlag|=e}function wo(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=ie([t.class,n.class]));else if(i==="style")t.style=z([t.style,n.style]);else if(En(i)){const r=t[i],o=n[i];o&&r!==o&&!(bt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function Ke(s,t,e,n=null){Ye(s,t,7,[e,n])}const Ld=Wl();let $d=0;function Vd(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||Ld,r={uid:$d++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Lh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zl(n,i),emitsOptions:Al(n,i),emit:null,emitted:null,propsDefaults:Xt,inheritAttrs:n.inheritAttrs,ctx:Xt,data:Xt,props:Xt,attrs:Xt,slots:Xt,refs:Xt,setupState:Xt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:e,suspenseId:e?e.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"?r.ctx=sd(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Mf.bind(null,r),s.ce&&s.ce(r),r}let fe=null;const fc=()=>fe||ae;let Ui,Co;{const s=Vr(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Ui=t("__VUE_INSTANCE_SETTERS__",e=>fe=e),Co=t("__VUE_SSR_SETTERS__",e=>Hi=e)}const Wn=s=>{const t=fe;return Ui(s),s.scope.on(),()=>{s.scope.off(),Ui(t)}},dc=()=>{fe&&fe.scope.off(),Ui(null)},zd=un("slot,component");function To(s,{isNativeTag:t}){(zd(s)||t(s))&&rt("Do not use built-in or reserved HTML elements as component id: "+s)}function pc(s){return s.vnode.shapeFlag&4}let Hi=!1;function Bd(s,t=!1){t&&Co(t);const{props:e,children:n}=s.vnode,i=pc(s);gd(s,e,i,t),Sd(s,n);const r=i?Gd(s,t):void 0;return t&&Co(!1),r}function Gd(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&To(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)To(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)Vl(r[o])}n.compilerOptions&&Yd()&&rt('"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.')}s.accessCache=Object.create(null),s.proxy=yl(new Proxy(s.ctx,Gl)),{}.NODE_ENV!=="production"&&nd(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?vc(s):null,o=Wn(s);ws();const a=os(i,s,0,[{}.NODE_ENV!=="production"?pn(s.props):s.props,r]);if(Cs(),o(),Fr(a)){if(a.then(dc,dc),t)return a.then(l=>{mc(s,l,t)}).catch(l=>{Dn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";rt(`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 mc(s,a,t)}else gc(s,t)}function mc(s,t,e){Tt(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Yt(t)?({}.NODE_ENV!=="production"&&yn(t)&&rt("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=bl(t),{}.NODE_ENV!=="production"&&id(s)):{}.NODE_ENV!=="production"&&t!==void 0&&rt(`setup() should return an object. Received: ${t===null?"null":typeof t}`),gc(s,e)}let So;const Yd=()=>!So;function gc(s,t,e){const n=s.type;if(!s.render){if(!t&&So&&!n.render){const i=n.template||po(s).template;if(i){({}).NODE_ENV!=="production"&&cs(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=ne(ne({isCustomElement:r,delimiters:a},o),l);n.render=So(i,c),{}.NODE_ENV!=="production"&&us(s,"compile")}}s.render=n.render||oe}{const i=Wn(s);ws();try{ld(s)}finally{Cs(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===oe&&!t&&(n.template?rt('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".'):rt("Component is missing template or render function."))}function yc(s){return s.attrsProxy||(s.attrsProxy=new Proxy(s.attrs,{}.NODE_ENV!=="production"?{get(t,e){return Li(),pe(s,"get","$attrs"),t[e]},set(){return rt("setupContext.attrs is readonly."),!1},deleteProperty(){return rt("setupContext.attrs is readonly."),!1}}:{get(t,e){return pe(s,"get","$attrs"),t[e]}}))}function Xd(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return pe(s,"get","$slots"),t[e]}}))}function vc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&rt("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(bt(e)?n="array":me(e)&&(n="ref")),n!=="object"&&rt(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};return{}.NODE_ENV!=="production"?Object.freeze({get attrs(){return yc(s)},get slots(){return Xd(s)},get emit(){return(e,...n)=>s.emit(e,...n)},expose:t}):{get attrs(){return yc(s)},slots:s.slots,emit:s.emit,expose:t}}function Wi(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(bl(yl(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in Js)return Js[e](s)},has(t,e){return e in t||e in Js}}))}const jd=/(?:^|[-_])(\w)/g,Ud=s=>s.replace(jd,t=>t.toUpperCase()).replace(/[-_]/g,"");function _c(s,t=!0){return Tt(s)?s.displayName||s.name:s.name||t&&s.__name}function qi(s,t,e=!1){let n=_c(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?Ud(n):e?"App":"Anonymous"}function bc(s){return Tt(s)&&"__vccOpts"in s}const Hd=(s,t)=>{const e=lf(s,t,Hi);if({}.NODE_ENV!=="production"){const n=fc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function hs(s,t,e){const n=arguments.length;return n===2?Yt(t)&&!bt(t)?yn(t)?ft(s,null,[t]):ft(s,t):ft(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&yn(e)&&(e=[e]),ft(s,t,e))}function Wd(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Yt(h)?h.__isVue?["div",s,"VueInstance"]:me(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:js(h)?["div",{},["span",s,Us(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Ss(h)?" (readonly)":""}`]:Ss(h)?["div",{},["span",s,Us(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...r(h.$)]}};function r(h){const f=[];h.type.props&&h.props&&f.push(o("props",It(h.props))),h.setupState!==Xt&&f.push(o("setup",h.setupState)),h.data!==Xt&&f.push(o("data",It(h.data)));const m=l(h,"computed");m&&f.push(o("computed",m));const d=l(h,"inject");return d&&f.push(o("injected",d)),f.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=ne({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(m=>["div",{},["span",n,m+": "],a(f[m],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Yt(h)?["object",{object:f?It(h):h}]:["span",e,String(h)]}function l(h,f){const m=h.type;if(Tt(m))return;const d={};for(const S in h.ctx)c(m,S,f)&&(d[S]=h.ctx[S]);return d}function c(h,f,m){const d=h[m];if(bt(d)&&d.includes(f)||Yt(d)&&f in d||h.extends&&c(h.extends,f,m)||h.mixins&&h.mixins.some(S=>c(S,f,m)))return!0}function u(h){return Us(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const xc="3.4.21",wc={}.NODE_ENV!=="production"?rt:oe;/**
20
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const Pe=Bf;function Pd(s){return Od(s)}function Od(s,t){Ed();const e=Vr();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Il(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:m=oe,insertStaticContent:d}=s,S=(C,I,$,H=null,q=null,et=null,ot=void 0,Q=null,st={}.NODE_ENV!=="production"&&Ws?!1:!!I.dynamicChildren)=>{if(C===I)return;C&&!Hn(C,I)&&(H=se(C),Z(C,q,et,!0),C=null),I.patchFlag===-2&&(st=!1,I.dynamicChildren=null);const{type:J,ref:ht,shapeFlag:vt}=I;switch(J){case Yn:k(C,I,$,H);break;case Oe:_(C,I,$,H);break;case Xn:C==null?x(I,$,H,ot):{}.NODE_ENV!=="production"&&y(C,I,$,ot);break;case Vt:L(C,I,$,H,q,et,ot,Q,st);break;default:vt&1?b(C,I,$,H,q,et,ot,Q,st):vt&6?X(C,I,$,H,q,et,ot,Q,st):vt&64||vt&128?J.process(C,I,$,H,q,et,ot,Q,st,Fe):{}.NODE_ENV!=="production"&&rt("Invalid VNode type:",J,`(${typeof J})`)}ht!=null&&q&&_o(ht,C&&C.ref,et,I||C,!I)},k=(C,I,$,H)=>{if(C==null)n(I.el=a(I.children),$,H);else{const q=I.el=C.el;I.children!==C.children&&c(q,I.children)}},_=(C,I,$,H)=>{C==null?n(I.el=l(I.children||""),$,H):I.el=C.el},x=(C,I,$,H)=>{[C.el,C.anchor]=d(C.children,I,$,H,C.el,C.anchor)},y=(C,I,$,H)=>{if(I.children!==C.children){const q=f(C.anchor);w(C),[I.el,I.anchor]=d(I.children,$,q,H)}else I.el=C.el,I.anchor=C.anchor},p=({el:C,anchor:I},$,H)=>{let q;for(;C&&C!==I;)q=f(C),n(C,$,H),C=q;n(I,$,H)},w=({el:C,anchor:I})=>{let $;for(;C&&C!==I;)$=f(C),i(C),C=$;i(I)},b=(C,I,$,H,q,et,ot,Q,st)=>{I.type==="svg"?ot="svg":I.type==="math"&&(ot="mathml"),C==null?B(I,$,H,q,et,ot,Q,st):R(C,I,q,et,ot,Q,st)},B=(C,I,$,H,q,et,ot,Q)=>{let st,J;const{props:ht,shapeFlag:vt,transition:yt,dirs:Ct}=C;if(st=C.el=o(C.type,et,ht&&ht.is,ht),vt&8?u(st,C.children):vt&16&&O(C.children,st,null,H,q,bo(C,et),ot,Q),Ct&&Ks(C,null,H,"created"),ct(st,C,C.scopeId,ot,H),ht){for(const zt in ht)zt!=="value"&&!Pn(zt)&&r(st,zt,null,ht[zt],et,C.children,H,q,Ot);"value"in ht&&r(st,"value",null,ht.value,et),(J=ht.onVnodeBeforeMount)&&Ke(J,H,C)}({}).NODE_ENV!=="production"&&(Object.defineProperty(st,"__vnode",{value:C,enumerable:!1}),Object.defineProperty(st,"__vueParentComponent",{value:H,enumerable:!1})),Ct&&Ks(C,null,H,"beforeMount");const Rt=Id(q,yt);Rt&&yt.beforeEnter(st),n(st,I,$),((J=ht&&ht.onVnodeMounted)||Rt||Ct)&&Pe(()=>{J&&Ke(J,H,C),Rt&&yt.enter(st),Ct&&Ks(C,null,H,"mounted")},q)},ct=(C,I,$,H,q)=>{if($&&m(C,$),H)for(let et=0;et<H.length;et++)m(C,H[et]);if(q){let et=q.subTree;if({}.NODE_ENV!=="production"&&et.patchFlag>0&&et.patchFlag&2048&&(et=oo(et.children)||et),I===et){const ot=q.vnode;ct(C,ot,ot.scopeId,ot.slotScopeIds,q.parent)}}},O=(C,I,$,H,q,et,ot,Q,st=0)=>{for(let J=st;J<C.length;J++){const ht=C[J]=Q?Is(C[J]):je(C[J]);S(null,ht,I,$,H,q,et,ot,Q)}},R=(C,I,$,H,q,et,ot)=>{const Q=I.el=C.el;let{patchFlag:st,dynamicChildren:J,dirs:ht}=I;st|=C.patchFlag&16;const vt=C.props||Xt,yt=I.props||Xt;let Ct;if($&&tn($,!1),(Ct=yt.onVnodeBeforeUpdate)&&Ke(Ct,$,I,C),ht&&Ks(I,C,$,"beforeUpdate"),$&&tn($,!0),{}.NODE_ENV!=="production"&&Ws&&(st=0,ot=!1,J=null),J?(A(C.dynamicChildren,J,Q,$,H,bo(I,q),et),{}.NODE_ENV!=="production"&&Yi(C,I)):ot||G(C,I,Q,null,$,H,bo(I,q),et,!1),st>0){if(st&16)D(Q,I,vt,yt,$,H,q);else if(st&2&&vt.class!==yt.class&&r(Q,"class",null,yt.class,q),st&4&&r(Q,"style",vt.style,yt.style,q),st&8){const Rt=I.dynamicProps;for(let zt=0;zt<Rt.length;zt++){const Ut=Rt[zt],ne=vt[Ut],Se=yt[Ut];(Se!==ne||Ut==="value")&&r(Q,Ut,ne,Se,q,C.children,$,H,Ot)}}st&1&&C.children!==I.children&&u(Q,I.children)}else!ot&&J==null&&D(Q,I,vt,yt,$,H,q);((Ct=yt.onVnodeUpdated)||ht)&&Pe(()=>{Ct&&Ke(Ct,$,I,C),ht&&Ks(I,C,$,"updated")},H)},A=(C,I,$,H,q,et,ot)=>{for(let Q=0;Q<I.length;Q++){const st=C[Q],J=I[Q],ht=st.el&&(st.type===Vt||!Hn(st,J)||st.shapeFlag&70)?h(st.el):$;S(st,J,ht,null,H,q,et,ot,!0)}},D=(C,I,$,H,q,et,ot)=>{if($!==H){if($!==Xt)for(const Q in $)!Pn(Q)&&!(Q in H)&&r(C,Q,$[Q],null,ot,I.children,q,et,Ot);for(const Q in H){if(Pn(Q))continue;const st=H[Q],J=$[Q];st!==J&&Q!=="value"&&r(C,Q,J,st,ot,I.children,q,et,Ot)}"value"in H&&r(C,"value",$.value,H.value,ot)}},L=(C,I,$,H,q,et,ot,Q,st)=>{const J=I.el=C?C.el:a(""),ht=I.anchor=C?C.anchor:a("");let{patchFlag:vt,dynamicChildren:yt,slotScopeIds:Ct}=I;({}).NODE_ENV!=="production"&&(Ws||vt&2048)&&(vt=0,st=!1,yt=null),Ct&&(Q=Q?Q.concat(Ct):Ct),C==null?(n(J,$,H),n(ht,$,H),O(I.children||[],$,ht,q,et,ot,Q,st)):vt>0&&vt&64&&yt&&C.dynamicChildren?(A(C.dynamicChildren,yt,$,q,et,ot,Q),{}.NODE_ENV!=="production"?Yi(C,I):(I.key!=null||q&&I===q.subTree)&&Yi(C,I,!0)):G(C,I,$,ht,q,et,ot,Q,st)},X=(C,I,$,H,q,et,ot,Q,st)=>{I.slotScopeIds=Q,C==null?I.shapeFlag&512?q.ctx.activate(I,$,H,ot,st):it(I,$,H,q,et,ot,st):K(C,I,st)},it=(C,I,$,H,q,et,ot)=>{const Q=C.component=Vd(C,H,q);if({}.NODE_ENV!=="production"&&Q.type.__hmrId&&wf(Q),{}.NODE_ENV!=="production"&&(Di(C),cs(Q,"mount")),lo(C)&&(Q.ctx.renderer=Fe),{}.NODE_ENV!=="production"&&cs(Q,"init"),Bd(Q),{}.NODE_ENV!=="production"&&us(Q,"init"),Q.asyncDep){if(q&&q.registerDep(Q,W),!C.el){const st=Q.subTree=ft(Oe);_(null,st,I,$)}}else W(Q,C,I,$,q,et,ot);({}).NODE_ENV!=="production"&&(Ri(),us(Q,"mount"))},K=(C,I,$)=>{const H=I.component=C.component;if(Lf(C,I,$))if(H.asyncDep&&!H.asyncResolved){({}).NODE_ENV!=="production"&&Di(I),nt(H,I,$),{}.NODE_ENV!=="production"&&Ri();return}else H.next=I,bf(H.update),H.effect.dirty=!0,H.update();else I.el=C.el,H.vnode=I},W=(C,I,$,H,q,et,ot)=>{const Q=()=>{if(C.isMounted){let{next:ht,bu:vt,u:yt,parent:Ct,vnode:Rt}=C;{const Vs=oc(C);if(Vs){ht&&(ht.el=Rt.el,nt(C,ht,ot)),Vs.asyncDep.then(()=>{C.isUnmounted||Q()});return}}let zt=ht,Ut;({}).NODE_ENV!=="production"&&Di(ht||C.vnode),tn(C,!1),ht?(ht.el=Rt.el,nt(C,ht,ot)):ht=Rt,vt&&On(vt),(Ut=ht.props&&ht.props.onVnodeBeforeUpdate)&&Ke(Ut,Ct,ht,Rt),tn(C,!0),{}.NODE_ENV!=="production"&&cs(C,"render");const ne=ro(C);({}).NODE_ENV!=="production"&&us(C,"render");const Se=C.subTree;C.subTree=ne,{}.NODE_ENV!=="production"&&cs(C,"patch"),S(Se,ne,h(Se.el),se(Se),C,q,et),{}.NODE_ENV!=="production"&&us(C,"patch"),ht.el=ne.el,zt===null&&$f(C,ne.el),yt&&Pe(yt,q),(Ut=ht.props&&ht.props.onVnodeUpdated)&&Pe(()=>Ke(Ut,Ct,ht,Rt),q),{}.NODE_ENV!=="production"&&Dl(C),{}.NODE_ENV!=="production"&&Ri()}else{let ht;const{el:vt,props:yt}=I,{bm:Ct,m:Rt,parent:zt}=C,Ut=Vn(I);if(tn(C,!1),Ct&&On(Ct),!Ut&&(ht=yt&&yt.onVnodeBeforeMount)&&Ke(ht,zt,I),tn(C,!0),vt&&Ae){const ne=()=>{({}).NODE_ENV!=="production"&&cs(C,"render"),C.subTree=ro(C),{}.NODE_ENV!=="production"&&us(C,"render"),{}.NODE_ENV!=="production"&&cs(C,"hydrate"),Ae(vt,C.subTree,C,q,null),{}.NODE_ENV!=="production"&&us(C,"hydrate")};Ut?I.type.__asyncLoader().then(()=>!C.isUnmounted&&ne()):ne()}else{({}).NODE_ENV!=="production"&&cs(C,"render");const ne=C.subTree=ro(C);({}).NODE_ENV!=="production"&&us(C,"render"),{}.NODE_ENV!=="production"&&cs(C,"patch"),S(null,ne,$,H,C,q,et),{}.NODE_ENV!=="production"&&us(C,"patch"),I.el=ne.el}if(Rt&&Pe(Rt,q),!Ut&&(ht=yt&&yt.onVnodeMounted)){const ne=I;Pe(()=>Ke(ht,zt,ne),q)}(I.shapeFlag&256||zt&&Vn(zt.vnode)&&zt.vnode.shapeFlag&256)&&C.a&&Pe(C.a,q),C.isMounted=!0,{}.NODE_ENV!=="production"&&Pf(C),I=$=H=null}},st=C.effect=new Br(Q,oe,()=>Ai(J),C.scope),J=C.update=()=>{st.dirty&&st.run()};J.id=C.uid,tn(C,!0),{}.NODE_ENV!=="production"&&(st.onTrack=C.rtc?ht=>On(C.rtc,ht):void 0,st.onTrigger=C.rtg?ht=>On(C.rtg,ht):void 0,J.ownerInstance=C),J()},nt=(C,I,$)=>{I.component=C;const H=C.vnode.props;C.vnode=I,C.next=null,vd(C,I.props,H,$),kd(C,I.children,$),ws(),Sl(C),Cs()},G=(C,I,$,H,q,et,ot,Q,st=!1)=>{const J=C&&C.children,ht=C?C.shapeFlag:0,vt=I.children,{patchFlag:yt,shapeFlag:Ct}=I;if(yt>0){if(yt&128){gt(J,vt,$,H,q,et,ot,Q,st);return}else if(yt&256){j(J,vt,$,H,q,et,ot,Q,st);return}}Ct&8?(ht&16&&Ot(J,q,et),vt!==J&&u($,vt)):ht&16?Ct&16?gt(J,vt,$,H,q,et,ot,Q,st):Ot(J,q,et,!0):(ht&8&&u($,""),Ct&16&&O(vt,$,H,q,et,ot,Q,st))},j=(C,I,$,H,q,et,ot,Q,st)=>{C=C||hn,I=I||hn;const J=C.length,ht=I.length,vt=Math.min(J,ht);let yt;for(yt=0;yt<vt;yt++){const Ct=I[yt]=st?Is(I[yt]):je(I[yt]);S(C[yt],Ct,$,null,q,et,ot,Q,st)}J>ht?Ot(C,q,et,!0,!1,vt):O(I,$,H,q,et,ot,Q,st,vt)},gt=(C,I,$,H,q,et,ot,Q,st)=>{let J=0;const ht=I.length;let vt=C.length-1,yt=ht-1;for(;J<=vt&&J<=yt;){const Ct=C[J],Rt=I[J]=st?Is(I[J]):je(I[J]);if(Hn(Ct,Rt))S(Ct,Rt,$,null,q,et,ot,Q,st);else break;J++}for(;J<=vt&&J<=yt;){const Ct=C[vt],Rt=I[yt]=st?Is(I[yt]):je(I[yt]);if(Hn(Ct,Rt))S(Ct,Rt,$,null,q,et,ot,Q,st);else break;vt--,yt--}if(J>vt){if(J<=yt){const Ct=yt+1,Rt=Ct<ht?I[Ct].el:H;for(;J<=yt;)S(null,I[J]=st?Is(I[J]):je(I[J]),$,Rt,q,et,ot,Q,st),J++}}else if(J>yt)for(;J<=vt;)Z(C[J],q,et,!0),J++;else{const Ct=J,Rt=J,zt=new Map;for(J=Rt;J<=yt;J++){const _e=I[J]=st?Is(I[J]):je(I[J]);_e.key!=null&&({}.NODE_ENV!=="production"&&zt.has(_e.key)&&rt("Duplicate keys found during update:",JSON.stringify(_e.key),"Make sure keys are unique."),zt.set(_e.key,J))}let Ut,ne=0;const Se=yt-Rt+1;let Vs=!1,kr=0;const ln=new Array(Se);for(J=0;J<Se;J++)ln[J]=0;for(J=Ct;J<=vt;J++){const _e=C[J];if(ne>=Se){Z(_e,q,et,!0);continue}let ke;if(_e.key!=null)ke=zt.get(_e.key);else for(Ut=Rt;Ut<=yt;Ut++)if(ln[Ut-Rt]===0&&Hn(_e,I[Ut])){ke=Ut;break}ke===void 0?Z(_e,q,et,!0):(ln[ke-Rt]=J+1,ke>=kr?kr=ke:Vs=!0,S(_e,I[ke],$,null,q,et,ot,Q,st),ne++)}const Er=Vs?Dd(ln):hn;for(Ut=Er.length-1,J=Se-1;J>=0;J--){const _e=Rt+J,ke=I[_e],Pr=_e+1<ht?I[_e+1].el:H;ln[J]===0?S(null,ke,$,Pr,q,et,ot,Q,st):Vs&&(Ut<0||J!==Er[Ut]?mt(ke,$,Pr,2):Ut--)}}},mt=(C,I,$,H,q=null)=>{const{el:et,type:ot,transition:Q,children:st,shapeFlag:J}=C;if(J&6){mt(C.component.subTree,I,$,H);return}if(J&128){C.suspense.move(I,$,H);return}if(J&64){ot.move(C,I,$,Fe);return}if(ot===Vt){n(et,I,$);for(let vt=0;vt<st.length;vt++)mt(st[vt],I,$,H);n(C.anchor,I,$);return}if(ot===Xn){p(C,I,$);return}if(H!==2&&J&1&&Q)if(H===0)Q.beforeEnter(et),n(et,I,$),Pe(()=>Q.enter(et),q);else{const{leave:vt,delayLeave:yt,afterLeave:Ct}=Q,Rt=()=>n(et,I,$),zt=()=>{vt(et,()=>{Rt(),Ct&&Ct()})};yt?yt(et,Rt,zt):zt()}else n(et,I,$)},Z=(C,I,$,H=!1,q=!1)=>{const{type:et,props:ot,ref:Q,children:st,dynamicChildren:J,shapeFlag:ht,patchFlag:vt,dirs:yt}=C;if(Q!=null&&_o(Q,null,$,C,!0),ht&256){I.ctx.deactivate(C);return}const Ct=ht&1&&yt,Rt=!Vn(C);let zt;if(Rt&&(zt=ot&&ot.onVnodeBeforeUnmount)&&Ke(zt,I,C),ht&6)ee(C.component,$,H);else{if(ht&128){C.suspense.unmount($,H);return}Ct&&Ks(C,null,I,"beforeUnmount"),ht&64?C.type.remove(C,I,$,q,Fe,H):J&&(et!==Vt||vt>0&&vt&64)?Ot(J,I,$,!1,!0):(et===Vt&&vt&384||!q&&ht&16)&&Ot(st,I,$),H&&V(C)}(Rt&&(zt=ot&&ot.onVnodeUnmounted)||Ct)&&Pe(()=>{zt&&Ke(zt,I,C),Ct&&Ks(C,null,I,"unmounted")},$)},V=C=>{const{type:I,el:$,anchor:H,transition:q}=C;if(I===Vt){({}).NODE_ENV!=="production"&&C.patchFlag>0&&C.patchFlag&2048&&q&&!q.persisted?C.children.forEach(ot=>{ot.type===Oe?i(ot.el):V(ot)}):Qt($,H);return}if(I===Xn){w(C);return}const et=()=>{i($),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(C.shapeFlag&1&&q&&!q.persisted){const{leave:ot,delayLeave:Q}=q,st=()=>ot($,et);Q?Q(C.el,et,st):st()}else et()},Qt=(C,I)=>{let $;for(;C!==I;)$=f(C),i(C),C=$;i(I)},ee=(C,I,$)=>{({}).NODE_ENV!=="production"&&C.type.__hmrId&&Cf(C);const{bum:H,scope:q,update:et,subTree:ot,um:Q}=C;H&&On(H),q.stop(),et&&(et.active=!1,Z(ot,C,I,$)),Q&&Pe(Q,I),Pe(()=>{C.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve()),{}.NODE_ENV!=="production"&&If(C)},Ot=(C,I,$,H=!1,q=!1,et=0)=>{for(let ot=et;ot<C.length;ot++)Z(C[ot],I,$,H,q)},se=C=>C.shapeFlag&6?se(C.component.subTree):C.shapeFlag&128?C.suspense.next():f(C.anchor||C.el);let Bt=!1;const Y=(C,I,$)=>{C==null?I._vnode&&Z(I._vnode,null,null,!0):S(I._vnode||null,C,I,null,null,null,$),Bt||(Bt=!0,Sl(),kl(),Bt=!1),I._vnode=C},Fe={p:S,um:Z,m:mt,r:V,mt:it,mc:O,pc:G,pbc:A,n:se,o:s};let ze,Ae;return t&&([ze,Ae]=t(Fe)),{render:Y,hydrate:ze,createApp:pd(Y,ze)}}function bo({type:s,props:t},e){return e==="svg"&&s==="foreignObject"||e==="mathml"&&s==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function tn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function Id(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function Yi(s,t,e=!1){const n=s.children,i=t.children;if(xt(n)&&xt(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Is(i[r]),a.el=o.el),e||Yi(o,a)),a.type===Yn&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Oe&&!a.el&&(a.el=o.el)}}function Dd(s){const t=s.slice(),e=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=e[e.length-1],s[i]<c){t[n]=i,e.push(n);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,s[e[a]]<c?r=a+1:o=a;c<s[e[r]]&&(r>0&&(t[n]=e[r-1]),e[r]=n)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function oc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oc(t)}const Rd=s=>s.__isTeleport,Vt=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),Xn=Symbol.for("v-stc"),jn=[];let Xe=null;function F(s=!1){jn.push(Xe=s?null:[])}function Ad(){jn.pop(),Xe=jn[jn.length-1]||null}let Un=1;function ac(s){Un+=s}function lc(s){return s.dynamicChildren=Un>0?Xe||hn:null,Ad(),Un>0&&Xe&&Xe.push(s),s}function U(s,t,e,n,i,r){return lc(P(s,t,e,n,i,r,!0))}function Gt(s,t,e,n,i){return lc(ft(s,t,e,n,i,!0))}function yn(s){return s?s.__v_isVNode===!0:!1}function Hn(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&gn.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Md=(...s)=>uc(...s),Xi="__vInternal",cc=({key:s})=>s??null,ji=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?re(s)||me(s)||Tt(s)?{i:ae,r:s,k:t,f:!!e}:s:null);function P(s,t=null,e=null,n=0,i=null,r=s===Vt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&cc(t),ref:t&&ji(t),scopeId:Ni,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ae};return a?(xo(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=re(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&rt("VNode created with invalid key (NaN). VNode type:",l.type),Un>0&&!o&&Xe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Xe.push(l),l}const ft={}.NODE_ENV!=="production"?Md:uc;function uc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===Vf)&&({}.NODE_ENV!=="production"&&!s&&rt(`Invalid vnode type when creating vnode: ${s}.`),s=Oe),yn(s)){const a=Os(s,t,!0);return e&&xo(a,e),Un>0&&!r&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(s)]=a:Xe.push(a)),a.patchFlag|=-2,a}if(bc(s)&&(s=s.__vccOpts),t){t=Nd(t);let{class:a,style:l}=t;a&&!re(a)&&(t.class=Kt(a)),Yt(l)&&(qr(l)&&!xt(l)&&(l=ie({},l)),t.style=z(l))}const o=re(s)?1:zf(s)?128:Rd(s)?64:Yt(s)?4:Tt(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&qr(s)&&(s=It(s),rt("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: `,s)),P(s,t,e,n,i,o,r,!0)}function Nd(s){return s?qr(s)||Xi in s?ie({},s):s:null}function Os(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?wo(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&cc(a),ref:t&&t.ref?e&&i?xt(i)?i.concat(ji(t)):[i,ji(t)]:ji(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&xt(o)?o.map(hc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==Vt?r===-1?16:r|16:r,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Os(s.ssContent),ssFallback:s.ssFallback&&Os(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function hc(s){const t=Os(s);return xt(s.children)&&(t.children=s.children.map(hc)),t}function Jt(s=" ",t=0){return ft(Yn,null,s,t)}function Fd(s,t){const e=ft(Xn,null,s);return e.staticCount=t,e}function $t(s="",t=!1){return t?(F(),Gt(Oe,null,s)):ft(Oe,null,s)}function je(s){return s==null||typeof s=="boolean"?ft(Oe):xt(s)?ft(Vt,null,s.slice()):typeof s=="object"?Is(s):ft(Yn,null,String(s))}function Is(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Os(s)}function xo(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(xt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),xo(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!(Xi in t)?t._ctx=ae:i===3&&ae&&(ae.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:ae},e=32):(t=String(t),n&64?(e=16,t=[Jt(t)]):e=8);s.children=t,s.shapeFlag|=e}function wo(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Kt([t.class,n.class]));else if(i==="style")t.style=z([t.style,n.style]);else if(En(i)){const r=t[i],o=n[i];o&&r!==o&&!(xt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function Ke(s,t,e,n=null){Ye(s,t,7,[e,n])}const Ld=Wl();let $d=0;function Vd(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||Ld,r={uid:$d++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Lh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zl(n,i),emitsOptions:Al(n,i),emit:null,emitted:null,propsDefaults:Xt,inheritAttrs:n.inheritAttrs,ctx:Xt,data:Xt,props:Xt,attrs:Xt,slots:Xt,refs:Xt,setupState:Xt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:e,suspenseId:e?e.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"?r.ctx=sd(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Mf.bind(null,r),s.ce&&s.ce(r),r}let fe=null;const fc=()=>fe||ae;let Ui,Co;{const s=Vr(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Ui=t("__VUE_INSTANCE_SETTERS__",e=>fe=e),Co=t("__VUE_SSR_SETTERS__",e=>Hi=e)}const Wn=s=>{const t=fe;return Ui(s),s.scope.on(),()=>{s.scope.off(),Ui(t)}},dc=()=>{fe&&fe.scope.off(),Ui(null)},zd=un("slot,component");function To(s,{isNativeTag:t}){(zd(s)||t(s))&&rt("Do not use built-in or reserved HTML elements as component id: "+s)}function pc(s){return s.vnode.shapeFlag&4}let Hi=!1;function Bd(s,t=!1){t&&Co(t);const{props:e,children:n}=s.vnode,i=pc(s);gd(s,e,i,t),Sd(s,n);const r=i?Gd(s,t):void 0;return t&&Co(!1),r}function Gd(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&To(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)To(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)Vl(r[o])}n.compilerOptions&&Yd()&&rt('"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.')}s.accessCache=Object.create(null),s.proxy=yl(new Proxy(s.ctx,Gl)),{}.NODE_ENV!=="production"&&nd(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?vc(s):null,o=Wn(s);ws();const a=os(i,s,0,[{}.NODE_ENV!=="production"?pn(s.props):s.props,r]);if(Cs(),o(),Fr(a)){if(a.then(dc,dc),t)return a.then(l=>{mc(s,l,t)}).catch(l=>{Dn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";rt(`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 mc(s,a,t)}else gc(s,t)}function mc(s,t,e){Tt(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Yt(t)?({}.NODE_ENV!=="production"&&yn(t)&&rt("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=bl(t),{}.NODE_ENV!=="production"&&id(s)):{}.NODE_ENV!=="production"&&t!==void 0&&rt(`setup() should return an object. Received: ${t===null?"null":typeof t}`),gc(s,e)}let So;const Yd=()=>!So;function gc(s,t,e){const n=s.type;if(!s.render){if(!t&&So&&!n.render){const i=n.template||po(s).template;if(i){({}).NODE_ENV!=="production"&&cs(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=ie(ie({isCustomElement:r,delimiters:a},o),l);n.render=So(i,c),{}.NODE_ENV!=="production"&&us(s,"compile")}}s.render=n.render||oe}{const i=Wn(s);ws();try{ld(s)}finally{Cs(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===oe&&!t&&(n.template?rt('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".'):rt("Component is missing template or render function."))}function yc(s){return s.attrsProxy||(s.attrsProxy=new Proxy(s.attrs,{}.NODE_ENV!=="production"?{get(t,e){return Li(),pe(s,"get","$attrs"),t[e]},set(){return rt("setupContext.attrs is readonly."),!1},deleteProperty(){return rt("setupContext.attrs is readonly."),!1}}:{get(t,e){return pe(s,"get","$attrs"),t[e]}}))}function Xd(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return pe(s,"get","$slots"),t[e]}}))}function vc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&rt("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(xt(e)?n="array":me(e)&&(n="ref")),n!=="object"&&rt(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};return{}.NODE_ENV!=="production"?Object.freeze({get attrs(){return yc(s)},get slots(){return Xd(s)},get emit(){return(e,...n)=>s.emit(e,...n)},expose:t}):{get attrs(){return yc(s)},slots:s.slots,emit:s.emit,expose:t}}function Wi(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(bl(yl(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in Js)return Js[e](s)},has(t,e){return e in t||e in Js}}))}const jd=/(?:^|[-_])(\w)/g,Ud=s=>s.replace(jd,t=>t.toUpperCase()).replace(/[-_]/g,"");function _c(s,t=!0){return Tt(s)?s.displayName||s.name:s.name||t&&s.__name}function qi(s,t,e=!1){let n=_c(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?Ud(n):e?"App":"Anonymous"}function bc(s){return Tt(s)&&"__vccOpts"in s}const Hd=(s,t)=>{const e=lf(s,t,Hi);if({}.NODE_ENV!=="production"){const n=fc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function hs(s,t,e){const n=arguments.length;return n===2?Yt(t)&&!xt(t)?yn(t)?ft(s,null,[t]):ft(s,t):ft(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&yn(e)&&(e=[e]),ft(s,t,e))}function Wd(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Yt(h)?h.__isVue?["div",s,"VueInstance"]:me(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:js(h)?["div",{},["span",s,Us(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Ss(h)?" (readonly)":""}`]:Ss(h)?["div",{},["span",s,Us(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...r(h.$)]}};function r(h){const f=[];h.type.props&&h.props&&f.push(o("props",It(h.props))),h.setupState!==Xt&&f.push(o("setup",h.setupState)),h.data!==Xt&&f.push(o("data",It(h.data)));const m=l(h,"computed");m&&f.push(o("computed",m));const d=l(h,"inject");return d&&f.push(o("injected",d)),f.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=ie({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(m=>["div",{},["span",n,m+": "],a(f[m],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Yt(h)?["object",{object:f?It(h):h}]:["span",e,String(h)]}function l(h,f){const m=h.type;if(Tt(m))return;const d={};for(const S in h.ctx)c(m,S,f)&&(d[S]=h.ctx[S]);return d}function c(h,f,m){const d=h[m];if(xt(d)&&d.includes(f)||Yt(d)&&f in d||h.extends&&c(h.extends,f,m)||h.mixins&&h.mixins.some(S=>c(S,f,m)))return!0}function u(h){return Us(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const xc="3.4.21",wc={}.NODE_ENV!=="production"?rt:oe;/**
22
22
  * @vue/runtime-dom v3.4.21
23
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
24
24
  * @license MIT
25
- **/const qd="http://www.w3.org/2000/svg",Zd="http://www.w3.org/1998/Math/MathML",Ds=typeof document<"u"?document:null,Cc=Ds&&Ds.createElement("template"),Qd={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,n)=>{const i=t==="svg"?Ds.createElementNS(qd,s):t==="mathml"?Ds.createElementNS(Zd,s):Ds.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>Ds.createTextNode(s),createComment:s=>Ds.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Ds.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,n,i,r){const o=e?e.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===r||!(i=i.nextSibling)););else{Cc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=Cc.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},Kd=Symbol("_vtc");function Jd(s,t,e){const n=s[Kd];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const Zi=Symbol("_vod"),Tc=Symbol("_vsh"),Rs={beforeMount(s,{value:t},{transition:e}){s[Zi]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):qn(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(s),qn(s,!0),n.enter(s)):n.leave(s,()=>{qn(s,!1)}):qn(s,t))},beforeUnmount(s,{value:t}){qn(s,t)}};({}).NODE_ENV!=="production"&&(Rs.name="show");function qn(s,t){s.style.display=t?s[Zi]:"none",s[Tc]=!t}const tp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ep=/(^|;)\s*display\s*:/;function sp(s,t,e){const n=s.style,i=re(e);let r=!1;if(e&&!i){if(t)if(re(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&Qi(n,a,"")}else for(const o in t)e[o]==null&&Qi(n,o,"");for(const o in e)o==="display"&&(r=!0),Qi(n,o,e[o])}else if(i){if(t!==e){const o=n[tp];o&&(e+=";"+o),n.cssText=e,r=ep.test(e)}}else t&&s.removeAttribute("style");Zi in s&&(s[Zi]=r?n.display:"",s[Tc]&&(n.display="none"))}const np=/[^\\];\s*$/,Sc=/\s*!important$/;function Qi(s,t,e){if(bt(e))e.forEach(n=>Qi(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&np.test(e)&&wc(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=ip(s,t);Sc.test(e)?s.setProperty(vs(n),e.replace(Sc,""),"important"):s[n]=e}}const kc=["Webkit","Moz","ms"],ko={};function ip(s,t){const e=ko[t];if(e)return e;let n=dn(t);if(n!=="filter"&&n in s)return ko[t]=n;n=bi(n);for(let i=0;i<kc.length;i++){const r=kc[i]+n;if(r in s)return ko[t]=r}return t}const Ec="http://www.w3.org/1999/xlink";function rp(s,t,e,n,i){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(Ec,t.slice(6,t.length)):s.setAttributeNS(Ec,t,e);else{const r=Fh(t);e==null||r&&!Ha(e)?s.removeAttribute(t):s.setAttribute(t,r?"":e)}}function op(s,t,e,n,i,r,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,r),s[t]=e??"";return}const a=s.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?s.getAttribute("value")||"":s.value,u=e??"";(c!==u||!("_value"in s))&&(s.value=u),e==null&&s.removeAttribute(t),s._value=e;return}let l=!1;if(e===""||e==null){const c=typeof s[t];c==="boolean"?e=Ha(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&wc(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function ap(s,t,e,n){s.addEventListener(t,e,n)}function lp(s,t,e,n){s.removeEventListener(t,e,n)}const Pc=Symbol("_vei");function cp(s,t,e,n,i=null){const r=s[Pc]||(s[Pc]={}),o=r[t];if(n&&o)o.value=n;else{const[a,l]=up(t);if(n){const c=r[t]=dp(n,i);ap(s,a,c,l)}else o&&(lp(s,a,o,l),r[t]=void 0)}}const Oc=/(?:Once|Passive|Capture)$/;function up(s){let t;if(Oc.test(s)){t={};let n;for(;n=s.match(Oc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):vs(s.slice(2)),t]}let Eo=0;const hp=Promise.resolve(),fp=()=>Eo||(hp.then(()=>Eo=0),Eo=Date.now());function dp(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Ye(pp(n,e.value),t,5,[n])};return e.value=s,e.attached=fp(),e}function pp(s,t){if(bt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Ic=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,mp=(s,t,e,n,i,r,o,a,l)=>{const c=i==="svg";t==="class"?Jd(s,n,c):t==="style"?sp(s,e,n):En(t)?yi(t)||cp(s,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gp(s,t,n,c))?op(s,t,n,r,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),rp(s,t,n,c))};function gp(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Ic(t)&&Tt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&s.tagName==="INPUT"||t==="type"&&s.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=s.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ic(t)&&re(e)?!1:t in s}const yp=ne({patchProp:mp},Qd);let Dc;function vp(){return Dc||(Dc=Pd(yp))}const Rc=(...s)=>{vp().render(...s)};/**
25
+ **/const qd="http://www.w3.org/2000/svg",Zd="http://www.w3.org/1998/Math/MathML",Ds=typeof document<"u"?document:null,Cc=Ds&&Ds.createElement("template"),Qd={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,n)=>{const i=t==="svg"?Ds.createElementNS(qd,s):t==="mathml"?Ds.createElementNS(Zd,s):Ds.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>Ds.createTextNode(s),createComment:s=>Ds.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Ds.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,n,i,r){const o=e?e.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===r||!(i=i.nextSibling)););else{Cc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=Cc.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},Kd=Symbol("_vtc");function Jd(s,t,e){const n=s[Kd];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const Zi=Symbol("_vod"),Tc=Symbol("_vsh"),Rs={beforeMount(s,{value:t},{transition:e}){s[Zi]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):qn(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(s),qn(s,!0),n.enter(s)):n.leave(s,()=>{qn(s,!1)}):qn(s,t))},beforeUnmount(s,{value:t}){qn(s,t)}};({}).NODE_ENV!=="production"&&(Rs.name="show");function qn(s,t){s.style.display=t?s[Zi]:"none",s[Tc]=!t}const tp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ep=/(^|;)\s*display\s*:/;function sp(s,t,e){const n=s.style,i=re(e);let r=!1;if(e&&!i){if(t)if(re(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&Qi(n,a,"")}else for(const o in t)e[o]==null&&Qi(n,o,"");for(const o in e)o==="display"&&(r=!0),Qi(n,o,e[o])}else if(i){if(t!==e){const o=n[tp];o&&(e+=";"+o),n.cssText=e,r=ep.test(e)}}else t&&s.removeAttribute("style");Zi in s&&(s[Zi]=r?n.display:"",s[Tc]&&(n.display="none"))}const np=/[^\\];\s*$/,Sc=/\s*!important$/;function Qi(s,t,e){if(xt(e))e.forEach(n=>Qi(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&np.test(e)&&wc(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=ip(s,t);Sc.test(e)?s.setProperty(vs(n),e.replace(Sc,""),"important"):s[n]=e}}const kc=["Webkit","Moz","ms"],ko={};function ip(s,t){const e=ko[t];if(e)return e;let n=dn(t);if(n!=="filter"&&n in s)return ko[t]=n;n=bi(n);for(let i=0;i<kc.length;i++){const r=kc[i]+n;if(r in s)return ko[t]=r}return t}const Ec="http://www.w3.org/1999/xlink";function rp(s,t,e,n,i){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(Ec,t.slice(6,t.length)):s.setAttributeNS(Ec,t,e);else{const r=Fh(t);e==null||r&&!Ha(e)?s.removeAttribute(t):s.setAttribute(t,r?"":e)}}function op(s,t,e,n,i,r,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,r),s[t]=e??"";return}const a=s.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?s.getAttribute("value")||"":s.value,u=e??"";(c!==u||!("_value"in s))&&(s.value=u),e==null&&s.removeAttribute(t),s._value=e;return}let l=!1;if(e===""||e==null){const c=typeof s[t];c==="boolean"?e=Ha(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&wc(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function ap(s,t,e,n){s.addEventListener(t,e,n)}function lp(s,t,e,n){s.removeEventListener(t,e,n)}const Pc=Symbol("_vei");function cp(s,t,e,n,i=null){const r=s[Pc]||(s[Pc]={}),o=r[t];if(n&&o)o.value=n;else{const[a,l]=up(t);if(n){const c=r[t]=dp(n,i);ap(s,a,c,l)}else o&&(lp(s,a,o,l),r[t]=void 0)}}const Oc=/(?:Once|Passive|Capture)$/;function up(s){let t;if(Oc.test(s)){t={};let n;for(;n=s.match(Oc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):vs(s.slice(2)),t]}let Eo=0;const hp=Promise.resolve(),fp=()=>Eo||(hp.then(()=>Eo=0),Eo=Date.now());function dp(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Ye(pp(n,e.value),t,5,[n])};return e.value=s,e.attached=fp(),e}function pp(s,t){if(xt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Ic=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,mp=(s,t,e,n,i,r,o,a,l)=>{const c=i==="svg";t==="class"?Jd(s,n,c):t==="style"?sp(s,e,n):En(t)?yi(t)||cp(s,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gp(s,t,n,c))?op(s,t,n,r,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),rp(s,t,n,c))};function gp(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Ic(t)&&Tt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&s.tagName==="INPUT"||t==="type"&&s.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=s.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ic(t)&&re(e)?!1:t in s}const yp=ie({patchProp:mp},Qd);let Dc;function vp(){return Dc||(Dc=Pd(yp))}const Rc=(...s)=>{vp().render(...s)};/**
26
26
  * vue v3.4.21
27
27
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
28
28
  * @license MIT
@@ -35,26 +35,26 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Nd(s){retur
35
35
  |[\u{2B740}-\u{2B81D}]
36
36
  |[\u{2B820}-\u{2CEAF}]
37
37
  |[\u{2CEB0}-\u{2EBEF}]
38
- `.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^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":t=/^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":t=/^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":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t},fs=(s,t)=>(typeof s=="string"&&(s=or(s)||new RegExp(s)),s.test(t)),cu=(s,t)=>{typeof s=="string"&&(s=or(s)||new RegExp(s));const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},uu=(s,t)=>{typeof s=="string"&&(s=or(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const i of n)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function wm(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function hu(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function ar(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let n="";for(let i=0;i<s;i++)n+=t[Math.floor(Math.random()*e)];return n}function Cm(s){return s.replace(/(^\w)/g,t=>t.toLowerCase())}const Ue=(s,t="-")=>{let e=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function Tm(s){return s.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function fu(s){return Cm(Tm(s))}function Sm(s){return s!=null}function km(s,...t){return new s.constructor(...t)}function du(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function pu(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function ti(s=[],t=[]){const e=s.length,n=t.length;for(let r=0;r<n;r++)s[r]=t[r];let i=Math.max(0,e-n);for(;i>0;)s.pop(),i--;return s}function Em(s,t){const e=s.findIndex(n=>n===t);return e>=0&&s.splice(e,1),s}let mu;try{mu=Map}catch{mu=function(){}}let gu;try{gu=Set}catch{gu=function(){}}function As(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function lr(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const qt=(s,t,e)=>s<t?t:s>e?e:s;function Pm(s,t,e,n,i){return n+(i-n)*((s-t)/(e-t))}const yu=(s,t,e)=>n=>{const i=qt(n,s,t);return e==0?i:t-i<e?t:Math.round(i/e)*e};function Om(s,t=12){return As(s).toFixed(t)}function we(s,t=12){return+Om(s,t)}function Je(s,t){const e=cu("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Sm(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(e.matchIndex+e.fullMatch.length):""}}function Yo(s){const t=cu("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Im(s=0,t=100){return Math.random()*(t-s)+s}function jt(s=0,t=100){return Math.floor(Im(s,t))}Dm();function Dm(){const s=new ArrayBuffer(4),t=new Float32Array(s),e=new Uint32Array(s),n=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(n[l]=0,n[l|256]=32768,i[l]=24,i[l|256]=24):c<-14?(n[l]=1024>>-c-14,n[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,i[l]=24,i[l|256]=24):(n[l]=31744,n[l|256]=64512,i[l]=13,i[l|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;!(c&8388608);)c<<=1,u-=8388608;c&=-8388609,u+=947912704,r[l]=c|u}for(let l=1024;l<2048;++l)r[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)o[l]=l<<23;o[31]=1199570944,o[32]=2147483648;for(let l=33;l<63;++l)o[l]=2147483648+(l-32<<23);o[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(a[l]=1024);return{floatView:t,uint32View:e,baseTable:n,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}var vu=(s=>(s.UNKNOWN="",s.TEXT="text/plain",s.MD="text/plain",s.HTML="text/html",s.XML_TEXT="text/xml",s.CSS="text/css",s.JPEG="image/jpeg",s.PNG="image/png",s.GIF="image/gif",s.BMP="image/bmp",s.WEBP="image/webp",s.SVG="image/svg+xml",s.ICON="image/x-icon",s.MICROSOFT_ICON="image/vnd.microsoft.icon",s.MPEG="audio/mpeg",s.MP3="audio/mpeg",s.MP4="video/mp4",s.OGG="audio/ogg",s.WAV="audio/wav",s.MIDI="audio/midi",s.WEBM="video/webm",s.VIDEO_OGG="video/ogg",s.OCTET_STREAM="application/octet-stream",s.JAVASCRIPT="application/javascript",s.ECMASCRIPT="application/ecmascript",s.JSON="application/json",s.XML="application/xml",s.XHTML="application/xhtml+xml",s.XWWW="application/x-www-form-urlencoded",s.DOC="application/msword",s.CSV="application/x-csv",s.EXCEL="application/vnb.ms-excel",s.PPT="application/vnb.mspowerpoint",s.PDF="application/pdf",s.ZIP="application/zip",s.TGZ="application/x-gtar",s.TAR_GZ="application/x-gzip",s.EOT="appliaction/vnd.ms-fontobject",s.TTF="aplication/font-sfnt",s.PKCS12="aplication/pkcs12",s))(vu||{}),cr=(s=>(s.ascii="ascii",s.utf8="utf8",s.utf16le="utf16le",s.ucs2="ucs2",s.base64="base64",s.base64url="base64url",s.latin1="latin1",s.binary="binary",s.hex="hex",s))(cr||{});const _u=(s,t,e)=>t?e===cr.base64?new Blob([s],{type:`${t};${e}`}):e===cr.utf8?new Blob([s],{type:`${t};charset=${e}`}):new Blob([s],{type:`${t}`}):new Blob([s]);function ce(){return(performance||Date).now()}function Rm(s){let t=0;for(let e=5;e>=0;e=e-2)e==5?t+=s[e-1]*10+s[e]:e==3?t+=(s[e-1]*10+s[e])*60:e==1&&(t+=(s[e-1]*10+s[e])*60*60);return t=Math.floor(Math.max(0,t)),t*1e3}function Xo(s){let t=Rm(s)/1e3;const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const n=t%60;s[3]=n%10,s[2]=Math.floor(n/10),t=Math.floor(t/60);const i=t%60%24;return s[1]=i%10,s[0]=Math.floor(i/10),s}function Am(s){const t=[0,0,0,0,0,0],e=Yo(s);for(let n=0,i=Math.min(e.length,3);n<i;n++){const r=Math.floor(Math.abs(e[n]));t[2*n+1]=r%10,t[2*n]=Math.floor(r/10)}return Xo(t)}function jo(s,t=1){return s[5]+=t,Xo(s)}function Uo(s,t=1){return s[5]-=t,Xo(s)}function Mm(s,t){s.forEach((e,n)=>{t[n]=e})}function Nm(s,t){let e=!0;return function(...n){e&&(e=!1,s.apply(this,n),setTimeout(()=>{e=!0},t))}}function Fm(s,t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{s.apply(this,n)},t)}}class ei{events;constructor(){this.events={}}on(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}addListener(t,e){return this.on(t,e),this}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}removeListener(t,e){if(this.events[t])return this.events[t]=this.events[t].filter(n=>n!==e),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].forEach(n=>{n(...e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,e(...o),this.off(t,i))}})();return this.on(t,i),this}}class Ho extends ei{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(i=>i())),n=this.results.length;e.forEach((i,r)=>{if(i.status=="fulfilled"){const o=i.value;this.results.push(o),this.controller?.enqueue(o),this.emit("success",n+r,o)}else if(i.status=="rejected"){const o=new Error(i.reason);this.results.push(o),this.controller?.enqueue(o),this.emit("error",n+r,o)}}),this.activeTaskCount-=e.length}}}Array.prototype.ap=function(s){return this.reduce((t,e)=>t.concat(s.map(e)),[])};let si;function Wo(s){si=s,s(),si=null}class Lm{subscribers=new Set;add(){si&&!this.subscribers.has(si)&&this.subscribers.add(si)}notify(){this.subscribers.forEach(t=>t())}}const bu=new WeakMap;function xu(s,t){let e=bu.get(s);e||(e=new Map,bu.set(s,e));let n=e.get(t);return n||(n=new Lm,e.set(t,n)),n}function $m(s){const t={get(e,n,i){return xu(s,n).add(),Reflect.get(e,n,i)},set(e,n,i,r){const o=xu(s,n),a=Reflect.get(e,n,r),l=Reflect.set(e,n,i,r);return a!=i&&o.notify(),l}};return new Proxy(s,t)}const Vm=$m;class qo{maps=new Map;mapsAddedDuringUpdate=new Map;entries(){return Array.from(this.maps.entries())}keys(){return Array.from(this.maps.keys())}values(){return Array.from(this.maps.values())}get length(){return this.entries().length}set(t,e){this.maps.set(t,e),this.mapsAddedDuringUpdate.set(t,e)}get(t){return this.maps.get(t)}shift(){const t=this.entries();if(t.length){const[e,n]=t[0];return this.delete(e),[e,n]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}clear(){this.maps.clear(),this.mapsAddedDuringUpdate.clear()}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate.clear();for(let n=0,i=e.length;n<i;n++){const[r,o]=e[n];t(r,o)===!1&&this.delete(r)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function zm(s,t=(e,n)=>e<=n){const e=s.length;let n=Math.floor(e/2);for(;n>0;){for(let i=n;i<e;i++){const r=s[i];let o=i;for(;o>=n&&!t(s[o-n],r);)s[o]=s[o-n],o-=n;s[o]=r}n=Math.floor(n/2)}}let wu;try{wu=Promise}catch{wu=function(){}}function Bm(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Gm={exports:{}};(function(s,t){(function(e){s.exports=e()})(function(e){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(_,x){var y=_[0],p=_[1],w=_[2],b=_[3];y+=(p&w|~p&b)+x[0]-680876936|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[1]-389564586|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[2]+606105819|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[3]-1044525330|0,p=(p<<22|p>>>10)+w|0,y+=(p&w|~p&b)+x[4]-176418897|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[5]+1200080426|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[6]-1473231341|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[7]-45705983|0,p=(p<<22|p>>>10)+w|0,y+=(p&w|~p&b)+x[8]+1770035416|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[9]-1958414417|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[10]-42063|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[11]-1990404162|0,p=(p<<22|p>>>10)+w|0,y+=(p&w|~p&b)+x[12]+1804603682|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[13]-40341101|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[14]-1502002290|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[15]+1236535329|0,p=(p<<22|p>>>10)+w|0,y+=(p&b|w&~b)+x[1]-165796510|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[6]-1069501632|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[11]+643717713|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[0]-373897302|0,p=(p<<20|p>>>12)+w|0,y+=(p&b|w&~b)+x[5]-701558691|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[10]+38016083|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[15]-660478335|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[4]-405537848|0,p=(p<<20|p>>>12)+w|0,y+=(p&b|w&~b)+x[9]+568446438|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[14]-1019803690|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[3]-187363961|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[8]+1163531501|0,p=(p<<20|p>>>12)+w|0,y+=(p&b|w&~b)+x[13]-1444681467|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[2]-51403784|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[7]+1735328473|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[12]-1926607734|0,p=(p<<20|p>>>12)+w|0,y+=(p^w^b)+x[5]-378558|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[8]-2022574463|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[11]+1839030562|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[14]-35309556|0,p=(p<<23|p>>>9)+w|0,y+=(p^w^b)+x[1]-1530992060|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[4]+1272893353|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[7]-155497632|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[10]-1094730640|0,p=(p<<23|p>>>9)+w|0,y+=(p^w^b)+x[13]+681279174|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[0]-358537222|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[3]-722521979|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[6]+76029189|0,p=(p<<23|p>>>9)+w|0,y+=(p^w^b)+x[9]-640364487|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[12]-421815835|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[15]+530742520|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[2]-995338651|0,p=(p<<23|p>>>9)+w|0,y+=(w^(p|~b))+x[0]-198630844|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[7]+1126891415|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[14]-1416354905|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[5]-57434055|0,p=(p<<21|p>>>11)+w|0,y+=(w^(p|~b))+x[12]+1700485571|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[3]-1894986606|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[10]-1051523|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[1]-2054922799|0,p=(p<<21|p>>>11)+w|0,y+=(w^(p|~b))+x[8]+1873313359|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[15]-30611744|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[6]-1560198380|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[13]+1309151649|0,p=(p<<21|p>>>11)+w|0,y+=(w^(p|~b))+x[4]-145523070|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[11]-1120210379|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[2]+718787259|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[9]-343485551|0,p=(p<<21|p>>>11)+w|0,_[0]=y+_[0]|0,_[1]=p+_[1]|0,_[2]=w+_[2]|0,_[3]=b+_[3]|0}function r(_){var x=[],y;for(y=0;y<64;y+=4)x[y>>2]=_.charCodeAt(y)+(_.charCodeAt(y+1)<<8)+(_.charCodeAt(y+2)<<16)+(_.charCodeAt(y+3)<<24);return x}function o(_){var x=[],y;for(y=0;y<64;y+=4)x[y>>2]=_[y]+(_[y+1]<<8)+(_[y+2]<<16)+(_[y+3]<<24);return x}function a(_){var x=_.length,y=[1732584193,-271733879,-1732584194,271733878],p,w,b,B,ct,O;for(p=64;p<=x;p+=64)i(y,r(_.substring(p-64,p)));for(_=_.substring(p-64),w=_.length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<w;p+=1)b[p>>2]|=_.charCodeAt(p)<<(p%4<<3);if(b[p>>2]|=128<<(p%4<<3),p>55)for(i(y,b),p=0;p<16;p+=1)b[p]=0;return B=x*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(B[2],16),O=parseInt(B[1],16)||0,b[14]=ct,b[15]=O,i(y,b),y}function l(_){var x=_.length,y=[1732584193,-271733879,-1732584194,271733878],p,w,b,B,ct,O;for(p=64;p<=x;p+=64)i(y,o(_.subarray(p-64,p)));for(_=p-64<x?_.subarray(p-64):new Uint8Array(0),w=_.length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<w;p+=1)b[p>>2]|=_[p]<<(p%4<<3);if(b[p>>2]|=128<<(p%4<<3),p>55)for(i(y,b),p=0;p<16;p+=1)b[p]=0;return B=x*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(B[2],16),O=parseInt(B[1],16)||0,b[14]=ct,b[15]=O,i(y,b),y}function c(_){var x="",y;for(y=0;y<4;y+=1)x+=n[_>>y*8+4&15]+n[_>>y*8&15];return x}function u(_){var x;for(x=0;x<_.length;x+=1)_[x]=c(_[x]);return _.join("")}u(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function _(x,y){return x=x|0||0,x<0?Math.max(x+y,0):Math.min(x,y)}ArrayBuffer.prototype.slice=function(x,y){var p=this.byteLength,w=_(x,p),b=p,B,ct,O,R;return y!==e&&(b=_(y,p)),w>b?new ArrayBuffer(0):(B=b-w,ct=new ArrayBuffer(B),O=new Uint8Array(ct),R=new Uint8Array(this,w,B),O.set(R),ct)}}();function h(_){return/[\u0080-\uFFFF]/.test(_)&&(_=unescape(encodeURIComponent(_))),_}function f(_,x){var y=_.length,p=new ArrayBuffer(y),w=new Uint8Array(p),b;for(b=0;b<y;b+=1)w[b]=_.charCodeAt(b);return x?w:p}function m(_){return String.fromCharCode.apply(null,new Uint8Array(_))}function d(_,x,y){var p=new Uint8Array(_.byteLength+x.byteLength);return p.set(new Uint8Array(_)),p.set(new Uint8Array(x),_.byteLength),y?p:p.buffer}function S(_){var x=[],y=_.length,p;for(p=0;p<y-1;p+=2)x.push(parseInt(_.substr(p,2),16));return String.fromCharCode.apply(String,x)}function k(){this.reset()}return k.prototype.append=function(_){return this.appendBinary(h(_)),this},k.prototype.appendBinary=function(_){this._buff+=_,this._length+=_.length;var x=this._buff.length,y;for(y=64;y<=x;y+=64)i(this._hash,r(this._buff.substring(y-64,y)));return this._buff=this._buff.substring(y-64),this},k.prototype.end=function(_){var x=this._buff,y=x.length,p,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b;for(p=0;p<y;p+=1)w[p>>2]|=x.charCodeAt(p)<<(p%4<<3);return this._finish(w,y),b=u(this._hash),_&&(b=S(b)),this.reset(),b},k.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},k.prototype.setState=function(_){return this._buff=_.buff,this._length=_.length,this._hash=_.hash,this},k.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},k.prototype._finish=function(_,x){var y=x,p,w,b;if(_[y>>2]|=128<<(y%4<<3),y>55)for(i(this._hash,_),y=0;y<16;y+=1)_[y]=0;p=this._length*8,p=p.toString(16).match(/(.*?)(.{0,8})$/),w=parseInt(p[2],16),b=parseInt(p[1],16)||0,_[14]=w,_[15]=b,i(this._hash,_)},k.hash=function(_,x){return k.hashBinary(h(_),x)},k.hashBinary=function(_,x){var y=a(_),p=u(y);return x?S(p):p},k.ArrayBuffer=function(){this.reset()},k.ArrayBuffer.prototype.append=function(_){var x=d(this._buff.buffer,_,!0),y=x.length,p;for(this._length+=_.byteLength,p=64;p<=y;p+=64)i(this._hash,o(x.subarray(p-64,p)));return this._buff=p-64<y?new Uint8Array(x.buffer.slice(p-64)):new Uint8Array(0),this},k.ArrayBuffer.prototype.end=function(_){var x=this._buff,y=x.length,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w,b;for(w=0;w<y;w+=1)p[w>>2]|=x[w]<<(w%4<<3);return this._finish(p,y),b=u(this._hash),_&&(b=S(b)),this.reset(),b},k.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.ArrayBuffer.prototype.getState=function(){var _=k.prototype.getState.call(this);return _.buff=m(_.buff),_},k.ArrayBuffer.prototype.setState=function(_){return _.buff=f(_.buff,!0),k.prototype.setState.call(this,_)},k.ArrayBuffer.prototype.destroy=k.prototype.destroy,k.ArrayBuffer.prototype._finish=k.prototype._finish,k.ArrayBuffer.hash=function(_,x){var y=l(new Uint8Array(_)),p=u(y);return x?S(p):p},k})})(Gm);const Cu=s=>new XMLSerializer().serializeToString(s),Ym=(s,t=vu.SVG,e=cr.utf8)=>_u(Cu(s),t,e),Xm=(s,t,e)=>{const n=async i=>{await e(i)};return s.addEventListener(t,n,!1),()=>{s.removeEventListener(t,n,!1)}};function jm(){const s=new ei;return{on:(t,e)=>{s.on(t,e)},off:(t,e)=>{s.off(t,e)},emit:(t,...e)=>{s.emit(t,...e)}}}const Zo=jm();function Um(){return{remove:Xm(document,"scroll",s=>{Zo.emit("scroll",s)}),on:s=>{Zo.on("scroll",s)},off:s=>{Zo.off("scroll",s)}}}function Tu(s,t,e,n,i){const r=t/e;let o=0,a=0;switch(s){case"aspectFit":r>=1?(o=n,a=o/r,a>i&&(a=i,o=a*r)):(a=i,o=a*r,o>n&&(o=n,a=o/r));break;case"aspectFill":r>=1?(a=i,o=a*r):(o=n,a=o/r);break;case"widthFix":o=n,a=o/r;break;case"heightFix":a=i,o=a*r;break;case"scaleToFill":default:o=n,a=i;break}return{width:o,height:a}}function Hm(s){const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=s.width,t.height=s.height,e.drawImage(s,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}function Wm(){const s=window.navigator.userAgent,t=s.indexOf("MSIE ");if(t>0)return parseInt(s.substring(t+5,s.indexOf(".",t)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const Qo=Wm()!==-1;(()=>{const s=lu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!lu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const n=t.transferToImageBitmap();try{e.createPattern(n,"no-repeat")}catch{return!1}return!0}();function Ft(s){return s*Math.PI/180}function Ie(s){return s*180/Math.PI}function Ko(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function Jo(s,t,e,n){return Ko(e-s,n-t)}function ta(s,t,e,n){const i=e-s,r=n-t;return i*i+r*r}function vn(s,t,e,n){let i=Math.atan2(n-t,e-s);return i<0&&(i+=Math.PI*2),i}function ds(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const Su=qm("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 qm(s,t=10){const e={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],t);e[r]="&#"+o+";"}return e["\\xa0"]="&#160;",e}function Te(s,t){const e=Object.keys(t);for(let n=0;n<e.length;n++)s=s.replace(new RegExp("{"+e[n]+"}","gi"),""+t[e[n]]);return s}function ur(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=n[Math.floor(Math.random()*n.length)];while(s[t]);return t}function Zm(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function Qm(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const ni={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"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class ea{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(n.setAttribute("stop-color",Te("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class ku{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class hr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:n=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=n),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 t=Object.keys(ni);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=ni[i].canvas}}__getStyleState(){const t={},e=Object.keys(ni);for(let n=0,i=e.length;n<i;n++){const r=e[n];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=t[r]}}__createElement(t,e={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(ni);for(let r=0;r<i.length;r++){const o=ni[i[r]],a=this[i[r]];if(o.apply){if(a instanceof ku){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])}e.setAttribute(o.apply,Te("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof ea)e.setAttribute(o.apply,Te("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.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);if(c){e.setAttribute(o.svgAttr,Te("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),e.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=t+"-"+o.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(Su);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=Su[a],c=new RegExp(a,"gi");c.test(e)&&(e=e.replace(c,l))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Te("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Te("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Te("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Te("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(Te("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Te("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Te("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Te("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Te("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,n,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===n&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,i-e]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(t,e);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),m=r/Math.sin(h/2),d=t+m*f[0],S=e+m*f[1],k=[-l[1],l[0]],_=[c[1],-c[0]],x=function(w){const b=w[0];return w[1]>=0?Math.acos(b):-Math.acos(b)},y=x(k),p=x(_);this.lineTo(d+k[0]*r,S+k[1]*r),this.arc(d,S,r,y,p)}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(t,e,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,i){if(t===0&&e===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,n,i){const r=this.__createElement("linearGradient",{id:ur(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new ea(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:ur(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new ea(a,this)}__parseFont(){const e=/^\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),n={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(t,e){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e}__applyText(t,e,n,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:n,"text-anchor":Zm(this.textAlign),"dominant-baseline":Qm(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,n){this.__applyText(t,e,n,"fill")}strokeText(t,e,n){this.__applyText(t,e,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,n,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),u=e+n*Math.sin(i),h=o?0:1;let f=0,m=r-i;m<0&&(m+=2*Math.PI),o?f=m>Math.PI?0:1:f=m>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Te("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=ur(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Te("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],n,i,r,o,a=0,l=0,c,u,h,f,m,d,S,k;if(t.length===3)n=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)n=t[1],i=t[2],r=t[3],o=t[4],c=e.width,u=e.height;else if(t.length===9)a=t[1],l=t[2],c=t[3],u=t[4],n=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const _=this.__closestGroupOrSvg();this.__currentElement;const x="translate("+n+", "+i+")";if(e instanceof hr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)k=f.childNodes[0].getAttribute("id"),this.__ids[k]=k,this.__SVGdefs.appendChild(f.childNodes[0]);if(m=h.childNodes[1],m){const y=m.getAttribute("transform");let p;y?p=y+" "+x:p=x,m.setAttribute("transform",p),_.appendChild(m)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(d=this.__createElement("image"),d.setAttribute("width",r),d.setAttribute("height",o),d.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(S=this.__document.createElement("canvas"),S.width=r,S.height=o,S.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=S),d.setAttribute("transform",x),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),_.appendChild(d))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=ur(this.__ids);let r;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):t instanceof hr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new ku(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class sa{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new hr({canvas:this.canvas,width:e||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,n,i){return this.context.fillRect(t,e,n,i),this.customContext&&this.customContext.fillRect(t,e,n,i),this}fillText(t,e,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,i),this.customContext&&this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,n,i){return this.context.strokeText(t,e,n,i),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,i){return this.context.strokeRect(t,e,n,i),this.customContext&&this.customContext.strokeRect(t,e,n,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,n,i),this.customContext&&this.customContext.clearRect(t,e,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&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&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const n=new Path2D;n.addPath(t,e),this.currentPath2D=n}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,n=0){return this.translate(e,n),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-n),this.changePath2D(),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,i,r,o){return this.context.arc(t,e,n,i,r,o),this.customContext&&this.customContext.arc(t,e,n,i,r,o?-1:1),this.currentPath2D.arc(t,e,n,i,r,o),this}arcTo(t,e,n,i,r){return this.context.arcTo(t,e,n,i,r),this.customContext&&this.customContext.arcTo(t,e,n,i,r),this.currentPath2D.arcTo(t,e,n,i,r),this}ellipse(t,e,n,i,r,o,a,l){return this.context.ellipse(t,e,n,i,r,o,a,l),this.currentPath2D.ellipse(t,e,n,i,r,o,a,l),this}quadraticCurveTo(t,e,n,i){return this.context.quadraticCurveTo(t,e,n,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,i),this.currentPath2D.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.context.bezierCurveTo(t,e,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,i,r,o),this.currentPath2D.bezierCurveTo(t,e,n,i,r,o),this}rect(t,e,n,i){return this.context.rect(t,e,n,i),this.customContext&&this.customContext.rect(t,e,n,i),this.currentPath2D.rect(t,e,n,i),this}createLinearGradient(t,e,n,i,r){const o=this.context.createLinearGradient(t,e,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,i,r,o,a){const l=this.context.createRadialGradient(t,e,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],i=e[1];this.context.drawImage(t,n,i)}else if(e.length===4){const n=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,n,i,r,o)}else if(e.length===8){const n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,n,i,r)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class fr{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=vn(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),n=Math.min(this.y,this.toY),i=Math.max(this.x,this.toX),r=Math.max(this.y,this.toY);return{x:e,y:n,width:i-e,height:r-n}}else{const e=Math.sin(t),n=Math.cos(t),i=n*this.x-e*this.y,r=n*this.toX-e*this.toY,o=n*this.y+e*this.x,a=n*this.toY+e*this.toX;return{x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,n=this.y,i=t.toX,r=t.toY,o=this.toX-e,a=t.x-i;if(!o&&!a)return null;const l=(this.toY-n)/o,c=(t.y-r)/a;if(o){if(!a)return{x:i,y:l*(i-e)+n}}else return{x:e,y:c*(e-i)+r};const u=(-c*i+r+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}const Eu=fr;class na extends fr{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,n,i,r,o,a,l]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,n,i,r,o,a,l,!this.sweepFlag)}convert(t,e,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-i)/2,m=Math.cos(u)*h+Math.sin(u)*f,d=-Math.sin(u)*h+Math.cos(u)*f,S=m*m/(r*r)+d*d/(o*o);if(S>1){const A=Math.sqrt(S);throw r=A*r,o=A*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const k=Math.sqrt((r*r*o*o-r*r*d*d-o*o*m*m)/(r*r*d*d+o*o*m*m)),_=l!=c?1:-1,x=_*k*r*d/o,y=_*k*-o*m/r,p=(t+n)/2,w=(e+i)/2,b=Math.cos(u)*x-Math.sin(u)*y+p,B=Math.sin(u)*x+Math.cos(u)*y+w,ct=(A,D,L,X)=>(A*X>=D*L?1:-1)*Math.acos((A*L+D*X)/(Math.sqrt(A*A+D*D)*Math.sqrt(L*L+X*X))),O=ct(1,0,t-b,e-B)-u,R=ct(t-b,e-B,n-b,i-B);return[b,B,r,o,u,O,O+R]}}const Km=na;class Jm extends fr{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,n=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,n,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let n,i,r,o;for(let c=0;c<2;++c)n=c==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,i=c==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,r=c==0?this.x:this.y,Math.abs(n)>1e-12&&(o=-i/(2*n),0<o&&o<1&&[t,e][c].push(n*o*o+i*o+r));const a={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},l={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:a.x,y:a.y,width:l.x-a.x,height:l.y-a.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const tg=Jm;class sn extends fr{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),n=this.x-this.c1x,i=(-e+Math.sqrt(e*e-4*t*n))/2/t,r=(-e-Math.sqrt(e*e-4*t*n))/2/t;const o=[this.y,this.toY],a=[this.x,this.toX];let l;const c=[];Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(l=this.interpolate(i),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),n=this.y-this.c1y,i=(-e+Math.sqrt(e*e-4*t*n))/2/t,r=(-e-Math.sqrt(e*e-4*t*n))/2/t,Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(l=this.interpolate(i),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y}));let u=[],h=c.length;for(let d=0;d<h;d++){for(let S=d+1;S<h;S++)c[d].X===c[S].X&&c[d].Y===c[S].Y&&(S=++d);u.push({X:c[d].X,Y:c[d].Y})}const f={x:Math.min.apply(Math,a),y:Math.min.apply(Math,o)},m={x:Math.max.apply(Math,a),y:Math.max.apply(Math,o)};return{x:f.x,y:f.y,width:m.x-f.x,height:m.y-f.y,dots:u}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.toX,y:Math.pow(1-t,3)*this.y+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.toY}}static base3(t,e,n,i,r){const o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}static bezlen(t,e,n,i,r,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=[-.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 d=0;d<12;d++){const S=u*h[d]+u,k=this.base3(S,t,n,r,a),_=this.base3(S,e,i,o,l);m+=f[d]*Math.sqrt(k*k+_*_)}return u*m}length(t=1){return sn.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,n=this.y,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.toX,c=this.toY;if(t<0||sn.bezlen(e,n,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,m=sn.bezlen(e,n,i,r,o,a,l,c,f);for(;Math.abs(m-t)>.01;)h/=2,f+=(m<t?1:-1)*h,m=sn.bezlen(e,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t);let n=1-e,i=Math.pow(n,3),r=Math.pow(n,2),o=e*e,a=o*e,l=i*this.x+r*3*e*this.c1x+n*3*e*e*this.c2x+a*this.toX,c=i*this.y+r*3*e*this.c1y+n*3*e*e*this.c2y+a*this.toY,u=this.x+2*e*(this.c1x-this.x)+o*(this.c2x-2*this.c1x+this.x),h=this.y+2*e*(this.c1y-this.y)+o*(this.c2y-2*this.c1y+this.y),f=this.c1x+2*e*(this.c2x-this.c1x)+o*(this.toX-2*this.c2x+this.c1x),m=this.c1y+2*e*(this.c2y-this.c1y)+o*(this.toY-2*this.c2y+this.c1y),d=n*this.x+e*this.c1x,S=n*this.y+e*this.c1y,k=n*this.c2x+e*this.toX,_=n*this.c2y+e*this.toY,x=90-Math.atan2(u-f,h-m)*180/Math.PI;return{x:l,y:c,m:{x:u,y:h},n:{x:f,y:m},start:{x:d,y:S},end:{x:k,y:_},alpha:x}}}const Ms=sn,ii=Math.PI*2;function Pu(s,t,e,n){const i=s*n-t*e<0?-1:1;let r=s*e+t*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function eg(s,t,e,n,i,r,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,f=o*o,m=a*a,d=u*u,S=h*h;let k=f*m-f*S-m*d;k<0&&(k=0),k/=f*S+m*d,k=Math.sqrt(k)*(i===r?-1:1);const _=k*o/a*h,x=k*-a/o*u,y=c*_-l*x+(s+e)/2,p=l*_+c*x+(t+n)/2,w=(u-_)/o,b=(h-x)/a,B=(-u-_)/o,ct=(-h-x)/a,O=Pu(1,0,w,b);let R=Pu(w,b,B,ct);return r===0&&R>0&&(R-=ii),r===1&&R<0&&(R+=ii),[y,p,O,R]}function sg(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+t),o=Math.sin(s+t);return[n,i,n-i*e,i+n*e,r+o*e,o-r*e,r,o]}function Ou(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*ii/360),u=Math.cos(l*ii/360),h=u*(s-e)/2+c*(t-n)/2,f=-c*(s-e)/2+u*(t-n)/2;if(h===0&&f===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const m=h*h/(o*o)+f*f/(a*a);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));const d=eg(s,t,e,n,i,r,o,a,c,u),S=[];let k=d[2],_=d[3];const x=Math.max(Math.ceil(Math.abs(_)/(ii/4)),1);_/=x;for(let y=0;y<x;y++)S.push(sg(k,_)),k+=_;return S.map(y=>{for(let p=0;p<y.length;p+=2){let w=y[p+0],b=y[p+1];w*=o,b*=a;const B=u*w-c*b,ct=c*w+u*b;y[p+0]=B+d[0],y[p+1]=ct+d[1]}return y})}function ia(s,t,e,n,i,r){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,i/3+.6666666666666666*e,r/3+.6666666666666666*n,i,r]}function ri(s,t,e,n){return[s,t,e,n,e,n]}const dr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class ue{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&wn(n,e),n}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||ar()})}static downloadFromSVGElement(t,e="shape"){return Hu(Ym(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Hu(_u(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Cu(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return ue.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=Yo(r);for(o=="m"&&a.length>dr[o]&&(e.push([i,...a.splice(0,dr[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<dr[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,dr[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=e,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,m=t.length;f<m;f++){let d=t[f];const S=d[0];switch(S){case"M":n=d[1],i=d[2];break;case"A":const k=Ou(r,o,d[6],d[7],d[4],d[5],d[1],d[2],d[3]);if(!k.length)continue;k.forEach((y,p)=>{const[w,b,B,ct,O,R,A,D]=y;d=["C",B,ct,O,R,A,D],p<k.length-1&&e.push(d)});break;case"S":let _=r,x=o;(h=="C"||h=="S")&&(_+=_-c,x+=x-u),d=["C",_,x,d[1],d[2],d[3],d[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),d=["C",...ia(r,o,a,l,d[1],d[2])];break;case"Q":a=d[1],l=d[2],d=["C",...ia(r,o,d[1],d[2],d[3],d[4])];break;case"L":d=["C",...ri(r,o,d[1],d[2])];break;case"H":d=["C",...ri(r,o,d[1],o)];break;case"V":d=["C",...ri(r,o,r,d[1])];break;case"Z":d=["C",...ri(r,o,n,i)];break}h=S,r=d[d.length-2],o=d[d.length-1],d.length>4?(c=d[d.length-4],u=d[d.length-3]):(c=r,u=o),e.push(d)}return e}static catmullRom2bezier(t){const e=[];for(let n=0,i=t.length;i-2>n;n+=2){let r;n==0?r=[{x:t[n],y:t[n+1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}]:i-4==n?r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+2],y:t[n+3]}]:r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){const e=[];let n=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){const a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const l=t[o],c=e[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return t}}class Me{cX;cY;x;y;degree;scalarX;scalarY;startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){this.cX=0,this.cY=0,this.x=t?.x||0,this.y=t?.y||0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&(this.cX=t.centerX-this.x,this.cY=t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.reset(t?.d,t?.originMatrix)}reset(t,e){typeof t=="string"?this.resetFromSVGPathData(ue.parseSVGPath(t),e):t instanceof Me?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const n=ue.normalizeSVGPath(ue.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let i=!1;for(let r=0,o=n.length;r<o;r++){const a=n[r];if(a[0]=="M"){i||(i=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Ms({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],toX:a[5],toY:a[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(r=>{({x:r.x,y:r.y}=e.transformPoint({x:r.x,y:r.y})),{x:r.c1x,y:r.c1y}=e.transformPoint({x:r.c1x,y:r.c1y}),{x:r.c2x,y:r.c2y}=e.transformPoint({x:r.c2x,y:r.c2y}),{x:r.toX,y:r.toY}=e.transformPoint({x:r.toX,y:r.toY})}))}static fromPolymorphPoints(t){const e=new Me;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let n=2,i=t.length;n+5<i;n+=6)e.appendLine(new Ms({c1x:t[n],c1y:t[n+1],c2x:t[n+2],c2y:t[n+3],toX:t[n+4],toY:t[n+5]}));return e}static fromLines(t){const e=new Me;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let n=0,i=t.length;n<i;n++)e.appendLine(t[n]);return e}appendLine(t){if(t instanceof Km){Ou(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,m,d,S,k,_]=c;this.normalizedLines.push(new Ms({x:this.prevPathX,y:this.prevPathY,c1x:f,c1y:m,c2x:d,c2y:S,toX:k,toY:_})),this.prevPathX=k,this.prevPathY=_});return}let e,n,i,r,o,a;t instanceof Ms?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.toX,a=t.toY):t instanceof tg?[e,n,i,r,o,a]=ia(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,n,i,r,o,a]=ri(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Ms({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:n,c2x:i,c2y:r,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform(),i=[];i.push(["M",t,e]);for(let r=0,o=n.length;r<o;r++)i.push(...n[r].toSVGPathData());return i}toSVGPathD(){return ue.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:n,normalizedLines:i}=this.updateTransform();t.beginPath(),t.moveTo(e,n),i.forEach(r=>{r.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],n=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),n.push(c.y,c.y+c.height)}),e.length==0||n.length==0)return{x:0,y:0,width:0,height:0};const i=Math.min.apply(0,e),r=Math.min.apply(0,n),o=Math.max.apply(0,e),a=Math.max.apply(0,n);return{x:i,y:r,width:o-i,height:a-r}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new Ne;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,n=this.startPathY;({x:e,y:n}=t.transformPoint({x:e,y:n}));const i=[];return this.normalizedLines.forEach(r=>{let o=r.x,a=r.y,l=r.c1x,c=r.c1y,u=r.c2x,h=r.c2y,f=r.toX,m=r.toY;({x:o,y:a}=t.transformPoint({x:o,y:a})),{x:l,y:c}=t.transformPoint({x:l,y:c}),{x:u,y:h}=t.transformPoint({x:u,y:h}),{x:f,y:m}=t.transformPoint({x:f,y:m}),i.push(new Ms({x:o,y:a,c1x:l,c1y:c,c2x:u,c2y:h,toX:f,toY:m}))}),{startPathX:e,startPathY:n,normalizedLines:i}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,n)=>e+=n.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let n=0;const i=e.length;for(let r=0;r<i;r++){const o=e[r],a=o.length();if(n+a>=t)return o.getPointAtSegmentLength(t-n);n+=a}return e[i-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:n,normalizedLines:i}=this.updateTransform(),r=i.length;if(r===0)return{x:e,y:n};if(r===1)return i[0].interpolate(t);{let o=t*r,a=i[0];if(o--,o>1)for(let l=1;l<r&&(a=i[l],o>1);l++)o-=1;return a.interpolate(o)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const n=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(n,t):n}}getSubpathsAtLength(t,e,n){const{startPathX:i,startPathY:r,normalizedLines:o}=t.updateTransform();let a=null,l=0;const c=new Me;c.prevPathX=c.startPathX=i,c.prevPathY=c.startPathY=r;for(let u=0,h=o.length;u<h;u++){const f=o[u],m=f.length();if(l+m>e&&!a){const d=f.getPointAtSegmentLength(e-l);if(c.appendLine(new Ms({c1x:d.start.x,c1y:d.start.y,c2x:d.m.x,c2y:d.m.y,toX:d.x,toY:d.y})),n)return c;a=c,c.appendLine(new Ms({c1x:d.n.x,c1y:d.n.y,c2x:d.end.x,c2y:d.end.y,toX:f.x,toY:f.y})),l+=m;continue}l+=m,c.appendLine(f)}return c}closestPoint(t,e){const n=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ta(u.x,u.y,t,e);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=ta(u.x,u.y,t,e),f=r+a,m=this.getPointAtLength(f),d=ta(m.x,m.y,t,e);c>=0&&h<o?(i=u,r=c,o=h):f<=n&&d<o?(i=m,r=f,o=d):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?vn(l.x,l.y,i.x,i.y):vn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform();return[t,e].concat(n.reduce((i,r)=>i.concat([r.c1x,r.c1y,r.c2x,r.c2y,r.toX,r.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=Jo(t[o],t[o+1],n,i),n=t[o],i=t[o+1];return Math.floor(r)}expendFill(t){const e=this.polymorphPoints,n=e.length;let i=t-n;const r=Math.ceil(t/n),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=n-1;){const l=e[a++],c=e[a++],u=e[a++],h=e[a++],f=e[a++],m=e[a++];o.push(["C",l,c,u,h,f,m]);let d=0;for(;d<r&&i>0;)o.push(["C",f,m,f,m,f,m]),i-=6,d++}return o}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=we(t[o]+(e[o]-t[o])*n,6);return r}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t:Math.abs(n-1)<Number.EPSILON?e:Me.fromPolymorphPoints(Me.mixPoints(new Me({d:t}).polymorphPoints,new Me({d:e}).polymorphPoints,n)).toSVGPathData()}}(function(){if(!window.requestAnimationFrame){let s=ce();window.requestAnimationFrame=function(t){const e=ce(),n=Math.max(0,16-(e-s)),i=window.setTimeout(function(){t(e+n)},n);return s=e+n,i}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(s){clearTimeout(s)})})();const Zt=s=>{let t=!1;return window.requestAnimationFrame(function e(n){!t&&s(n)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function ra(s,t=0){if(t==0)return s(ce()),()=>{};{const e=ce();return Zt(n=>n-e>=t?(s(n),!1):!0)}}function ng(s,t=0){let e=!1,n=0;const i=ce(),r=o=>{if(e)return;n++;const a=o-i-n*t;s(o,n,t<=a),ra(r,Math.max(0,t-a))};return ra(r,t),()=>{e=!0}}function ig(s,t=20){const e=1e3/t;let n=0,i;return()=>(ce()-n>=e&&(n=ce(),i=s()),i)}const pr=new qo;let oa=!1;function Iu(s,t,e){if(s&&t&&pr.set(s,t),oa)return;oa=!0;const n=ce();og(i=>{for(oa=!1;(i.timeRemaining()>0||e&&ce()-n>=e)&&pr.length>0;){const r=pr.shift();r&&r[1]()}pr.length>0&&Iu()})}let mr=0,nn=33,Ns=33,aa;const Du=new MessageChannel,rg=Du.port2;Du.port1.onmessage=s=>{aa!==null&&aa({didTimeout:mr<=ce(),timeRemaining:()=>Math.max(0,mr-ce())})};function og(s){return aa=s,requestAnimationFrame(t=>{let e=t-mr+Ns;e<Ns&&nn<Ns?(e<8&&(e=8),Ns=e<nn?nn:e):e>Ns&&nn>Ns?Ns=e<nn?nn:e:nn=e,mr=t+Ns,rg.postMessage(null)})}class oi{static _nextId=0;static nextId(){return oi._nextId++}}const ut={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const t=2.5949095;return(s*=2)<1?.5*(s*s*((t+1)*s-t)):.5*((s-=2)*s*((t+1)*s+t)+2)}},Bounce:{In:function(s){return 1-ut.Bounce.Out(1-s)},Out:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},InOut:function(s){return s<.5?ut.Bounce.In(s*2)*.5:ut.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(t){return t**s},Out:function(t){return 1-(1-t)**s},InOut:function(t){return t<.5?(t*2)**s/2:(1-(2-t*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(t){return Math.floor(t*s)/s}},createNoisyEasing:function(s,t=.1){const e=1-t;return function(n){return t*Math.random()+e*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},la=ut;function ag(s){switch(s){case ut.Quadratic.In:return ut.Quadratic.Out;case ut.Quadratic.Out:return ut.Quadratic.In;case ut.Quadratic.InOut:return ut.Quadratic.InOut;case ut.Cubic.In:return ut.Cubic.Out;case ut.Cubic.Out:return ut.Cubic.In;case ut.Cubic.InOut:return ut.Cubic.InOut;case ut.Quartic.In:return ut.Quartic.Out;case ut.Quartic.Out:return ut.Quartic.In;case ut.Quartic.InOut:return ut.Quartic.InOut;case ut.Quintic.In:return ut.Quintic.Out;case ut.Quintic.Out:return ut.Quintic.In;case ut.Quintic.InOut:return ut.Quintic.InOut;case ut.Sinusoidal.In:return ut.Sinusoidal.Out;case ut.Sinusoidal.Out:return ut.Sinusoidal.In;case ut.Sinusoidal.InOut:return ut.Sinusoidal.InOut;case ut.Exponential.In:return ut.Exponential.Out;case ut.Exponential.Out:return ut.Exponential.In;case ut.Exponential.InOut:return ut.Exponential.InOut;case ut.Circular.In:return ut.Circular.Out;case ut.Circular.Out:return ut.Circular.In;case ut.Circular.InOut:return ut.Circular.InOut;case ut.Elastic.In:return ut.Elastic.Out;case ut.Elastic.Out:return ut.Elastic.In;case ut.Elastic.InOut:return ut.Elastic.InOut;case ut.Back.In:return ut.Back.Out;case ut.Back.Out:return ut.Back.In;case ut.Back.InOut:return ut.Back.InOut;case ut.Bounce.In:return ut.Bounce.Out;case ut.Bounce.Out:return ut.Bounce.In;case ut.Bounce.InOut:return ut.Bounce.InOut;default:return s}}const _n={Utils:{Linear:function(s,t,e){return(t-s)*e+s},Factorial:function(){const s=[1];return function(t){let e=1;if(s[t])return s[t];for(let n=t;n>1;n--)e*=n;return s[t]=e,e}}(),Bernstein:function(s,t){const e=_n.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,i){const r=(e-s)*.5,o=(n-t)*.5,a=i*i,l=i*a;return(2*t-2*e+r+o)*l+(-3*t+3*e-2*r-o)*a+r*i+t},QuadraticBezier:(s,t,e,n)=>{const i=1-n;return i*i*s+2*i*n*t+n*n*e},CubicBezier:(s,t,e,n,i)=>{const r=1-i;return r*r*r*s+3*r*r*i*t+3*r*i*i*e+i*i*i*n}},Linear:function(s,t){const e=s.length-1,n=e*t,i=Math.floor(n),r=_n.Utils.Linear;return t<0?r(s[0],s[1],n):t>1?r(s[e],s[e-1],e-n):r(s[i],s[i+1>e?e:i+1],n-i)},Bezier:function(s,t){let e=0;const n=s.length-1,i=Math.pow,r=_n.Utils.Bernstein;for(let o=0;o<=n;o++)e+=i(1-t,n-o)*i(t,o)*s[o]*r(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,i=Math.floor(n);const r=_n.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(i=Math.floor(n=e*(1+t))),r(s[(i-1+e)%e],s[i],s[(i+1)%e],s[(i+2)%e],n-i)):t<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(r(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):r(s[i?i-1:0],s[i],s[e<i+1?e:i+1],s[e<i+2?e:i+2],n-i)}},ca=_n;class Ru{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=ce(),e=!1){const n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const Le=new Ru;class Au{constructor(t,e=Le){this._object=t,this._group=e}_id=oi.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=la.Linear.None;_interpolationFunction=ca.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(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=ce()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,n,i){for(const r in n){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=e[r]||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(t=ce()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=ce()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=Le){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=la.Linear.None){return this._easingFunction=t,this}interpolation(t=ca.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=ce(),e=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<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=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+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(t,e,n,i){for(const r in n){if(e[r]===void 0)continue;const o=e[r]||0;let a=n[r];const l=Array.isArray(t[r]),c=Array.isArray(a);!l&&c?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=e}}const lg=Au,cg=oi.nextId,ug=Le.getAll.bind(Le),hg=Le.removeAll.bind(Le),fg=Le.add.bind(Le),dg=Le.remove.bind(Le),pg=Le.update.bind(Le),_t={now:ce,Sequence:oi,Easing:la,Interpolation:ca,Group:Ru,Tween:lg,nextId:cg,getAll:ug,removeAll:hg,add:fg,remove:dg,update:pg};class mg{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=ce(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=ce();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const Mu=mg;class He{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){zm(this.tweens,(e,n)=>t?e.delay>n.delay:e.delay<=n.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(n=>{const i={...n};delete i.tween,i.fromValues={...i.fromValues},i.toValues={...i.toValues},e.push(i)}),e}addTween(t,e,n){const i={fromValues:t,toValues:e,frames:typeof n?.frames=="number"?n.frames:1,delay:typeof n?.delay=="number"?n.delay:this.tweens.length,easeFunction:n?.easeFunction||ut.Linear.None,interpolationFunction:n?.interpolationFunction||_n.Linear,repeat:typeof n?.repeat=="number"?n.repeat:0,yoyo:n?.yoyo||!1,onStart:n?.onStart||(()=>{}),onUpdate:n?.onUpdate||(()=>{}),onComplete:n?.onComplete||(()=>{})};return this.tweens.push(i),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new Mu,n=this.frameDuration;return new Promise(i=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Zt(r=>{if(!this.isPaused){const a=Math.max(0,r-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*n<=l).forEach(c=>{c.tween||(c.tween=new Au({...c.fromValues}).to({...c.toValues},c.frames*n).easing(c.easeFunction).interpolation(c.interpolationFunction).repeat(c.repeat).yoyo(c.yoyo).onStart(c.onStart).onUpdate(c.onUpdate).onComplete(c.onComplete),c.tween.start(a)),(c.delay+c.frames*(c.repeat+1))*n>l?c.tween.update(a):(c.tween.isPlaying()&&c.tween.end(),Em(t,c))})}const o=!!t.length;return o||(this.onGroupComplete?.(),i()),o})})}isPaused=!1;pausedClock=new Mu;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(n=>{e=Math.max(e,n.delay+n.frames),n.easeFunction=ag(n.easeFunction);const i={...n.toValues};n.toValues={...n.fromValues},n.fromValues={...i}}),t.forEach(n=>{n.delay=e-n.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}class Ht extends ei{id;originD;originMatrix;independentTransformInGroup;forceCXY=!1;cX;cY;x;y;degree;scalarX;scalarY;diffXInGroup;diffYInGroup;diffDegreeInGroup;diffScalarXInGroup;diffScalarYInGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;strokeArmyAnts;strokeArmyAntsOffset=0;strokeDashTotalLength=0;isShow=!0;el;pathd;usePathDtoCanvasContext=!1;parent;shapes=[];constructor(t){if(super(),this.id=ar(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.strokeArmyAnts){const n=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",n),this.strokeDashTotalLength=Yo(n).reduce((i,r)=>i+r,0)}return Vm(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Me,Wo(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(n=>{const i=n.originMatrix?n.originMatrix.clone():new Ne;i.translate(-t.x+n.x,-t.y+n.y),n.originMatrix=i});const e=this.originMatrix?this.originMatrix.clone():new Ne;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,n){if(n instanceof sa)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(i);{const r=this.getBoundingClientRect();if(r)return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height}return!1}isPointInStroke(t,e,n){if(n instanceof sa)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}clone(){return km(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,i])=>[Ue(n),i]))):e&&(this.attrs[Ue(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[Ue(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[Ue(t)]}distance(t){return Jo(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Ie(vn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=ds(Ft(this.degree),e);this.vx=n,this.vy=i,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=ds(Ft(this.degree),e);this.ax=n,this.ay=i,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,n=t.y-this.y,i=e*e+n*n,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,t.vx-=a/t.mass,t.vy-=l/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=As(t?.gravity,0);this.vy+=e;const n=As(t?.friction,1);this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const n=As(e?.easing,.05),i=t.x-this.cX-this.x,r=t.y-this.cY-this.y;this.vx=i*n,this.vy=r*n,this.run(e)}runSpringTo(t,e){const n=As(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(i=>{const r=i.x-this.cX-this.x,o=i.y-this.cY-this.y,a=r*n,l=o*n;this.vx+=a,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const n=As(e?.springLength,100),i=As(e?.spring,1e-4),r=t.x-this.x,o=t.y-this.y,a=Math.sqrt(r*r+o*o);if(a<n){const l=r*i,c=o*i;return this.vx+=l/this.mass,this.vy+=c/this.mass,t.vx-=l/t.mass,t.vy-=c/t.mass,1-a/n}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const n=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*n),this.getPointAtLength(e*n)}strokeDashTween(t=1e3,e){const n=this.initPathD(),i=we(n.getTotalLength(),0);this.setAttr({strokeDasharray:`${i} ${i}`,strokeDashoffset:`${i}`});const r=e?.onUpdate,o=new He({frameDuration:t});o.addTween({offset:i},{offset:0},Object.assign(e||{},{onUpdate:(a,l)=>{this.setAttr("strokeDashoffset",""+we(a.offset,2)),r?.(a,l)}})),o.play()}}class gg extends Ht{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-this.radius],["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.getScreenX(),this.getScreenY()]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,n){this.cX=t,this.cY=e,this.cZ=n}rotateX(t){({x:this.y,y:this.z}=ts(Ft(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=ts(Ft(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=ts(Ft(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return Ko(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+n*n+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y,i=this.z;return{x:n*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}}const gr=gg,Nu=[1,0,0,1,0,0],Fu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ne{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=Nu){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Ne,n=uu("number",t);return n.length===6&&n.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=t}toMatrix3D(t=this.matrix3d){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new $e(e)}identity(){return this.value=Array.from(Nu),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.scalar(1/t)}transformPoint(t){const e=t.z||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31,y:t.x*this.m12+t.y*this.m22+e*this.m32,z:t.x*this.m13+t.y*this.m23+e*this.m33}}clone(){return new Ne([...this.value])}multiply(t){const e=this.clone(),n=t instanceof Ne?t:new Ne(t);return this.m11=n.m11*e.m11+n.m12*e.m21+n.m13*e.m31,this.m12=n.m11*e.m12+n.m12*e.m22+n.m13*e.m32,this.m13=n.m11*e.m13+n.m12*e.m23+n.m13*e.m33,this.m21=n.m21*e.m11+n.m22*e.m21+n.m23*e.m31,this.m22=n.m21*e.m12+n.m22*e.m22+n.m23*e.m32,this.m23=n.m21*e.m13+n.m22*e.m23+n.m23*e.m33,this.m31=n.m31*e.m11+n.m32*e.m21+n.m33*e.m31,this.m32=n.m31*e.m12+n.m32*e.m22+n.m33*e.m32,this.m33=n.m31*e.m13+n.m32*e.m23+n.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}inverse(){const t=this.m11,e=this.m12,n=this.m13,i=this.m21,r=this.m22,o=this.m23,a=this.m31,l=this.m32,c=this.m33,u=c*r-o*l,h=-c*i+o*a,f=l*i-r*a;let m=t*u+e*h+n*f;return m?(m=1/m,this.m11=u*m,this.m12=(-c*e+n*l)*m,this.m13=(o*e-n*r)*m,this.m21=h*m,this.m22=(c*t-n*a)*m,this.m23=(-o*t+n*i)*m,this.m31=f*m,this.m32=(-l*t+e*a)*m,this.m33=(r*t-e*i)*m,this):null}adjugate(){const t=new Ne;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=Ie(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,degree:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:Ie(Math.atan2(-this.m21,this.m22)),skewY:Ie(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],m=t.value[5],d=l*h,S=c*u,k=(u*n-e*h)/(S-d),_=(l*n-e*c)/(d-S),x=(u*r-i*h)/(S-d),y=(l*r-i*c)/(d-S),p=(u*(a-m)+h*(f-o))/(S-d),w=(l*(a-m)+c*(f-o))/(d-S),b=[k,_,x,y,p,w];return new Ne(b)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>we(e,t)).join(",")})`:this.matrix3d.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix3d.translate(0,0,t),this.matrix3d.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix3d.m43),this}translate3d(t,e,n){return this.matrix3d.translate(t,e,n),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,n){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(t,e=0,n=0){const i=Ft(t),r=Math.cos(i),o=Math.sin(i);return this.translate(e,n),this.multiply([r,o,-o,r,0,0]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{degree:i}=this.split();return this.rotate(t-i,e,n),this}rotateX(t){return this.matrix3d.rotateX(t),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotateY(t),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotateZ(t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,n){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{degreeX:i,degreeY:r,degreeZ:o}=this.matrix3d.split();return this.rotate3d(t-i,e-r,n-o),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.multiply([t,0,0,e,0,0]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,i=0){return this.scale(t/this.m11,e/this.m22,n,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,n=t){return this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scalarX:i,scalarY:r,scalarZ:o}=this.matrix3d.split();return this.scale3d(t/i,e/r,n/o),this}skew(t,e=t){return this.multiply([Math.cos(Ft(e)),Math.sin(Ft(e)),-Math.sin(Ft(t)),Math.cos(Ft(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:n,skewY:i}=this.split();return this.skew(t-n,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class $e{value;is3dSpecial=!1;constructor(t=Fu){this.value=Array.from(t)}static fromString(t){const e=new $e,n=uu("number",t);return n.length===16&&n.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Fu),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}clone(){return new $e([...this.value])}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this.m41*=t,this.m42*=t,this.m43*=t,this.m44*=t,this}normalize(){return this.scalar(1/(this.m44||1e-4))}transformPoint(t){const e=t.z||1,n=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+n*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+n*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+n*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+n*this.m44}}toMatrix(t){const{scalarX:e,scalarY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[e,r,i,n,o,a];return t?(t.value=l,t):new Ne(l)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix3d(${this.value.map(e=>we(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),i=Ie(qt(Math.asin(-this.m13),-1,1));let r=Ie(Math.atan2(this.m23,this.m33));Math.cos(Ft(i))===0&&(r=Ie(Math.atan2(-this.m31,this.m22)));let o=Ie(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:n,degreeX:r,degreeY:i,degreeZ:o,skewX:Ie(this.m14),skewY:Ie(this.m24),skewZ:Ie(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,m=this.m34,d=this.m41,S=this.m42,k=this.m43,_=this.m44;t[0]=l*m*S-c*f*S+c*h*k-a*m*k-l*h*_+a*f*_,t[1]=r*f*S-i*m*S-r*h*k+n*m*k+i*h*_-n*f*_,t[2]=i*c*S-r*l*S+r*a*k-n*c*k-i*a*_+n*l*_,t[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*m-n*l*m;const x=e*t[0]+o*t[1]+u*t[2]+d*t[3];if(x==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*d-l*m*d-c*u*k+o*m*k+l*u*_-o*f*_,t[5]=i*m*d-r*f*d+r*u*k-e*m*k-i*u*_+e*f*_,t[6]=r*l*d-i*c*d-r*o*k+e*c*k+i*o*_-e*l*_,t[7]=i*c*u-r*l*u+r*o*f-e*c*f-i*o*m+e*l*m,t[8]=a*m*d-c*h*d+c*u*S-o*m*S-a*u*_+o*h*_,t[9]=r*h*d-n*m*d-r*u*S+e*m*S+n*u*_-e*h*_,t[10]=n*c*d-r*a*d+r*o*S-e*c*S-n*o*_+e*a*_,t[11]=r*a*u-n*c*u-r*o*h+e*c*h+n*o*m-e*a*m,t[12]=l*h*d-a*f*d-l*u*S+o*f*S+a*u*k-o*h*k,t[13]=n*f*d-i*h*d+i*u*S-e*f*S-n*u*k+e*h*k,t[14]=i*a*d-n*l*d-i*o*S+e*l*S+n*o*k-e*a*k,t[15]=n*l*u-i*a*u+i*o*h-e*l*h-n*o*f+e*a*f,this.value=t,this.scalar(1/x)}multiply(t){const e=this.clone();return this.m11=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,this.m12=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,this.m13=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,this.m14=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,this.m21=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,this.m22=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,this.m23=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,this.m24=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,this.m31=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,this.m32=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,this.m33=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,this.m34=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,this.m41=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,this.m42=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,this.m43=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,this.m44=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44,this}translate(t=0,e=0,n=0){return this.multiply(new $e([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]))}scale(t=1,e=1,n=1){return this.multiply(new $e([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}rotateX(t){const e=Ft(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new $e([1,0,0,0,0,n,i,0,0,-i,n,0,0,0,0,1]))}rotateY(t){const e=Ft(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new $e([n,0,-i,0,0,1,0,0,i,0,n,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Ft(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new $e([n,i,0,0,-i,n,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,n=0){return this.multiply(new $e([1,0,0,Ft(t),0,1,0,Ft(e),0,0,1,Ft(n),0,0,0,1]))}perspective(t){return this.multiply(new $e([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,n=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),e/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:e,y:n,z:i,mass:r};const h=-i/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:i,mass:r}}project(t){const e=t.z;let n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:e,mass:r}}bounds(t,e,n,i){const r=new gr({x:t,y:e}),o=new gr({x:t+n,y:e}),a=new gr({x:t+n,y:e+i}),l=new gr({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return{x:c,y:u,width:h,height:f}}}function Lu(s){const t=new Ne;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(r[0],r[1]);break;case"translatex":t.translateX(r[0]);break;case"translatey":t.translateY(r[0]);break;case"translatez":t.translateZ(r[0]);break;case"translate3d":t.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":t.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":t.rotateX(r[0]);break;case"rotatey":t.rotateY(r[0]);break;case"rotatez":t.rotateZ(r[0]);break;case"rotate3d":t.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":t.scale(r[0],r[1]??r[0]);break;case"scalex":t.scaleX(r[0]);break;case"scaley":t.scaleY(r[0]);break;case"scalez":t.scaleZ(r[0]);break;case"scale3d":t.scale3d(r[0],r[1],r[2]);break;case"skew":t.skew(r[0],r[1]??0);break;case"skewx":t.skewX(r[0]);break;case"skewy":t.skewY(r[0]);break;case"skewz":t.skewZ(r[0]);break;case"skew3d":t.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":t.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new $e(r)),t.matrix3d.toMatrix(t);break}return""}),t}function ts(s,t,e){const n=new Ne;return n.rotate(Ie(s)),n.transformPoint({x:t,y:e})}class es extends Ht{shapesCountChange=!1;constructor(t){super(t)}shapeInit(){}frameStart(t){return this.shapesCountChange&&(this.shapesCountChange=!1,this.shapes.forEach(e=>{e.parent=this,e.initPathD()}),this.pathd=this.initPathD(),this.shapes.forEach(e=>{!e.forceCXY&&!e.independentTransformInGroup&&(e.cX=this.cX-e.diffXInGroup,e.cY=this.cY-e.diffYInGroup)})),super.frameStart(t)}frameUpdate(t,e){this.shapes.forEach(n=>{!n.independentTransformInGroup&&!n.isDragging&&(n.x=this.x+n.diffXInGroup,n.y=this.y+n.diffYInGroup,n.degree=this.degree+n.diffDegreeInGroup,n.scalarX=this.scalarX*n.diffScalarXInGroup,n.scalarY=this.scalarY*n.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(n=>n.id==e.id)==-1&&(e.on("draging",(n,i)=>{this.enableDrag&&(this.x+=n,this.y+=i,this.emit("draging",n,i,e))}),this.shapes.push(e),this.shapesCountChange=!0)})}getBoundingClientRect(){const t=[],e=[];this.shapes.forEach(l=>{const c=l.getBoundingClientRect();c&&(t.push(c.x,c.x+c.width),e.push(c.y,c.y+c.height))});const n=this.pathd?.getBoundingClientRect();if(n&&(n.width||n.height)&&(t.push(n.x,n.x+n.width),e.push(n.y,n.y+n.height)),t.length==0||e.length==0)return null;const i=Math.min.apply(0,t),r=Math.min.apply(0,e),o=Math.max.apply(0,t),a=Math.max.apply(0,e);return{x:i,y:r,width:o-i,height:a-r}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(n=>{n.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(n=>{n.setAttr(t,e)}))}sortPathD(){this.shapes=this.shapes.map(t=>{const e=t.initPathD();return{shape:t,perimeter:e.perimeterPoints()}}).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.shape)}expendFill(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.expendFill(this);for(let i=n;i<e;i++){const o=t.shapes[i].initPathD().polymorphPoints,a=o[0],l=o[1],c=[["M",a,l]];for(let u=2;u+5<o.length;u+=6)c.push(["C",a,l,a,l,a,l]);this.addShape(new Ht({attrs:{...t.shapes[i].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const n=this.shapes.length-1;this.shapes.forEach((a,l)=>{a.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==n&&e?.onGroupComplete?.()}})});break;case"parallel":default:const i=new He({frameDuration:t}),r={},o={};this.shapes.forEach((a,l)=>{const c=we(a.getTotalLength(),0);r[`offset_${l}`]=c,o[`offset_${l}`]=0,a.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),i.addTween(r,o,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(a,l)=>{for(let c in a){const u=Je(c).number;this.shapes[u].setAttr("strokeDashoffset",""+we(a[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),i.play();break}}}const bn=es,yg=getComputedStyle(document.documentElement);function Dt(s){return yg.getPropertyValue(s)}const Pt={safeAreaTop:Dt("--safe-area-inset-top"),safeAreaRight:Dt("--safe-area-inset-right"),safeAreaBottom:Dt("--safe-area-inset-bottom"),safeAreaLeft:Dt("--safe-area-inset-left"),colorPrimary:Dt("--color-primary")||"#5078f0",colorRed:Dt("--color-red")||"#ff5050",colorOrange:Dt("--color-orange")||"#fa8c00",colorYellow:Dt("--color-yellow")||"#fadc32",colorGreen:Dt("--color-green")||"#00c878",colorBlue:Dt("--color-blue")||"#00b4fa",colorPurple:Dt("--color-purple")||"#6464fa",colorBlack:Dt("--color-black")||"#001428",colorGray00:Dt("--color-gray-00")||"#000000",colorGray33:Dt("--color-gray-33")||"#333333",colorGray66:Dt("--color-gray-66")||"#666666",colorGray99:Dt("--color-gray-99")||"#999999",colorGrayCC:Dt("--color-gray-cc")||"#cccccc",colorGrayDD:Dt("--color-gray-dd")||"#dddddd",colorGrayE6:Dt("--color-gray-e6")||"#e6e6e6",colorGrayEE:Dt("--color-gray-ee")||"#eeeeee",colorGrayEF:Dt("--color-gray-ef")||"#efefef",colorGrayF5:Dt("--color-gray-f5")||"#f5f5f5",colorGrayFF:Dt("--color-gray-ff")||"#ffffff",fontLineHeight:Dt("--font-line-height")||"1.4",fontSize32:Dt("--font-size-32")||"32px",fontSize24:Dt("--font-size-24")||"24px",fontSize22:Dt("--font-size-22")||"22px",fontSize20:Dt("--font-size-20")||"20px",fontSize18:Dt("--font-size-18")||"18px",fontSize16:Dt("--font-size-16")||"16px",fontSize14:Dt("--font-size-14")||"14px",fontSize12:Dt("--font-size-12")||"12px",fontSize10:Dt("--font-size-10")||"10px",d4:Dt("--distance-4")||"4px",d8:Dt("--distance-8")||"8px",d12:Dt("--distance-12")||"12px",d16:Dt("--distance-16")||"16px",d20:Dt("--distance-20")||"20px",d32:Dt("--distance-32")||"32px",d40:Dt("--distance-40")||"40px",d44:Dt("--distance-44")||"44px"};class wt{__color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),typeof e=="number"&&this.setAlpha(e)}get color(){return this.__color}set color(t){this.__color=ua(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=qt(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=qt(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=qt(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=qt(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setRGBA(t,e,n,i){return this.r=t,this.g=e,this.b=n,this.a=i,this}get hex(){return(this.r<<16)+(this.g<<8)+this.b}toString(){if(this.a===1){const t="000000"+this.hex.toString(16);return"#"+t.slice(t.length-6)}else return`rgba(${this.r},${this.g},${this.b},${we(this.a,6)})`}clone(){return new wt(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",n="#ffffff"){if(t)return new wt(this.r*.299+this.g*.587+this.b*.114>186?e:n);{const i=this.clone();return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,i}}lighten(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:i}=this.color;return e+=(255-e)*t,n+=(255-n)*t,i+=(255-i)*t,new wt().setRGBA(e,n,i,this.color.a)}darken(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:i}=this.color;return e=e*(1-t),n=n*(1-t),i=i*(1-t),new wt().setRGBA(e,n,i,this.color.a)}static gradient(t,e,n){try{const i=ua(t),r=ua(e);return new wt().setRGB((r.r-i.r)*n+i.r,(r.g-i.g)*n+i.g,(r.b-i.b)*n+i.b)}catch{return new wt(e)}}static random(){return new wt(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:n,a:i}=this.color,r=Math.max(t,e,n),o=Math.min(t,e,n),a=r-o;let l;return t===r?l=(e-n)/a:e===r?l=2+(n-t)/a:l=4+(t-e)/a,l/=6,l<0&&(l+=1),{h:a==0?0:l*360,s:r===0?0:a/r,v:r/255,a:i}}set h(t){const e=this.hsv;e.h=qt(t,0,360),this.setColor(e)}get h(){return this.hsv.h}set s(t){const e=this.hsv;e.s=qt(t,0,1),this.setColor(e)}get s(){return this.hsv.s}set v(t){const e=this.hsv;e.v=qt(t,0,1),this.setColor(e)}get v(){return this.hsv.v}}function De(s,t){return new wt(s,t)}function ua(s){const t=Object.prototype.hasOwnProperty.call(s,"a")?qt(s.a,0,1):1;if(Object.prototype.hasOwnProperty.call(s,"r")&&Object.prototype.hasOwnProperty.call(s,"g")&&Object.prototype.hasOwnProperty.call(s,"b"))return s.r=qt(Math.round(s.r),0,255),s.g=qt(Math.round(s.g),0,255),s.b=qt(Math.round(s.b),0,255),s.a=t,s;if(Object.prototype.hasOwnProperty.call(s,"h")&&Object.prototype.hasOwnProperty.call(s,"s")&&Object.prototype.hasOwnProperty.call(s,"v")){const n=qt(s.h,0,360),i=qt(s.s,0,1),r=qt(s.v,0,1),o=Math.floor(n/60)%6,a=n/60-Math.floor(n/60),l=r*(1-i),c=r*(1-a*i),u=r*(1-(1-a)*i),h=[[r,u,l],[c,r,l],[l,r,u],[l,c,r],[u,l,r],[r,l,c]][o];return{r:Math.round(h[0]*255),g:Math.round(h[1]*255),b:Math.round(h[2]*255),a:t}}const e={r:0,g:0,b:0,a:t};if(typeof s=="number")s<Math.pow(2,24)?(e.r=s>>16&255,e.g=s>>8&255,e.b=s&255):(e.r=s>>24&255,e.g=s>>16&255,e.b=s>>8&255,e.a=(s&255)/255);else if(typeof s=="string"){const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);if(n)e.r=parseInt(n[1]),e.g=parseInt(n[2]),e.b=parseInt(n[3]),n[4]&&(e.a=parseFloat(n[4]));else{let i=s.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);i?(e.r=parseInt(`${i[1]}${i[1]}`,16),e.g=parseInt(`${i[2]}${i[2]}`,16),e.b=parseInt(`${i[3]}${i[3]}`,16)):(i=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),i?(e.r=parseInt(i[1],16),e.g=parseInt(i[2],16),e.b=parseInt(i[3],16)):(i=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),i?(e.r=parseInt(i[1],16),e.g=parseInt(i[2],16),e.b=parseInt(i[3],16),e.a=parseInt(i[4],16)/255):s==="none"&&(e.a=0)))}}else throw new Error("parseColor 不支持的颜色解析:"+s);return e.r=qt(e.r,0,255),e.g=qt(e.g,0,255),e.b=qt(e.b,0,255),e.a=qt(e.a,0,1),e}const vg=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],Fs={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};Fs.buttonColor=new wt(Fs.saveRowColor).darken(.1).toString(),Fs.borderColor=new wt(Fs.backgroundColor).lighten(.07).toString(),Fs.inputColor=new wt(Fs.backgroundColor).lighten(.085).toString();class he extends Ht{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,n=this.toY-this.y;return new Proxy(this,{set(i,r,o,a){switch(r){case"x":i.toX=o+e;break;case"y":i.toY=o+n;break;case"toX":e=o-i.x;break;case"toY":n=o-i.y;break}return Reflect.set(i,r,o,a)}})}toSVGPathData(){return[["m",0,0],["l",this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.lineTo(this.toX-this.x,this.toY-this.y)}intersection(t){const e=new Eu({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),n=new Eu({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(n)}}class yr extends Ht{cx;cy;toX;toY;isLineThrough;constructor(t){super(t),this.cx=t?.cx||0,this.cy=t?.cy||0,this.toX=t?.toX||0,this.toY=t?.toY||0,this.isLineThrough=typeof t?.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["m",0,0],["q",t-this.x,e-this.y,this.toX-this.x,this.toY-this.y]]}else return[["m",0,0],["q",this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){if(t.beginPath(),t.moveTo(0,0),this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,n=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,n-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}var $u={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
38
+ `.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^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":t=/^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":t=/^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":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t},fs=(s,t)=>(typeof s=="string"&&(s=or(s)||new RegExp(s)),s.test(t)),cu=(s,t)=>{typeof s=="string"&&(s=or(s)||new RegExp(s));const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},uu=(s,t)=>{typeof s=="string"&&(s=or(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const i of n)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function wm(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function hu(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function ar(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let n="";for(let i=0;i<s;i++)n+=t[Math.floor(Math.random()*e)];return n}function Cm(s){return s.replace(/(^\w)/g,t=>t.toLowerCase())}const Ue=(s,t="-")=>{let e=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function Tm(s){return s.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function fu(s){return Cm(Tm(s))}function Sm(s){return s!=null}function km(s,...t){return new s.constructor(...t)}function du(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function pu(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function ti(s=[],t=[]){const e=s.length,n=t.length;for(let r=0;r<n;r++)s[r]=t[r];let i=Math.max(0,e-n);for(;i>0;)s.pop(),i--;return s}function Em(s,t){const e=s.findIndex(n=>n===t);return e>=0&&s.splice(e,1),s}let mu;try{mu=Map}catch{mu=function(){}}let gu;try{gu=Set}catch{gu=function(){}}function As(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function lr(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const qt=(s,t,e)=>s<t?t:s>e?e:s;function Pm(s,t,e,n,i){return n+(i-n)*((s-t)/(e-t))}const yu=(s,t,e)=>n=>{const i=qt(n,s,t);return e==0?i:t-i<e?t:Math.round(i/e)*e};function Om(s,t=12){return As(s).toFixed(t)}function we(s,t=12){return+Om(s,t)}function Je(s,t){const e=cu("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Sm(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(e.matchIndex+e.fullMatch.length):""}}function Yo(s){const t=cu("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Im(s=0,t=100){return Math.random()*(t-s)+s}function jt(s=0,t=100){return Math.floor(Im(s,t))}Dm();function Dm(){const s=new ArrayBuffer(4),t=new Float32Array(s),e=new Uint32Array(s),n=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(n[l]=0,n[l|256]=32768,i[l]=24,i[l|256]=24):c<-14?(n[l]=1024>>-c-14,n[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,i[l]=24,i[l|256]=24):(n[l]=31744,n[l|256]=64512,i[l]=13,i[l|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;!(c&8388608);)c<<=1,u-=8388608;c&=-8388609,u+=947912704,r[l]=c|u}for(let l=1024;l<2048;++l)r[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)o[l]=l<<23;o[31]=1199570944,o[32]=2147483648;for(let l=33;l<63;++l)o[l]=2147483648+(l-32<<23);o[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(a[l]=1024);return{floatView:t,uint32View:e,baseTable:n,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}var vu=(s=>(s.UNKNOWN="",s.TEXT="text/plain",s.MD="text/plain",s.HTML="text/html",s.XML_TEXT="text/xml",s.CSS="text/css",s.JPEG="image/jpeg",s.PNG="image/png",s.GIF="image/gif",s.BMP="image/bmp",s.WEBP="image/webp",s.SVG="image/svg+xml",s.ICON="image/x-icon",s.MICROSOFT_ICON="image/vnd.microsoft.icon",s.MPEG="audio/mpeg",s.MP3="audio/mpeg",s.MP4="video/mp4",s.OGG="audio/ogg",s.WAV="audio/wav",s.MIDI="audio/midi",s.WEBM="video/webm",s.VIDEO_OGG="video/ogg",s.OCTET_STREAM="application/octet-stream",s.JAVASCRIPT="application/javascript",s.ECMASCRIPT="application/ecmascript",s.JSON="application/json",s.XML="application/xml",s.XHTML="application/xhtml+xml",s.XWWW="application/x-www-form-urlencoded",s.DOC="application/msword",s.CSV="application/x-csv",s.EXCEL="application/vnb.ms-excel",s.PPT="application/vnb.mspowerpoint",s.PDF="application/pdf",s.ZIP="application/zip",s.TGZ="application/x-gtar",s.TAR_GZ="application/x-gzip",s.EOT="appliaction/vnd.ms-fontobject",s.TTF="aplication/font-sfnt",s.PKCS12="aplication/pkcs12",s))(vu||{}),cr=(s=>(s.ascii="ascii",s.utf8="utf8",s.utf16le="utf16le",s.ucs2="ucs2",s.base64="base64",s.base64url="base64url",s.latin1="latin1",s.binary="binary",s.hex="hex",s))(cr||{});const _u=(s,t,e)=>t?e===cr.base64?new Blob([s],{type:`${t};${e}`}):e===cr.utf8?new Blob([s],{type:`${t};charset=${e}`}):new Blob([s],{type:`${t}`}):new Blob([s]);function ce(){return(performance||Date).now()}function Rm(s){let t=0;for(let e=5;e>=0;e=e-2)e==5?t+=s[e-1]*10+s[e]:e==3?t+=(s[e-1]*10+s[e])*60:e==1&&(t+=(s[e-1]*10+s[e])*60*60);return t=Math.floor(Math.max(0,t)),t*1e3}function Xo(s){let t=Rm(s)/1e3;const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const n=t%60;s[3]=n%10,s[2]=Math.floor(n/10),t=Math.floor(t/60);const i=t%60%24;return s[1]=i%10,s[0]=Math.floor(i/10),s}function Am(s){const t=[0,0,0,0,0,0],e=Yo(s);for(let n=0,i=Math.min(e.length,3);n<i;n++){const r=Math.floor(Math.abs(e[n]));t[2*n+1]=r%10,t[2*n]=Math.floor(r/10)}return Xo(t)}function jo(s,t=1){return s[5]+=t,Xo(s)}function Uo(s,t=1){return s[5]-=t,Xo(s)}function Mm(s,t){s.forEach((e,n)=>{t[n]=e})}function Nm(s,t){let e=!0;return function(...n){e&&(e=!1,s.apply(this,n),setTimeout(()=>{e=!0},t))}}function Fm(s,t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{s.apply(this,n)},t)}}class ei{events;constructor(){this.events={}}on(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}addListener(t,e){return this.on(t,e),this}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}removeListener(t,e){if(this.events[t])return this.events[t]=this.events[t].filter(n=>n!==e),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].forEach(n=>{n(...e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,e(...o),this.off(t,i))}})();return this.on(t,i),this}}class Ho extends ei{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(i=>i())),n=this.results.length;e.forEach((i,r)=>{if(i.status=="fulfilled"){const o=i.value;this.results.push(o),this.controller?.enqueue(o),this.emit("success",n+r,o)}else if(i.status=="rejected"){const o=new Error(i.reason);this.results.push(o),this.controller?.enqueue(o),this.emit("error",n+r,o)}}),this.activeTaskCount-=e.length}}}Array.prototype.ap=function(s){return this.reduce((t,e)=>t.concat(s.map(e)),[])};let si;function Wo(s){si=s,s(),si=null}class Lm{subscribers=new Set;add(){si&&!this.subscribers.has(si)&&this.subscribers.add(si)}notify(){this.subscribers.forEach(t=>t())}}const bu=new WeakMap;function xu(s,t){let e=bu.get(s);e||(e=new Map,bu.set(s,e));let n=e.get(t);return n||(n=new Lm,e.set(t,n)),n}function $m(s){const t={get(e,n,i){return xu(s,n).add(),Reflect.get(e,n,i)},set(e,n,i,r){const o=xu(s,n),a=Reflect.get(e,n,r),l=Reflect.set(e,n,i,r);return a!=i&&o.notify(),l}};return new Proxy(s,t)}const Vm=$m;class qo{maps=new Map;mapsAddedDuringUpdate=new Map;entries(){return Array.from(this.maps.entries())}keys(){return Array.from(this.maps.keys())}values(){return Array.from(this.maps.values())}get length(){return this.entries().length}set(t,e){this.maps.set(t,e),this.mapsAddedDuringUpdate.set(t,e)}get(t){return this.maps.get(t)}shift(){const t=this.entries();if(t.length){const[e,n]=t[0];return this.delete(e),[e,n]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}clear(){this.maps.clear(),this.mapsAddedDuringUpdate.clear()}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate.clear();for(let n=0,i=e.length;n<i;n++){const[r,o]=e[n];t(r,o)===!1&&this.delete(r)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function zm(s,t=(e,n)=>e<=n){const e=s.length;let n=Math.floor(e/2);for(;n>0;){for(let i=n;i<e;i++){const r=s[i];let o=i;for(;o>=n&&!t(s[o-n],r);)s[o]=s[o-n],o-=n;s[o]=r}n=Math.floor(n/2)}}let wu;try{wu=Promise}catch{wu=function(){}}function Bm(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Gm={exports:{}};(function(s,t){(function(e){s.exports=e()})(function(e){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(_,x){var y=_[0],p=_[1],w=_[2],b=_[3];y+=(p&w|~p&b)+x[0]-680876936|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[1]-389564586|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[2]+606105819|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[3]-1044525330|0,p=(p<<22|p>>>10)+w|0,y+=(p&w|~p&b)+x[4]-176418897|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[5]+1200080426|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[6]-1473231341|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[7]-45705983|0,p=(p<<22|p>>>10)+w|0,y+=(p&w|~p&b)+x[8]+1770035416|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[9]-1958414417|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[10]-42063|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[11]-1990404162|0,p=(p<<22|p>>>10)+w|0,y+=(p&w|~p&b)+x[12]+1804603682|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&w)+x[13]-40341101|0,b=(b<<12|b>>>20)+y|0,w+=(b&y|~b&p)+x[14]-1502002290|0,w=(w<<17|w>>>15)+b|0,p+=(w&b|~w&y)+x[15]+1236535329|0,p=(p<<22|p>>>10)+w|0,y+=(p&b|w&~b)+x[1]-165796510|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[6]-1069501632|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[11]+643717713|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[0]-373897302|0,p=(p<<20|p>>>12)+w|0,y+=(p&b|w&~b)+x[5]-701558691|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[10]+38016083|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[15]-660478335|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[4]-405537848|0,p=(p<<20|p>>>12)+w|0,y+=(p&b|w&~b)+x[9]+568446438|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[14]-1019803690|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[3]-187363961|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[8]+1163531501|0,p=(p<<20|p>>>12)+w|0,y+=(p&b|w&~b)+x[13]-1444681467|0,y=(y<<5|y>>>27)+p|0,b+=(y&w|p&~w)+x[2]-51403784|0,b=(b<<9|b>>>23)+y|0,w+=(b&p|y&~p)+x[7]+1735328473|0,w=(w<<14|w>>>18)+b|0,p+=(w&y|b&~y)+x[12]-1926607734|0,p=(p<<20|p>>>12)+w|0,y+=(p^w^b)+x[5]-378558|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[8]-2022574463|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[11]+1839030562|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[14]-35309556|0,p=(p<<23|p>>>9)+w|0,y+=(p^w^b)+x[1]-1530992060|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[4]+1272893353|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[7]-155497632|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[10]-1094730640|0,p=(p<<23|p>>>9)+w|0,y+=(p^w^b)+x[13]+681279174|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[0]-358537222|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[3]-722521979|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[6]+76029189|0,p=(p<<23|p>>>9)+w|0,y+=(p^w^b)+x[9]-640364487|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^w)+x[12]-421815835|0,b=(b<<11|b>>>21)+y|0,w+=(b^y^p)+x[15]+530742520|0,w=(w<<16|w>>>16)+b|0,p+=(w^b^y)+x[2]-995338651|0,p=(p<<23|p>>>9)+w|0,y+=(w^(p|~b))+x[0]-198630844|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[7]+1126891415|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[14]-1416354905|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[5]-57434055|0,p=(p<<21|p>>>11)+w|0,y+=(w^(p|~b))+x[12]+1700485571|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[3]-1894986606|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[10]-1051523|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[1]-2054922799|0,p=(p<<21|p>>>11)+w|0,y+=(w^(p|~b))+x[8]+1873313359|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[15]-30611744|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[6]-1560198380|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[13]+1309151649|0,p=(p<<21|p>>>11)+w|0,y+=(w^(p|~b))+x[4]-145523070|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~w))+x[11]-1120210379|0,b=(b<<10|b>>>22)+y|0,w+=(y^(b|~p))+x[2]+718787259|0,w=(w<<15|w>>>17)+b|0,p+=(b^(w|~y))+x[9]-343485551|0,p=(p<<21|p>>>11)+w|0,_[0]=y+_[0]|0,_[1]=p+_[1]|0,_[2]=w+_[2]|0,_[3]=b+_[3]|0}function r(_){var x=[],y;for(y=0;y<64;y+=4)x[y>>2]=_.charCodeAt(y)+(_.charCodeAt(y+1)<<8)+(_.charCodeAt(y+2)<<16)+(_.charCodeAt(y+3)<<24);return x}function o(_){var x=[],y;for(y=0;y<64;y+=4)x[y>>2]=_[y]+(_[y+1]<<8)+(_[y+2]<<16)+(_[y+3]<<24);return x}function a(_){var x=_.length,y=[1732584193,-271733879,-1732584194,271733878],p,w,b,B,ct,O;for(p=64;p<=x;p+=64)i(y,r(_.substring(p-64,p)));for(_=_.substring(p-64),w=_.length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<w;p+=1)b[p>>2]|=_.charCodeAt(p)<<(p%4<<3);if(b[p>>2]|=128<<(p%4<<3),p>55)for(i(y,b),p=0;p<16;p+=1)b[p]=0;return B=x*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(B[2],16),O=parseInt(B[1],16)||0,b[14]=ct,b[15]=O,i(y,b),y}function l(_){var x=_.length,y=[1732584193,-271733879,-1732584194,271733878],p,w,b,B,ct,O;for(p=64;p<=x;p+=64)i(y,o(_.subarray(p-64,p)));for(_=p-64<x?_.subarray(p-64):new Uint8Array(0),w=_.length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<w;p+=1)b[p>>2]|=_[p]<<(p%4<<3);if(b[p>>2]|=128<<(p%4<<3),p>55)for(i(y,b),p=0;p<16;p+=1)b[p]=0;return B=x*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(B[2],16),O=parseInt(B[1],16)||0,b[14]=ct,b[15]=O,i(y,b),y}function c(_){var x="",y;for(y=0;y<4;y+=1)x+=n[_>>y*8+4&15]+n[_>>y*8&15];return x}function u(_){var x;for(x=0;x<_.length;x+=1)_[x]=c(_[x]);return _.join("")}u(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function _(x,y){return x=x|0||0,x<0?Math.max(x+y,0):Math.min(x,y)}ArrayBuffer.prototype.slice=function(x,y){var p=this.byteLength,w=_(x,p),b=p,B,ct,O,R;return y!==e&&(b=_(y,p)),w>b?new ArrayBuffer(0):(B=b-w,ct=new ArrayBuffer(B),O=new Uint8Array(ct),R=new Uint8Array(this,w,B),O.set(R),ct)}}();function h(_){return/[\u0080-\uFFFF]/.test(_)&&(_=unescape(encodeURIComponent(_))),_}function f(_,x){var y=_.length,p=new ArrayBuffer(y),w=new Uint8Array(p),b;for(b=0;b<y;b+=1)w[b]=_.charCodeAt(b);return x?w:p}function m(_){return String.fromCharCode.apply(null,new Uint8Array(_))}function d(_,x,y){var p=new Uint8Array(_.byteLength+x.byteLength);return p.set(new Uint8Array(_)),p.set(new Uint8Array(x),_.byteLength),y?p:p.buffer}function S(_){var x=[],y=_.length,p;for(p=0;p<y-1;p+=2)x.push(parseInt(_.substr(p,2),16));return String.fromCharCode.apply(String,x)}function k(){this.reset()}return k.prototype.append=function(_){return this.appendBinary(h(_)),this},k.prototype.appendBinary=function(_){this._buff+=_,this._length+=_.length;var x=this._buff.length,y;for(y=64;y<=x;y+=64)i(this._hash,r(this._buff.substring(y-64,y)));return this._buff=this._buff.substring(y-64),this},k.prototype.end=function(_){var x=this._buff,y=x.length,p,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b;for(p=0;p<y;p+=1)w[p>>2]|=x.charCodeAt(p)<<(p%4<<3);return this._finish(w,y),b=u(this._hash),_&&(b=S(b)),this.reset(),b},k.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},k.prototype.setState=function(_){return this._buff=_.buff,this._length=_.length,this._hash=_.hash,this},k.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},k.prototype._finish=function(_,x){var y=x,p,w,b;if(_[y>>2]|=128<<(y%4<<3),y>55)for(i(this._hash,_),y=0;y<16;y+=1)_[y]=0;p=this._length*8,p=p.toString(16).match(/(.*?)(.{0,8})$/),w=parseInt(p[2],16),b=parseInt(p[1],16)||0,_[14]=w,_[15]=b,i(this._hash,_)},k.hash=function(_,x){return k.hashBinary(h(_),x)},k.hashBinary=function(_,x){var y=a(_),p=u(y);return x?S(p):p},k.ArrayBuffer=function(){this.reset()},k.ArrayBuffer.prototype.append=function(_){var x=d(this._buff.buffer,_,!0),y=x.length,p;for(this._length+=_.byteLength,p=64;p<=y;p+=64)i(this._hash,o(x.subarray(p-64,p)));return this._buff=p-64<y?new Uint8Array(x.buffer.slice(p-64)):new Uint8Array(0),this},k.ArrayBuffer.prototype.end=function(_){var x=this._buff,y=x.length,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w,b;for(w=0;w<y;w+=1)p[w>>2]|=x[w]<<(w%4<<3);return this._finish(p,y),b=u(this._hash),_&&(b=S(b)),this.reset(),b},k.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.ArrayBuffer.prototype.getState=function(){var _=k.prototype.getState.call(this);return _.buff=m(_.buff),_},k.ArrayBuffer.prototype.setState=function(_){return _.buff=f(_.buff,!0),k.prototype.setState.call(this,_)},k.ArrayBuffer.prototype.destroy=k.prototype.destroy,k.ArrayBuffer.prototype._finish=k.prototype._finish,k.ArrayBuffer.hash=function(_,x){var y=l(new Uint8Array(_)),p=u(y);return x?S(p):p},k})})(Gm);const Cu=s=>new XMLSerializer().serializeToString(s),Ym=(s,t=vu.SVG,e=cr.utf8)=>_u(Cu(s),t,e),Xm=(s,t,e)=>{const n=async i=>{await e(i)};return s.addEventListener(t,n,!1),()=>{s.removeEventListener(t,n,!1)}};function jm(){const s=new ei;return{on:(t,e)=>{s.on(t,e)},off:(t,e)=>{s.off(t,e)},emit:(t,...e)=>{s.emit(t,...e)}}}const Zo=jm();function Um(){return{remove:Xm(document,"scroll",s=>{Zo.emit("scroll",s)}),on:s=>{Zo.on("scroll",s)},off:s=>{Zo.off("scroll",s)}}}function Tu(s,t,e,n,i){const r=t/e;let o=0,a=0;switch(s){case"aspectFit":r>=1?(o=n,a=o/r,a>i&&(a=i,o=a*r)):(a=i,o=a*r,o>n&&(o=n,a=o/r));break;case"aspectFill":r>=1?(a=i,o=a*r):(o=n,a=o/r);break;case"widthFix":o=n,a=o/r;break;case"heightFix":a=i,o=a*r;break;case"scaleToFill":default:o=n,a=i;break}return{width:o,height:a}}function Hm(s){const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=s.width,t.height=s.height,e.drawImage(s,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}function Wm(){const s=window.navigator.userAgent,t=s.indexOf("MSIE ");if(t>0)return parseInt(s.substring(t+5,s.indexOf(".",t)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const Qo=Wm()!==-1;(()=>{const s=lu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!lu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const n=t.transferToImageBitmap();try{e.createPattern(n,"no-repeat")}catch{return!1}return!0}();function Lt(s){return s*Math.PI/180}function Ie(s){return s*180/Math.PI}function Ko(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function Jo(s,t,e,n){return Ko(e-s,n-t)}function ta(s,t,e,n){const i=e-s,r=n-t;return i*i+r*r}function vn(s,t,e,n){let i=Math.atan2(n-t,e-s);return i<0&&(i+=Math.PI*2),i}function ds(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const Su=qm("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 qm(s,t=10){const e={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],t);e[r]="&#"+o+";"}return e["\\xa0"]="&#160;",e}function Te(s,t){const e=Object.keys(t);for(let n=0;n<e.length;n++)s=s.replace(new RegExp("{"+e[n]+"}","gi"),""+t[e[n]]);return s}function ur(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=n[Math.floor(Math.random()*n.length)];while(s[t]);return t}function Zm(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function Qm(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const ni={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"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class ea{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(n.setAttribute("stop-color",Te("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class ku{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class hr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:n=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=n),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 t=Object.keys(ni);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=ni[i].canvas}}__getStyleState(){const t={},e=Object.keys(ni);for(let n=0,i=e.length;n<i;n++){const r=e[n];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=t[r]}}__createElement(t,e={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(ni);for(let r=0;r<i.length;r++){const o=ni[i[r]],a=this[i[r]];if(o.apply){if(a instanceof ku){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])}e.setAttribute(o.apply,Te("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof ea)e.setAttribute(o.apply,Te("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.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);if(c){e.setAttribute(o.svgAttr,Te("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),e.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=t+"-"+o.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(Su);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=Su[a],c=new RegExp(a,"gi");c.test(e)&&(e=e.replace(c,l))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Te("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Te("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Te("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Te("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(Te("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Te("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Te("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Te("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Te("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,n,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===n&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,i-e]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(t,e);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),m=r/Math.sin(h/2),d=t+m*f[0],S=e+m*f[1],k=[-l[1],l[0]],_=[c[1],-c[0]],x=function(w){const b=w[0];return w[1]>=0?Math.acos(b):-Math.acos(b)},y=x(k),p=x(_);this.lineTo(d+k[0]*r,S+k[1]*r),this.arc(d,S,r,y,p)}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(t,e,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,i){if(t===0&&e===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,n,i){const r=this.__createElement("linearGradient",{id:ur(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new ea(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:ur(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new ea(a,this)}__parseFont(){const e=/^\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),n={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(t,e){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e}__applyText(t,e,n,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:n,"text-anchor":Zm(this.textAlign),"dominant-baseline":Qm(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,n){this.__applyText(t,e,n,"fill")}strokeText(t,e,n){this.__applyText(t,e,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,n,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),u=e+n*Math.sin(i),h=o?0:1;let f=0,m=r-i;m<0&&(m+=2*Math.PI),o?f=m>Math.PI?0:1:f=m>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Te("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=ur(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Te("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],n,i,r,o,a=0,l=0,c,u,h,f,m,d,S,k;if(t.length===3)n=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)n=t[1],i=t[2],r=t[3],o=t[4],c=e.width,u=e.height;else if(t.length===9)a=t[1],l=t[2],c=t[3],u=t[4],n=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const _=this.__closestGroupOrSvg();this.__currentElement;const x="translate("+n+", "+i+")";if(e instanceof hr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)k=f.childNodes[0].getAttribute("id"),this.__ids[k]=k,this.__SVGdefs.appendChild(f.childNodes[0]);if(m=h.childNodes[1],m){const y=m.getAttribute("transform");let p;y?p=y+" "+x:p=x,m.setAttribute("transform",p),_.appendChild(m)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(d=this.__createElement("image"),d.setAttribute("width",r),d.setAttribute("height",o),d.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(S=this.__document.createElement("canvas"),S.width=r,S.height=o,S.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=S),d.setAttribute("transform",x),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),_.appendChild(d))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=ur(this.__ids);let r;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):t instanceof hr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new ku(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class sa{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new hr({canvas:this.canvas,width:e||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,n,i){return this.context.fillRect(t,e,n,i),this.customContext&&this.customContext.fillRect(t,e,n,i),this}fillText(t,e,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,i),this.customContext&&this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,n,i){return this.context.strokeText(t,e,n,i),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,i){return this.context.strokeRect(t,e,n,i),this.customContext&&this.customContext.strokeRect(t,e,n,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,n,i),this.customContext&&this.customContext.clearRect(t,e,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&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&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const n=new Path2D;n.addPath(t,e),this.currentPath2D=n}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,n=0){return this.translate(e,n),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-n),this.changePath2D(),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,i,r,o){return this.context.arc(t,e,n,i,r,o),this.customContext&&this.customContext.arc(t,e,n,i,r,o?-1:1),this.currentPath2D.arc(t,e,n,i,r,o),this}arcTo(t,e,n,i,r){return this.context.arcTo(t,e,n,i,r),this.customContext&&this.customContext.arcTo(t,e,n,i,r),this.currentPath2D.arcTo(t,e,n,i,r),this}ellipse(t,e,n,i,r,o,a,l){return this.context.ellipse(t,e,n,i,r,o,a,l),this.currentPath2D.ellipse(t,e,n,i,r,o,a,l),this}quadraticCurveTo(t,e,n,i){return this.context.quadraticCurveTo(t,e,n,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,i),this.currentPath2D.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.context.bezierCurveTo(t,e,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,i,r,o),this.currentPath2D.bezierCurveTo(t,e,n,i,r,o),this}rect(t,e,n,i){return this.context.rect(t,e,n,i),this.customContext&&this.customContext.rect(t,e,n,i),this.currentPath2D.rect(t,e,n,i),this}createLinearGradient(t,e,n,i,r){const o=this.context.createLinearGradient(t,e,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,i,r,o,a){const l=this.context.createRadialGradient(t,e,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],i=e[1];this.context.drawImage(t,n,i)}else if(e.length===4){const n=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,n,i,r,o)}else if(e.length===8){const n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,n,i,r)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class fr{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=vn(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),n=Math.min(this.y,this.toY),i=Math.max(this.x,this.toX),r=Math.max(this.y,this.toY);return{x:e,y:n,width:i-e,height:r-n}}else{const e=Math.sin(t),n=Math.cos(t),i=n*this.x-e*this.y,r=n*this.toX-e*this.toY,o=n*this.y+e*this.x,a=n*this.toY+e*this.toX;return{x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,n=this.y,i=t.toX,r=t.toY,o=this.toX-e,a=t.x-i;if(!o&&!a)return null;const l=(this.toY-n)/o,c=(t.y-r)/a;if(o){if(!a)return{x:i,y:l*(i-e)+n}}else return{x:e,y:c*(e-i)+r};const u=(-c*i+r+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}const Eu=fr;class na extends fr{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,n,i,r,o,a,l]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,n,i,r,o,a,l,!this.sweepFlag)}convert(t,e,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-i)/2,m=Math.cos(u)*h+Math.sin(u)*f,d=-Math.sin(u)*h+Math.cos(u)*f,S=m*m/(r*r)+d*d/(o*o);if(S>1){const A=Math.sqrt(S);throw r=A*r,o=A*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const k=Math.sqrt((r*r*o*o-r*r*d*d-o*o*m*m)/(r*r*d*d+o*o*m*m)),_=l!=c?1:-1,x=_*k*r*d/o,y=_*k*-o*m/r,p=(t+n)/2,w=(e+i)/2,b=Math.cos(u)*x-Math.sin(u)*y+p,B=Math.sin(u)*x+Math.cos(u)*y+w,ct=(A,D,L,X)=>(A*X>=D*L?1:-1)*Math.acos((A*L+D*X)/(Math.sqrt(A*A+D*D)*Math.sqrt(L*L+X*X))),O=ct(1,0,t-b,e-B)-u,R=ct(t-b,e-B,n-b,i-B);return[b,B,r,o,u,O,O+R]}}const Km=na;class Jm extends fr{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,n=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,n,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let n,i,r,o;for(let c=0;c<2;++c)n=c==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,i=c==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,r=c==0?this.x:this.y,Math.abs(n)>1e-12&&(o=-i/(2*n),0<o&&o<1&&[t,e][c].push(n*o*o+i*o+r));const a={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},l={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:a.x,y:a.y,width:l.x-a.x,height:l.y-a.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const tg=Jm;class sn extends fr{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),n=this.x-this.c1x,i=(-e+Math.sqrt(e*e-4*t*n))/2/t,r=(-e-Math.sqrt(e*e-4*t*n))/2/t;const o=[this.y,this.toY],a=[this.x,this.toX];let l;const c=[];Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(l=this.interpolate(i),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),n=this.y-this.c1y,i=(-e+Math.sqrt(e*e-4*t*n))/2/t,r=(-e-Math.sqrt(e*e-4*t*n))/2/t,Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(l=this.interpolate(i),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y}));let u=[],h=c.length;for(let d=0;d<h;d++){for(let S=d+1;S<h;S++)c[d].X===c[S].X&&c[d].Y===c[S].Y&&(S=++d);u.push({X:c[d].X,Y:c[d].Y})}const f={x:Math.min.apply(Math,a),y:Math.min.apply(Math,o)},m={x:Math.max.apply(Math,a),y:Math.max.apply(Math,o)};return{x:f.x,y:f.y,width:m.x-f.x,height:m.y-f.y,dots:u}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.toX,y:Math.pow(1-t,3)*this.y+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.toY}}static base3(t,e,n,i,r){const o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}static bezlen(t,e,n,i,r,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=[-.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 d=0;d<12;d++){const S=u*h[d]+u,k=this.base3(S,t,n,r,a),_=this.base3(S,e,i,o,l);m+=f[d]*Math.sqrt(k*k+_*_)}return u*m}length(t=1){return sn.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,n=this.y,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.toX,c=this.toY;if(t<0||sn.bezlen(e,n,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,m=sn.bezlen(e,n,i,r,o,a,l,c,f);for(;Math.abs(m-t)>.01;)h/=2,f+=(m<t?1:-1)*h,m=sn.bezlen(e,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t);let n=1-e,i=Math.pow(n,3),r=Math.pow(n,2),o=e*e,a=o*e,l=i*this.x+r*3*e*this.c1x+n*3*e*e*this.c2x+a*this.toX,c=i*this.y+r*3*e*this.c1y+n*3*e*e*this.c2y+a*this.toY,u=this.x+2*e*(this.c1x-this.x)+o*(this.c2x-2*this.c1x+this.x),h=this.y+2*e*(this.c1y-this.y)+o*(this.c2y-2*this.c1y+this.y),f=this.c1x+2*e*(this.c2x-this.c1x)+o*(this.toX-2*this.c2x+this.c1x),m=this.c1y+2*e*(this.c2y-this.c1y)+o*(this.toY-2*this.c2y+this.c1y),d=n*this.x+e*this.c1x,S=n*this.y+e*this.c1y,k=n*this.c2x+e*this.toX,_=n*this.c2y+e*this.toY,x=90-Math.atan2(u-f,h-m)*180/Math.PI;return{x:l,y:c,m:{x:u,y:h},n:{x:f,y:m},start:{x:d,y:S},end:{x:k,y:_},alpha:x}}}const Ms=sn,ii=Math.PI*2;function Pu(s,t,e,n){const i=s*n-t*e<0?-1:1;let r=s*e+t*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function eg(s,t,e,n,i,r,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,f=o*o,m=a*a,d=u*u,S=h*h;let k=f*m-f*S-m*d;k<0&&(k=0),k/=f*S+m*d,k=Math.sqrt(k)*(i===r?-1:1);const _=k*o/a*h,x=k*-a/o*u,y=c*_-l*x+(s+e)/2,p=l*_+c*x+(t+n)/2,w=(u-_)/o,b=(h-x)/a,B=(-u-_)/o,ct=(-h-x)/a,O=Pu(1,0,w,b);let R=Pu(w,b,B,ct);return r===0&&R>0&&(R-=ii),r===1&&R<0&&(R+=ii),[y,p,O,R]}function sg(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+t),o=Math.sin(s+t);return[n,i,n-i*e,i+n*e,r+o*e,o-r*e,r,o]}function Ou(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*ii/360),u=Math.cos(l*ii/360),h=u*(s-e)/2+c*(t-n)/2,f=-c*(s-e)/2+u*(t-n)/2;if(h===0&&f===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const m=h*h/(o*o)+f*f/(a*a);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));const d=eg(s,t,e,n,i,r,o,a,c,u),S=[];let k=d[2],_=d[3];const x=Math.max(Math.ceil(Math.abs(_)/(ii/4)),1);_/=x;for(let y=0;y<x;y++)S.push(sg(k,_)),k+=_;return S.map(y=>{for(let p=0;p<y.length;p+=2){let w=y[p+0],b=y[p+1];w*=o,b*=a;const B=u*w-c*b,ct=c*w+u*b;y[p+0]=B+d[0],y[p+1]=ct+d[1]}return y})}function ia(s,t,e,n,i,r){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,i/3+.6666666666666666*e,r/3+.6666666666666666*n,i,r]}function ri(s,t,e,n){return[s,t,e,n,e,n]}const dr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class ue{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&wn(n,e),n}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||ar()})}static downloadFromSVGElement(t,e="shape"){return Hu(Ym(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Hu(_u(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Cu(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return ue.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=Yo(r);for(o=="m"&&a.length>dr[o]&&(e.push([i,...a.splice(0,dr[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<dr[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,dr[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=e,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,m=t.length;f<m;f++){let d=t[f];const S=d[0];switch(S){case"M":n=d[1],i=d[2];break;case"A":const k=Ou(r,o,d[6],d[7],d[4],d[5],d[1],d[2],d[3]);if(!k.length)continue;k.forEach((y,p)=>{const[w,b,B,ct,O,R,A,D]=y;d=["C",B,ct,O,R,A,D],p<k.length-1&&e.push(d)});break;case"S":let _=r,x=o;(h=="C"||h=="S")&&(_+=_-c,x+=x-u),d=["C",_,x,d[1],d[2],d[3],d[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),d=["C",...ia(r,o,a,l,d[1],d[2])];break;case"Q":a=d[1],l=d[2],d=["C",...ia(r,o,d[1],d[2],d[3],d[4])];break;case"L":d=["C",...ri(r,o,d[1],d[2])];break;case"H":d=["C",...ri(r,o,d[1],o)];break;case"V":d=["C",...ri(r,o,r,d[1])];break;case"Z":d=["C",...ri(r,o,n,i)];break}h=S,r=d[d.length-2],o=d[d.length-1],d.length>4?(c=d[d.length-4],u=d[d.length-3]):(c=r,u=o),e.push(d)}return e}static catmullRom2bezier(t){const e=[];for(let n=0,i=t.length;i-2>n;n+=2){let r;n==0?r=[{x:t[n],y:t[n+1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}]:i-4==n?r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+2],y:t[n+3]}]:r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){const e=[];let n=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){const a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const l=t[o],c=e[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return t}}class Me{cX;cY;x;y;degree;scalarX;scalarY;startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){this.cX=0,this.cY=0,this.x=t?.x||0,this.y=t?.y||0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&(this.cX=t.centerX-this.x,this.cY=t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.reset(t?.d,t?.originMatrix)}reset(t,e){typeof t=="string"?this.resetFromSVGPathData(ue.parseSVGPath(t),e):t instanceof Me?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const n=ue.normalizeSVGPath(ue.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let i=!1;for(let r=0,o=n.length;r<o;r++){const a=n[r];if(a[0]=="M"){i||(i=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Ms({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],toX:a[5],toY:a[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(r=>{({x:r.x,y:r.y}=e.transformPoint({x:r.x,y:r.y})),{x:r.c1x,y:r.c1y}=e.transformPoint({x:r.c1x,y:r.c1y}),{x:r.c2x,y:r.c2y}=e.transformPoint({x:r.c2x,y:r.c2y}),{x:r.toX,y:r.toY}=e.transformPoint({x:r.toX,y:r.toY})}))}static fromPolymorphPoints(t){const e=new Me;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let n=2,i=t.length;n+5<i;n+=6)e.appendLine(new Ms({c1x:t[n],c1y:t[n+1],c2x:t[n+2],c2y:t[n+3],toX:t[n+4],toY:t[n+5]}));return e}static fromLines(t){const e=new Me;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let n=0,i=t.length;n<i;n++)e.appendLine(t[n]);return e}appendLine(t){if(t instanceof Km){Ou(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,m,d,S,k,_]=c;this.normalizedLines.push(new Ms({x:this.prevPathX,y:this.prevPathY,c1x:f,c1y:m,c2x:d,c2y:S,toX:k,toY:_})),this.prevPathX=k,this.prevPathY=_});return}let e,n,i,r,o,a;t instanceof Ms?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.toX,a=t.toY):t instanceof tg?[e,n,i,r,o,a]=ia(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,n,i,r,o,a]=ri(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Ms({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:n,c2x:i,c2y:r,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform(),i=[];i.push(["M",t,e]);for(let r=0,o=n.length;r<o;r++)i.push(...n[r].toSVGPathData());return i}toSVGPathD(){return ue.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:n,normalizedLines:i}=this.updateTransform();t.beginPath(),t.moveTo(e,n),i.forEach(r=>{r.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],n=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),n.push(c.y,c.y+c.height)}),e.length==0||n.length==0)return{x:0,y:0,width:0,height:0};const i=Math.min.apply(0,e),r=Math.min.apply(0,n),o=Math.max.apply(0,e),a=Math.max.apply(0,n);return{x:i,y:r,width:o-i,height:a-r}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new Ne;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,n=this.startPathY;({x:e,y:n}=t.transformPoint({x:e,y:n}));const i=[];return this.normalizedLines.forEach(r=>{let o=r.x,a=r.y,l=r.c1x,c=r.c1y,u=r.c2x,h=r.c2y,f=r.toX,m=r.toY;({x:o,y:a}=t.transformPoint({x:o,y:a})),{x:l,y:c}=t.transformPoint({x:l,y:c}),{x:u,y:h}=t.transformPoint({x:u,y:h}),{x:f,y:m}=t.transformPoint({x:f,y:m}),i.push(new Ms({x:o,y:a,c1x:l,c1y:c,c2x:u,c2y:h,toX:f,toY:m}))}),{startPathX:e,startPathY:n,normalizedLines:i}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,n)=>e+=n.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let n=0;const i=e.length;for(let r=0;r<i;r++){const o=e[r],a=o.length();if(n+a>=t)return o.getPointAtSegmentLength(t-n);n+=a}return e[i-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:n,normalizedLines:i}=this.updateTransform(),r=i.length;if(r===0)return{x:e,y:n};if(r===1)return i[0].interpolate(t);{let o=t*r,a=i[0];if(o--,o>1)for(let l=1;l<r&&(a=i[l],o>1);l++)o-=1;return a.interpolate(o)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const n=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(n,t):n}}getSubpathsAtLength(t,e,n){const{startPathX:i,startPathY:r,normalizedLines:o}=t.updateTransform();let a=null,l=0;const c=new Me;c.prevPathX=c.startPathX=i,c.prevPathY=c.startPathY=r;for(let u=0,h=o.length;u<h;u++){const f=o[u],m=f.length();if(l+m>e&&!a){const d=f.getPointAtSegmentLength(e-l);if(c.appendLine(new Ms({c1x:d.start.x,c1y:d.start.y,c2x:d.m.x,c2y:d.m.y,toX:d.x,toY:d.y})),n)return c;a=c,c.appendLine(new Ms({c1x:d.n.x,c1y:d.n.y,c2x:d.end.x,c2y:d.end.y,toX:f.x,toY:f.y})),l+=m;continue}l+=m,c.appendLine(f)}return c}closestPoint(t,e){const n=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ta(u.x,u.y,t,e);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=ta(u.x,u.y,t,e),f=r+a,m=this.getPointAtLength(f),d=ta(m.x,m.y,t,e);c>=0&&h<o?(i=u,r=c,o=h):f<=n&&d<o?(i=m,r=f,o=d):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?vn(l.x,l.y,i.x,i.y):vn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform();return[t,e].concat(n.reduce((i,r)=>i.concat([r.c1x,r.c1y,r.c2x,r.c2y,r.toX,r.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=Jo(t[o],t[o+1],n,i),n=t[o],i=t[o+1];return Math.floor(r)}expendFill(t){const e=this.polymorphPoints,n=e.length;let i=t-n;const r=Math.ceil(t/n),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=n-1;){const l=e[a++],c=e[a++],u=e[a++],h=e[a++],f=e[a++],m=e[a++];o.push(["C",l,c,u,h,f,m]);let d=0;for(;d<r&&i>0;)o.push(["C",f,m,f,m,f,m]),i-=6,d++}return o}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=we(t[o]+(e[o]-t[o])*n,6);return r}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t:Math.abs(n-1)<Number.EPSILON?e:Me.fromPolymorphPoints(Me.mixPoints(new Me({d:t}).polymorphPoints,new Me({d:e}).polymorphPoints,n)).toSVGPathData()}}(function(){if(!window.requestAnimationFrame){let s=ce();window.requestAnimationFrame=function(t){const e=ce(),n=Math.max(0,16-(e-s)),i=window.setTimeout(function(){t(e+n)},n);return s=e+n,i}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(s){clearTimeout(s)})})();const Zt=s=>{let t=!1;return window.requestAnimationFrame(function e(n){!t&&s(n)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function ra(s,t=0){if(t==0)return s(ce()),()=>{};{const e=ce();return Zt(n=>n-e>=t?(s(n),!1):!0)}}function ng(s,t=0){let e=!1,n=0;const i=ce(),r=o=>{if(e)return;n++;const a=o-i-n*t;s(o,n,t<=a),ra(r,Math.max(0,t-a))};return ra(r,t),()=>{e=!0}}function ig(s,t=20){const e=1e3/t;let n=0,i;return()=>(ce()-n>=e&&(n=ce(),i=s()),i)}const pr=new qo;let oa=!1;function Iu(s,t,e){if(s&&t&&pr.set(s,t),oa)return;oa=!0;const n=ce();og(i=>{for(oa=!1;(i.timeRemaining()>0||e&&ce()-n>=e)&&pr.length>0;){const r=pr.shift();r&&r[1]()}pr.length>0&&Iu()})}let mr=0,nn=33,Ns=33,aa;const Du=new MessageChannel,rg=Du.port2;Du.port1.onmessage=s=>{aa!==null&&aa({didTimeout:mr<=ce(),timeRemaining:()=>Math.max(0,mr-ce())})};function og(s){return aa=s,requestAnimationFrame(t=>{let e=t-mr+Ns;e<Ns&&nn<Ns?(e<8&&(e=8),Ns=e<nn?nn:e):e>Ns&&nn>Ns?Ns=e<nn?nn:e:nn=e,mr=t+Ns,rg.postMessage(null)})}class oi{static _nextId=0;static nextId(){return oi._nextId++}}const ut={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const t=2.5949095;return(s*=2)<1?.5*(s*s*((t+1)*s-t)):.5*((s-=2)*s*((t+1)*s+t)+2)}},Bounce:{In:function(s){return 1-ut.Bounce.Out(1-s)},Out:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},InOut:function(s){return s<.5?ut.Bounce.In(s*2)*.5:ut.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(t){return t**s},Out:function(t){return 1-(1-t)**s},InOut:function(t){return t<.5?(t*2)**s/2:(1-(2-t*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(t){return Math.floor(t*s)/s}},createNoisyEasing:function(s,t=.1){const e=1-t;return function(n){return t*Math.random()+e*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},la=ut;function ag(s){switch(s){case ut.Quadratic.In:return ut.Quadratic.Out;case ut.Quadratic.Out:return ut.Quadratic.In;case ut.Quadratic.InOut:return ut.Quadratic.InOut;case ut.Cubic.In:return ut.Cubic.Out;case ut.Cubic.Out:return ut.Cubic.In;case ut.Cubic.InOut:return ut.Cubic.InOut;case ut.Quartic.In:return ut.Quartic.Out;case ut.Quartic.Out:return ut.Quartic.In;case ut.Quartic.InOut:return ut.Quartic.InOut;case ut.Quintic.In:return ut.Quintic.Out;case ut.Quintic.Out:return ut.Quintic.In;case ut.Quintic.InOut:return ut.Quintic.InOut;case ut.Sinusoidal.In:return ut.Sinusoidal.Out;case ut.Sinusoidal.Out:return ut.Sinusoidal.In;case ut.Sinusoidal.InOut:return ut.Sinusoidal.InOut;case ut.Exponential.In:return ut.Exponential.Out;case ut.Exponential.Out:return ut.Exponential.In;case ut.Exponential.InOut:return ut.Exponential.InOut;case ut.Circular.In:return ut.Circular.Out;case ut.Circular.Out:return ut.Circular.In;case ut.Circular.InOut:return ut.Circular.InOut;case ut.Elastic.In:return ut.Elastic.Out;case ut.Elastic.Out:return ut.Elastic.In;case ut.Elastic.InOut:return ut.Elastic.InOut;case ut.Back.In:return ut.Back.Out;case ut.Back.Out:return ut.Back.In;case ut.Back.InOut:return ut.Back.InOut;case ut.Bounce.In:return ut.Bounce.Out;case ut.Bounce.Out:return ut.Bounce.In;case ut.Bounce.InOut:return ut.Bounce.InOut;default:return s}}const _n={Utils:{Linear:function(s,t,e){return(t-s)*e+s},Factorial:function(){const s=[1];return function(t){let e=1;if(s[t])return s[t];for(let n=t;n>1;n--)e*=n;return s[t]=e,e}}(),Bernstein:function(s,t){const e=_n.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,i){const r=(e-s)*.5,o=(n-t)*.5,a=i*i,l=i*a;return(2*t-2*e+r+o)*l+(-3*t+3*e-2*r-o)*a+r*i+t},QuadraticBezier:(s,t,e,n)=>{const i=1-n;return i*i*s+2*i*n*t+n*n*e},CubicBezier:(s,t,e,n,i)=>{const r=1-i;return r*r*r*s+3*r*r*i*t+3*r*i*i*e+i*i*i*n}},Linear:function(s,t){const e=s.length-1,n=e*t,i=Math.floor(n),r=_n.Utils.Linear;return t<0?r(s[0],s[1],n):t>1?r(s[e],s[e-1],e-n):r(s[i],s[i+1>e?e:i+1],n-i)},Bezier:function(s,t){let e=0;const n=s.length-1,i=Math.pow,r=_n.Utils.Bernstein;for(let o=0;o<=n;o++)e+=i(1-t,n-o)*i(t,o)*s[o]*r(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,i=Math.floor(n);const r=_n.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(i=Math.floor(n=e*(1+t))),r(s[(i-1+e)%e],s[i],s[(i+1)%e],s[(i+2)%e],n-i)):t<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(r(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):r(s[i?i-1:0],s[i],s[e<i+1?e:i+1],s[e<i+2?e:i+2],n-i)}},ca=_n;class Ru{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=ce(),e=!1){const n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const Le=new Ru;class Au{constructor(t,e=Le){this._object=t,this._group=e}_id=oi.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=la.Linear.None;_interpolationFunction=ca.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(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=ce()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,n,i){for(const r in n){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=e[r]||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(t=ce()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=ce()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=Le){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=la.Linear.None){return this._easingFunction=t,this}interpolation(t=ca.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=ce(),e=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<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=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+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(t,e,n,i){for(const r in n){if(e[r]===void 0)continue;const o=e[r]||0;let a=n[r];const l=Array.isArray(t[r]),c=Array.isArray(a);!l&&c?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=e}}const lg=Au,cg=oi.nextId,ug=Le.getAll.bind(Le),hg=Le.removeAll.bind(Le),fg=Le.add.bind(Le),dg=Le.remove.bind(Le),pg=Le.update.bind(Le),_t={now:ce,Sequence:oi,Easing:la,Interpolation:ca,Group:Ru,Tween:lg,nextId:cg,getAll:ug,removeAll:hg,add:fg,remove:dg,update:pg};class mg{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=ce(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=ce();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const Mu=mg;class He{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){zm(this.tweens,(e,n)=>t?e.delay>n.delay:e.delay<=n.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(n=>{const i={...n};delete i.tween,i.fromValues={...i.fromValues},i.toValues={...i.toValues},e.push(i)}),e}addTween(t,e,n){const i={fromValues:t,toValues:e,frames:typeof n?.frames=="number"?n.frames:1,delay:typeof n?.delay=="number"?n.delay:this.tweens.length,easeFunction:n?.easeFunction||ut.Linear.None,interpolationFunction:n?.interpolationFunction||_n.Linear,repeat:typeof n?.repeat=="number"?n.repeat:0,yoyo:n?.yoyo||!1,onStart:n?.onStart||(()=>{}),onUpdate:n?.onUpdate||(()=>{}),onComplete:n?.onComplete||(()=>{})};return this.tweens.push(i),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new Mu,n=this.frameDuration;return new Promise(i=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Zt(r=>{if(!this.isPaused){const a=Math.max(0,r-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*n<=l).forEach(c=>{c.tween||(c.tween=new Au({...c.fromValues}).to({...c.toValues},c.frames*n).easing(c.easeFunction).interpolation(c.interpolationFunction).repeat(c.repeat).yoyo(c.yoyo).onStart(c.onStart).onUpdate(c.onUpdate).onComplete(c.onComplete),c.tween.start(a)),(c.delay+c.frames*(c.repeat+1))*n>l?c.tween.update(a):(c.tween.isPlaying()&&c.tween.end(),Em(t,c))})}const o=!!t.length;return o||(this.onGroupComplete?.(),i()),o})})}isPaused=!1;pausedClock=new Mu;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(n=>{e=Math.max(e,n.delay+n.frames),n.easeFunction=ag(n.easeFunction);const i={...n.toValues};n.toValues={...n.fromValues},n.fromValues={...i}}),t.forEach(n=>{n.delay=e-n.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}class Ht extends ei{id;originD;originMatrix;independentTransformInGroup;forceCXY=!1;cX;cY;x;y;degree;scalarX;scalarY;diffXInGroup;diffYInGroup;diffDegreeInGroup;diffScalarXInGroup;diffScalarYInGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;strokeArmyAnts;strokeArmyAntsOffset=0;strokeDashTotalLength=0;isShow=!0;el;pathd;usePathDtoCanvasContext=!1;parent;shapes=[];constructor(t){if(super(),this.id=ar(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.strokeArmyAnts){const n=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",n),this.strokeDashTotalLength=Yo(n).reduce((i,r)=>i+r,0)}return Vm(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Me,Wo(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(n=>{const i=n.originMatrix?n.originMatrix.clone():new Ne;i.translate(-t.x+n.x,-t.y+n.y),n.originMatrix=i});const e=this.originMatrix?this.originMatrix.clone():new Ne;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,n){if(n instanceof sa)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(i);{const r=this.getBoundingClientRect();if(r)return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height}return!1}isPointInStroke(t,e,n){if(n instanceof sa)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}clone(){return km(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,i])=>[Ue(n),i]))):e&&(this.attrs[Ue(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[Ue(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[Ue(t)]}distance(t){return Jo(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Ie(vn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=ds(Lt(this.degree),e);this.vx=n,this.vy=i,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=ds(Lt(this.degree),e);this.ax=n,this.ay=i,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,n=t.y-this.y,i=e*e+n*n,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,t.vx-=a/t.mass,t.vy-=l/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=As(t?.gravity,0);this.vy+=e;const n=As(t?.friction,1);this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const n=As(e?.easing,.05),i=t.x-this.cX-this.x,r=t.y-this.cY-this.y;this.vx=i*n,this.vy=r*n,this.run(e)}runSpringTo(t,e){const n=As(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(i=>{const r=i.x-this.cX-this.x,o=i.y-this.cY-this.y,a=r*n,l=o*n;this.vx+=a,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const n=As(e?.springLength,100),i=As(e?.spring,1e-4),r=t.x-this.x,o=t.y-this.y,a=Math.sqrt(r*r+o*o);if(a<n){const l=r*i,c=o*i;return this.vx+=l/this.mass,this.vy+=c/this.mass,t.vx-=l/t.mass,t.vy-=c/t.mass,1-a/n}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const n=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*n),this.getPointAtLength(e*n)}strokeDashTween(t=1e3,e){const n=this.initPathD(),i=we(n.getTotalLength(),0);this.setAttr({strokeDasharray:`${i} ${i}`,strokeDashoffset:`${i}`});const r=e?.onUpdate,o=new He({frameDuration:t});o.addTween({offset:i},{offset:0},Object.assign(e||{},{onUpdate:(a,l)=>{this.setAttr("strokeDashoffset",""+we(a.offset,2)),r?.(a,l)}})),o.play()}}class gg extends Ht{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-this.radius],["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.getScreenX(),this.getScreenY()]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,n){this.cX=t,this.cY=e,this.cZ=n}rotateX(t){({x:this.y,y:this.z}=ts(Lt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=ts(Lt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=ts(Lt(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return Ko(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+n*n+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y,i=this.z;return{x:n*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}}const gr=gg,Nu=[1,0,0,1,0,0],Fu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ne{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=Nu){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Ne,n=uu("number",t);return n.length===6&&n.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=t}toMatrix3D(t=this.matrix3d){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new $e(e)}identity(){return this.value=Array.from(Nu),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.scalar(1/t)}transformPoint(t){const e=t.z||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31,y:t.x*this.m12+t.y*this.m22+e*this.m32,z:t.x*this.m13+t.y*this.m23+e*this.m33}}clone(){return new Ne([...this.value])}multiply(t){const e=this.clone(),n=t instanceof Ne?t:new Ne(t);return this.m11=n.m11*e.m11+n.m12*e.m21+n.m13*e.m31,this.m12=n.m11*e.m12+n.m12*e.m22+n.m13*e.m32,this.m13=n.m11*e.m13+n.m12*e.m23+n.m13*e.m33,this.m21=n.m21*e.m11+n.m22*e.m21+n.m23*e.m31,this.m22=n.m21*e.m12+n.m22*e.m22+n.m23*e.m32,this.m23=n.m21*e.m13+n.m22*e.m23+n.m23*e.m33,this.m31=n.m31*e.m11+n.m32*e.m21+n.m33*e.m31,this.m32=n.m31*e.m12+n.m32*e.m22+n.m33*e.m32,this.m33=n.m31*e.m13+n.m32*e.m23+n.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}inverse(){const t=this.m11,e=this.m12,n=this.m13,i=this.m21,r=this.m22,o=this.m23,a=this.m31,l=this.m32,c=this.m33,u=c*r-o*l,h=-c*i+o*a,f=l*i-r*a;let m=t*u+e*h+n*f;return m?(m=1/m,this.m11=u*m,this.m12=(-c*e+n*l)*m,this.m13=(o*e-n*r)*m,this.m21=h*m,this.m22=(c*t-n*a)*m,this.m23=(-o*t+n*i)*m,this.m31=f*m,this.m32=(-l*t+e*a)*m,this.m33=(r*t-e*i)*m,this):null}adjugate(){const t=new Ne;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=Ie(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,degree:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:Ie(Math.atan2(-this.m21,this.m22)),skewY:Ie(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],m=t.value[5],d=l*h,S=c*u,k=(u*n-e*h)/(S-d),_=(l*n-e*c)/(d-S),x=(u*r-i*h)/(S-d),y=(l*r-i*c)/(d-S),p=(u*(a-m)+h*(f-o))/(S-d),w=(l*(a-m)+c*(f-o))/(d-S),b=[k,_,x,y,p,w];return new Ne(b)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>we(e,t)).join(",")})`:this.matrix3d.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix3d.translate(0,0,t),this.matrix3d.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix3d.m43),this}translate3d(t,e,n){return this.matrix3d.translate(t,e,n),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,n){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(t,e=0,n=0){const i=Lt(t),r=Math.cos(i),o=Math.sin(i);return this.translate(e,n),this.multiply([r,o,-o,r,0,0]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{degree:i}=this.split();return this.rotate(t-i,e,n),this}rotateX(t){return this.matrix3d.rotateX(t),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotateY(t),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotateZ(t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,n){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{degreeX:i,degreeY:r,degreeZ:o}=this.matrix3d.split();return this.rotate3d(t-i,e-r,n-o),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.multiply([t,0,0,e,0,0]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,i=0){return this.scale(t/this.m11,e/this.m22,n,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,n=t){return this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scalarX:i,scalarY:r,scalarZ:o}=this.matrix3d.split();return this.scale3d(t/i,e/r,n/o),this}skew(t,e=t){return this.multiply([Math.cos(Lt(e)),Math.sin(Lt(e)),-Math.sin(Lt(t)),Math.cos(Lt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:n,skewY:i}=this.split();return this.skew(t-n,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class $e{value;is3dSpecial=!1;constructor(t=Fu){this.value=Array.from(t)}static fromString(t){const e=new $e,n=uu("number",t);return n.length===16&&n.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Fu),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}clone(){return new $e([...this.value])}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this.m41*=t,this.m42*=t,this.m43*=t,this.m44*=t,this}normalize(){return this.scalar(1/(this.m44||1e-4))}transformPoint(t){const e=t.z||1,n=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+n*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+n*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+n*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+n*this.m44}}toMatrix(t){const{scalarX:e,scalarY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[e,r,i,n,o,a];return t?(t.value=l,t):new Ne(l)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix3d(${this.value.map(e=>we(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),i=Ie(qt(Math.asin(-this.m13),-1,1));let r=Ie(Math.atan2(this.m23,this.m33));Math.cos(Lt(i))===0&&(r=Ie(Math.atan2(-this.m31,this.m22)));let o=Ie(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:n,degreeX:r,degreeY:i,degreeZ:o,skewX:Ie(this.m14),skewY:Ie(this.m24),skewZ:Ie(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,m=this.m34,d=this.m41,S=this.m42,k=this.m43,_=this.m44;t[0]=l*m*S-c*f*S+c*h*k-a*m*k-l*h*_+a*f*_,t[1]=r*f*S-i*m*S-r*h*k+n*m*k+i*h*_-n*f*_,t[2]=i*c*S-r*l*S+r*a*k-n*c*k-i*a*_+n*l*_,t[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*m-n*l*m;const x=e*t[0]+o*t[1]+u*t[2]+d*t[3];if(x==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*d-l*m*d-c*u*k+o*m*k+l*u*_-o*f*_,t[5]=i*m*d-r*f*d+r*u*k-e*m*k-i*u*_+e*f*_,t[6]=r*l*d-i*c*d-r*o*k+e*c*k+i*o*_-e*l*_,t[7]=i*c*u-r*l*u+r*o*f-e*c*f-i*o*m+e*l*m,t[8]=a*m*d-c*h*d+c*u*S-o*m*S-a*u*_+o*h*_,t[9]=r*h*d-n*m*d-r*u*S+e*m*S+n*u*_-e*h*_,t[10]=n*c*d-r*a*d+r*o*S-e*c*S-n*o*_+e*a*_,t[11]=r*a*u-n*c*u-r*o*h+e*c*h+n*o*m-e*a*m,t[12]=l*h*d-a*f*d-l*u*S+o*f*S+a*u*k-o*h*k,t[13]=n*f*d-i*h*d+i*u*S-e*f*S-n*u*k+e*h*k,t[14]=i*a*d-n*l*d-i*o*S+e*l*S+n*o*k-e*a*k,t[15]=n*l*u-i*a*u+i*o*h-e*l*h-n*o*f+e*a*f,this.value=t,this.scalar(1/x)}multiply(t){const e=this.clone();return this.m11=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,this.m12=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,this.m13=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,this.m14=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,this.m21=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,this.m22=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,this.m23=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,this.m24=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,this.m31=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,this.m32=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,this.m33=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,this.m34=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,this.m41=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,this.m42=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,this.m43=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,this.m44=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44,this}translate(t=0,e=0,n=0){return this.multiply(new $e([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]))}scale(t=1,e=1,n=1){return this.multiply(new $e([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}rotateX(t){const e=Lt(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new $e([1,0,0,0,0,n,i,0,0,-i,n,0,0,0,0,1]))}rotateY(t){const e=Lt(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new $e([n,0,-i,0,0,1,0,0,i,0,n,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Lt(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new $e([n,i,0,0,-i,n,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,n=0){return this.multiply(new $e([1,0,0,Lt(t),0,1,0,Lt(e),0,0,1,Lt(n),0,0,0,1]))}perspective(t){return this.multiply(new $e([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,n=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),e/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:e,y:n,z:i,mass:r};const h=-i/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:i,mass:r}}project(t){const e=t.z;let n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:e,mass:r}}bounds(t,e,n,i){const r=new gr({x:t,y:e}),o=new gr({x:t+n,y:e}),a=new gr({x:t+n,y:e+i}),l=new gr({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return{x:c,y:u,width:h,height:f}}}function Lu(s){const t=new Ne;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(r[0],r[1]);break;case"translatex":t.translateX(r[0]);break;case"translatey":t.translateY(r[0]);break;case"translatez":t.translateZ(r[0]);break;case"translate3d":t.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":t.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":t.rotateX(r[0]);break;case"rotatey":t.rotateY(r[0]);break;case"rotatez":t.rotateZ(r[0]);break;case"rotate3d":t.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":t.scale(r[0],r[1]??r[0]);break;case"scalex":t.scaleX(r[0]);break;case"scaley":t.scaleY(r[0]);break;case"scalez":t.scaleZ(r[0]);break;case"scale3d":t.scale3d(r[0],r[1],r[2]);break;case"skew":t.skew(r[0],r[1]??0);break;case"skewx":t.skewX(r[0]);break;case"skewy":t.skewY(r[0]);break;case"skewz":t.skewZ(r[0]);break;case"skew3d":t.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":t.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new $e(r)),t.matrix3d.toMatrix(t);break}return""}),t}function ts(s,t,e){const n=new Ne;return n.rotate(Ie(s)),n.transformPoint({x:t,y:e})}class es extends Ht{shapesCountChange=!1;constructor(t){super(t)}shapeInit(){}frameStart(t){return this.shapesCountChange&&(this.shapesCountChange=!1,this.shapes.forEach(e=>{e.parent=this,e.initPathD()}),this.pathd=this.initPathD(),this.shapes.forEach(e=>{!e.forceCXY&&!e.independentTransformInGroup&&(e.cX=this.cX-e.diffXInGroup,e.cY=this.cY-e.diffYInGroup)})),super.frameStart(t)}frameUpdate(t,e){this.shapes.forEach(n=>{!n.independentTransformInGroup&&!n.isDragging&&(n.x=this.x+n.diffXInGroup,n.y=this.y+n.diffYInGroup,n.degree=this.degree+n.diffDegreeInGroup,n.scalarX=this.scalarX*n.diffScalarXInGroup,n.scalarY=this.scalarY*n.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(n=>n.id==e.id)==-1&&(e.on("draging",(n,i)=>{this.enableDrag&&(this.x+=n,this.y+=i,this.emit("draging",n,i,e))}),this.shapes.push(e),this.shapesCountChange=!0)})}getBoundingClientRect(){const t=[],e=[];this.shapes.forEach(l=>{const c=l.getBoundingClientRect();c&&(t.push(c.x,c.x+c.width),e.push(c.y,c.y+c.height))});const n=this.pathd?.getBoundingClientRect();if(n&&(n.width||n.height)&&(t.push(n.x,n.x+n.width),e.push(n.y,n.y+n.height)),t.length==0||e.length==0)return null;const i=Math.min.apply(0,t),r=Math.min.apply(0,e),o=Math.max.apply(0,t),a=Math.max.apply(0,e);return{x:i,y:r,width:o-i,height:a-r}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(n=>{n.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(n=>{n.setAttr(t,e)}))}sortPathD(){this.shapes=this.shapes.map(t=>{const e=t.initPathD();return{shape:t,perimeter:e.perimeterPoints()}}).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.shape)}expendFill(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.expendFill(this);for(let i=n;i<e;i++){const o=t.shapes[i].initPathD().polymorphPoints,a=o[0],l=o[1],c=[["M",a,l]];for(let u=2;u+5<o.length;u+=6)c.push(["C",a,l,a,l,a,l]);this.addShape(new Ht({attrs:{...t.shapes[i].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const n=this.shapes.length-1;this.shapes.forEach((a,l)=>{a.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==n&&e?.onGroupComplete?.()}})});break;case"parallel":default:const i=new He({frameDuration:t}),r={},o={};this.shapes.forEach((a,l)=>{const c=we(a.getTotalLength(),0);r[`offset_${l}`]=c,o[`offset_${l}`]=0,a.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),i.addTween(r,o,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(a,l)=>{for(let c in a){const u=Je(c).number;this.shapes[u].setAttr("strokeDashoffset",""+we(a[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),i.play();break}}}const bn=es,yg=getComputedStyle(document.documentElement);function Dt(s){return yg.getPropertyValue(s)}const Pt={safeAreaTop:Dt("--safe-area-inset-top"),safeAreaRight:Dt("--safe-area-inset-right"),safeAreaBottom:Dt("--safe-area-inset-bottom"),safeAreaLeft:Dt("--safe-area-inset-left"),colorPrimary:Dt("--color-primary")||"#5078f0",colorRed:Dt("--color-red")||"#ff5050",colorOrange:Dt("--color-orange")||"#fa8c00",colorYellow:Dt("--color-yellow")||"#fadc32",colorGreen:Dt("--color-green")||"#00c878",colorBlue:Dt("--color-blue")||"#00b4fa",colorPurple:Dt("--color-purple")||"#6464fa",colorBlack:Dt("--color-black")||"#001428",colorGray00:Dt("--color-gray-00")||"#000000",colorGray33:Dt("--color-gray-33")||"#333333",colorGray66:Dt("--color-gray-66")||"#666666",colorGray99:Dt("--color-gray-99")||"#999999",colorGrayCC:Dt("--color-gray-cc")||"#cccccc",colorGrayDD:Dt("--color-gray-dd")||"#dddddd",colorGrayE6:Dt("--color-gray-e6")||"#e6e6e6",colorGrayEE:Dt("--color-gray-ee")||"#eeeeee",colorGrayEF:Dt("--color-gray-ef")||"#efefef",colorGrayF5:Dt("--color-gray-f5")||"#f5f5f5",colorGrayFF:Dt("--color-gray-ff")||"#ffffff",fontLineHeight:Dt("--font-line-height")||"1.4",fontSize32:Dt("--font-size-32")||"32px",fontSize24:Dt("--font-size-24")||"24px",fontSize22:Dt("--font-size-22")||"22px",fontSize20:Dt("--font-size-20")||"20px",fontSize18:Dt("--font-size-18")||"18px",fontSize16:Dt("--font-size-16")||"16px",fontSize14:Dt("--font-size-14")||"14px",fontSize12:Dt("--font-size-12")||"12px",fontSize10:Dt("--font-size-10")||"10px",d4:Dt("--distance-4")||"4px",d8:Dt("--distance-8")||"8px",d12:Dt("--distance-12")||"12px",d16:Dt("--distance-16")||"16px",d20:Dt("--distance-20")||"20px",d32:Dt("--distance-32")||"32px",d40:Dt("--distance-40")||"40px",d44:Dt("--distance-44")||"44px"};class wt{__color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),typeof e=="number"&&this.setAlpha(e)}get color(){return this.__color}set color(t){this.__color=ua(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=qt(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=qt(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=qt(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=qt(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setRGBA(t,e,n,i){return this.r=t,this.g=e,this.b=n,this.a=i,this}get hex(){return(this.r<<16)+(this.g<<8)+this.b}toString(){if(this.a===1){const t="000000"+this.hex.toString(16);return"#"+t.slice(t.length-6)}else return`rgba(${this.r},${this.g},${this.b},${we(this.a,6)})`}clone(){return new wt(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",n="#ffffff"){if(t)return new wt(this.r*.299+this.g*.587+this.b*.114>186?e:n);{const i=this.clone();return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,i}}lighten(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:i}=this.color;return e+=(255-e)*t,n+=(255-n)*t,i+=(255-i)*t,new wt().setRGBA(e,n,i,this.color.a)}darken(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:i}=this.color;return e=e*(1-t),n=n*(1-t),i=i*(1-t),new wt().setRGBA(e,n,i,this.color.a)}static gradient(t,e,n){try{const i=ua(t),r=ua(e);return new wt().setRGB((r.r-i.r)*n+i.r,(r.g-i.g)*n+i.g,(r.b-i.b)*n+i.b)}catch{return new wt(e)}}static random(){return new wt(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:n,a:i}=this.color,r=Math.max(t,e,n),o=Math.min(t,e,n),a=r-o;let l;return t===r?l=(e-n)/a:e===r?l=2+(n-t)/a:l=4+(t-e)/a,l/=6,l<0&&(l+=1),{h:a==0?0:l*360,s:r===0?0:a/r,v:r/255,a:i}}set h(t){const e=this.hsv;e.h=qt(t,0,360),this.setColor(e)}get h(){return this.hsv.h}set s(t){const e=this.hsv;e.s=qt(t,0,1),this.setColor(e)}get s(){return this.hsv.s}set v(t){const e=this.hsv;e.v=qt(t,0,1),this.setColor(e)}get v(){return this.hsv.v}}function De(s,t){return new wt(s,t)}function ua(s){const t=Object.prototype.hasOwnProperty.call(s,"a")?qt(s.a,0,1):1;if(Object.prototype.hasOwnProperty.call(s,"r")&&Object.prototype.hasOwnProperty.call(s,"g")&&Object.prototype.hasOwnProperty.call(s,"b"))return s.r=qt(Math.round(s.r),0,255),s.g=qt(Math.round(s.g),0,255),s.b=qt(Math.round(s.b),0,255),s.a=t,s;if(Object.prototype.hasOwnProperty.call(s,"h")&&Object.prototype.hasOwnProperty.call(s,"s")&&Object.prototype.hasOwnProperty.call(s,"v")){const n=qt(s.h,0,360),i=qt(s.s,0,1),r=qt(s.v,0,1),o=Math.floor(n/60)%6,a=n/60-Math.floor(n/60),l=r*(1-i),c=r*(1-a*i),u=r*(1-(1-a)*i),h=[[r,u,l],[c,r,l],[l,r,u],[l,c,r],[u,l,r],[r,l,c]][o];return{r:Math.round(h[0]*255),g:Math.round(h[1]*255),b:Math.round(h[2]*255),a:t}}const e={r:0,g:0,b:0,a:t};if(typeof s=="number")s<Math.pow(2,24)?(e.r=s>>16&255,e.g=s>>8&255,e.b=s&255):(e.r=s>>24&255,e.g=s>>16&255,e.b=s>>8&255,e.a=(s&255)/255);else if(typeof s=="string"){const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);if(n)e.r=parseInt(n[1]),e.g=parseInt(n[2]),e.b=parseInt(n[3]),n[4]&&(e.a=parseFloat(n[4]));else{let i=s.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);i?(e.r=parseInt(`${i[1]}${i[1]}`,16),e.g=parseInt(`${i[2]}${i[2]}`,16),e.b=parseInt(`${i[3]}${i[3]}`,16)):(i=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),i?(e.r=parseInt(i[1],16),e.g=parseInt(i[2],16),e.b=parseInt(i[3],16)):(i=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),i?(e.r=parseInt(i[1],16),e.g=parseInt(i[2],16),e.b=parseInt(i[3],16),e.a=parseInt(i[4],16)/255):s==="none"&&(e.a=0)))}}else throw new Error("parseColor 不支持的颜色解析:"+s);return e.r=qt(e.r,0,255),e.g=qt(e.g,0,255),e.b=qt(e.b,0,255),e.a=qt(e.a,0,1),e}const vg=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],Fs={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};Fs.buttonColor=new wt(Fs.saveRowColor).darken(.1).toString(),Fs.borderColor=new wt(Fs.backgroundColor).lighten(.07).toString(),Fs.inputColor=new wt(Fs.backgroundColor).lighten(.085).toString();class he extends Ht{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,n=this.toY-this.y;return new Proxy(this,{set(i,r,o,a){switch(r){case"x":i.toX=o+e;break;case"y":i.toY=o+n;break;case"toX":e=o-i.x;break;case"toY":n=o-i.y;break}return Reflect.set(i,r,o,a)}})}toSVGPathData(){return[["m",0,0],["l",this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.lineTo(this.toX-this.x,this.toY-this.y)}intersection(t){const e=new Eu({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),n=new Eu({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(n)}}class yr extends Ht{cx;cy;toX;toY;isLineThrough;constructor(t){super(t),this.cx=t?.cx||0,this.cy=t?.cy||0,this.toX=t?.toX||0,this.toY=t?.toY||0,this.isLineThrough=typeof t?.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["m",0,0],["q",t-this.x,e-this.y,this.toX-this.x,this.toY-this.y]]}else return[["m",0,0],["q",this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){if(t.beginPath(),t.moveTo(0,0),this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,n=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,n-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}var $u={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
39
39
  * http://hammerjs.github.io/
40
40
  *
41
41
  * Copyright (c) 2016 Jorik Tangelder;
42
42
  * Licensed under the MIT license */(function(s){(function(t,e,n,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(g,v,E){return setTimeout(y(g,E),v)}function f(g,v,E){return Array.isArray(g)?(m(g,E[v],E),!0):!1}function m(g,v,E){var N;if(g)if(g.forEach)g.forEach(v,E);else if(g.length!==i)for(N=0;N<g.length;)v.call(E,g[N],N,g),N++;else for(N in g)g.hasOwnProperty(N)&&v.call(E,g[N],N,g)}function d(g,v,E){var N="DEPRECATED METHOD: "+v+`
43
43
  `+E+` AT
44
- `;return function(){var tt=new Error("get-stack-trace"),dt=tt&&tt.stack?tt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Nt=t.console&&(t.console.warn||t.console.log);return Nt&&Nt.call(t.console,N,dt),g.apply(this,arguments)}}var S;typeof Object.assign!="function"?S=function(v){if(v===i||v===null)throw new TypeError("Cannot convert undefined or null to object");for(var E=Object(v),N=1;N<arguments.length;N++){var tt=arguments[N];if(tt!==i&&tt!==null)for(var dt in tt)tt.hasOwnProperty(dt)&&(E[dt]=tt[dt])}return E}:S=Object.assign;var k=d(function(v,E,N){for(var tt=Object.keys(E),dt=0;dt<tt.length;)(!N||N&&v[tt[dt]]===i)&&(v[tt[dt]]=E[tt[dt]]),dt++;return v},"extend","Use `assign`."),_=d(function(v,E){return k(v,E,!0)},"merge","Use `assign`.");function x(g,v,E){var N=v.prototype,tt;tt=g.prototype=Object.create(N),tt.constructor=g,tt._super=N,E&&S(tt,E)}function y(g,v){return function(){return g.apply(v,arguments)}}function p(g,v){return typeof g==a?g.apply(v&&v[0]||i,v):g}function w(g,v){return g===i?v:g}function b(g,v,E){m(R(v),function(N){g.addEventListener(N,E,!1)})}function B(g,v,E){m(R(v),function(N){g.removeEventListener(N,E,!1)})}function ct(g,v){for(;g;){if(g==v)return!0;g=g.parentNode}return!1}function O(g,v){return g.indexOf(v)>-1}function R(g){return g.trim().split(/\s+/g)}function A(g,v,E){if(g.indexOf&&!E)return g.indexOf(v);for(var N=0;N<g.length;){if(E&&g[N][E]==v||!E&&g[N]===v)return N;N++}return-1}function D(g){return Array.prototype.slice.call(g,0)}function L(g,v,E){for(var N=[],tt=[],dt=0;dt<g.length;){var Nt=v?g[dt][v]:g[dt];A(tt,Nt)<0&&N.push(g[dt]),tt[dt]=Nt,dt++}return E&&(v?N=N.sort(function(be,Ee){return be[v]>Ee[v]}):N=N.sort()),N}function X(g,v){for(var E,N,tt=v[0].toUpperCase()+v.slice(1),dt=0;dt<r.length;){if(E=r[dt],N=E?E+tt:v,N in g)return N;dt++}return i}var it=1;function K(){return it++}function W(g){var v=g.ownerDocument||g;return v.defaultView||v.parentWindow||t}var nt=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in t,j=X(t,"PointerEvent")!==i,gt=G&&nt.test(navigator.userAgent),mt="touch",Z="pen",V="mouse",Qt="kinect",te=25,Ot=1,ee=2,zt=4,Y=8,Fe=1,ze=2,Ae=4,C=8,I=16,$=ze|Ae,U=C|I,q=$|U,et=["x","y"],ot=["clientX","clientY"];function Q(g,v){var E=this;this.manager=g,this.callback=v,this.element=g.element,this.target=g.options.inputTarget,this.domHandler=function(N){p(g.options.enable,[g])&&E.handler(N)},this.init()}Q.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(W(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(W(this.element),this.evWin,this.domHandler)}};function st(g){var v,E=g.options.inputClass;return E?v=E:j?v=Ma:gt?v=Or:G?v=Na:v=ke,new v(g,J)}function J(g,v,E){var N=E.pointers.length,tt=E.changedPointers.length,dt=v&Ot&&N-tt===0,Nt=v&(zt|Y)&&N-tt===0;E.isFirst=!!dt,E.isFinal=!!Nt,dt&&(g.session={}),E.eventType=v,ht(g,E),g.emit("hammer.input",E),g.recognize(E),g.session.prevInput=E}function ht(g,v){var E=g.session,N=v.pointers,tt=N.length;E.firstInput||(E.firstInput=Ct(v)),tt>1&&!E.firstMultiple?E.firstMultiple=Ct(v):tt===1&&(E.firstMultiple=!1);var dt=E.firstInput,Nt=E.firstMultiple,de=Nt?Nt.center:dt.center,be=v.center=Rt(N);v.timeStamp=u(),v.deltaTime=v.timeStamp-dt.timeStamp,v.angle=Se(de,be),v.distance=se(de,be),vt(E,v),v.offsetDirection=Ut(v.deltaX,v.deltaY);var Ee=Vt(v.deltaTime,v.deltaX,v.deltaY);v.overallVelocityX=Ee.x,v.overallVelocityY=Ee.y,v.overallVelocity=c(Ee.x)>c(Ee.y)?Ee.x:Ee.y,v.scale=Nt?kr(Nt.pointers,N):1,v.rotation=Nt?Vs(Nt.pointers,N):0,v.maxPointers=E.prevInput?v.pointers.length>E.prevInput.maxPointers?v.pointers.length:E.prevInput.maxPointers:v.pointers.length,yt(E,v);var rs=g.element;ct(v.srcEvent.target,rs)&&(rs=v.srcEvent.target),v.target=rs}function vt(g,v){var E=v.center,N=g.offsetDelta||{},tt=g.prevDelta||{},dt=g.prevInput||{};(v.eventType===Ot||dt.eventType===zt)&&(tt=g.prevDelta={x:dt.deltaX||0,y:dt.deltaY||0},N=g.offsetDelta={x:E.x,y:E.y}),v.deltaX=tt.x+(E.x-N.x),v.deltaY=tt.y+(E.y-N.y)}function yt(g,v){var E=g.lastInterval||v,N=v.timeStamp-E.timeStamp,tt,dt,Nt,de;if(v.eventType!=Y&&(N>te||E.velocity===i)){var be=v.deltaX-E.deltaX,Ee=v.deltaY-E.deltaY,rs=Vt(N,be,Ee);dt=rs.x,Nt=rs.y,tt=c(rs.x)>c(rs.y)?rs.x:rs.y,de=Ut(be,Ee),g.lastInterval=v}else tt=E.velocity,dt=E.velocityX,Nt=E.velocityY,de=E.direction;v.velocity=tt,v.velocityX=dt,v.velocityY=Nt,v.direction=de}function Ct(g){for(var v=[],E=0;E<g.pointers.length;)v[E]={clientX:l(g.pointers[E].clientX),clientY:l(g.pointers[E].clientY)},E++;return{timeStamp:u(),pointers:v,center:Rt(v),deltaX:g.deltaX,deltaY:g.deltaY}}function Rt(g){var v=g.length;if(v===1)return{x:l(g[0].clientX),y:l(g[0].clientY)};for(var E=0,N=0,tt=0;tt<v;)E+=g[tt].clientX,N+=g[tt].clientY,tt++;return{x:l(E/v),y:l(N/v)}}function Vt(g,v,E){return{x:v/g||0,y:E/g||0}}function Ut(g,v){return g===v?Fe:c(g)>=c(v)?g<0?ze:Ae:v<0?C:I}function se(g,v,E){E||(E=et);var N=v[E[0]]-g[E[0]],tt=v[E[1]]-g[E[1]];return Math.sqrt(N*N+tt*tt)}function Se(g,v,E){E||(E=et);var N=v[E[0]]-g[E[0]],tt=v[E[1]]-g[E[1]];return Math.atan2(tt,N)*180/Math.PI}function Vs(g,v){return Se(v[1],v[0],ot)+Se(g[1],g[0],ot)}function kr(g,v){return se(v[0],v[1],ot)/se(g[0],g[1],ot)}var ln={mousedown:Ot,mousemove:ee,mouseup:zt},Er="mousedown",_e="mousemove mouseup";function ke(){this.evEl=Er,this.evWin=_e,this.pressed=!1,Q.apply(this,arguments)}x(ke,Q,{handler:function(v){var E=ln[v.type];E&Ot&&v.button===0&&(this.pressed=!0),E&ee&&v.which!==1&&(E=zt),this.pressed&&(E&zt&&(this.pressed=!1),this.callback(this.manager,E,{pointers:[v],changedPointers:[v],pointerType:V,srcEvent:v}))}});var Pr={pointerdown:Ot,pointermove:ee,pointerup:zt,pointercancel:Y,pointerout:Y},E_={2:mt,3:Z,4:V,5:Qt},dh="pointerdown",ph="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(dh="MSPointerDown",ph="MSPointerMove MSPointerUp MSPointerCancel");function Ma(){this.evEl=dh,this.evWin=ph,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}x(Ma,Q,{handler:function(v){var E=this.store,N=!1,tt=v.type.toLowerCase().replace("ms",""),dt=Pr[tt],Nt=E_[v.pointerType]||v.pointerType,de=Nt==mt,be=A(E,v.pointerId,"pointerId");dt&Ot&&(v.button===0||de)?be<0&&(E.push(v),be=E.length-1):dt&(zt|Y)&&(N=!0),!(be<0)&&(E[be]=v,this.callback(this.manager,dt,{pointers:E,changedPointers:[v],pointerType:Nt,srcEvent:v}),N&&E.splice(be,1))}});var P_={touchstart:Ot,touchmove:ee,touchend:zt,touchcancel:Y},O_="touchstart",I_="touchstart touchmove touchend touchcancel";function mh(){this.evTarget=O_,this.evWin=I_,this.started=!1,Q.apply(this,arguments)}x(mh,Q,{handler:function(v){var E=P_[v.type];if(E===Ot&&(this.started=!0),!!this.started){var N=D_.call(this,v,E);E&(zt|Y)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:mt,srcEvent:v})}}});function D_(g,v){var E=D(g.touches),N=D(g.changedTouches);return v&(zt|Y)&&(E=L(E.concat(N),"identifier",!0)),[E,N]}var R_={touchstart:Ot,touchmove:ee,touchend:zt,touchcancel:Y},A_="touchstart touchmove touchend touchcancel";function Or(){this.evTarget=A_,this.targetIds={},Q.apply(this,arguments)}x(Or,Q,{handler:function(v){var E=R_[v.type],N=M_.call(this,v,E);N&&this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:mt,srcEvent:v})}});function M_(g,v){var E=D(g.touches),N=this.targetIds;if(v&(Ot|ee)&&E.length===1)return N[E[0].identifier]=!0,[E,E];var tt,dt,Nt=D(g.changedTouches),de=[],be=this.target;if(dt=E.filter(function(Ee){return ct(Ee.target,be)}),v===Ot)for(tt=0;tt<dt.length;)N[dt[tt].identifier]=!0,tt++;for(tt=0;tt<Nt.length;)N[Nt[tt].identifier]&&de.push(Nt[tt]),v&(zt|Y)&&delete N[Nt[tt].identifier],tt++;if(de.length)return[L(dt.concat(de),"identifier",!0),de]}var N_=2500,gh=25;function Na(){Q.apply(this,arguments);var g=y(this.handler,this);this.touch=new Or(this.manager,g),this.mouse=new ke(this.manager,g),this.primaryTouch=null,this.lastTouches=[]}x(Na,Q,{handler:function(v,E,N){var tt=N.pointerType==mt,dt=N.pointerType==V;if(!(dt&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(tt)F_.call(this,E,N);else if(dt&&L_.call(this,N))return;this.callback(v,E,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function F_(g,v){g&Ot?(this.primaryTouch=v.changedPointers[0].identifier,yh.call(this,v)):g&(zt|Y)&&yh.call(this,v)}function yh(g){var v=g.changedPointers[0];if(v.identifier===this.primaryTouch){var E={x:v.clientX,y:v.clientY};this.lastTouches.push(E);var N=this.lastTouches,tt=function(){var dt=N.indexOf(E);dt>-1&&N.splice(dt,1)};setTimeout(tt,N_)}}function L_(g){for(var v=g.srcEvent.clientX,E=g.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var tt=this.lastTouches[N],dt=Math.abs(v-tt.x),Nt=Math.abs(E-tt.y);if(dt<=gh&&Nt<=gh)return!0}return!1}var vh=X(o.style,"touchAction"),_h=vh!==i,bh="compute",xh="auto",Fa="manipulation",cn="none",pi="pan-x",mi="pan-y",Ir=V_();function La(g,v){this.manager=g,this.set(v)}La.prototype={set:function(g){g==bh&&(g=this.compute()),_h&&this.manager.element.style&&Ir[g]&&(this.manager.element.style[vh]=g),this.actions=g.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var g=[];return m(this.manager.recognizers,function(v){p(v.options.enable,[v])&&(g=g.concat(v.getTouchAction()))}),$_(g.join(" "))},preventDefaults:function(g){var v=g.srcEvent,E=g.offsetDirection;if(this.manager.session.prevented){v.preventDefault();return}var N=this.actions,tt=O(N,cn)&&!Ir[cn],dt=O(N,mi)&&!Ir[mi],Nt=O(N,pi)&&!Ir[pi];if(tt){var de=g.pointers.length===1,be=g.distance<2,Ee=g.deltaTime<250;if(de&&be&&Ee)return}if(!(Nt&&dt)&&(tt||dt&&E&$||Nt&&E&U))return this.preventSrc(v)},preventSrc:function(g){this.manager.session.prevented=!0,g.preventDefault()}};function $_(g){if(O(g,cn))return cn;var v=O(g,pi),E=O(g,mi);return v&&E?cn:v||E?v?pi:mi:O(g,Fa)?Fa:xh}function V_(){if(!_h)return!1;var g={},v=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(E){g[E]=v?t.CSS.supports("touch-action",E):!0}),g}var Dr=1,Be=2,kn=4,zs=8,ms=zs,gi=16,is=32;function gs(g){this.options=S({},this.defaults,g||{}),this.id=K(),this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Dr,this.simultaneous={},this.requireFail=[]}gs.prototype={defaults:{},set:function(g){return S(this.options,g),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(g){if(f(g,"recognizeWith",this))return this;var v=this.simultaneous;return g=Rr(g,this),v[g.id]||(v[g.id]=g,g.recognizeWith(this)),this},dropRecognizeWith:function(g){return f(g,"dropRecognizeWith",this)?this:(g=Rr(g,this),delete this.simultaneous[g.id],this)},requireFailure:function(g){if(f(g,"requireFailure",this))return this;var v=this.requireFail;return g=Rr(g,this),A(v,g)===-1&&(v.push(g),g.requireFailure(this)),this},dropRequireFailure:function(g){if(f(g,"dropRequireFailure",this))return this;g=Rr(g,this);var v=A(this.requireFail,g);return v>-1&&this.requireFail.splice(v,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(g){return!!this.simultaneous[g.id]},emit:function(g){var v=this,E=this.state;function N(tt){v.manager.emit(tt,g)}E<zs&&N(v.options.event+wh(E)),N(v.options.event),g.additionalEvent&&N(g.additionalEvent),E>=zs&&N(v.options.event+wh(E))},tryEmit:function(g){if(this.canEmit())return this.emit(g);this.state=is},canEmit:function(){for(var g=0;g<this.requireFail.length;){if(!(this.requireFail[g].state&(is|Dr)))return!1;g++}return!0},recognize:function(g){var v=S({},g);if(!p(this.options.enable,[this,v])){this.reset(),this.state=is;return}this.state&(ms|gi|is)&&(this.state=Dr),this.state=this.process(v),this.state&(Be|kn|zs|gi)&&this.tryEmit(v)},process:function(g){},getTouchAction:function(){},reset:function(){}};function wh(g){return g&gi?"cancel":g&zs?"end":g&kn?"move":g&Be?"start":""}function Ch(g){return g==I?"down":g==C?"up":g==ze?"left":g==Ae?"right":""}function Rr(g,v){var E=v.manager;return E?E.get(g):g}function We(){gs.apply(this,arguments)}x(We,gs,{defaults:{pointers:1},attrTest:function(g){var v=this.options.pointers;return v===0||g.pointers.length===v},process:function(g){var v=this.state,E=g.eventType,N=v&(Be|kn),tt=this.attrTest(g);return N&&(E&Y||!tt)?v|gi:N||tt?E&zt?v|zs:v&Be?v|kn:Be:is}});function Ar(){We.apply(this,arguments),this.pX=null,this.pY=null}x(Ar,We,{defaults:{event:"pan",threshold:10,pointers:1,direction:q},getTouchAction:function(){var g=this.options.direction,v=[];return g&$&&v.push(mi),g&U&&v.push(pi),v},directionTest:function(g){var v=this.options,E=!0,N=g.distance,tt=g.direction,dt=g.deltaX,Nt=g.deltaY;return tt&v.direction||(v.direction&$?(tt=dt===0?Fe:dt<0?ze:Ae,E=dt!=this.pX,N=Math.abs(g.deltaX)):(tt=Nt===0?Fe:Nt<0?C:I,E=Nt!=this.pY,N=Math.abs(g.deltaY))),g.direction=tt,E&&N>v.threshold&&tt&v.direction},attrTest:function(g){return We.prototype.attrTest.call(this,g)&&(this.state&Be||!(this.state&Be)&&this.directionTest(g))},emit:function(g){this.pX=g.deltaX,this.pY=g.deltaY;var v=Ch(g.direction);v&&(g.additionalEvent=this.options.event+v),this._super.emit.call(this,g)}});function $a(){We.apply(this,arguments)}x($a,We,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[cn]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.scale-1)>this.options.threshold||this.state&Be)},emit:function(g){if(g.scale!==1){var v=g.scale<1?"in":"out";g.additionalEvent=this.options.event+v}this._super.emit.call(this,g)}});function Va(){gs.apply(this,arguments),this._timer=null,this._input=null}x(Va,gs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[xh]},process:function(g){var v=this.options,E=g.pointers.length===v.pointers,N=g.distance<v.threshold,tt=g.deltaTime>v.time;if(this._input=g,!N||!E||g.eventType&(zt|Y)&&!tt)this.reset();else if(g.eventType&Ot)this.reset(),this._timer=h(function(){this.state=ms,this.tryEmit()},v.time,this);else if(g.eventType&zt)return ms;return is},reset:function(){clearTimeout(this._timer)},emit:function(g){this.state===ms&&(g&&g.eventType&zt?this.manager.emit(this.options.event+"up",g):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function za(){We.apply(this,arguments)}x(za,We,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[cn]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.rotation)>this.options.threshold||this.state&Be)}});function Ba(){We.apply(this,arguments)}x(Ba,We,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|U,pointers:1},getTouchAction:function(){return Ar.prototype.getTouchAction.call(this)},attrTest:function(g){var v=this.options.direction,E;return v&($|U)?E=g.overallVelocity:v&$?E=g.overallVelocityX:v&U&&(E=g.overallVelocityY),this._super.attrTest.call(this,g)&&v&g.offsetDirection&&g.distance>this.options.threshold&&g.maxPointers==this.options.pointers&&c(E)>this.options.velocity&&g.eventType&zt},emit:function(g){var v=Ch(g.offsetDirection);v&&this.manager.emit(this.options.event+v,g),this.manager.emit(this.options.event,g)}});function Mr(){gs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}x(Mr,gs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Fa]},process:function(g){var v=this.options,E=g.pointers.length===v.pointers,N=g.distance<v.threshold,tt=g.deltaTime<v.time;if(this.reset(),g.eventType&Ot&&this.count===0)return this.failTimeout();if(N&&tt&&E){if(g.eventType!=zt)return this.failTimeout();var dt=this.pTime?g.timeStamp-this.pTime<v.interval:!0,Nt=!this.pCenter||se(this.pCenter,g.center)<v.posThreshold;this.pTime=g.timeStamp,this.pCenter=g.center,!Nt||!dt?this.count=1:this.count+=1,this._input=g;var de=this.count%v.taps;if(de===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=ms,this.tryEmit()},v.interval,this),Be):ms}return is},failTimeout:function(){return this._timer=h(function(){this.state=is},this.options.interval,this),is},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ms&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function ys(g,v){return v=v||{},v.recognizers=w(v.recognizers,ys.defaults.preset),new Ga(g,v)}ys.VERSION="2.0.7",ys.defaults={domEvents:!1,touchAction:bh,enable:!0,inputTarget:null,inputClass:null,preset:[[za,{enable:!1}],[$a,{enable:!1},["rotate"]],[Ba,{direction:$}],[Ar,{direction:$},["swipe"]],[Mr],[Mr,{event:"doubletap",taps:2},["tap"]],[Va]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var z_=1,Th=2;function Ga(g,v){this.options=S({},ys.defaults,v||{}),this.options.inputTarget=this.options.inputTarget||g,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=g,this.input=st(this),this.touchAction=new La(this,this.options.touchAction),Sh(this,!0),m(this.options.recognizers,function(E){var N=this.add(new E[0](E[1]));E[2]&&N.recognizeWith(E[2]),E[3]&&N.requireFailure(E[3])},this)}Ga.prototype={set:function(g){return S(this.options,g),g.touchAction&&this.touchAction.update(),g.inputTarget&&(this.input.destroy(),this.input.target=g.inputTarget,this.input.init()),this},stop:function(g){this.session.stopped=g?Th:z_},recognize:function(g){var v=this.session;if(!v.stopped){this.touchAction.preventDefaults(g);var E,N=this.recognizers,tt=v.curRecognizer;(!tt||tt&&tt.state&ms)&&(tt=v.curRecognizer=null);for(var dt=0;dt<N.length;)E=N[dt],v.stopped!==Th&&(!tt||E==tt||E.canRecognizeWith(tt))?E.recognize(g):E.reset(),!tt&&E.state&(Be|kn|zs)&&(tt=v.curRecognizer=E),dt++}},get:function(g){if(g instanceof gs)return g;for(var v=this.recognizers,E=0;E<v.length;E++)if(v[E].options.event==g)return v[E];return null},add:function(g){if(f(g,"add",this))return this;var v=this.get(g.options.event);return v&&this.remove(v),this.recognizers.push(g),g.manager=this,this.touchAction.update(),g},remove:function(g){if(f(g,"remove",this))return this;if(g=this.get(g),g){var v=this.recognizers,E=A(v,g);E!==-1&&(v.splice(E,1),this.touchAction.update())}return this},on:function(g,v){if(g!==i&&v!==i){var E=this.handlers;return m(R(g),function(N){E[N]=E[N]||[],E[N].push(v)}),this}},off:function(g,v){if(g!==i){var E=this.handlers;return m(R(g),function(N){v?E[N]&&E[N].splice(A(E[N],v),1):delete E[N]}),this}},emit:function(g,v){this.options.domEvents&&B_(g,v);var E=this.handlers[g]&&this.handlers[g].slice();if(!(!E||!E.length)){v.type=g,v.preventDefault=function(){v.srcEvent.preventDefault()};for(var N=0;N<E.length;)E[N](v),N++}},destroy:function(){this.element&&Sh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Sh(g,v){var E=g.element;if(E.style){var N;m(g.options.cssProps,function(tt,dt){N=X(E.style,dt),v?(g.oldCssProps[N]=E.style[N],E.style[N]=tt):E.style[N]=g.oldCssProps[N]||""}),v||(g.oldCssProps={})}}function B_(g,v){var E=e.createEvent("Event");E.initEvent(g,!0,!0),E.gesture=v,v.target.dispatchEvent(E)}S(ys,{INPUT_START:Ot,INPUT_MOVE:ee,INPUT_END:zt,INPUT_CANCEL:Y,STATE_POSSIBLE:Dr,STATE_BEGAN:Be,STATE_CHANGED:kn,STATE_ENDED:zs,STATE_RECOGNIZED:ms,STATE_CANCELLED:gi,STATE_FAILED:is,DIRECTION_NONE:Fe,DIRECTION_LEFT:ze,DIRECTION_RIGHT:Ae,DIRECTION_UP:C,DIRECTION_DOWN:I,DIRECTION_HORIZONTAL:$,DIRECTION_VERTICAL:U,DIRECTION_ALL:q,Manager:Ga,Input:Q,TouchAction:La,TouchInput:Or,MouseInput:ke,PointerEventInput:Ma,TouchMouseInput:Na,SingleTouchInput:mh,Recognizer:gs,AttrRecognizer:We,Tap:Mr,Pan:Ar,Swipe:Ba,Pinch:$a,Rotate:za,Press:Va,on:b,off:B,each:m,merge:_,extend:k,assign:S,inherit:x,bindFn:y,prefixed:X});var G_=typeof t<"u"?t:typeof self<"u"?self:{};G_.Hammer=ys,typeof i=="function"&&i.amd?i(function(){return ys}):s.exports?s.exports=ys:t[n]=ys})(window,document,"Hammer")})($u);var _g=$u.exports;const bg=Bm(_g);function ha(){const s=document.documentElement;return{clientWidth:s.clientWidth,clientHeight:s.clientHeight,clientTop:s.clientTop,clientLeft:s.clientLeft,scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,offsetTop:s.offsetTop,offsetLeft:s.offsetLeft,offsetParent:s.offsetParent}}function fa(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function xg(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=ha();return{x:e+r,y:t+o,width:n,height:i}}function wg(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=ha(),n=e-s;return n<=0?0:t/n*100}function Cg(s){if("center"in s)return s.center;if(typeof s.pageX=="number"&&typeof s.pageY=="number")return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=ha();return{x:s.clientX+t,y:s.clientY+e}}function ss(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=Cg(s),n=xg(t||s.target);return{x:e.x-n.x,y:e.y-n.y}}class Ls extends ei{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,e=!0,n){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new bg(this.container),e&&this.start(n)}emitDebounce=Fm((t,...e)=>super.emit(t,...e),50);emit(t,...e){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...e);break;default:super.emit(t,...e);break}return this}start(t){this.registerMouseEventListeners(),this.registerTransitionEventListeners(),this.registerAnimationEventListeners(),this.registerResizeObserver(),this.registerElementDisplayInParent(),t&&t.forEach(e=>{this.addRemoves(e())}),this.on("pointerMove",e=>{this.setMousePoint(ss(e,this.container))})}destroy(){this.removes.forEach(t=>t()),this.removes=[],this.removeAllListeners()}restart(){this.destroy(),this.start()}addRemoves(t){this.removes.push(t)}registerMouseEventListeners(){const t=Y=>{this.emit("mouseDown",Y)},e=Y=>{this.emit("mouseUp",Y)},n=Y=>{this.emit("mouseMove",Y)},i=Y=>{this.emit("mouseOver",Y)},r=Y=>{this.emit("mouseOut",Y)},o=Y=>{this.emit("mouseEnter",Y)},a=Y=>{this.emit("mouseLeave",Y)},l=Y=>{this.emit("mouseClick",Y)},c=Y=>{this.emit("mouseDoubleClick",Y)},u=Y=>{this.emit("mouseWheel",Y)},h=Y=>{this.emit("mouseContextMenu",Y)},f=Y=>{this.emit("touchStart",Y)},m=Y=>{this.emit("touchEnd",Y)},d=Y=>{this.emit("touchCancel",Y)},S=Y=>{this.emit("touchMove",Y)},k=Y=>{this.emit("pointerDown",Y)},_=Y=>{this.emit("pointerUp",Y)},x=Y=>{this.emit("pointerCancel",Y)},y=Y=>{this.emit("pointerMove",Y)},p=Y=>{this.emit("pan",Y)},w=Y=>{this.emit("panStart",Y)},b=Y=>{this.emit("panMove",Y)},B=Y=>{this.emit("panEnd",Y)},ct=Y=>{this.emit("panCancel",Y)},O=Y=>{this.emit("panLeft",Y)},R=Y=>{this.emit("panRight",Y)},A=Y=>{this.emit("panUp",Y)},D=Y=>{this.emit("panDown",Y)},L=Y=>{this.emit("pinch",Y)},X=Y=>{this.emit("press",Y)},it=Y=>{this.emit("rotate",Y)},K=Y=>{this.emit("swipe",Y)},W=Y=>{this.emit("swipeLeft",Y)},nt=Y=>{this.emit("swipeRight",Y)},G=Y=>{this.emit("swipeUp",Y)},j=Y=>{this.emit("swipeDown",Y)},gt=Y=>{this.emit("tap",Y)},mt=Y=>{!Y.target||this.container==Y.target||this.container.contains(Y.target)||this.emit("tapOutSide",Y)},Z=Y=>{this.emit("inputChange",Y,this.container.files)},V=Y=>{this.emit("dragstart",Y)},Qt=Y=>{Y.dataTransfer&&(Y.dataTransfer.dropEffect="copy"),this.emit("dragover",Y)},te=Y=>{this.emit("dragenter",Y)},Ot=Y=>{this.emit("dragend",Y)},ee=Y=>{Y.dataTransfer,this.emit("drop",Y,Y.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",n,!1),this.container.addEventListener("mouseover",i,!1),this.container.addEventListener("mouseout",r,!1),this.container.addEventListener("mouseenter",o,!1),this.container.addEventListener("mouseleave",a,!1),this.container.addEventListener("click",l,!1),this.container.addEventListener("dblclick",c,!1),this.container.addEventListener("wheel",u,!1),this.container.addEventListener("contextmenu",h,!1),this.container.addEventListener("touchstart",f,!1),this.container.addEventListener("touchend",m,!1),this.container.addEventListener("touchcancel",d,!1),this.container.addEventListener("touchmove",S,!1),this.container.addEventListener("pointerdown",k,!1),this.container.addEventListener("pointerup",_,!1),this.container.addEventListener("pointercancel",x,!1),this.container.addEventListener("pointermove",y,!1),this.hammer.on("pan",p),this.hammer.on("panstart",w),this.hammer.on("panmove",b),this.hammer.on("panend",B),this.hammer.on("pancancel",ct),this.hammer.on("panleft",O),this.hammer.on("panright",R),this.hammer.on("panup",A),this.hammer.on("pandown",D),this.hammer.on("pinch",L),this.hammer.on("press",X),this.hammer.on("rotate",it),this.hammer.on("swipe",K),this.hammer.on("swipeleft",W),this.hammer.on("swiperight",nt),this.hammer.on("swipeup",G),this.hammer.on("swipedown",j),this.hammer.on("tap",gt),document.addEventListener("pointerdown",mt,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",Z,!1),this.container.addEventListener("dragstart",V,!1),this.container.addEventListener("dragover",Qt,!1),this.container.addEventListener("dragenter",te,!1),this.container.addEventListener("dragend",Ot,!1),this.container.addEventListener("drop",ee,!1);const zt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",n,!1),this.container.removeEventListener("mouseover",i,!1),this.container.removeEventListener("mouseout",r,!1),this.container.removeEventListener("mouseenter",o,!1),this.container.removeEventListener("mouseleave",a,!1),this.container.removeEventListener("click",l,!1),this.container.removeEventListener("dblclick",c,!1),this.container.removeEventListener("wheel",u,!1),this.container.removeEventListener("contextmenu",h,!1),this.container.removeEventListener("touchstart",f,!1),this.container.removeEventListener("touchend",m,!1),this.container.removeEventListener("touchcancel",d,!1),this.container.removeEventListener("touchmove",S,!1),this.container.removeEventListener("pointerdown",k,!1),this.container.removeEventListener("pointerup",_,!1),this.container.removeEventListener("pointercancel",x),this.container.removeEventListener("pointermove",y,!1),this.hammer.off("pan",p),this.hammer.off("panstart",w),this.hammer.off("panmove",b),this.hammer.off("panend",B),this.hammer.off("pancancel",ct),this.hammer.off("panleft",O),this.hammer.off("panright",R),this.hammer.off("panup",A),this.hammer.off("pandown",D),this.hammer.off("pinch",L),this.hammer.off("press",X),this.hammer.off("rotate",it),this.hammer.off("swipe",K),this.hammer.off("swipeleft",W),this.hammer.off("swiperight",nt),this.hammer.off("swipeup",G),this.hammer.off("swipedown",j),this.hammer.off("tap",gt),document.removeEventListener("pointerdown",mt,!1),document.removeEventListener("touchstart",mt,!1),document.removeEventListener("mousedown",mt,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",Z,!1),this.container.removeEventListener("dragstart",V,!1),this.container.removeEventListener("dragover",Qt,!1),this.container.removeEventListener("dragenter",te,!1),this.container.removeEventListener("dragend",Ot,!1),this.container.removeEventListener("drop",ee,!1)};return this.addRemoves(zt),zt}registerTransitionEventListeners(){const t=i=>{this.emit("transitionstart",i)},e=i=>{this.emit("transitionend",i)};this.container.addEventListener("transitionstart",t,!1),this.container.addEventListener("transitionend",e,!1);const n=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",e,!1)};return this.addRemoves(n),n}registerAnimationEventListeners(){const t=i=>{this.emit("animationstart",i)},e=i=>{this.emit("animationend",i)};this.container.addEventListener("animationstart",t,!1),this.container.addEventListener("animationend",e,!1);const n=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",e,!1)};return this.addRemoves(n),n}registerResizeObserver(){let t;if(typeof ResizeObserver<"u"){const e=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});e.observe(this.container),t=()=>{e.unobserve(this.container)}}else{const e="orientationchange"in window?"orientationchange":"resize",n=i=>{const r=i.target.innerWidth,o=i.target.innerHeight;this.emit("resize",r,o)};window.addEventListener(e,n,!1),t=()=>{window.removeEventListener(e,n,!1)}}return this.addRemoves(t),t}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},n=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addRemoves(i),i}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullDowning",i.dStartY)},end:(n,i)=>{i.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullUping",i.dStartY)},end:(n,i)=>{i.dStartY>=e&&this.emit("pullUp")}})}setMousePoint(t){this.mousePoint.x=t.x,this.mousePoint.y=t.y,this.mousePoint.dx=typeof t.dx=="number"?t.dx:0,this.mousePoint.dy=typeof t.dy=="number"?t.dy:0,this.mousePoint.dStartX=typeof t.dStartX=="number"?t.dStartX:0,this.mousePoint.dStartY=typeof t.dStartY=="number"?t.dStartY:0}captureDrag(t){return this.captureDragUsePointer(t)}captureDragUsePointer(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",o),this.on("pointerUp",r),this.on("pointerCancel",r),n=ss(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},r=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",o),this.off("pointerUp",r),this.off("pointerCancel",r),n=ss(l,this.container);const c={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c={...n};n=ss(l,this.container);const u={...n,dx:n.x-(c.x||0),dy:n.y-(c.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("pointerDown",i);const a=()=>{this.off("pointerDown",i)};return this.addRemoves(a),a}captureDragUseMouse(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",o,!1),document.addEventListener("mouseup",r,!1),n=ss(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},r=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",o,!1),document.removeEventListener("mouseup",r,!1),n=ss(l,this.container);const c={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c={...n};n=ss(l,this.container);const u={...n,dx:n.x-(c.x||0),dy:n.y-(c.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("mouseDown",i);const a=()=>{this.off("mouseDown",i)};return this.addRemoves(a),a}captureDragUseTouch(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",o),this.on("touchEnd",r),this.on("touchCancel",r);const c=l.changedTouches[0];n=ss(c,this.container);const u={...n};e=u,this.setMousePoint(u),t?.start?.(c,u)},r=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",o),this.off("touchEnd",r),this.off("touchCancel",r);const c=l.changedTouches[0];n=ss(c,this.container);const u={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.end?.(c,u),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c=l.changedTouches[0],u={...n};n=ss(c,this.container);const h={...n,dx:n.x-(u.x||0),dy:n.y-(u.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(h),t?.move?.(c,h)};this.on("touchStart",i);const a=()=>{this.off("touchStart",i)};return this.addRemoves(a),a}}class da{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",e=>{e.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const e=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(n),setTimeout(()=>{e.width="15"}),setTimeout(()=>{e.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(e=>{t.play().then(()=>{t.autoplay=!0,e(!0)}).catch(()=>{da.setAutoPlayWhenClick(t),e(!1)})})}static setAutoPlayWhenClick(t){function e(){t.autoplay=!0,t.play(),document.removeEventListener("click",e),document.removeEventListener("touchend",e)}document.addEventListener("click",e),document.addEventListener("touchend",e)}}class Tg extends ei{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=wm(this.source);if(t===0){this.emit("finish");return}let e,n,i=hu(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=hu(this.source,r),this.raw+=n,n&&this.step(n,i,e);i&&this.step(i,void 0,n),this.emit("finish")}step(t,e,n){t==`
44
+ `;return function(){var tt=new Error("get-stack-trace"),dt=tt&&tt.stack?tt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ft=t.console&&(t.console.warn||t.console.log);return Ft&&Ft.call(t.console,N,dt),g.apply(this,arguments)}}var S;typeof Object.assign!="function"?S=function(v){if(v===i||v===null)throw new TypeError("Cannot convert undefined or null to object");for(var E=Object(v),N=1;N<arguments.length;N++){var tt=arguments[N];if(tt!==i&&tt!==null)for(var dt in tt)tt.hasOwnProperty(dt)&&(E[dt]=tt[dt])}return E}:S=Object.assign;var k=d(function(v,E,N){for(var tt=Object.keys(E),dt=0;dt<tt.length;)(!N||N&&v[tt[dt]]===i)&&(v[tt[dt]]=E[tt[dt]]),dt++;return v},"extend","Use `assign`."),_=d(function(v,E){return k(v,E,!0)},"merge","Use `assign`.");function x(g,v,E){var N=v.prototype,tt;tt=g.prototype=Object.create(N),tt.constructor=g,tt._super=N,E&&S(tt,E)}function y(g,v){return function(){return g.apply(v,arguments)}}function p(g,v){return typeof g==a?g.apply(v&&v[0]||i,v):g}function w(g,v){return g===i?v:g}function b(g,v,E){m(R(v),function(N){g.addEventListener(N,E,!1)})}function B(g,v,E){m(R(v),function(N){g.removeEventListener(N,E,!1)})}function ct(g,v){for(;g;){if(g==v)return!0;g=g.parentNode}return!1}function O(g,v){return g.indexOf(v)>-1}function R(g){return g.trim().split(/\s+/g)}function A(g,v,E){if(g.indexOf&&!E)return g.indexOf(v);for(var N=0;N<g.length;){if(E&&g[N][E]==v||!E&&g[N]===v)return N;N++}return-1}function D(g){return Array.prototype.slice.call(g,0)}function L(g,v,E){for(var N=[],tt=[],dt=0;dt<g.length;){var Ft=v?g[dt][v]:g[dt];A(tt,Ft)<0&&N.push(g[dt]),tt[dt]=Ft,dt++}return E&&(v?N=N.sort(function(be,Ee){return be[v]>Ee[v]}):N=N.sort()),N}function X(g,v){for(var E,N,tt=v[0].toUpperCase()+v.slice(1),dt=0;dt<r.length;){if(E=r[dt],N=E?E+tt:v,N in g)return N;dt++}return i}var it=1;function K(){return it++}function W(g){var v=g.ownerDocument||g;return v.defaultView||v.parentWindow||t}var nt=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in t,j=X(t,"PointerEvent")!==i,gt=G&&nt.test(navigator.userAgent),mt="touch",Z="pen",V="mouse",Qt="kinect",ee=25,Ot=1,se=2,Bt=4,Y=8,Fe=1,ze=2,Ae=4,C=8,I=16,$=ze|Ae,H=C|I,q=$|H,et=["x","y"],ot=["clientX","clientY"];function Q(g,v){var E=this;this.manager=g,this.callback=v,this.element=g.element,this.target=g.options.inputTarget,this.domHandler=function(N){p(g.options.enable,[g])&&E.handler(N)},this.init()}Q.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(W(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(W(this.element),this.evWin,this.domHandler)}};function st(g){var v,E=g.options.inputClass;return E?v=E:j?v=Ma:gt?v=Or:G?v=Na:v=ke,new v(g,J)}function J(g,v,E){var N=E.pointers.length,tt=E.changedPointers.length,dt=v&Ot&&N-tt===0,Ft=v&(Bt|Y)&&N-tt===0;E.isFirst=!!dt,E.isFinal=!!Ft,dt&&(g.session={}),E.eventType=v,ht(g,E),g.emit("hammer.input",E),g.recognize(E),g.session.prevInput=E}function ht(g,v){var E=g.session,N=v.pointers,tt=N.length;E.firstInput||(E.firstInput=Ct(v)),tt>1&&!E.firstMultiple?E.firstMultiple=Ct(v):tt===1&&(E.firstMultiple=!1);var dt=E.firstInput,Ft=E.firstMultiple,de=Ft?Ft.center:dt.center,be=v.center=Rt(N);v.timeStamp=u(),v.deltaTime=v.timeStamp-dt.timeStamp,v.angle=Se(de,be),v.distance=ne(de,be),vt(E,v),v.offsetDirection=Ut(v.deltaX,v.deltaY);var Ee=zt(v.deltaTime,v.deltaX,v.deltaY);v.overallVelocityX=Ee.x,v.overallVelocityY=Ee.y,v.overallVelocity=c(Ee.x)>c(Ee.y)?Ee.x:Ee.y,v.scale=Ft?kr(Ft.pointers,N):1,v.rotation=Ft?Vs(Ft.pointers,N):0,v.maxPointers=E.prevInput?v.pointers.length>E.prevInput.maxPointers?v.pointers.length:E.prevInput.maxPointers:v.pointers.length,yt(E,v);var rs=g.element;ct(v.srcEvent.target,rs)&&(rs=v.srcEvent.target),v.target=rs}function vt(g,v){var E=v.center,N=g.offsetDelta||{},tt=g.prevDelta||{},dt=g.prevInput||{};(v.eventType===Ot||dt.eventType===Bt)&&(tt=g.prevDelta={x:dt.deltaX||0,y:dt.deltaY||0},N=g.offsetDelta={x:E.x,y:E.y}),v.deltaX=tt.x+(E.x-N.x),v.deltaY=tt.y+(E.y-N.y)}function yt(g,v){var E=g.lastInterval||v,N=v.timeStamp-E.timeStamp,tt,dt,Ft,de;if(v.eventType!=Y&&(N>ee||E.velocity===i)){var be=v.deltaX-E.deltaX,Ee=v.deltaY-E.deltaY,rs=zt(N,be,Ee);dt=rs.x,Ft=rs.y,tt=c(rs.x)>c(rs.y)?rs.x:rs.y,de=Ut(be,Ee),g.lastInterval=v}else tt=E.velocity,dt=E.velocityX,Ft=E.velocityY,de=E.direction;v.velocity=tt,v.velocityX=dt,v.velocityY=Ft,v.direction=de}function Ct(g){for(var v=[],E=0;E<g.pointers.length;)v[E]={clientX:l(g.pointers[E].clientX),clientY:l(g.pointers[E].clientY)},E++;return{timeStamp:u(),pointers:v,center:Rt(v),deltaX:g.deltaX,deltaY:g.deltaY}}function Rt(g){var v=g.length;if(v===1)return{x:l(g[0].clientX),y:l(g[0].clientY)};for(var E=0,N=0,tt=0;tt<v;)E+=g[tt].clientX,N+=g[tt].clientY,tt++;return{x:l(E/v),y:l(N/v)}}function zt(g,v,E){return{x:v/g||0,y:E/g||0}}function Ut(g,v){return g===v?Fe:c(g)>=c(v)?g<0?ze:Ae:v<0?C:I}function ne(g,v,E){E||(E=et);var N=v[E[0]]-g[E[0]],tt=v[E[1]]-g[E[1]];return Math.sqrt(N*N+tt*tt)}function Se(g,v,E){E||(E=et);var N=v[E[0]]-g[E[0]],tt=v[E[1]]-g[E[1]];return Math.atan2(tt,N)*180/Math.PI}function Vs(g,v){return Se(v[1],v[0],ot)+Se(g[1],g[0],ot)}function kr(g,v){return ne(v[0],v[1],ot)/ne(g[0],g[1],ot)}var ln={mousedown:Ot,mousemove:se,mouseup:Bt},Er="mousedown",_e="mousemove mouseup";function ke(){this.evEl=Er,this.evWin=_e,this.pressed=!1,Q.apply(this,arguments)}x(ke,Q,{handler:function(v){var E=ln[v.type];E&Ot&&v.button===0&&(this.pressed=!0),E&se&&v.which!==1&&(E=Bt),this.pressed&&(E&Bt&&(this.pressed=!1),this.callback(this.manager,E,{pointers:[v],changedPointers:[v],pointerType:V,srcEvent:v}))}});var Pr={pointerdown:Ot,pointermove:se,pointerup:Bt,pointercancel:Y,pointerout:Y},E_={2:mt,3:Z,4:V,5:Qt},dh="pointerdown",ph="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(dh="MSPointerDown",ph="MSPointerMove MSPointerUp MSPointerCancel");function Ma(){this.evEl=dh,this.evWin=ph,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}x(Ma,Q,{handler:function(v){var E=this.store,N=!1,tt=v.type.toLowerCase().replace("ms",""),dt=Pr[tt],Ft=E_[v.pointerType]||v.pointerType,de=Ft==mt,be=A(E,v.pointerId,"pointerId");dt&Ot&&(v.button===0||de)?be<0&&(E.push(v),be=E.length-1):dt&(Bt|Y)&&(N=!0),!(be<0)&&(E[be]=v,this.callback(this.manager,dt,{pointers:E,changedPointers:[v],pointerType:Ft,srcEvent:v}),N&&E.splice(be,1))}});var P_={touchstart:Ot,touchmove:se,touchend:Bt,touchcancel:Y},O_="touchstart",I_="touchstart touchmove touchend touchcancel";function mh(){this.evTarget=O_,this.evWin=I_,this.started=!1,Q.apply(this,arguments)}x(mh,Q,{handler:function(v){var E=P_[v.type];if(E===Ot&&(this.started=!0),!!this.started){var N=D_.call(this,v,E);E&(Bt|Y)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:mt,srcEvent:v})}}});function D_(g,v){var E=D(g.touches),N=D(g.changedTouches);return v&(Bt|Y)&&(E=L(E.concat(N),"identifier",!0)),[E,N]}var R_={touchstart:Ot,touchmove:se,touchend:Bt,touchcancel:Y},A_="touchstart touchmove touchend touchcancel";function Or(){this.evTarget=A_,this.targetIds={},Q.apply(this,arguments)}x(Or,Q,{handler:function(v){var E=R_[v.type],N=M_.call(this,v,E);N&&this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:mt,srcEvent:v})}});function M_(g,v){var E=D(g.touches),N=this.targetIds;if(v&(Ot|se)&&E.length===1)return N[E[0].identifier]=!0,[E,E];var tt,dt,Ft=D(g.changedTouches),de=[],be=this.target;if(dt=E.filter(function(Ee){return ct(Ee.target,be)}),v===Ot)for(tt=0;tt<dt.length;)N[dt[tt].identifier]=!0,tt++;for(tt=0;tt<Ft.length;)N[Ft[tt].identifier]&&de.push(Ft[tt]),v&(Bt|Y)&&delete N[Ft[tt].identifier],tt++;if(de.length)return[L(dt.concat(de),"identifier",!0),de]}var N_=2500,gh=25;function Na(){Q.apply(this,arguments);var g=y(this.handler,this);this.touch=new Or(this.manager,g),this.mouse=new ke(this.manager,g),this.primaryTouch=null,this.lastTouches=[]}x(Na,Q,{handler:function(v,E,N){var tt=N.pointerType==mt,dt=N.pointerType==V;if(!(dt&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(tt)F_.call(this,E,N);else if(dt&&L_.call(this,N))return;this.callback(v,E,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function F_(g,v){g&Ot?(this.primaryTouch=v.changedPointers[0].identifier,yh.call(this,v)):g&(Bt|Y)&&yh.call(this,v)}function yh(g){var v=g.changedPointers[0];if(v.identifier===this.primaryTouch){var E={x:v.clientX,y:v.clientY};this.lastTouches.push(E);var N=this.lastTouches,tt=function(){var dt=N.indexOf(E);dt>-1&&N.splice(dt,1)};setTimeout(tt,N_)}}function L_(g){for(var v=g.srcEvent.clientX,E=g.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var tt=this.lastTouches[N],dt=Math.abs(v-tt.x),Ft=Math.abs(E-tt.y);if(dt<=gh&&Ft<=gh)return!0}return!1}var vh=X(o.style,"touchAction"),_h=vh!==i,bh="compute",xh="auto",Fa="manipulation",cn="none",pi="pan-x",mi="pan-y",Ir=V_();function La(g,v){this.manager=g,this.set(v)}La.prototype={set:function(g){g==bh&&(g=this.compute()),_h&&this.manager.element.style&&Ir[g]&&(this.manager.element.style[vh]=g),this.actions=g.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var g=[];return m(this.manager.recognizers,function(v){p(v.options.enable,[v])&&(g=g.concat(v.getTouchAction()))}),$_(g.join(" "))},preventDefaults:function(g){var v=g.srcEvent,E=g.offsetDirection;if(this.manager.session.prevented){v.preventDefault();return}var N=this.actions,tt=O(N,cn)&&!Ir[cn],dt=O(N,mi)&&!Ir[mi],Ft=O(N,pi)&&!Ir[pi];if(tt){var de=g.pointers.length===1,be=g.distance<2,Ee=g.deltaTime<250;if(de&&be&&Ee)return}if(!(Ft&&dt)&&(tt||dt&&E&$||Ft&&E&H))return this.preventSrc(v)},preventSrc:function(g){this.manager.session.prevented=!0,g.preventDefault()}};function $_(g){if(O(g,cn))return cn;var v=O(g,pi),E=O(g,mi);return v&&E?cn:v||E?v?pi:mi:O(g,Fa)?Fa:xh}function V_(){if(!_h)return!1;var g={},v=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(E){g[E]=v?t.CSS.supports("touch-action",E):!0}),g}var Dr=1,Be=2,kn=4,zs=8,ms=zs,gi=16,is=32;function gs(g){this.options=S({},this.defaults,g||{}),this.id=K(),this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Dr,this.simultaneous={},this.requireFail=[]}gs.prototype={defaults:{},set:function(g){return S(this.options,g),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(g){if(f(g,"recognizeWith",this))return this;var v=this.simultaneous;return g=Rr(g,this),v[g.id]||(v[g.id]=g,g.recognizeWith(this)),this},dropRecognizeWith:function(g){return f(g,"dropRecognizeWith",this)?this:(g=Rr(g,this),delete this.simultaneous[g.id],this)},requireFailure:function(g){if(f(g,"requireFailure",this))return this;var v=this.requireFail;return g=Rr(g,this),A(v,g)===-1&&(v.push(g),g.requireFailure(this)),this},dropRequireFailure:function(g){if(f(g,"dropRequireFailure",this))return this;g=Rr(g,this);var v=A(this.requireFail,g);return v>-1&&this.requireFail.splice(v,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(g){return!!this.simultaneous[g.id]},emit:function(g){var v=this,E=this.state;function N(tt){v.manager.emit(tt,g)}E<zs&&N(v.options.event+wh(E)),N(v.options.event),g.additionalEvent&&N(g.additionalEvent),E>=zs&&N(v.options.event+wh(E))},tryEmit:function(g){if(this.canEmit())return this.emit(g);this.state=is},canEmit:function(){for(var g=0;g<this.requireFail.length;){if(!(this.requireFail[g].state&(is|Dr)))return!1;g++}return!0},recognize:function(g){var v=S({},g);if(!p(this.options.enable,[this,v])){this.reset(),this.state=is;return}this.state&(ms|gi|is)&&(this.state=Dr),this.state=this.process(v),this.state&(Be|kn|zs|gi)&&this.tryEmit(v)},process:function(g){},getTouchAction:function(){},reset:function(){}};function wh(g){return g&gi?"cancel":g&zs?"end":g&kn?"move":g&Be?"start":""}function Ch(g){return g==I?"down":g==C?"up":g==ze?"left":g==Ae?"right":""}function Rr(g,v){var E=v.manager;return E?E.get(g):g}function We(){gs.apply(this,arguments)}x(We,gs,{defaults:{pointers:1},attrTest:function(g){var v=this.options.pointers;return v===0||g.pointers.length===v},process:function(g){var v=this.state,E=g.eventType,N=v&(Be|kn),tt=this.attrTest(g);return N&&(E&Y||!tt)?v|gi:N||tt?E&Bt?v|zs:v&Be?v|kn:Be:is}});function Ar(){We.apply(this,arguments),this.pX=null,this.pY=null}x(Ar,We,{defaults:{event:"pan",threshold:10,pointers:1,direction:q},getTouchAction:function(){var g=this.options.direction,v=[];return g&$&&v.push(mi),g&H&&v.push(pi),v},directionTest:function(g){var v=this.options,E=!0,N=g.distance,tt=g.direction,dt=g.deltaX,Ft=g.deltaY;return tt&v.direction||(v.direction&$?(tt=dt===0?Fe:dt<0?ze:Ae,E=dt!=this.pX,N=Math.abs(g.deltaX)):(tt=Ft===0?Fe:Ft<0?C:I,E=Ft!=this.pY,N=Math.abs(g.deltaY))),g.direction=tt,E&&N>v.threshold&&tt&v.direction},attrTest:function(g){return We.prototype.attrTest.call(this,g)&&(this.state&Be||!(this.state&Be)&&this.directionTest(g))},emit:function(g){this.pX=g.deltaX,this.pY=g.deltaY;var v=Ch(g.direction);v&&(g.additionalEvent=this.options.event+v),this._super.emit.call(this,g)}});function $a(){We.apply(this,arguments)}x($a,We,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[cn]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.scale-1)>this.options.threshold||this.state&Be)},emit:function(g){if(g.scale!==1){var v=g.scale<1?"in":"out";g.additionalEvent=this.options.event+v}this._super.emit.call(this,g)}});function Va(){gs.apply(this,arguments),this._timer=null,this._input=null}x(Va,gs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[xh]},process:function(g){var v=this.options,E=g.pointers.length===v.pointers,N=g.distance<v.threshold,tt=g.deltaTime>v.time;if(this._input=g,!N||!E||g.eventType&(Bt|Y)&&!tt)this.reset();else if(g.eventType&Ot)this.reset(),this._timer=h(function(){this.state=ms,this.tryEmit()},v.time,this);else if(g.eventType&Bt)return ms;return is},reset:function(){clearTimeout(this._timer)},emit:function(g){this.state===ms&&(g&&g.eventType&Bt?this.manager.emit(this.options.event+"up",g):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function za(){We.apply(this,arguments)}x(za,We,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[cn]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.rotation)>this.options.threshold||this.state&Be)}});function Ba(){We.apply(this,arguments)}x(Ba,We,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|H,pointers:1},getTouchAction:function(){return Ar.prototype.getTouchAction.call(this)},attrTest:function(g){var v=this.options.direction,E;return v&($|H)?E=g.overallVelocity:v&$?E=g.overallVelocityX:v&H&&(E=g.overallVelocityY),this._super.attrTest.call(this,g)&&v&g.offsetDirection&&g.distance>this.options.threshold&&g.maxPointers==this.options.pointers&&c(E)>this.options.velocity&&g.eventType&Bt},emit:function(g){var v=Ch(g.offsetDirection);v&&this.manager.emit(this.options.event+v,g),this.manager.emit(this.options.event,g)}});function Mr(){gs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}x(Mr,gs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Fa]},process:function(g){var v=this.options,E=g.pointers.length===v.pointers,N=g.distance<v.threshold,tt=g.deltaTime<v.time;if(this.reset(),g.eventType&Ot&&this.count===0)return this.failTimeout();if(N&&tt&&E){if(g.eventType!=Bt)return this.failTimeout();var dt=this.pTime?g.timeStamp-this.pTime<v.interval:!0,Ft=!this.pCenter||ne(this.pCenter,g.center)<v.posThreshold;this.pTime=g.timeStamp,this.pCenter=g.center,!Ft||!dt?this.count=1:this.count+=1,this._input=g;var de=this.count%v.taps;if(de===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=ms,this.tryEmit()},v.interval,this),Be):ms}return is},failTimeout:function(){return this._timer=h(function(){this.state=is},this.options.interval,this),is},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ms&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function ys(g,v){return v=v||{},v.recognizers=w(v.recognizers,ys.defaults.preset),new Ga(g,v)}ys.VERSION="2.0.7",ys.defaults={domEvents:!1,touchAction:bh,enable:!0,inputTarget:null,inputClass:null,preset:[[za,{enable:!1}],[$a,{enable:!1},["rotate"]],[Ba,{direction:$}],[Ar,{direction:$},["swipe"]],[Mr],[Mr,{event:"doubletap",taps:2},["tap"]],[Va]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var z_=1,Th=2;function Ga(g,v){this.options=S({},ys.defaults,v||{}),this.options.inputTarget=this.options.inputTarget||g,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=g,this.input=st(this),this.touchAction=new La(this,this.options.touchAction),Sh(this,!0),m(this.options.recognizers,function(E){var N=this.add(new E[0](E[1]));E[2]&&N.recognizeWith(E[2]),E[3]&&N.requireFailure(E[3])},this)}Ga.prototype={set:function(g){return S(this.options,g),g.touchAction&&this.touchAction.update(),g.inputTarget&&(this.input.destroy(),this.input.target=g.inputTarget,this.input.init()),this},stop:function(g){this.session.stopped=g?Th:z_},recognize:function(g){var v=this.session;if(!v.stopped){this.touchAction.preventDefaults(g);var E,N=this.recognizers,tt=v.curRecognizer;(!tt||tt&&tt.state&ms)&&(tt=v.curRecognizer=null);for(var dt=0;dt<N.length;)E=N[dt],v.stopped!==Th&&(!tt||E==tt||E.canRecognizeWith(tt))?E.recognize(g):E.reset(),!tt&&E.state&(Be|kn|zs)&&(tt=v.curRecognizer=E),dt++}},get:function(g){if(g instanceof gs)return g;for(var v=this.recognizers,E=0;E<v.length;E++)if(v[E].options.event==g)return v[E];return null},add:function(g){if(f(g,"add",this))return this;var v=this.get(g.options.event);return v&&this.remove(v),this.recognizers.push(g),g.manager=this,this.touchAction.update(),g},remove:function(g){if(f(g,"remove",this))return this;if(g=this.get(g),g){var v=this.recognizers,E=A(v,g);E!==-1&&(v.splice(E,1),this.touchAction.update())}return this},on:function(g,v){if(g!==i&&v!==i){var E=this.handlers;return m(R(g),function(N){E[N]=E[N]||[],E[N].push(v)}),this}},off:function(g,v){if(g!==i){var E=this.handlers;return m(R(g),function(N){v?E[N]&&E[N].splice(A(E[N],v),1):delete E[N]}),this}},emit:function(g,v){this.options.domEvents&&B_(g,v);var E=this.handlers[g]&&this.handlers[g].slice();if(!(!E||!E.length)){v.type=g,v.preventDefault=function(){v.srcEvent.preventDefault()};for(var N=0;N<E.length;)E[N](v),N++}},destroy:function(){this.element&&Sh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Sh(g,v){var E=g.element;if(E.style){var N;m(g.options.cssProps,function(tt,dt){N=X(E.style,dt),v?(g.oldCssProps[N]=E.style[N],E.style[N]=tt):E.style[N]=g.oldCssProps[N]||""}),v||(g.oldCssProps={})}}function B_(g,v){var E=e.createEvent("Event");E.initEvent(g,!0,!0),E.gesture=v,v.target.dispatchEvent(E)}S(ys,{INPUT_START:Ot,INPUT_MOVE:se,INPUT_END:Bt,INPUT_CANCEL:Y,STATE_POSSIBLE:Dr,STATE_BEGAN:Be,STATE_CHANGED:kn,STATE_ENDED:zs,STATE_RECOGNIZED:ms,STATE_CANCELLED:gi,STATE_FAILED:is,DIRECTION_NONE:Fe,DIRECTION_LEFT:ze,DIRECTION_RIGHT:Ae,DIRECTION_UP:C,DIRECTION_DOWN:I,DIRECTION_HORIZONTAL:$,DIRECTION_VERTICAL:H,DIRECTION_ALL:q,Manager:Ga,Input:Q,TouchAction:La,TouchInput:Or,MouseInput:ke,PointerEventInput:Ma,TouchMouseInput:Na,SingleTouchInput:mh,Recognizer:gs,AttrRecognizer:We,Tap:Mr,Pan:Ar,Swipe:Ba,Pinch:$a,Rotate:za,Press:Va,on:b,off:B,each:m,merge:_,extend:k,assign:S,inherit:x,bindFn:y,prefixed:X});var G_=typeof t<"u"?t:typeof self<"u"?self:{};G_.Hammer=ys,typeof i=="function"&&i.amd?i(function(){return ys}):s.exports?s.exports=ys:t[n]=ys})(window,document,"Hammer")})($u);var _g=$u.exports;const bg=Bm(_g);function ha(){const s=document.documentElement;return{clientWidth:s.clientWidth,clientHeight:s.clientHeight,clientTop:s.clientTop,clientLeft:s.clientLeft,scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,offsetTop:s.offsetTop,offsetLeft:s.offsetLeft,offsetParent:s.offsetParent}}function fa(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function xg(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=ha();return{x:e+r,y:t+o,width:n,height:i}}function wg(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=ha(),n=e-s;return n<=0?0:t/n*100}function Cg(s){if("center"in s)return s.center;if(typeof s.pageX=="number"&&typeof s.pageY=="number")return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=ha();return{x:s.clientX+t,y:s.clientY+e}}function ss(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=Cg(s),n=xg(t||s.target);return{x:e.x-n.x,y:e.y-n.y}}class Ls extends ei{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,e=!0,n){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new bg(this.container),e&&this.start(n)}emitDebounce=Fm((t,...e)=>super.emit(t,...e),50);emit(t,...e){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...e);break;default:super.emit(t,...e);break}return this}start(t){this.registerMouseEventListeners(),this.registerTransitionEventListeners(),this.registerAnimationEventListeners(),this.registerResizeObserver(),this.registerElementDisplayInParent(),t&&t.forEach(e=>{this.addRemoves(e())}),this.on("pointerMove",e=>{this.setMousePoint(ss(e,this.container))})}destroy(){this.removes.forEach(t=>t()),this.removes=[],this.removeAllListeners()}restart(){this.destroy(),this.start()}addRemoves(t){this.removes.push(t)}registerMouseEventListeners(){const t=Y=>{this.emit("mouseDown",Y)},e=Y=>{this.emit("mouseUp",Y)},n=Y=>{this.emit("mouseMove",Y)},i=Y=>{this.emit("mouseOver",Y)},r=Y=>{this.emit("mouseOut",Y)},o=Y=>{this.emit("mouseEnter",Y)},a=Y=>{this.emit("mouseLeave",Y)},l=Y=>{this.emit("mouseClick",Y)},c=Y=>{this.emit("mouseDoubleClick",Y)},u=Y=>{this.emit("mouseWheel",Y)},h=Y=>{this.emit("mouseContextMenu",Y)},f=Y=>{this.emit("touchStart",Y)},m=Y=>{this.emit("touchEnd",Y)},d=Y=>{this.emit("touchCancel",Y)},S=Y=>{this.emit("touchMove",Y)},k=Y=>{this.emit("pointerDown",Y)},_=Y=>{this.emit("pointerUp",Y)},x=Y=>{this.emit("pointerCancel",Y)},y=Y=>{this.emit("pointerMove",Y)},p=Y=>{this.emit("pan",Y)},w=Y=>{this.emit("panStart",Y)},b=Y=>{this.emit("panMove",Y)},B=Y=>{this.emit("panEnd",Y)},ct=Y=>{this.emit("panCancel",Y)},O=Y=>{this.emit("panLeft",Y)},R=Y=>{this.emit("panRight",Y)},A=Y=>{this.emit("panUp",Y)},D=Y=>{this.emit("panDown",Y)},L=Y=>{this.emit("pinch",Y)},X=Y=>{this.emit("press",Y)},it=Y=>{this.emit("rotate",Y)},K=Y=>{this.emit("swipe",Y)},W=Y=>{this.emit("swipeLeft",Y)},nt=Y=>{this.emit("swipeRight",Y)},G=Y=>{this.emit("swipeUp",Y)},j=Y=>{this.emit("swipeDown",Y)},gt=Y=>{this.emit("tap",Y)},mt=Y=>{!Y.target||this.container==Y.target||this.container.contains(Y.target)||this.emit("tapOutSide",Y)},Z=Y=>{this.emit("inputChange",Y,this.container.files)},V=Y=>{this.emit("dragstart",Y)},Qt=Y=>{Y.dataTransfer&&(Y.dataTransfer.dropEffect="copy"),this.emit("dragover",Y)},ee=Y=>{this.emit("dragenter",Y)},Ot=Y=>{this.emit("dragend",Y)},se=Y=>{Y.dataTransfer,this.emit("drop",Y,Y.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",n,!1),this.container.addEventListener("mouseover",i,!1),this.container.addEventListener("mouseout",r,!1),this.container.addEventListener("mouseenter",o,!1),this.container.addEventListener("mouseleave",a,!1),this.container.addEventListener("click",l,!1),this.container.addEventListener("dblclick",c,!1),this.container.addEventListener("wheel",u,!1),this.container.addEventListener("contextmenu",h,!1),this.container.addEventListener("touchstart",f,!1),this.container.addEventListener("touchend",m,!1),this.container.addEventListener("touchcancel",d,!1),this.container.addEventListener("touchmove",S,!1),this.container.addEventListener("pointerdown",k,!1),this.container.addEventListener("pointerup",_,!1),this.container.addEventListener("pointercancel",x,!1),this.container.addEventListener("pointermove",y,!1),this.hammer.on("pan",p),this.hammer.on("panstart",w),this.hammer.on("panmove",b),this.hammer.on("panend",B),this.hammer.on("pancancel",ct),this.hammer.on("panleft",O),this.hammer.on("panright",R),this.hammer.on("panup",A),this.hammer.on("pandown",D),this.hammer.on("pinch",L),this.hammer.on("press",X),this.hammer.on("rotate",it),this.hammer.on("swipe",K),this.hammer.on("swipeleft",W),this.hammer.on("swiperight",nt),this.hammer.on("swipeup",G),this.hammer.on("swipedown",j),this.hammer.on("tap",gt),document.addEventListener("pointerdown",mt,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",Z,!1),this.container.addEventListener("dragstart",V,!1),this.container.addEventListener("dragover",Qt,!1),this.container.addEventListener("dragenter",ee,!1),this.container.addEventListener("dragend",Ot,!1),this.container.addEventListener("drop",se,!1);const Bt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",n,!1),this.container.removeEventListener("mouseover",i,!1),this.container.removeEventListener("mouseout",r,!1),this.container.removeEventListener("mouseenter",o,!1),this.container.removeEventListener("mouseleave",a,!1),this.container.removeEventListener("click",l,!1),this.container.removeEventListener("dblclick",c,!1),this.container.removeEventListener("wheel",u,!1),this.container.removeEventListener("contextmenu",h,!1),this.container.removeEventListener("touchstart",f,!1),this.container.removeEventListener("touchend",m,!1),this.container.removeEventListener("touchcancel",d,!1),this.container.removeEventListener("touchmove",S,!1),this.container.removeEventListener("pointerdown",k,!1),this.container.removeEventListener("pointerup",_,!1),this.container.removeEventListener("pointercancel",x),this.container.removeEventListener("pointermove",y,!1),this.hammer.off("pan",p),this.hammer.off("panstart",w),this.hammer.off("panmove",b),this.hammer.off("panend",B),this.hammer.off("pancancel",ct),this.hammer.off("panleft",O),this.hammer.off("panright",R),this.hammer.off("panup",A),this.hammer.off("pandown",D),this.hammer.off("pinch",L),this.hammer.off("press",X),this.hammer.off("rotate",it),this.hammer.off("swipe",K),this.hammer.off("swipeleft",W),this.hammer.off("swiperight",nt),this.hammer.off("swipeup",G),this.hammer.off("swipedown",j),this.hammer.off("tap",gt),document.removeEventListener("pointerdown",mt,!1),document.removeEventListener("touchstart",mt,!1),document.removeEventListener("mousedown",mt,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",Z,!1),this.container.removeEventListener("dragstart",V,!1),this.container.removeEventListener("dragover",Qt,!1),this.container.removeEventListener("dragenter",ee,!1),this.container.removeEventListener("dragend",Ot,!1),this.container.removeEventListener("drop",se,!1)};return this.addRemoves(Bt),Bt}registerTransitionEventListeners(){const t=i=>{this.emit("transitionstart",i)},e=i=>{this.emit("transitionend",i)};this.container.addEventListener("transitionstart",t,!1),this.container.addEventListener("transitionend",e,!1);const n=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",e,!1)};return this.addRemoves(n),n}registerAnimationEventListeners(){const t=i=>{this.emit("animationstart",i)},e=i=>{this.emit("animationend",i)};this.container.addEventListener("animationstart",t,!1),this.container.addEventListener("animationend",e,!1);const n=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",e,!1)};return this.addRemoves(n),n}registerResizeObserver(){let t;if(typeof ResizeObserver<"u"){const e=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});e.observe(this.container),t=()=>{e.unobserve(this.container)}}else{const e="orientationchange"in window?"orientationchange":"resize",n=i=>{const r=i.target.innerWidth,o=i.target.innerHeight;this.emit("resize",r,o)};window.addEventListener(e,n,!1),t=()=>{window.removeEventListener(e,n,!1)}}return this.addRemoves(t),t}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},n=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addRemoves(i),i}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullDowning",i.dStartY)},end:(n,i)=>{i.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullUping",i.dStartY)},end:(n,i)=>{i.dStartY>=e&&this.emit("pullUp")}})}setMousePoint(t){this.mousePoint.x=t.x,this.mousePoint.y=t.y,this.mousePoint.dx=typeof t.dx=="number"?t.dx:0,this.mousePoint.dy=typeof t.dy=="number"?t.dy:0,this.mousePoint.dStartX=typeof t.dStartX=="number"?t.dStartX:0,this.mousePoint.dStartY=typeof t.dStartY=="number"?t.dStartY:0}captureDrag(t){return this.captureDragUsePointer(t)}captureDragUsePointer(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",o),this.on("pointerUp",r),this.on("pointerCancel",r),n=ss(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},r=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",o),this.off("pointerUp",r),this.off("pointerCancel",r),n=ss(l,this.container);const c={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c={...n};n=ss(l,this.container);const u={...n,dx:n.x-(c.x||0),dy:n.y-(c.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("pointerDown",i);const a=()=>{this.off("pointerDown",i)};return this.addRemoves(a),a}captureDragUseMouse(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",o,!1),document.addEventListener("mouseup",r,!1),n=ss(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},r=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",o,!1),document.removeEventListener("mouseup",r,!1),n=ss(l,this.container);const c={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c={...n};n=ss(l,this.container);const u={...n,dx:n.x-(c.x||0),dy:n.y-(c.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("mouseDown",i);const a=()=>{this.off("mouseDown",i)};return this.addRemoves(a),a}captureDragUseTouch(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",o),this.on("touchEnd",r),this.on("touchCancel",r);const c=l.changedTouches[0];n=ss(c,this.container);const u={...n};e=u,this.setMousePoint(u),t?.start?.(c,u)},r=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",o),this.off("touchEnd",r),this.off("touchCancel",r);const c=l.changedTouches[0];n=ss(c,this.container);const u={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.end?.(c,u),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c=l.changedTouches[0],u={...n};n=ss(c,this.container);const h={...n,dx:n.x-(u.x||0),dy:n.y-(u.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(h),t?.move?.(c,h)};this.on("touchStart",i);const a=()=>{this.off("touchStart",i)};return this.addRemoves(a),a}}class da{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",e=>{e.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const e=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(n),setTimeout(()=>{e.width="15"}),setTimeout(()=>{e.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(e=>{t.play().then(()=>{t.autoplay=!0,e(!0)}).catch(()=>{da.setAutoPlayWhenClick(t),e(!1)})})}static setAutoPlayWhenClick(t){function e(){t.autoplay=!0,t.play(),document.removeEventListener("click",e),document.removeEventListener("touchend",e)}document.addEventListener("click",e),document.addEventListener("touchend",e)}}class Tg extends ei{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=wm(this.source);if(t===0){this.emit("finish");return}let e,n,i=hu(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=hu(this.source,r),this.raw+=n,n&&this.step(n,i,e);i&&this.step(i,void 0,n),this.emit("finish")}step(t,e,n){t==`
45
45
  `&&this.emit("newline"),this.act(t,e,n)}act(t,e,n){switch(this.mode){case"text":switch(t){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+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t;break}break;case"entity":fs("whitespace",t)?(this.textchunk+=Vu(this.entity),this.mode="text"):t==";"?(this.textchunk+=Vu(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(n=="!"&&t=="-"&&e=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&t=="["){this.mode="cdata",this.textchunk="";break}if(t==">"||t=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=t;break;case"cdata":if(n=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,n)),this.textchunk+=t;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":e==">"||t=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":t=="-"&&n=="-"&&e==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):t=="eof"?this.emit("comment",this.textchunk):this.textchunk+=t;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(t=="?"&&e==">"){this.mode="declaration end";break}t=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=t;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(t=="eof"){this.emit("text","<");break}if(!fs("whitespace",t)){if(this.mode="tag name",t=="/"){this.mode="close tag name start";break}else if(t=="!"){this.mode="special",this.textchunk="";break}else if(t=="?"){this.mode="declaration";break}this.act(t,e,n)}break;case"close tag name start":fs("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(fs("whitespace",t))this.tagname=this.nodename;else switch(t){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=t);break}break;case"tag name":if(fs("whitespace",t))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(t){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=e,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=t;break}break;case"attr start":fs("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(fs("whitespace",t)||t=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(t){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+=t;break}break;case"attr value start":if(!fs("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,n)}break;case"attr value":if(fs("whitespace",t)&&!this.quote)this.mode="attr start";else if(t==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(t){case'"':case"'":this.quote==t&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function Vu(s){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 e;return s.charAt(0)=="#"?s.charAt(1).toLowerCase()=="x"?e=parseInt(s.substring(2),16):e=parseInt(s.substring(1),10):e=t[s],e?String.fromCharCode(e):"&"+s}var zu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Sg(s,t={}){var e=1,n=1;function i(G){var j=G.match(/\n/g);j&&(e+=j.length);var gt=G.lastIndexOf(`
46
46
  `);n=~gt?G.length-gt:n+G.length}function r(){var G={line:e,column:n};return function(j){return j.position=new o(G),d(),j}}function o(G){this.start=G,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(G){var j=new Error(t.source+":"+e+":"+n+": "+G);if(j.reason=G,j.filename=t.source,j.line=e,j.column=n,j.source=s,t.silent)a.push(j);else throw j}function c(){var G=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:G,parsingErrors:a}}}function u(){return m(/^{\s*/)}function h(){return m(/^}/)}function f(){var G,j=[];for(d(),S(j);s.length&&s.charAt(0)!="}"&&(G=W()||nt());)G!==!1&&(j.push(G),S(j));return j}function m(G){var j=G.exec(s);if(j){var gt=j[0];return i(gt),s=s.slice(gt.length),j}}function d(){m(/^\s*/)}function S(G){var j;for(G=G||[];j=k();)j!==!1&&G.push(j);return G}function k(){var G=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var j=2;s.charAt(j)!=""&&(s.charAt(j)!="*"||s.charAt(j+1)!="/");)++j;if(j+=2,s.charAt(j-1)==="")return l("End of comment missing");var gt=s.slice(2,j-2);return n+=2,i(gt),s=s.slice(j),n+=2,G({type:"comment",comment:gt})}}function _(){var G=m(/^([^{]+)/);if(G)return ps(G[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 x(){var G=r(),j=m(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(j){if(j=ps(j[0]),!m(/^:\s*/))return l("property missing ':'");var gt=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),mt=G({type:"declaration",property:j.replace(zu,""),value:gt?ps(gt[0]).replace(zu,""):""});return m(/^[;\s]*/),mt}}function y(){var G=[];if(!u())return l("missing '{'");S(G);for(var j;j=x();)j!==!1&&(G.push(j),S(G));return h()?G:l("missing '}'")}function p(){for(var G,j=[],gt=r();G=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)j.push(G[1]),m(/^,\s*/);if(j.length)return gt({type:"keyframe",values:j,declarations:y()})}function w(){var G=r(),j=m(/^@([-\w]+)?keyframes\s*/);if(j){var gt=j[1];if(j=m(/^([-\w]+)\s*/),!j)return l("@keyframes missing name");var mt=j[1];if(!u())return l("@keyframes missing '{'");for(var Z,V=S();Z=p();)V.push(Z),V=V.concat(S());return h()?G({type:"keyframes",name:mt,vendor:gt,keyframes:V}):l("@keyframes missing '}'")}}function b(){var G=r(),j=m(/^@supports *([^{]+)/);if(j){var gt=ps(j[1]);if(!u())return l("@supports missing '{'");var mt=S().concat(f());return h()?G({type:"supports",supports:gt,rules:mt}):l("@supports missing '}'")}}function B(){var G=r(),j=m(/^@host\s*/);if(j){if(!u())return l("@host missing '{'");var gt=S().concat(f());return h()?G({type:"host",rules:gt}):l("@host missing '}'")}}function ct(){var G=r(),j=m(/^@media *([^{]+)/);if(j){var gt=ps(j[1]);if(!u())return l("@media missing '{'");var mt=S().concat(f());return h()?G({type:"media",media:gt,rules:mt}):l("@media missing '}'")}}function O(){var G=r(),j=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(j)return G({type:"custom-media",name:ps(j[1]),media:ps(j[2])})}function R(){var G=r(),j=m(/^@page */);if(j){var gt=_()||[];if(!u())return l("@page missing '{'");for(var mt=S(),Z;Z=x();)mt.push(Z),mt=mt.concat(S());return h()?G({type:"page",selectors:gt,declarations:mt}):l("@page missing '}'")}}function A(){var G=r(),j=m(/^@([-\w]+)?document *([^{]+)/);if(j){var gt=ps(j[1]),mt=ps(j[2]);if(!u())return l("@document missing '{'");var Z=S().concat(f());return h()?G({type:"document",document:mt,vendor:gt,rules:Z}):l("@document missing '}'")}}function D(){var G=r(),j=m(/^@font-face\s*/);if(j){if(!u())return l("@font-face missing '{'");for(var gt=S(),mt;mt=x();)gt.push(mt),gt=gt.concat(S());return h()?G({type:"font-face",declarations:gt}):l("@font-face missing '}'")}}var L=K("import"),X=K("charset"),it=K("namespace");function K(G){var j=new RegExp("^@"+G+"\\s*([^;]+);");return function(){var gt=r(),mt=m(j);if(mt){var Z={type:G};return Z[G]=mt[1].trim(),gt(Z)}}}function W(){if(s[0]=="@")return w()||ct()||O()||b()||L()||X()||it()||A()||R()||B()||D()}function nt(){var G=r(),j=_();return j?(S(),G({type:"rule",selectors:j,declarations:y()})):l("selector missing")}return pa(c())}function ps(s){return s?s.replace(/^\s+|\s+$/g,""):""}function pa(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){pa(o,n)}):r&&typeof r=="object"&&pa(r,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}class kg extends Tg{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,n)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,n)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const n=Sg(e);for(const i of n.stylesheet.rules)for(const r of i.declarations)for(const o of i.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${r.property}:${r.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(const a in this.groups[i])a=="transform"?r=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?o=this.globalStyles["."+this.groups[i][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?o=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=r:this.currentItem.transform+=" "+r,typeof this.currentItem.style>"u"?this.currentItem.style=o:this.currentItem.style=o+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),ga(this.currentItem.style,this.currentItem,ya)}switch(this.processAttrs(e,n),e){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(t,e){let n=[],i;switch(t){case"svg":let r="",o="";if(e.width&&e.height)r=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(r=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}r&&o&&this.items.push({type:"viewbox",width:r,height:o});break;case"line":typeof e.x1=="number"&&typeof e.y1=="number"&&typeof e.x2=="number"&&typeof e.y2=="number"&&(this.currentItem.path="M"+[e.x1,e.y1,e.x2,e.y2]);break;case"stop":i={},e.style&&ga(e.style,i),i.offset=i.offset||e.offset,i.color=i["stop-color"]||e["stop-color"],i.opacity=i["stop-opacity"]||e["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+ma(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":n=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(const r in e){const o=e[r];if(ya.includes(r)&&(this.currentItem[r]=o),r==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:r,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:r,stops:[]})),r==="style"&&ga(o,this.currentItem,ya),r==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),r==="fill"){const a=o.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}r==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),r==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),r==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function ma(s,t,e,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return ma(s,t,i,r)-ma(e,n,i,r)}function ga(s,t,e){const n=(s+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=n.length;r<o;r++){const a=n[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const ya=["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 Eg{app;rootEl;ue;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,n){this.app=t,this.rootEl=ue.createSVGElement("svg"),this.ue=Cn(this.rootEl);const i=Cn(this.app.container);i.empty(),i.insert(this.rootEl),e&&n?this.setSize(e,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(r,o)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=o.dx,this.dragDy+=o.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const r of this.shapes)if(this.currentMouseInShape==r){r.emit("clicked");let o=r.parent;for(;o;)o.emit("clicked",r),o=o.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}setSize(t,e){return wn(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return ue.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof es&&t.shapes.forEach(e=>{this._addDrawShape(e)}))}path(t){(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow){e.el&&(e.el.remove(),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof _r?e.el=this.text(e.text,e.x,e.y,du(e.getAttrs(),(i,r)=>typeof r=="string")):(e.el=ue.createSvgPath(e.toSVGPathD(),e.id),this.ue.insert(e.el))),e.followMouse&&(!lr(e.x,this.app.mousePoint.x,5)||!lr(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e instanceof _r&&(e.setAttr("x",String(e.x)),e.setAttr("y",String(e.y))),e.frameUpdate(this.app.mousePoint);const n=e.toSVGPathD();if(this.attr(e,du(e.getAttrs(),(i,r)=>typeof r=="string")),this.attr(e,"d",n),!this.currentMouseInShape){const i=e.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||e.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint)}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}delete(t){(Array.isArray(t)?t:[t]).forEach(e=>{e.el&&e.el.remove(),delete e.el,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&t.el.remove(),delete t.el}),this.ue.empty(),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?wn(i):typeof e=="string"&&n===void 0?wn(i,Ue(e))||"":(typeof e=="object"?wn(i,e):typeof e=="string"&&n!==void 0&&wn(i,Ue(e),n),this):this}circle(t,e,n){return this.path(new Wt({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=ue.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return this.ue.insert(i),i}ellipse(t,e,n,i){return this.path(new Gu({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=ue.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return this.ue.insert(r),r}rect(t,e,n,i){return this.path(new ye({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=ue.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return this.ue.insert(r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=ue.createSVGElement("text",{x:String(e),y:String(n)});return Cn(r).html(t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),this.ue.insert(r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=ue.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
47
- `).forEach((a,l)=>{if(a.trim()){const c=ue.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});Cn(c).html(a),Cn(o).insert(c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),this.ue.insert(o),o}}class Pg extends bn{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new kg(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!ue.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=ue.absolutizeSVGPath(ue.parseSVGPath(r.path)),l=[];let c=[];for(let u=0,h=a.length;u<h;u++){const f=a[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=Lu(r.transform??"");h.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new Ht({...t,attrs:{...o,...t?.attrs||{}},d:u,originMatrix:h}))})}}shapeInit(){this.trim()}}class Wt extends Ht{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}toSVGPathData(){return this.radius?[["m",0,-this.radius],["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",0,0]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return Ko(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=ts(-r,e,n),l=ts(-r,this.vx,this.vy),c=ts(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const m=ts(r,o.x,o.y),d=ts(r,a.x,a.y);t.x=this.x+d.x,t.y=this.y+d.y,this.x=this.x+m.x,this.y=this.y+m.y;const S=ts(r,l.x,l.y),k=ts(r,c.x,c.y);this.vx=S.x,this.vy=S.y,t.vx=k.x,t.vy=k.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,n=t.wall.x,i=t.wall.y,r=t.wall.x+t.wall.width,o=t.wall.y+t.wall.height;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=e):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=e),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=e):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=e)}}class Bu extends Ht{points;isStraight;constructor(t){if(super(t),this.points=t.points,this.points.length<3)throw new Error("points length must >= 3");this.isStraight=typeof t?.isStraight=="boolean"?t.isStraight:!0}toSVGPathData(){const t=[],e=this.points.length;if(this.isStraight){t.push(["M",this.points[0].x,this.points[0].y]);for(let n=1;n<=e-1;n++)t.push(["L",this.points[n].x,this.points[n].y]);t.push(["Z"])}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",n,i]);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.push(["Q",this.points[r].x,this.points[r].y,o,a])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,n,i])}return t}toCanvasContext(t){t.beginPath();const e=this.points.length;if(this.isStraight){t.moveTo(this.points[0].x,this.points[0].y);for(let n=1;n<=e-1;n++)t.lineTo(this.points[n].x,this.points[n].y);t.closePath()}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(n,i);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.quadraticCurveTo(this.points[r].x,this.points[r].y,o,a)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,n,i)}}isContainPoint(t,e){const n=this.points.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const f=(u-l)/(h-c),m=l+f*(e-c);if(m===t||Math.abs(m-t)<r)return!0;m>t&&(i=!i)}}return i}[Symbol.iterator](){let t=-1;return{next:()=>({value:t<=this.points.length-1?this.points[++t]:void 0,done:t>=this.points.length})}}}class ye extends Ht{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,n,i,r,o,a,l){const c=new sn({x:t,y:e,c1x:n,c1y:i,c2x:r,c2y:o,toX:a,toY:l});return new ye(c.getBoundingClientRect())}getBoundingClientRect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}toSVGPathData(){return this.borderRadius?[["m",this.borderRadius,0],["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",0,0],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}class Gu extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return{x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2}}toSVGPathData(){return[["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(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class vr extends Ht{constructor(t){super(t)}toSVGPathData(){return[["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(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class va extends Ht{constructor(t){super(t)}toSVGPathData(){return[["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(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class Og extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||10,this.ry=t?.ry||10}toSVGPathData(){return[["m",0,0],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]]}}class Ig extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50}toSVGPathData(){return[["m",0,0+this.ry*.3],["C",0,0,0-this.rx/2,0,0-this.rx/2,0+this.ry*.3],["C",0-this.rx/2,0+(this.ry+this.ry*.3)/2,0,0+(this.ry+this.ry*.3)/1.4,0,0+this.ry],["C",0,0+(this.ry+this.ry*.3)/1.8,0+this.rx/2,0+(this.ry+this.ry*.3)/2,0+this.rx/2,0+this.ry*.3],["C",0+this.rx/2,0,0,0,0,0+this.ry*.3],["z"]]}}class Dg extends Ht{r;constructor(t){super(t),this.r=t?.r||20}toSVGPathData(){const t=[["m",0,-this.r]];for(let e=0;e<6;e+=1){const n=288+e*144,i=this.r*Math.cos(Ft(n)),r=this.r*Math.sin(Ft(n));t.push(["l",i,r])}return t}}class Rg extends Ht{constructor(t){super(t)}toSVGPathData(){return[["M",0,0],["C",15,0,15,-40,5,-30],["L",0,0],["C",-15,0,-15,-40,-5,-30],["L",0,0],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]]}}class Ag extends Ht{constructor(t){super(t),this.originD="m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z"}}class Mg extends bn{constructor(t){super(t);const e=new he({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),n=30+Math.random()*30,i=new he({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),r=60+Math.random()*40,o=new he({...t,x:this.x,y:this.y-r,diffYInGroup:-r,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,i,o])}}class _r extends Ht{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.getAttrs()});const e=Je(this.getAttr("fontSize"),10).number,n=Je(this.getAttr("fontWeight"),400).number,i=this.measureText(this.text,e,n);this.width=i.width,this.height=i.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}measureText(t,e=12,n=400){const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e+"px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}}getFixedWidthText(t,e,n=12,i=400,r=!0){let o="";if(!t||e<n)return o;const a=t.split(""),l="...";let c=r?this.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=this.measureText(a[u],n,i).width,c>e){r&&(o+=l);break}else o+=a[u];return o}}class Ng extends bn{text;bg;padding;offset;isShow;textShape;bgShape;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!1,this.textShape=new _r({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:De(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new ye({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.getAttrs(),fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}shapeInit(){Wo(()=>{this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.text=this.text,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.width=this.textShape.width+this.padding*2,this.bgShape.height=this.textShape.height+this.padding*2,this.bgShape.isShow=this.isShow})}}class Yu extends es{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Wt;p1Offset=10;p2=new Wt;p2Offset=40;p3=new Wt;p3Offset=10;p4=new Wt;p4Offset=10;direction=1;sectorArc;line12;line23;textShape;tipShape;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"",this.sectorArc=new Fg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.getAttrs()},{strokeWidth:"0"})}),this.addShape(this.sectorArc);const e=Object.assign({...this.getAttrs()},{fill:"none"});this.line12=new he({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new he({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new _r({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tipShape=new Ng({x:0,y:0,text:this.tip,isShow:!1}),this.tip&&this.addShape(this.tipShape)}frameUpdate(t){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sectorArc.isMouseIn,this.line23.isShow=this.sectorArc.isMouseIn,this.textShape.isShow=this.sectorArc.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:n,dy:i}=ds(Ft(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+n,this.p1.y=this.y+i;const{dx:r,dy:o}=ds(Ft(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+r,this.p2.y=this.y+o,this.line12.x=this.p1.x,this.line12.y=this.p1.y,this.line12.toX=this.p2.x,this.line12.toY=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.x=this.p2.x,this.line23.y=this.p2.y,this.line23.toX=this.p3.x,this.line23.toY=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sectorArc.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=t.x,this.tipShape.y=t.y):(this.tipShape.isShow=!1,this.tipShape.x=t.x,this.tipShape.y=t.y)}}class Fg extends Ht{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;durationTime;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.durationTime=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.durationTime,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.durationTime,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=ds(Ft(this.startDegree),this.radius),{dx:n,dy:i}=ds(Ft(this.endDegree),this.radius);return[["m",0,0],["l",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Ft(this.startDegree),Ft(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=Jo(this.x,this.y,t,e),i=Ie(vn(this.x,this.y,t,e));return n<=this.radius&&i>=this.startDegree&&i<=this.endDegree}}class Lg extends es{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new Ht({...t,d:[["M",10,0],["L",-10,10],["L",-5,0],["L",-10,-10],["L",10,0],["Z"]]}),this.addShape(this.ship),this.flame=new Ht({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Wo(()=>{this.ship.x=this.x,this.ship.y=this.y,this.flame.x=this.x,this.flame.y=this.y,this.flame.isShow=this.showFlame})}}class Xu extends bn{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,n=t?.max||100,i=t?.step||1,r=yu(e,n,i);this.value=r(typeof t?.defaultValue=="number"?qt(t.defaultValue,e,n):e);const o=this.value/(n-e),a=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,h=t?.barColor||Pt.colorGrayF5,f=t?.handleColor||Pt.colorPrimary;this.backgroundRect=new ye({x:this.x,y:this.y,width:a,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new ye({x:this.x,y:this.y,width:a*o,height:l,borderRadius:u,attrs:{fill:f},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new Wt({x:this.x+a*o,y:this.y+u,diffXInGroup:a*o,diffYInGroup:u,radius:c,alongPath:new Me({x:this.x,y:this.y+u,d:[["m",0,0],["l",a,0]]}),attrs:{fill:f},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",m=>{this.occupyRect.width=qt(this.occupyRect.width+m,0,a),this.value=r((this.handle.x-this.x)/a*(n-e)+e),this.emit("change",this.value)})}}class xn extends bn{width;height;cornerRadius;controlPoint;mainRect;rightPoint;constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.controlPoint=new Wt({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new ye({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,diffXInGroup:-this.cornerRadius,diffYInGroup:-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),this.rightPoint=new Wt({...t,x:this.x+this.width,y:this.y,diffXInGroup:this.width,radius:2}),this.addShape([this.mainRect,this.controlPoint,this.rightPoint])}getPin(){return{x:this.controlPoint.x+Math.cos(Ft(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Ft(this.controlPoint.degree))*this.width}}}class _a extends Ht{extendDegree;radius;startDegree;endDegree;diffDegree;constructor(t){super(t),this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth;this.radius=e-e*Math.abs(Math.sin(Ft(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Ft(this.extendDegree))),this.diffDegree=t.endDegree-t.startDegree,this.startDegree=180+t.startDegree-this.extendDegree,this.endDegree=180+t.endDegree+this.extendDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.color||"none"})}setPercent(t){this.endDegree=this.startDegree+(this.diffDegree+this.extendDegree*2)*t}toSVGPathData(){const{dx:t,dy:e}=ds(Ft(this.startDegree),this.radius),{dx:n,dy:i}=ds(Ft(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Ft(this.startDegree),Ft(this.endDegree),!1)}}let ju=class extends bn{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,n=t?.endDegree||180,i=t?.extendDegree||15,r=t?.lineWidth||12;this.bgColor=t?.bgColor||"#B3C6E7",this.startColor=t?.startColor||"#5A82F0",this.endColor=t?.endColor||"#66B3FF",this.percent=t?.percent||0,this.indicatorLineCount=22+1;const o=20,a=2,l=17;this.ringBg=new _a({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new _a({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+o;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new he({...t,centerX:this.ringBg.x,centerY:this.ringBg.y,x:this.ringBg.x,y:c,toX:this.ringBg.x,toY:c+l,degree:this.ringBg.startDegree+90+(n-e+i*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(a),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,n)=>{this.shapes.forEach(i=>{i!=n&&(i.x+=t,i.y+=e)})})}frameUpdate(t,e){const n=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),i=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const r=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+n,-i,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:r})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let r=0;r<this.indicatorLineCount;r++){const o=r/(this.indicatorLineCount-1)<=this.percent;this.lines[r].setAttr({stroke:o&&e?e.createLinearGradient(0,0,this.lines[r].toX-this.lines[r].x,this.lines[r].toY-this.lines[r].y,{0:this.startColor,1:this.endColor}):o?this.startColor:this.bgColor})}}};class $g extends es{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:m,ticks:d,colors:S,scalar:k,flat:_}=Object.assign({shape:ye,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:vg,scalar:1,flat:!1},n||{}),x=Ft(l),y=Ft(c);let p=a;for(;p--;){const w=S[p%S.length],b=new i({x:t*r,y:e*o,width:10,height:10,scalar:k,attrs:{fill:w},independentTransformInGroup:!0});this.addShape(b),this.fettis.push({shape:b,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-x+(.5*y-Math.random()*y),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:d,decay:h,drift:m,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:k,flat:_,color:De(w)})}}frameUpdate(t){this.fettis.length&&(this.fettis=this.fettis.filter(e=>{e.shape.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.shape.x+10*e.scalar,e.wobbleY=e.shape.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.shape.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.shape.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);const n=e.tick++/e.totalTicks,i=e.shape.x+e.random*e.tiltCos,r=e.shape.y+e.random*e.tiltSin,o=e.wobbleX+e.random*e.tiltCos,a=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-n).toString()),e.shape.degree=Ie(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(o-i)*.1,e.shape.scalarY=Math.abs(a-r)*.1,e.tick<e.totalTicks}))}}class Re{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(n=>{n.run(),t?.wall&&n.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let n=0,i=e-1;n<i;n++)for(let r=n+1;r<e;r++)this.shapes[n].checkCollision(this.shapes[r])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,n)=>{e.run();for(let i=n+1;i<t;i++)e.checkCollision(this.shapes[i]),e.gravitateTo(this.shapes[i])})}springChain(t){this.shapes.forEach((e,n)=>{n>0&&e.runSpringTo(this.shapes[n-1],t)})}springConnect(t){const e=As(t?.springLength,100);this.shapes.forEach(n=>{n.isDragging||this.shapes.filter(i=>i.id!==n.id).forEach(i=>{const r=vn(n.x,n.y,i.x,i.y);n.runSpringTo({x:i.x-Math.cos(r)*e,y:i.y-Math.sin(r)*e},t)})})}springMass(t,e){const n=this.shapes.length,i=[];return this.shapes.forEach((r,o)=>{r.run(e),r.x>t.x+t.width?r.x=t.x:r.x<t.x&&(r.x=t.x+t.width),r.y>t.y+t.height?r.y=t.y:r.y<t.y&&(r.y=t.y+t.height);for(let a=o+1;a<n;a++)i.push([r.x,r.y,this.shapes[a].x,this.shapes[a].y,r.springMassTo(this.shapes[a],e)])}),i}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let i=0;i<t;i++){const r=this.shapes[i].initPathD();this.shapes[i].frameStart();const o=this.shapes[i+1].initPathD();this.shapes[i+1].frameStart();const a=Math.max(r.polymorphPoints.length,o.polymorphPoints.length);e[i]=Me.getPathInterpolator(r.expendFill(a),o.expendFill(a))}const n=new Ht({d:e[0](0)});return i=>{const r=we(t*i,6),o=Math.min(Math.floor(r),t-1),a=we(r-o,6);n.originD=e[o](a);const l=this.shapes[o].getAttr("fill","none"),c=this.shapes[o+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&n.setAttr("fill",wt.gradient(l,c,a).toString());const u=this.shapes[o].getAttr("stroke","none"),h=this.shapes[o+1].getAttr("stroke","none");return typeof u=="string"&&typeof h=="string"&&n.setAttr("stroke",wt.gradient(u,h,a).toString()),n}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const n=[];this.shapes.forEach(a=>{let l;a instanceof es?(l=a,l.sortPathD()):(l=new es,l.addShape(a)),n.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),n.forEach(a=>{a!==e&&a.expendFill(e)});const i=[];n.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>{r.push(new Re(a).polymorph())});const o=new es;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}polymorphTween(t=6e3,e){const n=this.shapes.findIndex(a=>a instanceof es)>=0?this.polymorphGroup():this.polymorph(),i=n(0),r=e?.onUpdate,o=new He({frameDuration:t});o.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(a,l)=>{n(a.t),r?.(a,l),e?.draw?.(i)}})),o.play()}static generatePointsShape(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=ds(a,n);r.push({x:t+l,y:e+c})}return new Bu({points:r})}static generateRosettaShape(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=[],a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.push(new na({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),o.push(new na({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Ht({d:Me.fromLines(o)})}}function Vg(s){return window.URL.createObjectURL(s)}const Uu=new qo;async function zg(s,t=6e4){const e=typeof s=="string"?s:Vg(s);return new Promise((n,i)=>{const r=Uu.get(e);if(r)return n(r);const o=new Image;o.onload=l=>{clearTimeout(a);const c=o.naturalWidth||o.width,u=o.naturalHeight||o.height,h={width:c,height:u,aspectRatio:c/u,imageData:Hm(o),element:o};Uu.set(e,h),n(h),o.onerror=o.onload=null},o.onerror=l=>{clearTimeout(a),i(l)},o.src=e;const a=setTimeout(()=>{i("Timeout!")},t)})}async function Bg(s,t=6e4){return new Promise((e,n)=>{const i=document.createElement("script");i.type="text/javascript",i.async=!1,i.onload=o=>{clearTimeout(r),e(o),i.onerror=i.onload=null},i.onerror=o=>{clearTimeout(r),n(o)},i.src=s;const r=setTimeout(()=>{n("Timeout!")},t);document.body.appendChild(i)})}function Hu(s,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof s=="string"?e.href=s:e.href=window.URL.createObjectURL(s),e.click()}const br=new qo,Gg=(s=!0)=>{br.filter((t,e)=>(e.alternate&&(rh(e,e.alternate),s&&br.set(t,e.alternate),e.alternate=void 0),s))};function Wu(s){let t=br.get(s);return t||(t=xa(s),br.set(s,t)),t}function Yg(s){const t=Wu(s);return t.alternate||(t.alternate=xa(s)),t.alternate}function qu(s,t,e=!0){t(Yg(s)),Iu("FLUSH_DOM_ACTION",()=>Gg(e),50)}function ai(s,t,e){const n=Wu(s);return t?n.props.style[t]||n.props.style[fu(t)]||n.props.style[Ue(t)]:n.props.style}function Zu(s,t,e){qu(s,n=>{typeof t=="string"&&e?n.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(i=>{n.props.style[i]=t[i]})},!0)}function Qu(s){const t=[];if(getComputedStyle){const e=getComputedStyle(s);for(let n=0,i=e.length;n<i;n++)t.push(e[n]+":"+e.getPropertyValue(e[n]))}else{const e=s.currentStyle;for(const n in e)t.push(n+":"+e[n])}return t.push(...(s.style.cssText||"").split(";")),Object.fromEntries(t.filter(e=>!!e).map(e=>e.split(":").map((n,i)=>i==0?fu(n).trim():n.trim())))}function ba(s,t,e){typeof t=="string"&&e?s.style.setProperty(Ue(t),e.replace(/!important/i,""),String(e).toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(n=>{ba(s,n,t[n])})}function Ku(s,t){typeof t=="string"?s.style.removeProperty(Ue(t)):Object.keys(t).forEach(e=>{Ku(s,e)})}function rn(s,t){let e;if(typeof t=="string"){const i=document.querySelector(t)?.shadowRoot;i?e=i:e=document.querySelector(t)}else e=t||document.getElementsByTagName("head")[0];const n=document.createElement("style");if(n.innerHTML=s,e)return e.appendChild(n),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(n)};{const i=document.styleSheets[0].insertRule(s);return()=>{document.styleSheets[0].deleteRule(i)}}}function Xg(s,t,e={}){Object.prototype.hasOwnProperty.call(e,"transform")||Object.assign(e,{transform:ai(s,"transform")||""});const n=Lu(e.transform),i={};for(const r in t){const o=t[r];switch(r){case"transform":break;case"translate":n.translate(o[0]||0,o[1]||0);break;case"translateTo":n.translateTo(o[0]||0,o[1]||0);break;case"translateX":n.translateX(o||0);break;case"translateXTo":n.translateXTo(o||0);break;case"translateY":n.translateY(o||0);break;case"translateYTo":n.translateYTo(o||0);break;case"translateZ":n.translateZ(o||0);break;case"translateZTo":n.translateZTo(o||0);break;case"translate3d":n.translate3d(o[0]||0,o[1]||0,o[2]||0);break;case"translate3dTo":n.translate3dTo(o[0]||0,o[1]||0,o[2]||0);break;case"rotate":typeof o=="number"?n.rotate(o||0):n.rotate(o[0]||0,o[1]||0,o[2]||0);break;case"rotateTo":typeof o=="number"?n.rotateTo(o||0):n.rotateTo(o[0]||0,o[1]||0,o[2]||0);break;case"rotateX":n.rotateX(o||0);break;case"rotateXTo":n.rotateXTo(o||0);break;case"rotateY":n.rotateY(o||0);break;case"rotateYTo":n.rotateYTo(o||0);break;case"rotateZ":n.rotateZ(o||0);break;case"rotateZTo":n.rotateZTo(o||0);break;case"rotate3d":n.rotate3d(o[0]||0,o[1]||0,o[2]||0);break;case"rotate3dTo":n.rotate3dTo(o[0]||0,o[1]||0,o[2]||0);break;case"scale":typeof o=="number"?n.scale(o||1):n.scale(o[0]||1,o[1]||1,o[2]||0,o[3]||0);break;case"scaleTo":typeof o=="number"?n.scaleTo(o||1):n.scaleTo(o[0]||1,o[1]||1,o[2]||0,o[3]||0);break;case"scaleX":n.scaleX(o||1);break;case"scaleXTo":n.scaleXTo(o||1);break;case"scaleY":n.scaleY(o||1);break;case"scaleYTo":n.scaleYTo(o||1);break;case"scaleZ":n.scaleZ(o||1);break;case"scaleZTo":n.scaleZTo(o||1);break;case"scale3d":typeof o=="number"?n.scale3d(o||1):n.scale3d(o[0]||1,o[1]||1,o[2]||1);break;case"scale3dTo":typeof o=="number"?n.scale3dTo(o||1):n.scale3dTo(o[0]||1,o[1]||1,o[2]||1);break;case"skew":typeof o=="number"?n.skew(o||0):n.skew(o[0]||0,o[1]||0);break;case"skewTo":typeof o=="number"?n.skewTo(o||0):n.skewTo(o[0]||0,o[1]||0);break;case"skewX":n.skewX(o||0);break;case"skewXTo":n.skewXTo(o||0);break;case"skewY":n.skewY(o||0);break;case"skewYTo":n.skewYTo(o||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":n.perspective(o||0);break;default:Object.prototype.hasOwnProperty.call(e,r)||(e[r]=ai(s,r)),Object.assign(i,{[r]:`${o}`});break}}return Object.assign(i,{transform:n.toString()}),i}function wn(s,t,e){if(t===void 0&&e===void 0)return Ju(s);if(typeof t=="string"&&e===void 0)return jg(s,t);let n={};typeof t=="object"?n=t:typeof t=="string"&&typeof e=="string"&&(n[t]=e),qu(s,i=>{Object.entries(n).forEach(([r,o])=>{i.props[r]=o})})}function Ju(s){const t={};for(let e=0,n=s.attributes,i=n.length;e<i;e++){const r=n[e];r.nodeName&&r.nodeValue&&(r.nodeName==="style"?t[r.nodeName]=Qu(s):t[r.nodeName]=r.nodeValue)}return t}function jg(s,t){return t==="style"?Qu(s):s.getAttribute(Ue(t))}function th(s,t,e){return s.setAttribute(Ue(t),e)}function eh(s,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(s.className)||!1}function Cn(s){return{el:s,isRoot:()=>/(html|body)/i.test(s.tagName)||s===document.documentElement,isActive:()=>s===document.activeElement&&(s.type||s.href),parent:()=>s.parentElement,parents:function(t=s,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,n=t.length;e<n;e++)if(/(auto|scroll)/.test(ai(t[e],"overflow")+ai(t[e],"overflow-y")+ai(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>s.contains?s!=t&&s.contains(t):!!(s.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(s.parentElement?.children).filter(t=>t!==s),nextElementSibling:()=>s.nextElementSibling,previousElementSibling:()=>s.previousElementSibling,closest:t=>s.closest(t),shadowRoot:()=>s.shadowRoot,isInput:()=>s.tagName==="INPUT"||s instanceof HTMLInputElement,isSelect:()=>s.tagName==="SELECT"||s instanceof HTMLSelectElement,isTextArea:()=>s.tagName==="TEXTAREA"||s instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(s)&&s.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(s)&&s.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(s)&&s.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(s)&&s.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=s.options;for(let n=0,i=e.length;n<i;n++)e[n].selected=e[n].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(s.name);for(let n=0,i=e.length;n<i;n++){const r=e[n];r.checked=r.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(s.checked=t)},insert:(t,e="append")=>{typeof t=="string"?s[e](Ug(t)):s[e](t)},html:function(t){if(typeof t=="string"){s.innerHTML=t;const e=sh(s);e!=s&&(s=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{s.textContent=t},getInnerText:()=>{if(s instanceof SVGElement)return"";let t=s.innerText;if(!t){const e=s.querySelector("slot")?.assignedNodes()||[];let n=0;for(;!t&&n<=e.length-1;)"innerText"in e[n]&&(t=e[n].innerText),n++}return t},remove:()=>s.remove()}}function Ug(s){const t=document.createElement("template");return t.innerHTML=s,t.content.childNodes.forEach(e=>{const n=sh(e);n!=e&&t.content.replaceChild(n,e)}),t.content}function sh(s){return s.tagName=="SCRIPT"&&(s=nh(s)),s.querySelectorAll&&s.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(nh(t),t)}),s}function nh(s){const t=s.ownerDocument.createElement("script");t.text=s.text;const e=s.attributes;for(let n=0,i=e.length;n<i;n++)t.setAttribute(e[n].name,e[n].value);return t}async function ih(s){if(navigator.clipboard)return await navigator.clipboard.writeText(s);{const t=document.createElement("textarea");return t.value=s,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function Hg(s,t={},e=[],n){return{tag:s,props:t,children:e,el:n}}function xa(s){return Hg(s.tagName,Ju(s),Array.from(s.children).map(t=>xa(t)),s)}function xr(s,t=document.documentElement){if(s.el)return s.el;if(s.el=document.createElement(s.tag),s.props)for(const e in s.props){const n=s.props[e];e.startsWith("on")?s.el.addEventListener(e.slice(2).toLowerCase(),n):e==="style"?ba(s.el,s.props[e]):th(s.el,e,n)}return s.children&&(typeof s.children=="string"?s.el.appendChild(document.createTextNode(s.children)):s.children.forEach(e=>{xr(e,s.el)})),t.appendChild(s.el),s.el}function rh(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(xr(t),s.el);return}const e=t.el=s.el,n=s.props,i=t.props;for(const a in n)a in i||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),n[a]):e.removeAttribute(a));for(const a in i){const l=n[a],c=i[a];if(c!=l)if(a.startsWith("on")){const u=a.slice(2).toLowerCase();e.removeEventListener(u,l),e.addEventListener(u,c)}else if(a==="style"){for(const u in l)u in c||Ku(e,u);ba(e,c)}else th(e,a,c)}const r=s.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof r=="string")e.innerHTML="",o.forEach(a=>{xr(a,e)});else{const a=Math.min(r.length,o.length);for(let l=0;l<a;l++)rh(r[l],o[l]);o.length>r.length&&o.slice(r.length).forEach(l=>{xr(l,e)}),o.length<r.length&&r.slice(o.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function Wg(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const i=function(){const r=Math.min(t.clientWidth,s);t.dataset.width=r,t.dataset.rem=n=Math.round(100*(r/s)),t.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class oh{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new sa(this.app.container,this.app.width,this.app.height,e),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(n,i)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=i.dx,this.dragDy+=i.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let i=n.parent;for(;i;)i.emit("clicked",n),i=i.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t.usePathDtoCanvasContext||(this.ctx.translate(t.x,t.y),this.ctx.rotate(Ft(t.degree),t.cX,t.cY),this.ctx.scale(t.scalarX,t.scalarY,t.cX,t.cY))}_addDrawShape(t){this.shapes.push(t),t instanceof es&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),qg(this.ctx,e.getAttrs()),e.followMouse&&(!lr(e.x,this.app.mousePoint.x,5)||!lr(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e.frameUpdate(this.app.mousePoint,this.ctx),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill();const n=this.ctx.currentPath2D;if(!this.currentMouseInShape){const i=this.ctx.isPointInPath(n,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(n,this.app.mousePoint.x,this.app.mousePoint.y)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint),this.ctx.restore()}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=De(r);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,f=this.app.mousePoint.x+Math.cos(u)*h|0,m=this.app.mousePoint.y+Math.sin(u)*h|0,d=(f+m*o.width)*4;a[d]=l.r,a[d+1]=l.g,a[d+2]=l.b,a[d+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),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())}})}}}function qg(s,t){for(const e in t){const n=t[e];switch(e){case"fill":n!=="none"&&(s.fillStyle=n);break;case"stroke":n!=="none"&&(s.strokeStyle=n);break;case"stroke-width":case"strokeWidth":s.lineWidth=Number(n);break;case"stroke-linecap":case"strokeLinecap":s.lineCap=n;break;case"stroke-linejoin":case"strokeLinejoin":switch(n){case"round":case"bevel":case"miter":s.lineJoin=n;break;default:s.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":s.miterLimit=Number(n);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":s.lineDashOffset=Number(n);break;case"stroke-dasharray":case"strokeDasharray":typeof n=="string"&&s.setLineDash(n.split(/\s+/).map(i=>Number(i)));break;case"cursor":break;case"font":typeof n=="string"&&(s.font=n);break;case"font-size":case"fontSize":s.font+=` ${n}`;break;case"font-family":case"fontFamily":s.font+=` ${n}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(n){case"middle":s.textAlign="center";break;case"end":s.textAlign="end";break;case"start":s.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(n){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":s.textBaseline=n;break;default:s.textBaseline="alphabetic";break}break}}}class Zg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const Qg=lt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("span",{class:"icon",style:z(["color: "+e.color])},[ft(Lt(xm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),U_="",pt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},on=pt(Qg,[["__scopeId","data-v-8789b4ce"]]),Kg={class:"loading-11",ref:"loading11"},Jg={class:"container container-1"},t0={class:"container container-2"},e0={class:"container container-3"},s0=lt({__name:"Loading11",props:{color:{default:Pt.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(F(),H("div",Kg,[P("div",{class:"loading-11-inner",style:z({width:t.width,height:t.width})},[P("div",Jg,[P("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)]),P("div",t0,[P("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)]),P("div",e0,[P("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)])],4)],512))}}),H_="",wa=pt(s0,[["__scopeId","data-v-f95fac77"]]),n0={key:0,class:"loading"},i0=lt({customOptions:{Loading11:wa},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(n.borderColor),a=M(n.bgColor),l=M(n.fontColor),c=M(n.borderColor),u=M(n.bgColor);function h(p){switch(p){case"outline":o.value=n.borderColor??Pt.colorPrimary,a.value=n.bgColor??Pt.colorGrayFF,l.value=n.fontColor??Pt.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Pt.colorPrimary,a.value=n.bgColor??Pt.colorPrimary,l.value=n.fontColor??Pt.colorGrayFF,c.value=o.value,u.value=a.value;break}}Mt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=M(n.disabled?"0.6":"1"),m=M(n.disabled?"not-allowed":"pointer");let d=!1;const S=()=>{n.disabled||(d=!0,o.value=De(c.value).lighten(.05).toString(),a.value=De(u.value).lighten(.05).toString())},k=()=>{n.disabled||(d=!1,o.value=c.value,a.value=u.value)},_=M(!1),y=Nm(()=>{n.disabled||_.value||(o.value=De(c.value).darken(.05).toString(),a.value=De(u.value).darken(.05).toString(),setTimeout(()=>{d?S():k()},150),i("yz-click"),i("click"),n.asyncClick&&(_.value=!0,n.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:r}),(p,w)=>(F(),H("div",{ref_key:"el",ref:r,class:"button",style:z([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${m.value}`,"user-select: none"]),onMouseover:S,onMouseleave:k,onClick:w[0]||(w[0]=(...b)=>Lt(y)&&Lt(y)(...b))},[P("label",{class:"label truncate",style:z({padding:"0 "+p.padding,cursor:m.value})},[_.value?(F(),H("div",n0,[ft(wa,{color:l.value},null,8,["color"])])):Gt("",!0),St(p.$slots,"default",{},()=>[p.icon&&p.iconPosition==="left"?(F(),Bt(on,{key:0,icon:p.icon,color:l.value,style:z({marginRight:Lt(Pt).d4,cursor:m.value})},null,8,["icon","color","style"])):Gt("",!0),P("span",{style:z({cursor:m.value})},xt(p.label),5),p.icon&&p.iconPosition==="right"?(F(),Bt(on,{key:1,icon:p.icon,color:l.value,style:z({marginLeft:Lt(Pt).d4,cursor:m.value})},null,8,["icon","color","style"])):Gt("",!0)],!0)],4)],36))}}),W_="",ve=pt(i0,[["__scopeId","data-v-b3e1b144"]]),r0=["onClick","value"],o0={class:"option-inner"},a0=lt({customOptions:{Icon:on,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;Es(()=>{rn(`
47
+ `).forEach((a,l)=>{if(a.trim()){const c=ue.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});Cn(c).html(a),Cn(o).insert(c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),this.ue.insert(o),o}}class Pg extends bn{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new kg(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!ue.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=ue.absolutizeSVGPath(ue.parseSVGPath(r.path)),l=[];let c=[];for(let u=0,h=a.length;u<h;u++){const f=a[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=Lu(r.transform??"");h.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new Ht({...t,attrs:{...o,...t?.attrs||{}},d:u,originMatrix:h}))})}}shapeInit(){this.trim()}}class Wt extends Ht{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}toSVGPathData(){return this.radius?[["m",0,-this.radius],["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",0,0]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return Ko(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=ts(-r,e,n),l=ts(-r,this.vx,this.vy),c=ts(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const m=ts(r,o.x,o.y),d=ts(r,a.x,a.y);t.x=this.x+d.x,t.y=this.y+d.y,this.x=this.x+m.x,this.y=this.y+m.y;const S=ts(r,l.x,l.y),k=ts(r,c.x,c.y);this.vx=S.x,this.vy=S.y,t.vx=k.x,t.vy=k.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,n=t.wall.x,i=t.wall.y,r=t.wall.x+t.wall.width,o=t.wall.y+t.wall.height;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=e):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=e),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=e):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=e)}}class Bu extends Ht{points;isStraight;constructor(t){if(super(t),this.points=t.points,this.points.length<3)throw new Error("points length must >= 3");this.isStraight=typeof t?.isStraight=="boolean"?t.isStraight:!0}toSVGPathData(){const t=[],e=this.points.length;if(this.isStraight){t.push(["M",this.points[0].x,this.points[0].y]);for(let n=1;n<=e-1;n++)t.push(["L",this.points[n].x,this.points[n].y]);t.push(["Z"])}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",n,i]);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.push(["Q",this.points[r].x,this.points[r].y,o,a])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,n,i])}return t}toCanvasContext(t){t.beginPath();const e=this.points.length;if(this.isStraight){t.moveTo(this.points[0].x,this.points[0].y);for(let n=1;n<=e-1;n++)t.lineTo(this.points[n].x,this.points[n].y);t.closePath()}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(n,i);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.quadraticCurveTo(this.points[r].x,this.points[r].y,o,a)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,n,i)}}isContainPoint(t,e){const n=this.points.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const f=(u-l)/(h-c),m=l+f*(e-c);if(m===t||Math.abs(m-t)<r)return!0;m>t&&(i=!i)}}return i}[Symbol.iterator](){let t=-1;return{next:()=>({value:t<=this.points.length-1?this.points[++t]:void 0,done:t>=this.points.length})}}}class ye extends Ht{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,n,i,r,o,a,l){const c=new sn({x:t,y:e,c1x:n,c1y:i,c2x:r,c2y:o,toX:a,toY:l});return new ye(c.getBoundingClientRect())}getBoundingClientRect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}toSVGPathData(){return this.borderRadius?[["m",this.borderRadius,0],["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",0,0],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}class Gu extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return{x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2}}toSVGPathData(){return[["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(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class vr extends Ht{constructor(t){super(t)}toSVGPathData(){return[["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(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class va extends Ht{constructor(t){super(t)}toSVGPathData(){return[["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(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class Og extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||10,this.ry=t?.ry||10}toSVGPathData(){return[["m",0,0],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]]}}class Ig extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50}toSVGPathData(){return[["m",0,0+this.ry*.3],["C",0,0,0-this.rx/2,0,0-this.rx/2,0+this.ry*.3],["C",0-this.rx/2,0+(this.ry+this.ry*.3)/2,0,0+(this.ry+this.ry*.3)/1.4,0,0+this.ry],["C",0,0+(this.ry+this.ry*.3)/1.8,0+this.rx/2,0+(this.ry+this.ry*.3)/2,0+this.rx/2,0+this.ry*.3],["C",0+this.rx/2,0,0,0,0,0+this.ry*.3],["z"]]}}class Dg extends Ht{r;constructor(t){super(t),this.r=t?.r||20}toSVGPathData(){const t=[["m",0,-this.r]];for(let e=0;e<6;e+=1){const n=288+e*144,i=this.r*Math.cos(Lt(n)),r=this.r*Math.sin(Lt(n));t.push(["l",i,r])}return t}}class Rg extends Ht{constructor(t){super(t)}toSVGPathData(){return[["M",0,0],["C",15,0,15,-40,5,-30],["L",0,0],["C",-15,0,-15,-40,-5,-30],["L",0,0],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]]}}class Ag extends Ht{constructor(t){super(t),this.originD="m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z"}}class Mg extends bn{constructor(t){super(t);const e=new he({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),n=30+Math.random()*30,i=new he({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),r=60+Math.random()*40,o=new he({...t,x:this.x,y:this.y-r,diffYInGroup:-r,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,i,o])}}class _r extends Ht{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.getAttrs()});const e=Je(this.getAttr("fontSize"),10).number,n=Je(this.getAttr("fontWeight"),400).number,i=this.measureText(this.text,e,n);this.width=i.width,this.height=i.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}measureText(t,e=12,n=400){const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e+"px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}}getFixedWidthText(t,e,n=12,i=400,r=!0){let o="";if(!t||e<n)return o;const a=t.split(""),l="...";let c=r?this.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=this.measureText(a[u],n,i).width,c>e){r&&(o+=l);break}else o+=a[u];return o}}class Ng extends bn{text;bg;padding;offset;isShow;textShape;bgShape;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!1,this.textShape=new _r({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:De(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new ye({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.getAttrs(),fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}shapeInit(){Wo(()=>{this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.text=this.text,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.width=this.textShape.width+this.padding*2,this.bgShape.height=this.textShape.height+this.padding*2,this.bgShape.isShow=this.isShow})}}class Yu extends es{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Wt;p1Offset=10;p2=new Wt;p2Offset=40;p3=new Wt;p3Offset=10;p4=new Wt;p4Offset=10;direction=1;sectorArc;line12;line23;textShape;tipShape;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"",this.sectorArc=new Fg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.getAttrs()},{strokeWidth:"0"})}),this.addShape(this.sectorArc);const e=Object.assign({...this.getAttrs()},{fill:"none"});this.line12=new he({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new he({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new _r({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tipShape=new Ng({x:0,y:0,text:this.tip,isShow:!1}),this.tip&&this.addShape(this.tipShape)}frameUpdate(t){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sectorArc.isMouseIn,this.line23.isShow=this.sectorArc.isMouseIn,this.textShape.isShow=this.sectorArc.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:n,dy:i}=ds(Lt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+n,this.p1.y=this.y+i;const{dx:r,dy:o}=ds(Lt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+r,this.p2.y=this.y+o,this.line12.x=this.p1.x,this.line12.y=this.p1.y,this.line12.toX=this.p2.x,this.line12.toY=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.x=this.p2.x,this.line23.y=this.p2.y,this.line23.toX=this.p3.x,this.line23.toY=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sectorArc.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=t.x,this.tipShape.y=t.y):(this.tipShape.isShow=!1,this.tipShape.x=t.x,this.tipShape.y=t.y)}}class Fg extends Ht{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;durationTime;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.durationTime=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.durationTime,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.durationTime,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=ds(Lt(this.startDegree),this.radius),{dx:n,dy:i}=ds(Lt(this.endDegree),this.radius);return[["m",0,0],["l",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Lt(this.startDegree),Lt(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=Jo(this.x,this.y,t,e),i=Ie(vn(this.x,this.y,t,e));return n<=this.radius&&i>=this.startDegree&&i<=this.endDegree}}class Lg extends es{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new Ht({...t,d:[["M",10,0],["L",-10,10],["L",-5,0],["L",-10,-10],["L",10,0],["Z"]]}),this.addShape(this.ship),this.flame=new Ht({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Wo(()=>{this.ship.x=this.x,this.ship.y=this.y,this.flame.x=this.x,this.flame.y=this.y,this.flame.isShow=this.showFlame})}}class Xu extends bn{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,n=t?.max||100,i=t?.step||1,r=yu(e,n,i);this.value=r(typeof t?.defaultValue=="number"?qt(t.defaultValue,e,n):e);const o=this.value/(n-e),a=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,h=t?.barColor||Pt.colorGrayF5,f=t?.handleColor||Pt.colorPrimary;this.backgroundRect=new ye({x:this.x,y:this.y,width:a,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new ye({x:this.x,y:this.y,width:a*o,height:l,borderRadius:u,attrs:{fill:f},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new Wt({x:this.x+a*o,y:this.y+u,diffXInGroup:a*o,diffYInGroup:u,radius:c,alongPath:new Me({x:this.x,y:this.y+u,d:[["m",0,0],["l",a,0]]}),attrs:{fill:f},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",m=>{this.occupyRect.width=qt(this.occupyRect.width+m,0,a),this.value=r((this.handle.x-this.x)/a*(n-e)+e),this.emit("change",this.value)})}}class xn extends bn{width;height;cornerRadius;controlPoint;mainRect;rightPoint;constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.controlPoint=new Wt({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new ye({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,diffXInGroup:-this.cornerRadius,diffYInGroup:-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),this.rightPoint=new Wt({...t,x:this.x+this.width,y:this.y,diffXInGroup:this.width,radius:2}),this.addShape([this.mainRect,this.controlPoint,this.rightPoint])}getPin(){return{x:this.controlPoint.x+Math.cos(Lt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Lt(this.controlPoint.degree))*this.width}}}class _a extends Ht{extendDegree;radius;startDegree;endDegree;diffDegree;constructor(t){super(t),this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth;this.radius=e-e*Math.abs(Math.sin(Lt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Lt(this.extendDegree))),this.diffDegree=t.endDegree-t.startDegree,this.startDegree=180+t.startDegree-this.extendDegree,this.endDegree=180+t.endDegree+this.extendDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.color||"none"})}setPercent(t){this.endDegree=this.startDegree+(this.diffDegree+this.extendDegree*2)*t}toSVGPathData(){const{dx:t,dy:e}=ds(Lt(this.startDegree),this.radius),{dx:n,dy:i}=ds(Lt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Lt(this.startDegree),Lt(this.endDegree),!1)}}let ju=class extends bn{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,n=t?.endDegree||180,i=t?.extendDegree||15,r=t?.lineWidth||12;this.bgColor=t?.bgColor||"#B3C6E7",this.startColor=t?.startColor||"#5A82F0",this.endColor=t?.endColor||"#66B3FF",this.percent=t?.percent||0,this.indicatorLineCount=22+1;const o=20,a=2,l=17;this.ringBg=new _a({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new _a({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+o;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new he({...t,centerX:this.ringBg.x,centerY:this.ringBg.y,x:this.ringBg.x,y:c,toX:this.ringBg.x,toY:c+l,degree:this.ringBg.startDegree+90+(n-e+i*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(a),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,n)=>{this.shapes.forEach(i=>{i!=n&&(i.x+=t,i.y+=e)})})}frameUpdate(t,e){const n=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),i=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const r=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+n,-i,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:r})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let r=0;r<this.indicatorLineCount;r++){const o=r/(this.indicatorLineCount-1)<=this.percent;this.lines[r].setAttr({stroke:o&&e?e.createLinearGradient(0,0,this.lines[r].toX-this.lines[r].x,this.lines[r].toY-this.lines[r].y,{0:this.startColor,1:this.endColor}):o?this.startColor:this.bgColor})}}};class $g extends es{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:m,ticks:d,colors:S,scalar:k,flat:_}=Object.assign({shape:ye,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:vg,scalar:1,flat:!1},n||{}),x=Lt(l),y=Lt(c);let p=a;for(;p--;){const w=S[p%S.length],b=new i({x:t*r,y:e*o,width:10,height:10,scalar:k,attrs:{fill:w},independentTransformInGroup:!0});this.addShape(b),this.fettis.push({shape:b,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-x+(.5*y-Math.random()*y),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:d,decay:h,drift:m,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:k,flat:_,color:De(w)})}}frameUpdate(t){this.fettis.length&&(this.fettis=this.fettis.filter(e=>{e.shape.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.shape.x+10*e.scalar,e.wobbleY=e.shape.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.shape.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.shape.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);const n=e.tick++/e.totalTicks,i=e.shape.x+e.random*e.tiltCos,r=e.shape.y+e.random*e.tiltSin,o=e.wobbleX+e.random*e.tiltCos,a=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-n).toString()),e.shape.degree=Ie(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(o-i)*.1,e.shape.scalarY=Math.abs(a-r)*.1,e.tick<e.totalTicks}))}}class Re{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(n=>{n.run(),t?.wall&&n.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let n=0,i=e-1;n<i;n++)for(let r=n+1;r<e;r++)this.shapes[n].checkCollision(this.shapes[r])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,n)=>{e.run();for(let i=n+1;i<t;i++)e.checkCollision(this.shapes[i]),e.gravitateTo(this.shapes[i])})}springChain(t){this.shapes.forEach((e,n)=>{n>0&&e.runSpringTo(this.shapes[n-1],t)})}springConnect(t){const e=As(t?.springLength,100);this.shapes.forEach(n=>{n.isDragging||this.shapes.filter(i=>i.id!==n.id).forEach(i=>{const r=vn(n.x,n.y,i.x,i.y);n.runSpringTo({x:i.x-Math.cos(r)*e,y:i.y-Math.sin(r)*e},t)})})}springMass(t,e){const n=this.shapes.length,i=[];return this.shapes.forEach((r,o)=>{r.run(e),r.x>t.x+t.width?r.x=t.x:r.x<t.x&&(r.x=t.x+t.width),r.y>t.y+t.height?r.y=t.y:r.y<t.y&&(r.y=t.y+t.height);for(let a=o+1;a<n;a++)i.push([r.x,r.y,this.shapes[a].x,this.shapes[a].y,r.springMassTo(this.shapes[a],e)])}),i}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let i=0;i<t;i++){const r=this.shapes[i].initPathD();this.shapes[i].frameStart();const o=this.shapes[i+1].initPathD();this.shapes[i+1].frameStart();const a=Math.max(r.polymorphPoints.length,o.polymorphPoints.length);e[i]=Me.getPathInterpolator(r.expendFill(a),o.expendFill(a))}const n=new Ht({d:e[0](0)});return i=>{const r=we(t*i,6),o=Math.min(Math.floor(r),t-1),a=we(r-o,6);n.originD=e[o](a);const l=this.shapes[o].getAttr("fill","none"),c=this.shapes[o+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&n.setAttr("fill",wt.gradient(l,c,a).toString());const u=this.shapes[o].getAttr("stroke","none"),h=this.shapes[o+1].getAttr("stroke","none");return typeof u=="string"&&typeof h=="string"&&n.setAttr("stroke",wt.gradient(u,h,a).toString()),n}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const n=[];this.shapes.forEach(a=>{let l;a instanceof es?(l=a,l.sortPathD()):(l=new es,l.addShape(a)),n.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),n.forEach(a=>{a!==e&&a.expendFill(e)});const i=[];n.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>{r.push(new Re(a).polymorph())});const o=new es;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}polymorphTween(t=6e3,e){const n=this.shapes.findIndex(a=>a instanceof es)>=0?this.polymorphGroup():this.polymorph(),i=n(0),r=e?.onUpdate,o=new He({frameDuration:t});o.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(a,l)=>{n(a.t),r?.(a,l),e?.draw?.(i)}})),o.play()}static generatePointsShape(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=ds(a,n);r.push({x:t+l,y:e+c})}return new Bu({points:r})}static generateRosettaShape(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=[],a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.push(new na({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),o.push(new na({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Ht({d:Me.fromLines(o)})}}function Vg(s){return window.URL.createObjectURL(s)}const Uu=new qo;async function zg(s,t=6e4){const e=typeof s=="string"?s:Vg(s);return new Promise((n,i)=>{const r=Uu.get(e);if(r)return n(r);const o=new Image;o.onload=l=>{clearTimeout(a);const c=o.naturalWidth||o.width,u=o.naturalHeight||o.height,h={width:c,height:u,aspectRatio:c/u,imageData:Hm(o),element:o};Uu.set(e,h),n(h),o.onerror=o.onload=null},o.onerror=l=>{clearTimeout(a),i(l)},o.src=e;const a=setTimeout(()=>{i("Timeout!")},t)})}async function Bg(s,t=6e4){return new Promise((e,n)=>{const i=document.createElement("script");i.type="text/javascript",i.async=!1,i.onload=o=>{clearTimeout(r),e(o),i.onerror=i.onload=null},i.onerror=o=>{clearTimeout(r),n(o)},i.src=s;const r=setTimeout(()=>{n("Timeout!")},t);document.body.appendChild(i)})}function Hu(s,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof s=="string"?e.href=s:e.href=window.URL.createObjectURL(s),e.click()}const br=new qo,Gg=(s=!0)=>{br.filter((t,e)=>(e.alternate&&(rh(e,e.alternate),s&&br.set(t,e.alternate),e.alternate=void 0),s))};function Wu(s){let t=br.get(s);return t||(t=xa(s),br.set(s,t)),t}function Yg(s){const t=Wu(s);return t.alternate||(t.alternate=xa(s)),t.alternate}function qu(s,t,e=!0){t(Yg(s)),Iu("FLUSH_DOM_ACTION",()=>Gg(e),50)}function ai(s,t,e){const n=Wu(s);return t?n.props.style[t]||n.props.style[fu(t)]||n.props.style[Ue(t)]:n.props.style}function Zu(s,t,e){qu(s,n=>{typeof t=="string"&&e?n.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(i=>{n.props.style[i]=t[i]})},!0)}function Qu(s){const t=[];if(getComputedStyle){const e=getComputedStyle(s);for(let n=0,i=e.length;n<i;n++)t.push(e[n]+":"+e.getPropertyValue(e[n]))}else{const e=s.currentStyle;for(const n in e)t.push(n+":"+e[n])}return t.push(...(s.style.cssText||"").split(";")),Object.fromEntries(t.filter(e=>!!e).map(e=>e.split(":").map((n,i)=>i==0?fu(n).trim():n.trim())))}function ba(s,t,e){typeof t=="string"&&e?s.style.setProperty(Ue(t),e.replace(/!important/i,""),String(e).toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(n=>{ba(s,n,t[n])})}function Ku(s,t){typeof t=="string"?s.style.removeProperty(Ue(t)):Object.keys(t).forEach(e=>{Ku(s,e)})}function rn(s,t){let e;if(typeof t=="string"){const i=document.querySelector(t)?.shadowRoot;i?e=i:e=document.querySelector(t)}else e=t||document.getElementsByTagName("head")[0];const n=document.createElement("style");if(n.innerHTML=s,e)return e.appendChild(n),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(n)};{const i=document.styleSheets[0].insertRule(s);return()=>{document.styleSheets[0].deleteRule(i)}}}function Xg(s,t,e={}){Object.prototype.hasOwnProperty.call(e,"transform")||Object.assign(e,{transform:ai(s,"transform")||""});const n=Lu(e.transform),i={};for(const r in t){const o=t[r];switch(r){case"transform":break;case"translate":n.translate(o[0]||0,o[1]||0);break;case"translateTo":n.translateTo(o[0]||0,o[1]||0);break;case"translateX":n.translateX(o||0);break;case"translateXTo":n.translateXTo(o||0);break;case"translateY":n.translateY(o||0);break;case"translateYTo":n.translateYTo(o||0);break;case"translateZ":n.translateZ(o||0);break;case"translateZTo":n.translateZTo(o||0);break;case"translate3d":n.translate3d(o[0]||0,o[1]||0,o[2]||0);break;case"translate3dTo":n.translate3dTo(o[0]||0,o[1]||0,o[2]||0);break;case"rotate":typeof o=="number"?n.rotate(o||0):n.rotate(o[0]||0,o[1]||0,o[2]||0);break;case"rotateTo":typeof o=="number"?n.rotateTo(o||0):n.rotateTo(o[0]||0,o[1]||0,o[2]||0);break;case"rotateX":n.rotateX(o||0);break;case"rotateXTo":n.rotateXTo(o||0);break;case"rotateY":n.rotateY(o||0);break;case"rotateYTo":n.rotateYTo(o||0);break;case"rotateZ":n.rotateZ(o||0);break;case"rotateZTo":n.rotateZTo(o||0);break;case"rotate3d":n.rotate3d(o[0]||0,o[1]||0,o[2]||0);break;case"rotate3dTo":n.rotate3dTo(o[0]||0,o[1]||0,o[2]||0);break;case"scale":typeof o=="number"?n.scale(o||1):n.scale(o[0]||1,o[1]||1,o[2]||0,o[3]||0);break;case"scaleTo":typeof o=="number"?n.scaleTo(o||1):n.scaleTo(o[0]||1,o[1]||1,o[2]||0,o[3]||0);break;case"scaleX":n.scaleX(o||1);break;case"scaleXTo":n.scaleXTo(o||1);break;case"scaleY":n.scaleY(o||1);break;case"scaleYTo":n.scaleYTo(o||1);break;case"scaleZ":n.scaleZ(o||1);break;case"scaleZTo":n.scaleZTo(o||1);break;case"scale3d":typeof o=="number"?n.scale3d(o||1):n.scale3d(o[0]||1,o[1]||1,o[2]||1);break;case"scale3dTo":typeof o=="number"?n.scale3dTo(o||1):n.scale3dTo(o[0]||1,o[1]||1,o[2]||1);break;case"skew":typeof o=="number"?n.skew(o||0):n.skew(o[0]||0,o[1]||0);break;case"skewTo":typeof o=="number"?n.skewTo(o||0):n.skewTo(o[0]||0,o[1]||0);break;case"skewX":n.skewX(o||0);break;case"skewXTo":n.skewXTo(o||0);break;case"skewY":n.skewY(o||0);break;case"skewYTo":n.skewYTo(o||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":n.perspective(o||0);break;default:Object.prototype.hasOwnProperty.call(e,r)||(e[r]=ai(s,r)),Object.assign(i,{[r]:`${o}`});break}}return Object.assign(i,{transform:n.toString()}),i}function wn(s,t,e){if(t===void 0&&e===void 0)return Ju(s);if(typeof t=="string"&&e===void 0)return jg(s,t);let n={};typeof t=="object"?n=t:typeof t=="string"&&typeof e=="string"&&(n[t]=e),qu(s,i=>{Object.entries(n).forEach(([r,o])=>{i.props[r]=o})})}function Ju(s){const t={};for(let e=0,n=s.attributes,i=n.length;e<i;e++){const r=n[e];r.nodeName&&r.nodeValue&&(r.nodeName==="style"?t[r.nodeName]=Qu(s):t[r.nodeName]=r.nodeValue)}return t}function jg(s,t){return t==="style"?Qu(s):s.getAttribute(Ue(t))}function th(s,t,e){return s.setAttribute(Ue(t),e)}function eh(s,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(s.className)||!1}function Cn(s){return{el:s,isRoot:()=>/(html|body)/i.test(s.tagName)||s===document.documentElement,isActive:()=>s===document.activeElement&&(s.type||s.href),parent:()=>s.parentElement,parents:function(t=s,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,n=t.length;e<n;e++)if(/(auto|scroll)/.test(ai(t[e],"overflow")+ai(t[e],"overflow-y")+ai(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>s.contains?s!=t&&s.contains(t):!!(s.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(s.parentElement?.children).filter(t=>t!==s),nextElementSibling:()=>s.nextElementSibling,previousElementSibling:()=>s.previousElementSibling,closest:t=>s.closest(t),shadowRoot:()=>s.shadowRoot,isInput:()=>s.tagName==="INPUT"||s instanceof HTMLInputElement,isSelect:()=>s.tagName==="SELECT"||s instanceof HTMLSelectElement,isTextArea:()=>s.tagName==="TEXTAREA"||s instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(s)&&s.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(s)&&s.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(s)&&s.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(s)&&s.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=s.options;for(let n=0,i=e.length;n<i;n++)e[n].selected=e[n].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(s.name);for(let n=0,i=e.length;n<i;n++){const r=e[n];r.checked=r.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(s.checked=t)},insert:(t,e="append")=>{typeof t=="string"?s[e](Ug(t)):s[e](t)},html:function(t){if(typeof t=="string"){s.innerHTML=t;const e=sh(s);e!=s&&(s=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{s.textContent=t},getInnerText:()=>{if(s instanceof SVGElement)return"";let t=s.innerText;if(!t){const e=s.querySelector("slot")?.assignedNodes()||[];let n=0;for(;!t&&n<=e.length-1;)"innerText"in e[n]&&(t=e[n].innerText),n++}return t},remove:()=>s.remove()}}function Ug(s){const t=document.createElement("template");return t.innerHTML=s,t.content.childNodes.forEach(e=>{const n=sh(e);n!=e&&t.content.replaceChild(n,e)}),t.content}function sh(s){return s.tagName=="SCRIPT"&&(s=nh(s)),s.querySelectorAll&&s.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(nh(t),t)}),s}function nh(s){const t=s.ownerDocument.createElement("script");t.text=s.text;const e=s.attributes;for(let n=0,i=e.length;n<i;n++)t.setAttribute(e[n].name,e[n].value);return t}async function ih(s){if(navigator.clipboard)return await navigator.clipboard.writeText(s);{const t=document.createElement("textarea");return t.value=s,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function Hg(s,t={},e=[],n){return{tag:s,props:t,children:e,el:n}}function xa(s){return Hg(s.tagName,Ju(s),Array.from(s.children).map(t=>xa(t)),s)}function xr(s,t=document.documentElement){if(s.el)return s.el;if(s.el=document.createElement(s.tag),s.props)for(const e in s.props){const n=s.props[e];e.startsWith("on")?s.el.addEventListener(e.slice(2).toLowerCase(),n):e==="style"?ba(s.el,s.props[e]):th(s.el,e,n)}return s.children&&(typeof s.children=="string"?s.el.appendChild(document.createTextNode(s.children)):s.children.forEach(e=>{xr(e,s.el)})),t.appendChild(s.el),s.el}function rh(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(xr(t),s.el);return}const e=t.el=s.el,n=s.props,i=t.props;for(const a in n)a in i||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),n[a]):e.removeAttribute(a));for(const a in i){const l=n[a],c=i[a];if(c!=l)if(a.startsWith("on")){const u=a.slice(2).toLowerCase();e.removeEventListener(u,l),e.addEventListener(u,c)}else if(a==="style"){for(const u in l)u in c||Ku(e,u);ba(e,c)}else th(e,a,c)}const r=s.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof r=="string")e.innerHTML="",o.forEach(a=>{xr(a,e)});else{const a=Math.min(r.length,o.length);for(let l=0;l<a;l++)rh(r[l],o[l]);o.length>r.length&&o.slice(r.length).forEach(l=>{xr(l,e)}),o.length<r.length&&r.slice(o.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function Wg(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const i=function(){const r=Math.min(t.clientWidth,s);t.dataset.width=r,t.dataset.rem=n=Math.round(100*(r/s)),t.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}class oh{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new sa(this.app.container,this.app.width,this.app.height,e),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(n,i)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=i.dx,this.dragDy+=i.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let i=n.parent;for(;i;)i.emit("clicked",n),i=i.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t.usePathDtoCanvasContext||(this.ctx.translate(t.x,t.y),this.ctx.rotate(Lt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalarX,t.scalarY,t.cX,t.cY))}_addDrawShape(t){this.shapes.push(t),t instanceof es&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),qg(this.ctx,e.getAttrs()),e.followMouse&&(!lr(e.x,this.app.mousePoint.x,5)||!lr(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e.frameUpdate(this.app.mousePoint,this.ctx),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill();const n=this.ctx.currentPath2D;if(!this.currentMouseInShape){const i=this.ctx.isPointInPath(n,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(n,this.app.mousePoint.x,this.app.mousePoint.y)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint),this.ctx.restore()}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=De(r);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,f=this.app.mousePoint.x+Math.cos(u)*h|0,m=this.app.mousePoint.y+Math.sin(u)*h|0,d=(f+m*o.width)*4;a[d]=l.r,a[d+1]=l.g,a[d+2]=l.b,a[d+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),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())}})}}}function qg(s,t){for(const e in t){const n=t[e];switch(e){case"fill":n!=="none"&&(s.fillStyle=n);break;case"stroke":n!=="none"&&(s.strokeStyle=n);break;case"stroke-width":case"strokeWidth":s.lineWidth=Number(n);break;case"stroke-linecap":case"strokeLinecap":s.lineCap=n;break;case"stroke-linejoin":case"strokeLinejoin":switch(n){case"round":case"bevel":case"miter":s.lineJoin=n;break;default:s.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":s.miterLimit=Number(n);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":s.lineDashOffset=Number(n);break;case"stroke-dasharray":case"strokeDasharray":typeof n=="string"&&s.setLineDash(n.split(/\s+/).map(i=>Number(i)));break;case"cursor":break;case"font":typeof n=="string"&&(s.font=n);break;case"font-size":case"fontSize":s.font+=` ${n}`;break;case"font-family":case"fontFamily":s.font+=` ${n}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(n){case"middle":s.textAlign="center";break;case"end":s.textAlign="end";break;case"start":s.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(n){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":s.textBaseline=n;break;default:s.textBaseline="alphabetic";break}break}}}class Zg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const Qg=lt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),U("span",{class:"icon",style:z(["color: "+e.color])},[ft(Mt(xm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),U_="",pt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},on=pt(Qg,[["__scopeId","data-v-8789b4ce"]]),Kg={class:"loading-11",ref:"loading11"},Jg={class:"container container-1"},t0={class:"container container-2"},e0={class:"container container-3"},s0=lt({__name:"Loading11",props:{color:{default:Pt.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(F(),U("div",Kg,[P("div",{class:"loading-11-inner",style:z({width:t.width,height:t.width})},[P("div",Jg,[P("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)]),P("div",t0,[P("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)]),P("div",e0,[P("div",{class:"dot dot-1",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:z({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:z({backgroundColor:t.color})},null,4)])],4)],512))}}),H_="",wa=pt(s0,[["__scopeId","data-v-f95fac77"]]),n0={key:0,class:"loading"},i0=lt({customOptions:{Loading11:wa},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(n.borderColor),a=M(n.bgColor),l=M(n.fontColor),c=M(n.borderColor),u=M(n.bgColor);function h(p){switch(p){case"outline":o.value=n.borderColor??Pt.colorPrimary,a.value=n.bgColor??Pt.colorGrayFF,l.value=n.fontColor??Pt.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Pt.colorPrimary,a.value=n.bgColor??Pt.colorPrimary,l.value=n.fontColor??Pt.colorGrayFF,c.value=o.value,u.value=a.value;break}}Nt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=M(n.disabled?"0.6":"1"),m=M(n.disabled?"not-allowed":"pointer");let d=!1;const S=()=>{n.disabled||(d=!0,o.value=De(c.value).lighten(.05).toString(),a.value=De(u.value).lighten(.05).toString())},k=()=>{n.disabled||(d=!1,o.value=c.value,a.value=u.value)},_=M(!1),y=Nm(()=>{n.disabled||_.value||(o.value=De(c.value).darken(.05).toString(),a.value=De(u.value).darken(.05).toString(),setTimeout(()=>{d?S():k()},150),i("yz-click"),i("click"),n.asyncClick&&(_.value=!0,n.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:r}),(p,w)=>(F(),U("div",{ref_key:"el",ref:r,class:"button",style:z([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${m.value}`,"user-select: none"]),onMouseover:S,onMouseleave:k,onClick:w[0]||(w[0]=(...b)=>Mt(y)&&Mt(y)(...b))},[P("label",{class:"label truncate",style:z({padding:"0 "+p.padding,cursor:m.value})},[_.value?(F(),U("div",n0,[ft(wa,{color:l.value},null,8,["color"])])):$t("",!0),St(p.$slots,"default",{},()=>[p.icon&&p.iconPosition==="left"?(F(),Gt(on,{key:0,icon:p.icon,color:l.value,style:z({marginRight:Mt(Pt).d4,cursor:m.value})},null,8,["icon","color","style"])):$t("",!0),P("span",{style:z({cursor:m.value})},bt(p.label),5),p.icon&&p.iconPosition==="right"?(F(),Gt(on,{key:1,icon:p.icon,color:l.value,style:z({marginLeft:Mt(Pt).d4,cursor:m.value})},null,8,["icon","color","style"])):$t("",!0)],!0)],4)],36))}}),W_="",ve=pt(i0,[["__scopeId","data-v-b3e1b144"]]),r0=["onClick","value"],o0={class:"option-inner"},a0=lt({customOptions:{Icon:on,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;Es(()=>{rn(`
48
48
  :root {
49
49
  --select-option-bg-color: ${Pt.colorGrayFF};
50
50
  --select-option-bg-color-hover: ${Pt.colorGrayF5};
51
51
  }
52
- `)});const i=M(!1),r=M(e.initIndex);Mt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(F(),H("div",{class:"select",style:z(["font-size:"+l.fontSize])},[P("div",{onClick:o},[St(l.$slots,"button",{selectedIndex:r.value},()=>[ft(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Qs(P("div",{class:"options",style:z({border:"1px solid "+Lt(Pt).colorGrayCC})},[(F(!0),H($t,null,ge(l.options,(u,h)=>(F(),H("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:z({borderTop:(h==0?"0":"1px")+" solid "+Lt(Pt).colorGrayCC})},[P("div",o0,[St(l.$slots,"default",{item:u,index:h},()=>[P("span",null,xt(u),1),h==r.value?(F(),Bt(on,{key:0,icon:"mingcute:check-fill",class:"icon"})):Gt("",!0)],!0)])],12,r0))),128))],4),[[Rs,i.value]])],4))}}),q_="",l0=pt(a0,[["__scopeId","data-v-4ae1205c"]]),c0=["width","height"],u0=["fill"],h0=lt({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Pt.colorGrayCC}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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:t.color},null,8,u0)],8,c0))}}),Z_="",li=pt(h0,[["__scopeId","data-v-b1f2ae20"]]),f0={class:"button-default"},d0={class:"truncate"},p0=["onClick","value"],m0=lt({customOptions:{SVGDown:li},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:Pt.colorGrayFF},hoverColor:{default:Pt.colorGrayF5},selectedColor:{default:Pt.colorPrimary},fontColor:{default:Pt.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;Es(()=>{rn(`
52
+ `)});const i=M(!1),r=M(e.initIndex);Nt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(F(),U("div",{class:"select",style:z(["font-size:"+l.fontSize])},[P("div",{onClick:o},[St(l.$slots,"button",{selectedIndex:r.value},()=>[ft(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Qs(P("div",{class:"options",style:z({border:"1px solid "+Mt(Pt).colorGrayCC})},[(F(!0),U(Vt,null,ge(l.options,(u,h)=>(F(),U("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:z({borderTop:(h==0?"0":"1px")+" solid "+Mt(Pt).colorGrayCC})},[P("div",o0,[St(l.$slots,"default",{item:u,index:h},()=>[P("span",null,bt(u),1),h==r.value?(F(),Gt(on,{key:0,icon:"mingcute:check-fill",class:"icon"})):$t("",!0)],!0)])],12,r0))),128))],4),[[Rs,i.value]])],4))}}),q_="",l0=pt(a0,[["__scopeId","data-v-4ae1205c"]]),c0=["width","height"],u0=["fill"],h0=lt({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Pt.colorGrayCC}},setup(s){const t=s;return(e,n)=>(F(),U("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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:t.color},null,8,u0)],8,c0))}}),Z_="",li=pt(h0,[["__scopeId","data-v-b1f2ae20"]]),f0={class:"button-default"},d0={class:"truncate"},p0=["onClick","value"],m0=lt({customOptions:{SVGDown:li},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:Pt.colorGrayFF},hoverColor:{default:Pt.colorGrayF5},selectedColor:{default:Pt.colorPrimary},fontColor:{default:Pt.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;Es(()=>{rn(`
53
53
  :root {
54
54
  --select-option-bg-color: ${e.bgColor};
55
55
  --select-option-bg-color-hover: ${e.hoverColor};
56
56
  }
57
- `)});const i=M(!1),r=M(e.initIndex);Mt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=M("rotate(-180deg)");return Ll(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),H("div",{class:"select-absolute",style:z({fontSize:e.fontSize,backgroundColor:e.bgColor})},[P("div",{class:"select-absolute-button",onClick:o},[St(c.$slots,"button",{selectedIndex:r.value},()=>[P("div",f0,[P("div",d0,xt(c.options[r.value]),1),ft(li,{class:"icon-down",width:"20px",style:z({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),P("div",{class:"options",style:z({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(F(!0),H($t,null,ge(c.options,(h,f)=>(F(),H("div",{onClick:m=>a(f),class:"option",key:f,value:f},[St(c.$slots,"default",{item:h,index:f},()=>[P("div",{class:"option-default",style:z({color:r.value==f?e.selectedColor:e.fontColor})},xt(h),5)],!0)],8,p0))),128))],4)],4))}}),Q_="",g0=pt(m0,[["__scopeId","data-v-a06226ed"]]),y0=lt({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"44px"},height:{default:"26px"},padding:{default:"3px"},colorPrimary:{default:"#5a82f0"},colorBgOn:{default:"#efefef"},colorBgOff:{default:"#f5f5f5"}},emits:["change"],setup(s,{emit:t}){const e=s,n=Je(e.width),i=Je(e.height),r=Je(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-Je(a).number-Je(o).number+n.suffix,c=t,u=M(e.init);Mt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,m)=>(F(),H("div",{class:"switch",onClick:h,style:z(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[P("span",{class:"round",style:z(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Lt(De)(e.colorPrimary).lighten(.5).toString()),"transform: translate("+(u.value?l:Lt(a))+", 0)"])},null,4)],4))}}),K_="",v0=pt(y0,[["__scopeId","data-v-2ef84ee0"]]),_0=["stroke","fill"],b0=["stroke","fill"],x0=["stroke"],w0=lt({customOptions:{},__name:"BooleanBox",props:{selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!0},label:{default:""},labelPadding:{default:"2px"},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},boxWidth:{default:"20px"},fontSize:{default:"14px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=M(n.selected),o=M(n.disabled),a=M(n.label);const l=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorDisabled:n.colorBackground;case"reverse":default:return o.value?n.colorDisabled:r.value?n.colorForeground:n.colorBackground}},c=()=>o.value?n.colorDisabled:De(l()).darken(.2).toString(),u=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorBackground:n.colorForeground;case"reverse":default:return r.value?n.colorBackground:n.colorForeground}},h=()=>{o.value||(m(),i("change",r.value))},f=x=>{x!==r.value&&(r.value=x)},m=()=>{r.value=!r.value};return t({setValue:f,toggleValue:m,getValue:()=>r.value,enable:()=>{o.value=!1},disable:()=>{o.value=!0},setLabel:x=>{a.value=x}}),(x,y)=>(F(),H("div",{class:ie(["boolean-box",Lt(o)?"disabled":""]),onClick:h},[St(x.$slots,"default",{selected:Lt(r),disabled:Lt(o),label:Lt(a)},()=>[(F(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:z(["width:"+n.boxWidth])},[n.isRounded?Gt("",!0):(F(),H("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,_0)),n.isRounded?(F(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,b0)):Gt("",!0),Lt(r)?(F(),H("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,x0)):Gt("",!0)],4)),x.label?(F(),H("span",{key:0,style:z(["font-size:"+n.fontSize,"margin-left:"+n.labelPadding])},xt(x.label),5)):Gt("",!0)],!0)],2))}}),J_="",ci=pt(w0,[["__scopeId","data-v-3df94794"]]),C0=lt({customOptions:{BooleanBox:ci},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{default:0},isRounded:{type:Boolean,default:!0},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=M([]),r=(l,c)=>{l&&(i.value[c]=l)};let o=M(e.initIndex);const a=(l,c)=>{o.value!==l?(i.value[o.value].toggleValue(),c&&(o.value=l,n("change",e.options[o.value]))):c||i.value[o.value].setValue(!0)};return(l,c)=>(F(!0),H($t,null,ge(l.options,(u,h)=>(F(),H("div",{class:"radio-group",key:h,style:z(["margin-left:"+(h>0?e.itemPadding:0)])},[ft(ci,{ref_for:!0,ref:f=>r(f,h),selected:Lt(o)==h,disabled:l.disabledIndexs&&l.disabledIndexs.findIndex(f=>f===h)>=0,isRounded:e.isRounded,label:u,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:f=>a(h,f)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),tb="",Ca=pt(C0,[["__scopeId","data-v-308d559c"]]),T0=lt({customOptions:{BooleanBox:ci},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=Jt(e.initIndexs??[]);const r=(o,a)=>{const l=i.findIndex(u=>u===o);let c=!1;l>=0&&!a?(i.splice(l,1),c=!0):l<0&&a&&(i.push(o),c=!0),c&&n("change",i.map(u=>e.options[u]))};return(o,a)=>(F(!0),H($t,null,ge(o.options,(l,c)=>(F(),H("div",{class:"checkbox-group",key:c,style:z(["margin-left:"+(c>0?e.itemPadding:0)])},[ft(ci,{selected:Lt(i).findIndex(u=>u===c)>=0,disabled:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0,isRounded:e.isRounded,label:l,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:u=>r(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),eb="",wr=pt(T0,[["__scopeId","data-v-4c28fda3"]]),S0=["width","height"],k0=["fill"],E0=["fill"],P0=["fill"],O0=lt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Pt.colorRed}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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:t.color},null,8,k0),P("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:t.color},null,8,E0),P("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:t.color},null,8,P0)],8,S0))}}),sb="",ah=pt(O0,[["__scopeId","data-v-41294f60"]]),I0={class:"input"},D0={class:"ellipsis"},R0={class:"input-wrap"},A0=["type","required"],M0={key:0,style:{paddingLeft:"0.5em"}},N0={key:1},F0=lt({customOptions:{SVGPrompt:ah},inheritAttrs:!0,__name:"Input",props:{placeholder:{default:""},placeholderType:{default:"normal"},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:"#5a82f0"},errorColor:{default:"#ff5050"},borderColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{},defaultValue:{}},emits:["focus","yz-focus","blur","yz-blur","input","yz-input"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=M(),l=M(!1),c=M(""),u=M(n.defaultValue||"");function h(){l.value=!0,i("focus"),i("yz-focus")}function f(){l.value=!1,i("blur"),i("yz-blur"),d()}function m(S){u.value=S.target.value,d()}function d(){if(u.value&&n.validator){const S=n.validator(u.value);if(!S.valid){c.value=S.errors[0];return}}c.value="",u.value&&(i("input",u.value),i("yz-input",u.value))}return Es(()=>{n.defaultValue&&(a.value.value=n.defaultValue)}),le(()=>{}),t({}),(S,k)=>(F(),H("div",I0,[c.value?(F(),H("div",{key:0,class:"error-text",style:z({color:n.errorColor})},[ft(ah,{class:"icon"}),P("div",D0,xt(c.value),1)],4)):Gt("",!0),P("div",R0,[P("input",{ref_key:"inputEl",ref:a,class:ie(["input-raw",l.value||u.value?"focus":""]),type:n.type,required:n.required,autocomplete:"off",style:z({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:c.value?n.errorColor:l.value?n.focusColor:u.value||n.placeholderType=="normal"?n.borderColor:"transparent",transition:n.duration+"ms"}),onFocus:h,onBlur:f,onInput:m,onChange:m},null,46,A0),P("div",{class:"placeholder",style:z({lineHeight:l.value||u.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderType=="normal"?"":n.duration+"ms",transform:n.placeholderType=="normal"?"":l.value||u.value?"translateY(-100%)":"none"})},[!c.value&&n.placeholderType=="normal"&&!l.value&&!u.value?(F(),H("div",M0,xt(n.placeholder),1)):Gt("",!0),!c.value&&n.placeholderType=="jump"?(F(),H("div",N0,xt(n.placeholder),1)):Gt("",!0),!c.value&&n.placeholderType=="jump-each"?(F(!0),H($t,{key:2},ge(Lt(r),(_,x)=>(F(),H("span",{key:x,style:z({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*x}ms`,transform:l.value||u.value?`translateX(${100*x}%) translateY(-100%)`:`translateX(${100*x}%)`}),class:"single"},xt(_),5))),128)):Gt("",!0)],4),P("div",{class:"background",style:z({transition:n.duration+"ms",backgroundColor:n.placeholderType=="normal"||l.value||u.value?"transparent":n.borderColor,height:n.placeholderType=="normal"||l.value||u.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)])]))}}),nb="",L0=pt(F0,[["__scopeId","data-v-4ef89231"]]),$0=["max","min","step","value","autofocus"],V0={key:0,class:"label"},z0=lt({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>we((r.value-n.min)/(n.max-n.min),4)*100,a=M(o());function l(h){r.value=we(h.target.value,2),a.value=o(),i("change",r.value)}const c=`
57
+ `)});const i=M(!1),r=M(e.initIndex);Nt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=M("rotate(-180deg)");return Ll(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),U("div",{class:"select-absolute",style:z({fontSize:e.fontSize,backgroundColor:e.bgColor})},[P("div",{class:"select-absolute-button",onClick:o},[St(c.$slots,"button",{selectedIndex:r.value},()=>[P("div",f0,[P("div",d0,bt(c.options[r.value]),1),ft(li,{class:"icon-down",width:"20px",style:z({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),P("div",{class:"options",style:z({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(F(!0),U(Vt,null,ge(c.options,(h,f)=>(F(),U("div",{onClick:m=>a(f),class:"option",key:f,value:f},[St(c.$slots,"default",{item:h,index:f},()=>[P("div",{class:"option-default",style:z({color:r.value==f?e.selectedColor:e.fontColor})},bt(h),5)],!0)],8,p0))),128))],4)],4))}}),Q_="",g0=pt(m0,[["__scopeId","data-v-a06226ed"]]),y0=lt({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"44px"},height:{default:"26px"},padding:{default:"3px"},colorPrimary:{default:"#5a82f0"},colorBgOn:{default:"#efefef"},colorBgOff:{default:"#f5f5f5"}},emits:["change"],setup(s,{emit:t}){const e=s,n=Je(e.width),i=Je(e.height),r=Je(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-Je(a).number-Je(o).number+n.suffix,c=t,u=M(e.init);Nt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,m)=>(F(),U("div",{class:"switch",onClick:h,style:z(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[P("span",{class:"round",style:z(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Mt(De)(e.colorPrimary).lighten(.5).toString()),"transform: translate("+(u.value?l:Mt(a))+", 0)"])},null,4)],4))}}),K_="",v0=pt(y0,[["__scopeId","data-v-2ef84ee0"]]),_0=["stroke","fill"],b0=["stroke","fill"],x0=["stroke"],w0=lt({customOptions:{},__name:"BooleanBox",props:{selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!0},label:{default:""},labelPadding:{default:"2px"},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},boxWidth:{default:"20px"},fontSize:{default:"14px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=M(n.selected),o=M(n.disabled),a=M(n.label);const l=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorDisabled:n.colorBackground;case"reverse":default:return o.value?n.colorDisabled:r.value?n.colorForeground:n.colorBackground}},c=()=>o.value?n.colorDisabled:De(l()).darken(.2).toString(),u=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorBackground:n.colorForeground;case"reverse":default:return r.value?n.colorBackground:n.colorForeground}},h=()=>{o.value||(m(),i("change",r.value))},f=x=>{x!==r.value&&(r.value=x)},m=()=>{r.value=!r.value};return t({setValue:f,toggleValue:m,getValue:()=>r.value,enable:()=>{o.value=!1},disable:()=>{o.value=!0},setLabel:x=>{a.value=x}}),(x,y)=>(F(),U("div",{class:Kt(["boolean-box",Mt(o)?"disabled":""]),onClick:h},[St(x.$slots,"default",{selected:Mt(r),disabled:Mt(o),label:Mt(a)},()=>[(F(),U("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:z(["width:"+n.boxWidth])},[n.isRounded?$t("",!0):(F(),U("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,_0)),n.isRounded?(F(),U("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,b0)):$t("",!0),Mt(r)?(F(),U("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,x0)):$t("",!0)],4)),x.label?(F(),U("span",{key:0,style:z(["font-size:"+n.fontSize,"margin-left:"+n.labelPadding])},bt(x.label),5)):$t("",!0)],!0)],2))}}),J_="",ci=pt(w0,[["__scopeId","data-v-3df94794"]]),C0=lt({customOptions:{BooleanBox:ci},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{default:0},isRounded:{type:Boolean,default:!0},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=M([]),r=(l,c)=>{l&&(i.value[c]=l)};let o=M(e.initIndex);const a=(l,c)=>{o.value!==l?(i.value[o.value].toggleValue(),c&&(o.value=l,n("change",e.options[o.value]))):c||i.value[o.value].setValue(!0)};return(l,c)=>(F(!0),U(Vt,null,ge(l.options,(u,h)=>(F(),U("div",{class:"radio-group",key:h,style:z(["margin-left:"+(h>0?e.itemPadding:0)])},[ft(ci,{ref_for:!0,ref:f=>r(f,h),selected:Mt(o)==h,disabled:l.disabledIndexs&&l.disabledIndexs.findIndex(f=>f===h)>=0,isRounded:e.isRounded,label:u,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:f=>a(h,f)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),tb="",Ca=pt(C0,[["__scopeId","data-v-308d559c"]]),T0=lt({customOptions:{BooleanBox:ci},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=te(e.initIndexs??[]);const r=(o,a)=>{const l=i.findIndex(u=>u===o);let c=!1;l>=0&&!a?(i.splice(l,1),c=!0):l<0&&a&&(i.push(o),c=!0),c&&n("change",i.map(u=>e.options[u]))};return(o,a)=>(F(!0),U(Vt,null,ge(o.options,(l,c)=>(F(),U("div",{class:"checkbox-group",key:c,style:z(["margin-left:"+(c>0?e.itemPadding:0)])},[ft(ci,{selected:Mt(i).findIndex(u=>u===c)>=0,disabled:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0,isRounded:e.isRounded,label:l,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:u=>r(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),eb="",wr=pt(T0,[["__scopeId","data-v-4c28fda3"]]),S0=["width","height"],k0=["fill"],E0=["fill"],P0=["fill"],O0=lt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Pt.colorRed}},setup(s){const t=s;return(e,n)=>(F(),U("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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:t.color},null,8,k0),P("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:t.color},null,8,E0),P("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:t.color},null,8,P0)],8,S0))}}),sb="",ah=pt(O0,[["__scopeId","data-v-41294f60"]]),I0={class:"input"},D0={class:"ellipsis"},R0={class:"input-wrap"},A0=["type","required"],M0={key:0,style:{paddingLeft:"0.5em"}},N0={key:1},F0=lt({customOptions:{SVGPrompt:ah},inheritAttrs:!0,__name:"Input",props:{placeholder:{default:""},placeholderType:{default:"normal"},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:"#5a82f0"},errorColor:{default:"#ff5050"},borderColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{},defaultValue:{}},emits:["focus","yz-focus","blur","yz-blur","input","yz-input"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=M(),l=M(!1),c=M(""),u=M(n.defaultValue||"");function h(){l.value=!0,i("focus"),i("yz-focus")}function f(){l.value=!1,i("blur"),i("yz-blur"),d()}function m(S){u.value=S.target.value,d()}function d(){if(u.value&&n.validator){const S=n.validator(u.value);if(!S.valid){c.value=S.errors[0];return}}c.value="",u.value&&(i("input",u.value),i("yz-input",u.value))}return Es(()=>{n.defaultValue&&(a.value.value=n.defaultValue)}),le(()=>{}),t({}),(S,k)=>(F(),U("div",I0,[c.value?(F(),U("div",{key:0,class:"error-text",style:z({color:n.errorColor})},[ft(ah,{class:"icon"}),P("div",D0,bt(c.value),1)],4)):$t("",!0),P("div",R0,[P("input",{ref_key:"inputEl",ref:a,class:Kt(["input-raw",l.value||u.value?"focus":""]),type:n.type,required:n.required,autocomplete:"off",style:z({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:c.value?n.errorColor:l.value?n.focusColor:u.value||n.placeholderType=="normal"?n.borderColor:"transparent",transition:n.duration+"ms"}),onFocus:h,onBlur:f,onInput:m,onChange:m},null,46,A0),P("div",{class:"placeholder",style:z({lineHeight:l.value||u.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderType=="normal"?"":n.duration+"ms",transform:n.placeholderType=="normal"?"":l.value||u.value?"translateY(-100%)":"none"})},[!c.value&&n.placeholderType=="normal"&&!l.value&&!u.value?(F(),U("div",M0,bt(n.placeholder),1)):$t("",!0),!c.value&&n.placeholderType=="jump"?(F(),U("div",N0,bt(n.placeholder),1)):$t("",!0),!c.value&&n.placeholderType=="jump-each"?(F(!0),U(Vt,{key:2},ge(Mt(r),(_,x)=>(F(),U("span",{key:x,style:z({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*x}ms`,transform:l.value||u.value?`translateX(${100*x}%) translateY(-100%)`:`translateX(${100*x}%)`}),class:"single"},bt(_),5))),128)):$t("",!0)],4),P("div",{class:"background",style:z({transition:n.duration+"ms",backgroundColor:n.placeholderType=="normal"||l.value||u.value?"transparent":n.borderColor,height:n.placeholderType=="normal"||l.value||u.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)])]))}}),nb="",L0=pt(F0,[["__scopeId","data-v-4ef89231"]]),$0=["max","min","step","value","autofocus"],V0={key:0,class:"label"},z0=lt({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>we((r.value-n.min)/(n.max-n.min),4)*100,a=M(o());function l(h){r.value=we(h.target.value,2),a.value=o(),i("change",r.value)}const c=`
58
58
  :root {
59
59
  --input-range-color: ${n.color};
60
60
  --input-range-thumb-size: ${n.handleSize};
@@ -65,14 +65,14 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Nd(s){retur
65
65
  --input-range-thumb-size: ${n.handleSize};
66
66
  --input-range-track-size: ${n.barHeight};
67
67
  }
68
- `,u=M();return Mt(u,()=>{u.value&&rn(c,u.value)}),le(()=>{}),t({}),(h,f)=>(F(),H("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[P("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:l,style:z({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${a.value}%, ${n.barColor} ${a.value}%, ${n.barColor})`})},null,44,$0),St(h.$slots,"default",{value:r.value},()=>[h.showValue?(F(),H("label",V0,xt(r.value)+xt(n.unit),1)):Gt("",!0)],!0)],512))}}),ib="",$s=pt(z0,[["__scopeId","data-v-cab67db2"]]),B0=["width","height"],G0=lt({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(),a=M(0),l=M(0);let c;Mt(r,()=>{r.value&&(c=new Ls(r.value,!1),c.on("resize",(S,k)=>{const _=fa();a.value=Math.min(S,_.width),l.value=Math.min(k,_.height),m()}),c.start())}),Mt(o,()=>{o.value&&m()});let u,h,f;function m(){u||!o.value||!a.value||!l.value||(u=new Ls(o.value,!1),u.on("resize",(S,k)=>{i("resize",S,k),h=new oh(u,n.enableCustomContext),f?.(h),i("ready",h)}),u.start())}function d(){return new Promise(S=>{if(h)return S(h);f=S})}return le(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:d}),(S,k)=>(F(),H("div",{class:"canvas",ref_key:"canvasOutterRef",ref:r},[P("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:z({backgroundColor:n.bgColor})},null,12,B0)],512))}}),rb="",ns=pt(G0,[["__scopeId","data-v-1fc03287"]]),Y0={class:"input-range-canvas"},X0={key:0,class:"label"},j0=lt({customOptions:{Canvas:ns},inheritAttrs:!0,__name:"InputRangeCanvas",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=m=>{r.value=m,i("change",m)},a=Je(n.handleSize,20).number/2,l=Je(n.barHeight,4).number;let c;const u=()=>{c=new Xu({x:0,y:a-l/2,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:h,handleRadius:a,barHeight:l}),c.on("change",o)};let h=0;const f=M();return Mt(f,()=>{f.value&&f.value.getCanvas().then(m=>{h=m.app.width,u(),m.app.on("resize",d=>{h=d,u()}),Zt(()=>(m.ctx.clearRect(),m.draw(c),!0))})}),le(()=>{}),t({}),(m,d)=>(F(),H("div",Y0,[P("div",{class:"input",style:z({height:n.handleSize})},[ft(ns,{ref_key:"canvasRef",ref:f},null,512)],4),St(m.$slots,"default",{value:r.value},()=>[m.showValue?(F(),H("div",X0,xt(r.value)+xt(n.unit),1)):Gt("",!0)],!0)]))}}),ob="",U0=pt(j0,[["__scopeId","data-v-6f53631b"]]),kt=lt({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},styleSheets:{},supportCopyText:{type:Boolean,default:!1}},emits:["ready","resize","start","end"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},l=()=>{r=="start"?a():o()},c=()=>{r=="start"?o():a()};let u=!1,h,f;const m=M();Mt(m,()=>{if(!(!m.value||h)){if(n.styleSheets){let k="";for(let _ in n.styleSheets)k+=`${_}: ${n.styleSheets[_]};`;rn(`
68
+ `,u=M();return Nt(u,()=>{u.value&&rn(c,u.value)}),le(()=>{}),t({}),(h,f)=>(F(),U("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[P("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:l,style:z({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${a.value}%, ${n.barColor} ${a.value}%, ${n.barColor})`})},null,44,$0),St(h.$slots,"default",{value:r.value},()=>[h.showValue?(F(),U("label",V0,bt(r.value)+bt(n.unit),1)):$t("",!0)],!0)],512))}}),ib="",$s=pt(z0,[["__scopeId","data-v-cab67db2"]]),B0=["width","height"],G0=lt({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(),a=M(0),l=M(0);let c;Nt(r,()=>{r.value&&(c=new Ls(r.value,!1),c.on("resize",(S,k)=>{const _=fa();a.value=Math.min(S,_.width),l.value=Math.min(k,_.height),m()}),c.start())}),Nt(o,()=>{o.value&&m()});let u,h,f;function m(){u||!o.value||!a.value||!l.value||(u=new Ls(o.value,!1),u.on("resize",(S,k)=>{i("resize",S,k),h=new oh(u,n.enableCustomContext),f?.(h),i("ready",h)}),u.start())}function d(){return new Promise(S=>{if(h)return S(h);f=S})}return le(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:d}),(S,k)=>(F(),U("div",{class:"canvas",ref_key:"canvasOutterRef",ref:r},[P("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:z({backgroundColor:n.bgColor})},null,12,B0)],512))}}),rb="",ns=pt(G0,[["__scopeId","data-v-1fc03287"]]),Y0={class:"input-range-canvas"},X0={key:0,class:"label"},j0=lt({customOptions:{Canvas:ns},inheritAttrs:!0,__name:"InputRangeCanvas",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=m=>{r.value=m,i("change",m)},a=Je(n.handleSize,20).number/2,l=Je(n.barHeight,4).number;let c;const u=()=>{c=new Xu({x:0,y:a-l/2,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:h,handleRadius:a,barHeight:l}),c.on("change",o)};let h=0;const f=M();return Nt(f,()=>{f.value&&f.value.getCanvas().then(m=>{h=m.app.width,u(),m.app.on("resize",d=>{h=d,u()}),Zt(()=>(m.ctx.clearRect(),m.draw(c),!0))})}),le(()=>{}),t({}),(m,d)=>(F(),U("div",Y0,[P("div",{class:"input",style:z({height:n.handleSize})},[ft(ns,{ref_key:"canvasRef",ref:f},null,512)],4),St(m.$slots,"default",{value:r.value},()=>[m.showValue?(F(),U("div",X0,bt(r.value)+bt(n.unit),1)):$t("",!0)],!0)]))}}),ob="",U0=pt(j0,[["__scopeId","data-v-6f53631b"]]),kt=lt({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},styleSheets:{},supportCopyText:{type:Boolean,default:!1}},emits:["ready","resize","start","end"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},l=()=>{r=="start"?a():o()},c=()=>{r=="start"?o():a()};let u=!1,h,f;const m=M();Nt(m,()=>{if(!(!m.value||h)){if(n.styleSheets){let k="";for(let _ in n.styleSheets)k+=`${_}: ${n.styleSheets[_]};`;rn(`
69
69
  :root {
70
70
  ${k}
71
71
  }
72
72
  :host {
73
73
  ${k}
74
74
  }
75
- `,m.value)}h=new Ls(m.value,!1),h.on("resize",(k,_)=>{i("resize",k,_,m.value.getBoundingClientRect()),f?.(h),u||(u=!0,n.effectTriggerTiming!=="manual"&&o(),i("ready",h),n.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&ih(Cn(m.value).getInnerText()).then(()=>{}).catch(k=>{})}),h.start()}});const d=()=>new Promise(k=>{if(h)return k(h);f=k}),S=()=>d().then(()=>m.value.getBoundingClientRect());return le(()=>{h?.destroy()}),t({getElement:()=>m.value,getApp:d,getSize:S,getStatus:()=>r,startEffect:o,endEffect:a,nextEffect:l,repeatEffect:c}),(k,_)=>(F(),H("div",{class:ie(["container",[n.type]]),ref_key:"containerRef",ref:m,style:z({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[St(k.$slots,"default")],6))}}),H0={class:"input-range-box"},W0={key:0,class:"label"},q0=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"InputRangeBox",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!1},bgColor:{default:Fs.inputColor},barColor:{default:Fs.numberColor},barHeight:{default:"20px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>we(yu(n.min,n.max,n.step)(r.value),2),a=()=>we((r.value-n.min)/(n.max-n.min),4)*100;r.value=o();const l=M(a()),c={"--input-range-box-background-hover-color":De(n.bgColor).lighten(.05).toString(),"--input-range-box-foreground-hover-color":De(n.barColor).lighten(.05).toString()},u=M();function h(f){const m=async d=>{const S=await u.value.getSize();r.value=we(Pm(d,S.left,S.right,n.min,n.max),2),r.value=o(),l.value=a(),i("change",r.value)};f.captureDrag({start:d=>{m(d.clientX)},move:d=>{m(d.clientX)}})}return le(()=>{}),t({}),(f,m)=>(F(),H("div",H0,[P("div",{class:"box",style:z({height:n.barHeight,cursor:"ew-resize"})},[ft(kt,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:h},{default:Et(()=>[P("div",{class:"background",style:z({backgroundColor:n.bgColor,width:"100%",height:"100%"})},null,4),P("div",{class:"foreground",style:z({backgroundColor:n.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),St(f.$slots,"default",{value:r.value},()=>[f.showValue?(F(),H("label",W0,xt(r.value)+xt(n.unit),1)):Gt("",!0)],!0)]))}}),ab="",Z0=pt(q0,[["__scopeId","data-v-ae6ae9c6"]]),ui=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=Jt({}),o=Jt({});let a=n.name,l=n.duration,c=n.timingFunction,u=n.delay,h=n.repeat,f=n.direction;function m(){switch(a){case"superRainbow":l=n.duration||15e3;break;case"heartBeat":l=n.duration||1300;break;case"statusProcessing":l=n.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=n.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=n.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=n.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=n.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=n.duration||600;break;default:l=n.duration||500;break}switch(a){case"superRainbow":c=n.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=n.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=n.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=n.timingFunction||"ease-in-out";break;default:c=n.timingFunction||"ease";break}switch(a){default:u=n.delay||0;break}switch(a){case"superRainbow":case"statusProcessing":h=n.repeat||"infinite";break;default:h=n.repeat||1;break}switch(a){case"superRainbow":f=n.direction||"alternate";break;default:f=n.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}Mt(()=>n.name,()=>{a=n.name,m()},{immediate:!0});const d=M(),S=M(),k=B=>{r.perspective=n.perspective,B.on("animationstart",ct=>{i("cssanimationstart",ct.animationName)}),B.on("animationend",ct=>{i("cssanimationend",ct.animationName)})};function _(){S.value.style.animation="none",S.value.offsetHeight,S.value.style.animation=null}const x=()=>{o.animation="none"},y=()=>{_(),o.animation=`${l}ms ${c} ${u}ms ${h} ${f} ${n.fillMode} ${n.playState} ${a}`};return t({trigger:B=>{B&&(a=B,m()),d.value.startEffect(),f="normal",d.value.endEffect()},triggerReverse:B=>{B&&(a=B,m()),d.value.startEffect(),f="reverse",d.value.endEffect()},clear:()=>{o.animation="none"}}),(B,ct)=>(F(),Bt(kt,{class:"css-animation",ref_key:"containerRef",ref:d,type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,style:z(r),onReady:k,onStart:x,onEnd:y},{default:Et(()=>[P("div",{class:"css-animation-inner",ref_key:"animationRef",ref:S,style:z({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[St(B.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),lb="",Q0={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},K0=lt({customOptions:{CSSAnimation:ui},__name:"Status",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const n=s;let i="";switch(n.status){case"wait":i="#d9d9d9";break;case"success":i="#52c41a";break;case"error":i="#ff4d4f";break;case"processing":default:i="#1677ff";break}return n.color&&(i=n.color),t({}),(r,o)=>(F(),H("div",Q0,[r.status==="processing"?(F(),Bt(ui,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:Et(()=>[P("div",{style:z({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Lt(i)})},null,4)]),_:1})):Gt("",!0),P("div",{style:z({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Lt(i)})},null,4)]))}}),J0=lt({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(!1);function a(){o.value=!0}function l(){o.value=!1}function c(h){h.preventDefault()}function u(h){h.preventDefault(),i("yz-drop",h.dataTransfer.files),l()}return le(()=>{}),t({}),(h,f)=>(F(),H("div",{class:ie(["input-file-drop",[o.value?"over":""]]),ref_key:"zone",ref:r,onDragenter:a,onDragleave:l,onDragover:c,onDrop:u},[St(h.$slots,"default",{},()=>[Kt(xt(n.placeholder),1)],!0)],34))}}),cb="",ty=pt(J0,[["__scopeId","data-v-b0f06804"]]),ey=["width","height"],sy=["fill"],ny=lt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[P("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,sy)],8,ey))}}),ub="",Ta=pt(ny,[["__scopeId","data-v-4747d4a7"]]),iy=lt({customOptions:{SVGDelete:Ta},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Pt.colorGrayFF},deleteColor:{default:Pt.colorRed},fontColor:{default:Pt.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{i("delete"),r.value=!1};let a;const l=M();return Mt(l,()=>{l.value&&(a=new Ls(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),le(()=>{a?.destroy()}),t({}),(c,u)=>(F(),H("div",{class:"parent",ref_key:"item",ref:l,style:z({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[P("div",{class:"content",style:z({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[St(c.$slots,"default",{},void 0,!0)],4),P("div",{class:"delete",onClick:o,style:z({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[ft(Ta,{color:n.fontColor},null,8,["color"])],4)],4))}}),hb="",ry=pt(iy,[["__scopeId","data-v-244215c2"]]),oy=lt({customOptions:{Container:kt,SVGDown:li},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{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(s,{expose:t,emit:e}){const n=s,i=e,r=(h,f)=>{i("resize",h,f)},o=M(Number.MAX_SAFE_INTEGER+"px"),a=M(),l=M(!0);Mt(a,()=>{a.value&&(o.value=a.value.getBoundingClientRect().height+"px",l.value=n.initOpen)});function c(){l.value=!l.value,l.value?i("open"):i("close")}const u=M(0);return Ll(()=>{u.value=l.value?0:-90}),t({}),(h,f)=>(F(),Bt(kt,{onResize:r},{default:Et(()=>[P("div",{class:"accordion",style:z({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[P("div",{class:"accordion-title",onClick:c,style:z({height:n.titleHeight,lineHeight:n.titleHeight,margin:`0 ${n.padding}`,transitionDelay:`${l.value?0:n.duration}ms`,borderBottom:`${l.value?1:0}px solid ${n.borderColor}`})},[St(h.$slots,"title",{},()=>[Kt("title")],!0),ft(li,{class:"arrow",style:z({transition:`transform ${n.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),P("div",{class:"accordion-content",ref_key:"content",ref:a,style:z({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[St(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),fb="",ay=pt(oy,[["__scopeId","data-v-6c9d636f"]]),ly=lt({__name:"ProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(o){i.value=Math.min(Math.max(0,o),100)}return t({goto:r}),(o,a)=>(F(),H("div",{class:"bar",style:z({border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[P("div",{class:"bar-inner",style:z({width:i.value+"%",backgroundColor:n.progressColor})},xt(n.showText?i.value+"%":""),5)],4))}}),db="",hi=pt(ly,[["__scopeId","data-v-d986b312"]]),cy=["width","height"],uy=["src","type"],hy={class:"video-progress-bar"},fy=lt({customOptions:{ProgressBar:hi},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r;function o(h){if(r){r.resume();return}r=new He({frameDuration:this.duration*1e3}),r.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{i("start"),l.value?.goto(0)},onUpdate:f=>{l.value?.goto(f.x)},onComplete:()=>{i("complete"),r=null}}),r.play()}const a=M(),l=M();Mt(a,()=>{a.value&&(a.value.addEventListener("play",o),n.autoplay&&da.tryAutoPlayOrAutoPlayAfterClick(a.value))}),le(()=>{a.value?.removeEventListener(o)});function c(){a.value?.play()}function u(){a.value?.pause(),r?.pause()}return t({play:c,pause:u}),(h,f)=>(F(),H("div",{class:"video",style:z({width:n.width,height:n.height}),onClick:c},[P("video",{ref_key:"video",ref:a,width:n.width,height:n.height,preload:"metadata"},[P("source",{src:n.src,type:n.type},null,8,uy)],8,cy),P("div",hy,[ft(hi,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),pb="",dy=pt(fy,[["__scopeId","data-v-5f48bfae"]]),Tn=lt({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:De("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=M(),r=document.documentElement.style.overflow,o=document.body.style.overflow;return Mt(()=>n.visible,()=>{n.isGlobal?n.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=r,document.body.style.overflow=o):i.value&&(n.visible?i.value.parentElement.style.overflow="hidden":i.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(a,l)=>n.visible?(F(),H("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:i,style:z([`background-color: ${n.color}`,`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[St(a.$slots,"default")],4)):Gt("",!0)}}),py=P("div",null,null,-1),Ve=lt({customOptions:{Overlay:Tn,Container:kt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{},popPercent:{default:50},popBgColor:{default:"rgba(255,255,255,0)"}},emits:["open","close","resize","clickOverlay"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new He({frameDuration:n.dur}),o=Jt({backgroundColor:n.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),a=M("full");Mt(()=>[n.directionFrom,n.popValue],()=>{r.clear();const S=n.popValue?n.popValue:n.popPercent,k=n.popValue?"px":"%";switch(n.directionFrom){case"left":o.height="100%",o.width=`${S}${k}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:S},{left:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.left=`-${_.left}${k}`},onComplete:u});break;case"right":o.height="100%",o.width=`${S}${k}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:S},{right:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.right=`-${_.right}${k}`},onComplete:u});break;case"top":o.width="100%",o.height=`${S}${k}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:S},{top:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.top=`-${_.top}${k}`},onComplete:u});break;case"bottom":o.width="100%",o.height=`${S}${k}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:S},{bottom:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.bottom=`-${_.bottom}${k}`},onComplete:u});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.transform=`translate(-50%, -50%) scale(${_.scale})`,o.opacity=`${_.opacity}`},onComplete:u});break;case"absolute":o.width=n.absoluteWidth,o.height=n.absoluteHeight,o.left=n.absoluteLeft,o.top=n.absoluteTop,delete o.right,delete o.bottom;break}switch(n.directionFrom){case"center":a.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":a.value="shrink",delete o.transform,delete o.opacity;break;default:a.value="full",delete o.transform,delete o.opacity;break}},{immediate:!0}),Mt(()=>n.absoluteLeft,()=>{switch(n.directionFrom){case"absolute":o.left=n.absoluteLeft;break}}),Mt(()=>n.absoluteTop,()=>{switch(n.directionFrom){case"absolute":o.top=n.absoluteTop;break}}),Mt(()=>n.absoluteWidth,()=>{switch(n.directionFrom){case"absolute":o.width=n.absoluteWidth;break}}),Mt(()=>n.absoluteHeight,()=>{switch(n.directionFrom){case"absolute":o.height=n.absoluteHeight;break}});const l=(S,k,_)=>{i("resize",S,k,_)};let c="open";function u(){c=="open"?i("open"):(h.value=!1,i("close"))}const h=M(!1);function f(){h.value=!0,c="open",r.play()}function m(){switch(c="close",n.directionFrom){case"absolute":u();break;default:r.reverse();break}}function d(S){const k=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";S.target&&eh(S.target,k)&&(n.closeWhenClickOverlay&&m(),i("clickOverlay"))}return t({open:f,close:m}),(S,k)=>(F(),Bt(Tn,{visible:h.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:Et(()=>[P("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:d},[ft(kt,{class:"pop-content",type:a.value,style:z(o),onResize:l},{default:Et(()=>[St(S.$slots,"default",{},()=>[py])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),my=lt({...{},name:"Image",customOptions:{Container:kt,Pop:Ve},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new He({frameDuration:n.dur}),o=M(0),a=M(0),l=M(0),c=M(0),u=M(0),h=M(0),f=M(0),m=M(0),d=M(0),S=M(0);zg(n.src).then(D=>{d.value=D.width,S.value=D.height,w()});const k=M(0),_=M(0),x=(D,L)=>{k.value=D,_.value=L,w()},y=M(0),p=M(0);function w(){if(!k.value||!_.value||!d.value||!S.value)return;const D=Tu(n.mode,d.value,S.value,k.value,_.value);y.value=D.width,p.value=D.height;const{width:L,height:X}=fa(),it=Tu("aspectFit",d.value,S.value,L,X);f.value=it.width,m.value=it.height,u.value=(L-f.value)/2,h.value=(X-m.value)/2}const b=(D,L,X)=>{i("settled",X.x,X.y,X.width,X.height)};let B=!1;const ct=M(),O=M();async function R(){if(!n.openImageDetailWhenClick)return;const D=await ct.value.getSize();r.clear(),r.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:u.value,top:h.value,width:f.value,height:m.value},{easeFunction:ut.Quadratic.Out,onUpdate(L){o.value=L.left,a.value=L.top,l.value=L.width,c.value=L.height},onComplete(){B&&O.value.close(),B=!B}}),B||(O.value.open(),r.play())}function A(){B&&r.reverse()}return t({}),(D,L)=>(F(),Bt(kt,{class:"image",type:"full",style:z({backgroundColor:n.bgColor}),onResize:x,onClick:R},{default:Et(()=>[ft(kt,{class:"image-inner",ref_key:"imageRef",ref:ct,type:"shrink",style:z({width:y.value+"px",height:p.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${y.value}px ${p.value}px`}),onResize:b},null,8,["style"]),ft(Ve,{ref_key:"popRef",ref:O,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:A},{default:Et(()=>[P("div",{class:"image-pop",style:z({width:"100%",height:"100%",backgroundImage:`url(${n.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),gb="",Sa=pt(my,[["__scopeId","data-v-4e9887dd"]]),ka=lt({customOptions:{Container:kt,CSSAnimation:ui},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ut.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=Jt({}),a=()=>{i("ready",b,B)},l=()=>{S()},c=M();let u="rotateRightSideFirst",h=n.effect;function f(ct,O){switch(h){case"static":O();break;default:ct();break}}let m=!1;const d=new He,S=()=>{const ct={},O={};d.clear(),d.frameDuration=n.duration,f(()=>{u=h},()=>{d.addTween(ct,O,{delay:n.delay/n.duration,easeFunction:n.easeFunction,onStart:()=>{i(m?"pageCloseStart":"pageOpenStart")},onUpdate:R=>{o.transform="","x"in R&&(o.transform+=` translateX(${R.x}%)`),"y"in R&&(o.transform+=` translateY(${R.y}%)`),"rx"in R&&(o.transform+=` rotateX(${R.rx}deg)`),"ry"in R&&(o.transform+=` rotateY(${R.ry}deg)`),"scale"in R&&(o.transform+=` scale(${R.scale})`),"opacity"in R&&(o.opacity=`${R.opacity}`)},onComplete:()=>{i(m?"pageCloseEnd":"pageOpenEnd")}})})};Mt(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{h=n.effect,S()},{immediate:!0});const k=()=>{i(m?"pageCloseStart":"pageOpenStart")},_=()=>{i(m?"pageCloseEnd":"pageOpenEnd")},x=()=>{f(()=>{c.value.trigger(u)},()=>{d.play()})},y=()=>{f(()=>{c.value.triggerReverse(u)},()=>{d.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function w(){f(()=>{p()},()=>{c.value?.clear()})}const b=ct=>{ct&&(h=ct,S()),m=!1,w(),r.value.startEffect()},B=ct=>{ct&&(h=ct,S()),m=!0,w(),r.value.endEffect()};return t({open:b,close:B,clear:p,getElement:()=>r.value.getElement()}),(ct,O)=>(F(),Bt(kt,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onResize:l,onStart:x,onEnd:y},{default:Et(()=>[ft(ui,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:k,onCssanimationend:_},{default:Et(()=>[P("div",{class:"page-inner",style:z({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[St(ct.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Cr=lt({customOptions:{Page:ka,Container:kt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ut.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=-1,o=-1,a;const l=[];let c=[],u=[],h=[];function f(Z){return Z>=0&&Z<c.length}function m(){return o>r}function d(Z,V,Qt){switch(Z){case r:return m()?V:Qt;case o:return m()?Qt:V;default:return"static"}}function S(Z,V){switch(Z){case"moveToLeft":return d(V,"moveToLeft","moveFromRight");case"moveToRight":return d(V,"moveToRight","moveFromLeft");case"moveToTop":return d(V,"moveToTop","moveFromBottom");case"moveToBottom":return d(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return d(V,"fade","moveFromLeft");case"moveFromRightPrevFade":return d(V,"fade","moveFromRight");case"moveFromTopPrevFade":return d(V,"fade","moveFromTop");case"moveFromBottomPrevFade":return d(V,"fade","moveFromBottom");case"moveToLeftFade":return d(V,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return d(V,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return d(V,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return d(V,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return d(V,"moveToLeft","moveFromRight");case"moveToRightEasing":return d(V,"moveToRight","moveFromLeft");case"moveToTopEasing":return d(V,"moveToTop","moveFromBottom");case"moveToBottomEasing":return d(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return d(V,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return d(V,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return d(V,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return d(V,"scaleToSmall","moveFromBottom");case"scaleSmall":return d(V,"scaleToSmall","scaleFromLarge");case"scaleLarge":return d(V,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return d(V,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return d(V,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return d(V,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return d(V,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return d(V,"moveToBottom","scaleFromSmall");case"glueToLeft":return d(V,"rotateRightSideFirst","moveFromRight");case"glueToRight":return d(V,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return d(V,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return d(V,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return d(V,"flipOutLeft","flipInRight");case"flipToRight":return d(V,"flipOutRight","flipInLeft");case"flipToTop":return d(V,"flipOutTop","flipInBottom");case"flipToBottom":return d(V,"flipOutBottom","flipInTop");case"rotateFall":return d(V,"rotateFall","scaleFromSmall");case"newspaper":return d(V,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return d(V,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return d(V,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return d(V,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return d(V,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return d(V,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return d(V,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return d(V,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return d(V,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return d(V,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return d(V,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return d(V,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return d(V,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return d(V,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return d(V,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return d(V,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return d(V,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return d(V,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return d(V,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return d(V,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return d(V,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return d(V,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return d(V,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return d(V,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return d(V,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return d(V,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return d(V,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return d(V,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return d(V,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return d(V,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return d(V,"rotateSlideOut","rotateSlideIn")}}function k(Z,V=600,Qt=600){switch(Z){case r:return V;case o:return Qt;default:return n.duration}}function _(Z,V){switch(Z){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return k(V,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return k(V,700,600);case"scaleSmall":return k(V,700,500);case"scaleLarge":return k(V,500,700);case"scaleToLargePrevScaleToSmall":return k(V,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return k(V,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return k(V,800,600);default:return n.duration}}let x=n.timingFunction;function y(Z){switch(Z){default:return n.easeFunction}}function p(Z,V){switch(Z){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(V){case r:x=m()?"ease-in-out":"ease";break;case o:default:x=m()?"ease":"ease-in-out"}return y(V);default:return x=n.timingFunction,n.easeFunction}}function w(Z,V=300){switch(Z){case o:return n.delay+V;default:return n.delay}}function b(Z,V){switch(Z){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return w(V,500);case"scaleSmall":case"scaleLarge":return w(V,300);case"scaleToLargePrevScaleToSmall":return w(V,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return w(V,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return w(V,180);default:return n.delay}}let B=2,ct=2;const O=()=>{B=2,ct=2},R=()=>{B=2,ct=3},A=()=>{B=3,ct=2};function D(Z){switch(n.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":A();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":m()?A():R();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":m()?R():A();break;default:O();break}f(r)&&r==Z&&(h[r].style.zIndex=`${B}`,h[r].style.visibility="visible"),f(o)&&o==Z&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible")}function L(Z){R(),Z==r&&(h[r].style.zIndex=`${B}`,h[r].style.visibility="hidden"),Z==o&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible",l.shift()?.(),i("routeChangeEnd",r,o,c.length),r=o)}const X=M();function it(Z=0,V=!1){if(!X.value)return;let Qt=0;Rc(hs("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((te,Ot)=>{const ee=S(n.effect,Ot);return hs("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==Ot?"visible":"hidden",zIndex:V?"1":"0"}},te.pageKey?{key:te.pageKey}:{}),hs(ka,{effect:ee,duration:_(n.effect,Ot),easeFunction:p(n.effect,Ot),timingFunction:x,delay:b(n.effect,Ot),onReady:(zt,Y)=>{u[Ot]={open:zt,close:Y},++Qt==Z&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{D(Ot)},onPageOpenEnd:()=>{L(Ot)},onPageCloseStart:()=>{D(Ot)},onPageCloseEnd:()=>{L(Ot)}},{default:()=>te.component instanceof HTMLElement?hs("div",{...te.attributes,innerHTML:te.component.innerHTML}):hs(te.component,te.attributes,()=>te.child)}))})),X.value),h=X.value.children[0].children}Mt(()=>n.effect,()=>{it()});function K(Z=[]){c=[...Z],c.forEach(V=>{V.pageKey=V.pageKey||ar()}),a=()=>{r=-1,mt(0)},it(c.length,!0)}function W(Z){Z.pageKey=Z.pageKey||ar(),c.push(Z),a=()=>{mt(c.length-1)},it(1,c.length==1)}function nt(){c.length<=1||mt(c.length-2,()=>{c.splice(c.length-1,1),r=c.length-1,it()})}function G(){mt(r+1)}function j(){mt(r-1)}const gt=new Ho(1);function mt(Z,V){gt.addTask(()=>new Promise(Qt=>{const te=()=>{V?.(),Qt()};if(!f(Z)){te();return}if(o=Z,o==r){te();return}l.push(te),it(),i("routeChangeStart",r,o,c.length),m()?(f(r)&&u[r].open(),f(o)&&u[o].open()):(f(r)&&u[r].close(),f(o)&&u[o].close())}))}return t({reset:K,push:W,pop:nt,forward:G,back:j,goto:mt,currentPageIndex:()=>r,totalPages:()=>c.length}),(Z,V)=>(F(),H("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),gy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},yy=lt({customOptions:{Image:Sa,Container:kt,Routes:Cr},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(f,m){i.value=m}const o=M(),a=f=>{f.on("panLeft",()=>{o.value?.forward()}),f.on("panRight",()=>{o.value?.back()}),o.value.reset(n.urls.map(m=>({component:hs(Sa,{mode:"aspectFit",src:m,openImageDetailWhenClick:!1})})))},l=M();function c(){l.value?.open()}function u(){l.value?.close()}const h=f=>{f.target&&eh(f.target,"image")&&u()};return t({open:c,close:u}),(f,m)=>(F(),Bt(Ve,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:Et(()=>[n.urls.length>1?(F(),H("div",gy,xt(i.value+1)+" / "+xt(n.urls.length),1)):Gt("",!0),ft(kt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:Et(()=>[ft(Cr,{ref_key:"routesRef",ref:o,effect:n.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),yb="",vy={class:"page"},_y={class:"header"},by={class:"main"},xy={class:"main-scroll"},wy={class:"footer"},Cy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return Wg(s.designWidth),t({}),(i,r)=>(F(),H("div",vy,[P("header",_y,[St(i.$slots,"header",{},void 0,!0)]),P("div",by,[P("div",xy,[St(i.$slots,"main",{},void 0,!0)])]),P("footer",wy,[St(i.$slots,"footer",{},void 0,!0)])]))}}),vb="",Ty=pt(Cy,[["__scopeId","data-v-3904d6b5"]]),Sy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=Jt({}),r=Jt({});function o(){switch(pu(i),pu(r),n.type){case"table":i.display="table",r.display="table-cell",r.verticalAlign="middle",r.textAlign="center";break;case"transform":r.position="absolute",r.top="50%",r.left="50%",r.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",r.margin="auto"}}return o(),le(()=>{}),t({}),(a,l)=>(F(),H("div",{class:"layout-center",style:z(i)},[P("div",{style:z(r)},[St(a.$slots,"default",{},void 0,!0)],4)],4))}}),_b="",ky=pt(Sy,[["__scopeId","data-v-37646611"]]),Ey=P("div",{style:{"background-color":"#ffffff"}},"...",-1),Ea=lt({customOptions:{Pop:Ve,Button:ve,Container:kt},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!0}},setup(s,{expose:t}){const e=s,n=M();function i(){n.value.open()}function r(){n.value.close()}const o=M(),a=M(0),l=M(0),c=M(0),u=M(0),h=(f,m)=>{if(c.value=f,u.value=m,!o.value)return;const d=fa(),S=o.value.getBoundingClientRect();a.value=Math.max(e.gap,Math.min(S.x+S.width+e.gap,d.width-f-e.gap)),l.value=Math.max(e.gap,Math.min(S.y,d.height-m-e.gap))};return t({open:i,close:r}),(f,m)=>(F(),H($t,null,[P("div",{ref_key:"popoverButtonRef",ref:o,class:"popover-button",style:{display:"inline-block"},onClick:i},[St(f.$slots,"button",{},()=>[ft(ve,null,{default:Et(()=>[Kt("popover")]),_:1})])],512),ft(Ve,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:Et(()=>[P("div",{style:z({position:"absolute",left:a.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[ft(kt,{type:"shrink",onResize:h},{default:Et(()=>[St(f.$slots,"panel",{},()=>[Ey])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),Py={class:"dialog-parent"},Oy={key:0,class:"title"},Iy={key:0,class:"title-inner truncate"},Dy={class:"custom-content"},Ry={class:"custom-content-default"},Ay={key:1,class:"btns"},My=lt({customOptions:{Overlay:Tn,Pop:Ve,Icon:on,Button:ve},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,f,m;const d=()=>{i("open")},S=()=>{h?.(),i("close")};function k(p){o.value=p?.title||"",a.value=p?.content||"",l.value=typeof p?.showClose=="boolean"?p?.showClose:!1,c.value=p?.cancelText||"",u.value=p?.confirmText||"",h=p?.onClose,f=p?.onCancel,m=p?.onConfirm,r.value.open()}function _(){r.value.close()}function x(){_(),f?.(),i("cancel")}function y(){_(),m?.(),i("confirm")}return t({open:k,close:_}),(p,w)=>(F(),Bt(Ve,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:n.overlayBgColor,onOpen:d,onClose:S},{default:Et(()=>[P("div",Py,[P("div",{class:"dialog",style:z({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(F(),H("div",Oy,[o.value?(F(),H("div",Iy,xt(o.value),1)):Gt("",!0),l.value?(F(),H("div",{key:1,class:"close",onClick:_},[ft(on,{icon:"ic:baseline-close",color:Lt(Pt).colorGrayCC},null,8,["color"])])):Gt("",!0)])):Gt("",!0),P("div",Dy,[St(p.$slots,"default",{},()=>[P("div",Ry,xt(a.value),1)],!0)]),c.value||u.value?(F(),H("div",Ay,[c.value?(F(),Bt(ve,{key:0,onClick:x,class:"btn",bgColor:Lt(Pt).colorGrayE6,borderColor:Lt(Pt).colorGrayE6,fontColor:Lt(Pt).colorGray33,borderRadius:"0"},{default:Et(()=>[Kt(xt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Gt("",!0),u.value?(F(),Bt(ve,{key:1,onClick:y,class:"btn",borderRadius:"0"},{default:Et(()=>[Kt(xt(u.value),1)]),_:1})):Gt("",!0)])):Gt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),bb="",fi=pt(My,[["__scopeId","data-v-f9df8635"]]),Ny={class:"loading-8"},Fy={viewBox:"25 25 50 50"},Ly=lt({__name:"Loading8",props:{color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("div",Ny,[(F(),H("svg",Fy,[P("circle",{cx:"50",cy:"50",r:"20",style:z(["stroke: "+t.color])},null,4)]))]))}}),xb="",Pa=pt(Ly,[["__scopeId","data-v-e5e3cf4c"]]),$y={class:"loading"},Vy={class:"icon"},zy={style:{width:"8em"}},By={key:0,class:"content"},Gy=lt({customOptions:{Overlay:Tn,Pop:Ve,Dialog:fi,Loading8:Pa},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h){o.value=h||"",r.value.open()}function u(){r.value.close()}return t({open:c,close:u}),(h,f)=>(F(),Bt(fi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,onOpen:a,onClose:l},{default:Et(()=>[P("div",$y,[P("div",Vy,[St(h.$slots,"default",{},()=>[P("div",zy,[ft(Pa)])],!0)]),o.value?(F(),H("div",By,xt(o.value),1)):Gt("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),wb="",Yy=pt(Gy,[["__scopeId","data-v-e707960a"]]),Xy={class:"toast"},jy={class:"content"},Uy=lt({customOptions:{Overlay:Tn,Pop:Ve,Dialog:fi},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h,f=1500){o.value=h,r.value.open(),setTimeout(()=>{u()},f)}function u(){r.value.close()}return t({open:c,close:u}),(h,f)=>(F(),Bt(fi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:a,onClose:l},{default:Et(()=>[P("div",Xy,[P("div",jy,xt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),Cb="",Hy=pt(Uy,[["__scopeId","data-v-7a82fa25"]]),Wy={class:"tab"},qy=lt({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(F(),H("div",Wy,[St(e.$slots,"default",{},void 0,!0)]))}}),Tb="",Zy=pt(qy,[["__scopeId","data-v-6589e7fa"]]),Qy={class:"tabs"},Ky=["onClick"],Jy={class:"content"},t1=lt({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.initIndex),o=Jt([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),f=[],m=rd(),d=m.default&&m.default();d&&(ti(o,d),_(r.value));const S=(y,p)=>{if(y){if(f.push({index:p,el:y}),f.length<o.length)return;h.value=f}};Mt([a,h],()=>{k()});function k(){if(a.value&&h.value.length){const y=a.value.getBoundingClientRect(),p=h.value[r.value].el.getBoundingClientRect();l.value=p.x-y.x,c.value=p.y-y.y+p.height-2,u.value=p.width}}function _(y){r.value=y,i("changedIndex",y),k(),x.value.goto(y)}const x=M();return Mt(x,()=>{x.value&&x.value.reset(n.pages,()=>{x.value.goto(n.initIndex)})}),t({}),(y,p)=>(F(),H("div",Qy,[P("div",{class:"header",ref_key:"headerRef",ref:a},[(F(!0),H($t,null,ge(n.labels,(w,b)=>(F(),H("div",{key:w,class:ie(b==r.value?"active":""),onClick:B=>_(b)},[P("div",{ref_for:!0,ref:B=>S(B,b)},xt(w),513)],10,Ky))),128)),P("div",{class:"indicator",style:z({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),P("div",Jy,[ft(Cr,{ref_key:"routesRef",ref:x},null,512)])]))}}),Sb="",e1=pt(t1,[["__scopeId","data-v-cb33ca53"]]),s1=["width","height"],n1=lt({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=M();return Mt(r,()=>{if(!r.value)return;const o=new Ls(r.value),a=new oh(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{ue.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(F(),H("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:z([`border: 1px solid ${o.borderColor}`])},null,12,s1))}}),i1={class:"page-vertical-scroll-progress-bar"},r1=lt({customOptions:{ProgressBar:hi},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=Um();return o.on(()=>{const a=wg();i("progress",a),r.value?.goto(a)}),le(()=>{o.remove()}),t({}),(a,l)=>(F(),H("div",i1,[ft(hi,{ref_key:"bar",ref:r,bgColor:n.bgColor,progressColor:n.progressColor,borderColor:n.borderColor,borderRadius:n.borderRadius,duringTimeGap:n.duringTimeGap,showText:n.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),kb="",o1=pt(r1,[["__scopeId","data-v-3ea8cc5c"]]),a1=["fill"],l1=["fill"],c1=lt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:z(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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:t.color},null,8,a1),P("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:t.color},null,8,l1)],4))}}),Eb="",Oa=pt(c1,[["__scopeId","data-v-987aed3d"]]),Ia=s=>(Ln("data-v-85491020"),s=s(),$n(),s),u1=[Ia(()=>P("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)),Ia(()=>P("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)),Ia(()=>P("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))],h1=lt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:z(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},u1,4))}}),Db="",Tr=pt(h1,[["__scopeId","data-v-85491020"]]),f1=["data-number"],d1=["data-number","data-unactive"],p1=["data-number"],m1=["data-number","data-unactive"],g1=lt({customOptions:{Pop:Ve,SVGCleanUp:Tr,Container:kt},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(0),a=Jt([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&f()}Mt(()=>[...n.initPlates],()=>{ti(a,n.initPlates),l()},{immediate:!0});const c=M(0),u=(y,p)=>{c.value=p},h=()=>{r.value.open(),i("open")},f=()=>{r.value.close(),i("close")},m=()=>{a.pop(),l(),i("plates",a)},d=y=>{if(y.target.dataset.unactive||"")return;let w=y.target.dataset.number;w&&(a.push(w),l(),i("plates",a))};t({open:h,close:f});const S=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],k=["1","2","3","4","5","6","7","8","9","0"],_=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],x=["港","澳","学","警","使","领","挂","应","急"];return(y,p)=>(F(),Bt(Ve,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:Et(()=>[ft(kt,{class:"popup-plate",style:z({paddingBottom:Lt(Pt).safeAreaBottom}),onResize:u},{default:Et(()=>[P("div",null,[P("div",{onClick:f},"关闭")]),P("div",{class:ie(["step",o.value==0?"":"hide"])},[(F(),H($t,null,ge(S,w=>P("div",{key:w,class:"popitem",onClick:d,"data-number":w},xt(w),9,f1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Tr,{width:"16px"})])],2),P("div",{class:ie(["step",o.value!=0?"":"hide"])},[(F(),H($t,null,ge(k,w=>P("div",{key:w,class:ie(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":w,"data-unactive":o.value!=2?"unactive":""},xt(w),11,d1)),64)),(F(),H($t,null,ge(_,w=>P("div",{key:w,class:"popitem",onClick:d,"data-number":w},xt(w),9,p1)),64)),(F(),H($t,null,ge(x,w=>P("div",{key:w,class:ie(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":w,"data-unactive":o.value!=2?"unactive":""},xt(w),11,m1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Tr,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),Rb="",lh=pt(g1,[["__scopeId","data-v-7865d42e"]]),y1=document.getElementById("teleport")||document.documentElement;function v1(s){{const t=hs(lh,s);return Rc(t,y1),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Sr=s=>(Ln("data-v-7f69a9fe"),s=s(),$n(),s),_1=Sr(()=>P("div",{class:"title"},"车牌颜色",-1)),b1={class:"plate-types"},x1=["onClick"],w1=Sr(()=>P("div",{class:"title"},"车牌号码",-1)),C1={class:"plate-numbers"},T1=Sr(()=>P("div",{class:"dot"},"·",-1)),S1=["onClick"],k1=Sr(()=>P("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),E1=lt({customOptions:{SVGCheck:Oa},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=[{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}],o=M(0),a=Jt([]),l=M(-1);function c(){v1({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{ti(a,f),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=r[f].completePlateLength&&a.length<r[f].completePlateLength?(l.value=a.length,c(),i("clear")):ti(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{ti(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return t({}),(f,m)=>(F(),H("div",wo(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[_1,P("div",b1,[(F(),H($t,null,ge(r,(d,S)=>P("div",{key:S,class:ie(S==o.value?"checked":""),onClick:k=>u(S)},[P("div",{style:z(d.style)},null,4),P("div",null,xt(d.name),1),P("div",null,[ft(Oa,{color:"#ffffff",width:"0.14rem"})])],10,x1)),64))]),w1,P("div",C1,[P("div",{onClick:m[0]||(m[0]=d=>h(0)),class:ie(l.value==0?"current":"")},xt(a[0]),3),P("div",{onClick:m[1]||(m[1]=d=>h(1)),class:ie(l.value==1?"current":"")},xt(a[1]),3),T1,(F(!0),H($t,null,ge(r[o.value].completePlateLength-2,d=>(F(),H("div",{key:d,class:ie(d+1==l.value?"current":""),onClick:S=>h(d+1)},xt(a[d+1]),11,S1))),128))]),k1],16))}}),Ab="",P1=pt(E1,[["__scopeId","data-v-7f69a9fe"]]),O1={class:"parent"},I1=lt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,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 r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=i.filter(m=>m.name===h);return f.length?f[0]:o("未知")}const a=r(n.plate),l=M(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,f)=>(F(),H("div",O1,[P("div",{class:ie(["leading",n.displayType]),style:z(l.value.style)},xt(l.value.name),7),P("div",{class:"text",style:z({color:Lt(c),"font-size":Lt(u)})},xt(Lt(a)),5)]))}}),Mb="",D1=pt(I1,[["__scopeId","data-v-11a104c3"]]),R1={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},A1=P("div",{style:{width:"100%",height:"100%",background:`linear-gradient(
75
+ `,m.value)}h=new Ls(m.value,!1),h.on("resize",(k,_)=>{i("resize",k,_,m.value.getBoundingClientRect()),f?.(h),u||(u=!0,n.effectTriggerTiming!=="manual"&&o(),i("ready",h),n.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&ih(Cn(m.value).getInnerText()).then(()=>{}).catch(k=>{})}),h.start()}});const d=()=>new Promise(k=>{if(h)return k(h);f=k}),S=()=>d().then(()=>m.value.getBoundingClientRect());return le(()=>{h?.destroy()}),t({getElement:()=>m.value,getApp:d,getSize:S,getStatus:()=>r,startEffect:o,endEffect:a,nextEffect:l,repeatEffect:c}),(k,_)=>(F(),U("div",{class:Kt(["container",[n.type]]),ref_key:"containerRef",ref:m,style:z({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[St(k.$slots,"default")],6))}}),H0={class:"input-range-box"},W0={key:0,class:"label"},q0=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"InputRangeBox",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!1},bgColor:{default:Fs.inputColor},barColor:{default:Fs.numberColor},barHeight:{default:"20px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>we(yu(n.min,n.max,n.step)(r.value),2),a=()=>we((r.value-n.min)/(n.max-n.min),4)*100;r.value=o();const l=M(a()),c={"--input-range-box-background-hover-color":De(n.bgColor).lighten(.05).toString(),"--input-range-box-foreground-hover-color":De(n.barColor).lighten(.05).toString()},u=M();function h(f){const m=async d=>{const S=await u.value.getSize();r.value=we(Pm(d,S.left,S.right,n.min,n.max),2),r.value=o(),l.value=a(),i("change",r.value)};f.captureDrag({start:d=>{m(d.clientX)},move:d=>{m(d.clientX)}})}return le(()=>{}),t({}),(f,m)=>(F(),U("div",H0,[P("div",{class:"box",style:z({height:n.barHeight,cursor:"ew-resize"})},[ft(kt,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:h},{default:Et(()=>[P("div",{class:"background",style:z({backgroundColor:n.bgColor,width:"100%",height:"100%"})},null,4),P("div",{class:"foreground",style:z({backgroundColor:n.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),St(f.$slots,"default",{value:r.value},()=>[f.showValue?(F(),U("label",W0,bt(r.value)+bt(n.unit),1)):$t("",!0)],!0)]))}}),ab="",Z0=pt(q0,[["__scopeId","data-v-ae6ae9c6"]]),ui=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=te({}),o=te({});let a=n.name,l=n.duration,c=n.timingFunction,u=n.delay,h=n.repeat,f=n.direction;function m(){switch(a){case"superRainbow":l=n.duration||15e3;break;case"heartBeat":l=n.duration||1300;break;case"statusProcessing":l=n.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=n.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=n.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=n.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=n.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=n.duration||600;break;default:l=n.duration||500;break}switch(a){case"superRainbow":c=n.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=n.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=n.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=n.timingFunction||"ease-in-out";break;default:c=n.timingFunction||"ease";break}switch(a){default:u=n.delay||0;break}switch(a){case"superRainbow":case"statusProcessing":h=n.repeat||"infinite";break;default:h=n.repeat||1;break}switch(a){case"superRainbow":f=n.direction||"alternate";break;default:f=n.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}Nt(()=>n.name,()=>{a=n.name,m()},{immediate:!0});const d=M(),S=M(),k=B=>{r.perspective=n.perspective,B.on("animationstart",ct=>{i("cssanimationstart",ct.animationName)}),B.on("animationend",ct=>{i("cssanimationend",ct.animationName)})};function _(){S.value.style.animation="none",S.value.offsetHeight,S.value.style.animation=null}const x=()=>{o.animation="none"},y=()=>{_(),o.animation=`${l}ms ${c} ${u}ms ${h} ${f} ${n.fillMode} ${n.playState} ${a}`};return t({trigger:B=>{B&&(a=B,m()),d.value.startEffect(),f="normal",d.value.endEffect()},triggerReverse:B=>{B&&(a=B,m()),d.value.startEffect(),f="reverse",d.value.endEffect()},clear:()=>{o.animation="none"}}),(B,ct)=>(F(),Gt(kt,{class:"css-animation",ref_key:"containerRef",ref:d,type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,style:z(r),onReady:k,onStart:x,onEnd:y},{default:Et(()=>[P("div",{class:"css-animation-inner",ref_key:"animationRef",ref:S,style:z({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[St(B.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),lb="",Q0={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},K0=lt({customOptions:{CSSAnimation:ui},__name:"Status",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const n=s;let i="";switch(n.status){case"wait":i="#d9d9d9";break;case"success":i="#52c41a";break;case"error":i="#ff4d4f";break;case"processing":default:i="#1677ff";break}return n.color&&(i=n.color),t({}),(r,o)=>(F(),U("div",Q0,[r.status==="processing"?(F(),Gt(ui,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:Et(()=>[P("div",{style:z({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Mt(i)})},null,4)]),_:1})):$t("",!0),P("div",{style:z({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Mt(i)})},null,4)]))}}),J0=lt({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(!1);function a(){o.value=!0}function l(){o.value=!1}function c(h){h.preventDefault()}function u(h){h.preventDefault(),i("yz-drop",h.dataTransfer.files),l()}return le(()=>{}),t({}),(h,f)=>(F(),U("div",{class:Kt(["input-file-drop",[o.value?"over":""]]),ref_key:"zone",ref:r,onDragenter:a,onDragleave:l,onDragover:c,onDrop:u},[St(h.$slots,"default",{},()=>[Jt(bt(n.placeholder),1)],!0)],34))}}),cb="",ty=pt(J0,[["__scopeId","data-v-b0f06804"]]),ey=["width","height"],sy=["fill"],ny=lt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),U("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[P("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,sy)],8,ey))}}),ub="",Ta=pt(ny,[["__scopeId","data-v-4747d4a7"]]),iy=lt({customOptions:{SVGDelete:Ta},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Pt.colorGrayFF},deleteColor:{default:Pt.colorRed},fontColor:{default:Pt.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{i("delete"),r.value=!1};let a;const l=M();return Nt(l,()=>{l.value&&(a=new Ls(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),le(()=>{a?.destroy()}),t({}),(c,u)=>(F(),U("div",{class:"parent",ref_key:"item",ref:l,style:z({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[P("div",{class:"content",style:z({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[St(c.$slots,"default",{},void 0,!0)],4),P("div",{class:"delete",onClick:o,style:z({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[ft(Ta,{color:n.fontColor},null,8,["color"])],4)],4))}}),hb="",ry=pt(iy,[["__scopeId","data-v-244215c2"]]),oy=lt({customOptions:{Container:kt,SVGDown:li},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{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(s,{expose:t,emit:e}){const n=s,i=e,r=(h,f)=>{i("resize",h,f)},o=M(Number.MAX_SAFE_INTEGER+"px"),a=M(),l=M(!0);Nt(a,()=>{a.value&&(o.value=a.value.getBoundingClientRect().height+"px",l.value=n.initOpen)});function c(){l.value=!l.value,l.value?i("open"):i("close")}const u=M(0);return Ll(()=>{u.value=l.value?0:-90}),t({}),(h,f)=>(F(),Gt(kt,{onResize:r},{default:Et(()=>[P("div",{class:"accordion",style:z({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[P("div",{class:"accordion-title",onClick:c,style:z({height:n.titleHeight,lineHeight:n.titleHeight,margin:`0 ${n.padding}`,transitionDelay:`${l.value?0:n.duration}ms`,borderBottom:`${l.value?1:0}px solid ${n.borderColor}`})},[St(h.$slots,"title",{},()=>[Jt("title")],!0),ft(li,{class:"arrow",style:z({transition:`transform ${n.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),P("div",{class:"accordion-content",ref_key:"content",ref:a,style:z({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[St(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),fb="",ay=pt(oy,[["__scopeId","data-v-6c9d636f"]]),ly=lt({__name:"ProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(o){i.value=Math.min(Math.max(0,o),100)}return t({goto:r}),(o,a)=>(F(),U("div",{class:"bar",style:z({border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[P("div",{class:"bar-inner",style:z({width:i.value+"%",backgroundColor:n.progressColor})},bt(n.showText?i.value+"%":""),5)],4))}}),db="",hi=pt(ly,[["__scopeId","data-v-d986b312"]]),cy=["width","height"],uy=["src","type"],hy={class:"video-progress-bar"},fy=lt({customOptions:{ProgressBar:hi},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r;function o(h){if(r){r.resume();return}r=new He({frameDuration:this.duration*1e3}),r.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{i("start"),l.value?.goto(0)},onUpdate:f=>{l.value?.goto(f.x)},onComplete:()=>{i("complete"),r=null}}),r.play()}const a=M(),l=M();Nt(a,()=>{a.value&&(a.value.addEventListener("play",o),n.autoplay&&da.tryAutoPlayOrAutoPlayAfterClick(a.value))}),le(()=>{a.value?.removeEventListener(o)});function c(){a.value?.play()}function u(){a.value?.pause(),r?.pause()}return t({play:c,pause:u}),(h,f)=>(F(),U("div",{class:"video",style:z({width:n.width,height:n.height}),onClick:c},[P("video",{ref_key:"video",ref:a,width:n.width,height:n.height,preload:"metadata"},[P("source",{src:n.src,type:n.type},null,8,uy)],8,cy),P("div",hy,[ft(hi,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),pb="",dy=pt(fy,[["__scopeId","data-v-5f48bfae"]]),Tn=lt({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:De("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=M(),r=document.documentElement.style.overflow,o=document.body.style.overflow;return Nt(()=>n.visible,()=>{n.isGlobal?n.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=r,document.body.style.overflow=o):i.value&&(n.visible?i.value.parentElement.style.overflow="hidden":i.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(a,l)=>n.visible?(F(),U("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:i,style:z([`background-color: ${n.color}`,`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[St(a.$slots,"default")],4)):$t("",!0)}}),py=P("div",null,null,-1),Ve=lt({customOptions:{Overlay:Tn,Container:kt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{},popPercent:{default:50},popBgColor:{default:"rgba(255,255,255,0)"}},emits:["open","close","resize","clickOverlay"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new He({frameDuration:n.dur}),o=te({backgroundColor:n.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),a=M("full");Nt(()=>[n.directionFrom,n.popValue],()=>{r.clear();const S=n.popValue?n.popValue:n.popPercent,k=n.popValue?"px":"%";switch(n.directionFrom){case"left":o.height="100%",o.width=`${S}${k}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:S},{left:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.left=`-${_.left}${k}`},onComplete:u});break;case"right":o.height="100%",o.width=`${S}${k}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:S},{right:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.right=`-${_.right}${k}`},onComplete:u});break;case"top":o.width="100%",o.height=`${S}${k}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:S},{top:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.top=`-${_.top}${k}`},onComplete:u});break;case"bottom":o.width="100%",o.height=`${S}${k}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:S},{bottom:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.bottom=`-${_.bottom}${k}`},onComplete:u});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.transform=`translate(-50%, -50%) scale(${_.scale})`,o.opacity=`${_.opacity}`},onComplete:u});break;case"absolute":o.width=n.absoluteWidth,o.height=n.absoluteHeight,o.left=n.absoluteLeft,o.top=n.absoluteTop,delete o.right,delete o.bottom;break}switch(n.directionFrom){case"center":a.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":a.value="shrink",delete o.transform,delete o.opacity;break;default:a.value="full",delete o.transform,delete o.opacity;break}},{immediate:!0}),Nt(()=>n.absoluteLeft,()=>{switch(n.directionFrom){case"absolute":o.left=n.absoluteLeft;break}}),Nt(()=>n.absoluteTop,()=>{switch(n.directionFrom){case"absolute":o.top=n.absoluteTop;break}}),Nt(()=>n.absoluteWidth,()=>{switch(n.directionFrom){case"absolute":o.width=n.absoluteWidth;break}}),Nt(()=>n.absoluteHeight,()=>{switch(n.directionFrom){case"absolute":o.height=n.absoluteHeight;break}});const l=(S,k,_)=>{i("resize",S,k,_)};let c="open";function u(){c=="open"?i("open"):(h.value=!1,i("close"))}const h=M(!1);function f(){h.value=!0,c="open",r.play()}function m(){switch(c="close",n.directionFrom){case"absolute":u();break;default:r.reverse();break}}function d(S){const k=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";S.target&&eh(S.target,k)&&(n.closeWhenClickOverlay&&m(),i("clickOverlay"))}return t({open:f,close:m}),(S,k)=>(F(),Gt(Tn,{visible:h.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:Et(()=>[P("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:d},[ft(kt,{class:"pop-content",type:a.value,style:z(o),onResize:l},{default:Et(()=>[St(S.$slots,"default",{},()=>[py])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),my=lt({...{},name:"Image",customOptions:{Container:kt,Pop:Ve},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new He({frameDuration:n.dur}),o=M(0),a=M(0),l=M(0),c=M(0),u=M(0),h=M(0),f=M(0),m=M(0),d=M(0),S=M(0);zg(n.src).then(D=>{d.value=D.width,S.value=D.height,w()});const k=M(0),_=M(0),x=(D,L)=>{k.value=D,_.value=L,w()},y=M(0),p=M(0);function w(){if(!k.value||!_.value||!d.value||!S.value)return;const D=Tu(n.mode,d.value,S.value,k.value,_.value);y.value=D.width,p.value=D.height;const{width:L,height:X}=fa(),it=Tu("aspectFit",d.value,S.value,L,X);f.value=it.width,m.value=it.height,u.value=(L-f.value)/2,h.value=(X-m.value)/2}const b=(D,L,X)=>{i("settled",X.x,X.y,X.width,X.height)};let B=!1;const ct=M(),O=M();async function R(){if(!n.openImageDetailWhenClick)return;const D=await ct.value.getSize();r.clear(),r.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:u.value,top:h.value,width:f.value,height:m.value},{easeFunction:ut.Quadratic.Out,onUpdate(L){o.value=L.left,a.value=L.top,l.value=L.width,c.value=L.height},onComplete(){B&&O.value.close(),B=!B}}),B||(O.value.open(),r.play())}function A(){B&&r.reverse()}return t({}),(D,L)=>(F(),Gt(kt,{class:"image",type:"full",style:z({backgroundColor:n.bgColor}),onResize:x,onClick:R},{default:Et(()=>[ft(kt,{class:"image-inner",ref_key:"imageRef",ref:ct,type:"shrink",style:z({width:y.value+"px",height:p.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${y.value}px ${p.value}px`}),onResize:b},null,8,["style"]),ft(Ve,{ref_key:"popRef",ref:O,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:A},{default:Et(()=>[P("div",{class:"image-pop",style:z({width:"100%",height:"100%",backgroundImage:`url(${n.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),gb="",Sa=pt(my,[["__scopeId","data-v-4e9887dd"]]),ka=lt({customOptions:{Container:kt,CSSAnimation:ui},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ut.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=te({}),a=()=>{i("ready",b,B)},l=()=>{S()},c=M();let u="rotateRightSideFirst",h=n.effect;function f(ct,O){switch(h){case"static":O();break;default:ct();break}}let m=!1;const d=new He,S=()=>{const ct={},O={};d.clear(),d.frameDuration=n.duration,f(()=>{u=h},()=>{d.addTween(ct,O,{delay:n.delay/n.duration,easeFunction:n.easeFunction,onStart:()=>{i(m?"pageCloseStart":"pageOpenStart")},onUpdate:R=>{o.transform="","x"in R&&(o.transform+=` translateX(${R.x}%)`),"y"in R&&(o.transform+=` translateY(${R.y}%)`),"rx"in R&&(o.transform+=` rotateX(${R.rx}deg)`),"ry"in R&&(o.transform+=` rotateY(${R.ry}deg)`),"scale"in R&&(o.transform+=` scale(${R.scale})`),"opacity"in R&&(o.opacity=`${R.opacity}`)},onComplete:()=>{i(m?"pageCloseEnd":"pageOpenEnd")}})})};Nt(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{h=n.effect,S()},{immediate:!0});const k=()=>{i(m?"pageCloseStart":"pageOpenStart")},_=()=>{i(m?"pageCloseEnd":"pageOpenEnd")},x=()=>{f(()=>{c.value.trigger(u)},()=>{d.play()})},y=()=>{f(()=>{c.value.triggerReverse(u)},()=>{d.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function w(){f(()=>{p()},()=>{c.value?.clear()})}const b=ct=>{ct&&(h=ct,S()),m=!1,w(),r.value.startEffect()},B=ct=>{ct&&(h=ct,S()),m=!0,w(),r.value.endEffect()};return t({open:b,close:B,clear:p,getElement:()=>r.value.getElement()}),(ct,O)=>(F(),Gt(kt,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onResize:l,onStart:x,onEnd:y},{default:Et(()=>[ft(ui,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:k,onCssanimationend:_},{default:Et(()=>[P("div",{class:"page-inner",style:z({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[St(ct.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Cr=lt({customOptions:{Page:ka,Container:kt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ut.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=-1,o=-1,a;const l=[];let c=[],u=[],h=[];function f(Z){return Z>=0&&Z<c.length}function m(){return o>r}function d(Z,V,Qt){switch(Z){case r:return m()?V:Qt;case o:return m()?Qt:V;default:return"static"}}function S(Z,V){switch(Z){case"moveToLeft":return d(V,"moveToLeft","moveFromRight");case"moveToRight":return d(V,"moveToRight","moveFromLeft");case"moveToTop":return d(V,"moveToTop","moveFromBottom");case"moveToBottom":return d(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return d(V,"fade","moveFromLeft");case"moveFromRightPrevFade":return d(V,"fade","moveFromRight");case"moveFromTopPrevFade":return d(V,"fade","moveFromTop");case"moveFromBottomPrevFade":return d(V,"fade","moveFromBottom");case"moveToLeftFade":return d(V,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return d(V,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return d(V,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return d(V,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return d(V,"moveToLeft","moveFromRight");case"moveToRightEasing":return d(V,"moveToRight","moveFromLeft");case"moveToTopEasing":return d(V,"moveToTop","moveFromBottom");case"moveToBottomEasing":return d(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return d(V,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return d(V,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return d(V,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return d(V,"scaleToSmall","moveFromBottom");case"scaleSmall":return d(V,"scaleToSmall","scaleFromLarge");case"scaleLarge":return d(V,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return d(V,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return d(V,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return d(V,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return d(V,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return d(V,"moveToBottom","scaleFromSmall");case"glueToLeft":return d(V,"rotateRightSideFirst","moveFromRight");case"glueToRight":return d(V,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return d(V,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return d(V,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return d(V,"flipOutLeft","flipInRight");case"flipToRight":return d(V,"flipOutRight","flipInLeft");case"flipToTop":return d(V,"flipOutTop","flipInBottom");case"flipToBottom":return d(V,"flipOutBottom","flipInTop");case"rotateFall":return d(V,"rotateFall","scaleFromSmall");case"newspaper":return d(V,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return d(V,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return d(V,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return d(V,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return d(V,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return d(V,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return d(V,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return d(V,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return d(V,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return d(V,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return d(V,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return d(V,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return d(V,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return d(V,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return d(V,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return d(V,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return d(V,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return d(V,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return d(V,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return d(V,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return d(V,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return d(V,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return d(V,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return d(V,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return d(V,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return d(V,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return d(V,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return d(V,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return d(V,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return d(V,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return d(V,"rotateSlideOut","rotateSlideIn")}}function k(Z,V=600,Qt=600){switch(Z){case r:return V;case o:return Qt;default:return n.duration}}function _(Z,V){switch(Z){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return k(V,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return k(V,700,600);case"scaleSmall":return k(V,700,500);case"scaleLarge":return k(V,500,700);case"scaleToLargePrevScaleToSmall":return k(V,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return k(V,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return k(V,800,600);default:return n.duration}}let x=n.timingFunction;function y(Z){switch(Z){default:return n.easeFunction}}function p(Z,V){switch(Z){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(V){case r:x=m()?"ease-in-out":"ease";break;case o:default:x=m()?"ease":"ease-in-out"}return y(V);default:return x=n.timingFunction,n.easeFunction}}function w(Z,V=300){switch(Z){case o:return n.delay+V;default:return n.delay}}function b(Z,V){switch(Z){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return w(V,500);case"scaleSmall":case"scaleLarge":return w(V,300);case"scaleToLargePrevScaleToSmall":return w(V,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return w(V,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return w(V,180);default:return n.delay}}let B=2,ct=2;const O=()=>{B=2,ct=2},R=()=>{B=2,ct=3},A=()=>{B=3,ct=2};function D(Z){switch(n.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":A();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":m()?A():R();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":m()?R():A();break;default:O();break}f(r)&&r==Z&&(h[r].style.zIndex=`${B}`,h[r].style.visibility="visible"),f(o)&&o==Z&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible")}function L(Z){R(),Z==r&&(h[r].style.zIndex=`${B}`,h[r].style.visibility="hidden"),Z==o&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible",l.shift()?.(),i("routeChangeEnd",r,o,c.length),r=o)}const X=M();function it(Z=0,V=!1){if(!X.value)return;let Qt=0;Rc(hs("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((ee,Ot)=>{const se=S(n.effect,Ot);return hs("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==Ot?"visible":"hidden",zIndex:V?"1":"0"}},ee.pageKey?{key:ee.pageKey}:{}),hs(ka,{effect:se,duration:_(n.effect,Ot),easeFunction:p(n.effect,Ot),timingFunction:x,delay:b(n.effect,Ot),onReady:(Bt,Y)=>{u[Ot]={open:Bt,close:Y},++Qt==Z&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{D(Ot)},onPageOpenEnd:()=>{L(Ot)},onPageCloseStart:()=>{D(Ot)},onPageCloseEnd:()=>{L(Ot)}},{default:()=>ee.component instanceof HTMLElement?hs("div",{...ee.attributes,innerHTML:ee.component.innerHTML}):hs(ee.component,ee.attributes,()=>ee.child)}))})),X.value),h=X.value.children[0].children}Nt(()=>n.effect,()=>{it()});function K(Z=[]){c=[...Z],c.forEach(V=>{V.pageKey=V.pageKey||ar()}),a=()=>{r=-1,mt(0)},it(c.length,!0)}function W(Z){Z.pageKey=Z.pageKey||ar(),c.push(Z),a=()=>{mt(c.length-1)},it(1,c.length==1)}function nt(){c.length<=1||mt(c.length-2,()=>{c.splice(c.length-1,1),r=c.length-1,it()})}function G(){mt(r+1)}function j(){mt(r-1)}const gt=new Ho(1);function mt(Z,V){gt.addTask(()=>new Promise(Qt=>{const ee=()=>{V?.(),Qt()};if(!f(Z)){ee();return}if(o=Z,o==r){ee();return}l.push(ee),it(),i("routeChangeStart",r,o,c.length),m()?(f(r)&&u[r].open(),f(o)&&u[o].open()):(f(r)&&u[r].close(),f(o)&&u[o].close())}))}return t({reset:K,push:W,pop:nt,forward:G,back:j,goto:mt,currentPageIndex:()=>r,totalPages:()=>c.length}),(Z,V)=>(F(),U("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),gy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},yy=lt({customOptions:{Image:Sa,Container:kt,Routes:Cr},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(f,m){i.value=m}const o=M(),a=f=>{f.on("panLeft",()=>{o.value?.forward()}),f.on("panRight",()=>{o.value?.back()}),o.value.reset(n.urls.map(m=>({component:hs(Sa,{mode:"aspectFit",src:m,openImageDetailWhenClick:!1})})))},l=M();function c(){l.value?.open()}function u(){l.value?.close()}const h=f=>{f.target&&eh(f.target,"image")&&u()};return t({open:c,close:u}),(f,m)=>(F(),Gt(Ve,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:Et(()=>[n.urls.length>1?(F(),U("div",gy,bt(i.value+1)+" / "+bt(n.urls.length),1)):$t("",!0),ft(kt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:Et(()=>[ft(Cr,{ref_key:"routesRef",ref:o,effect:n.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),yb="",vy={class:"page"},_y={class:"header"},by={class:"main"},xy={class:"main-scroll"},wy={class:"footer"},Cy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return Wg(s.designWidth),t({}),(i,r)=>(F(),U("div",vy,[P("header",_y,[St(i.$slots,"header",{},void 0,!0)]),P("div",by,[P("div",xy,[St(i.$slots,"main",{},void 0,!0)])]),P("footer",wy,[St(i.$slots,"footer",{},void 0,!0)])]))}}),vb="",Ty=pt(Cy,[["__scopeId","data-v-3904d6b5"]]),Sy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=te({}),r=te({});function o(){switch(pu(i),pu(r),n.type){case"table":i.display="table",r.display="table-cell",r.verticalAlign="middle",r.textAlign="center";break;case"transform":r.position="absolute",r.top="50%",r.left="50%",r.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",r.margin="auto"}}return o(),le(()=>{}),t({}),(a,l)=>(F(),U("div",{class:"layout-center",style:z(i)},[P("div",{style:z(r)},[St(a.$slots,"default",{},void 0,!0)],4)],4))}}),_b="",ky=pt(Sy,[["__scopeId","data-v-37646611"]]),Ey=P("div",{style:{"background-color":"#ffffff"}},"...",-1),Ea=lt({customOptions:{Pop:Ve,Button:ve,Container:kt},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!0}},setup(s,{expose:t}){const e=s,n=M();function i(){n.value.open()}function r(){n.value.close()}const o=M(),a=M(0),l=M(0),c=M(0),u=M(0),h=(f,m)=>{if(c.value=f,u.value=m,!o.value)return;const d=fa(),S=o.value.getBoundingClientRect();a.value=Math.max(e.gap,Math.min(S.x+S.width+e.gap,d.width-f-e.gap)),l.value=Math.max(e.gap,Math.min(S.y,d.height-m-e.gap))};return t({open:i,close:r}),(f,m)=>(F(),U(Vt,null,[P("div",{ref_key:"popoverButtonRef",ref:o,class:"popover-button",style:{display:"inline-block"},onClick:i},[St(f.$slots,"button",{},()=>[ft(ve,null,{default:Et(()=>[Jt("popover")]),_:1})])],512),ft(Ve,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:Et(()=>[P("div",{style:z({position:"absolute",left:a.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[ft(kt,{type:"shrink",onResize:h},{default:Et(()=>[St(f.$slots,"panel",{},()=>[Ey])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),Py={class:"dialog-parent"},Oy={key:0,class:"title"},Iy={key:0,class:"title-inner truncate"},Dy={class:"custom-content"},Ry={class:"custom-content-default"},Ay={key:1,class:"btns"},My=lt({customOptions:{Overlay:Tn,Pop:Ve,Icon:on,Button:ve},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,f,m;const d=()=>{i("open")},S=()=>{h?.(),i("close")};function k(p){o.value=p?.title||"",a.value=p?.content||"",l.value=typeof p?.showClose=="boolean"?p?.showClose:!1,c.value=p?.cancelText||"",u.value=p?.confirmText||"",h=p?.onClose,f=p?.onCancel,m=p?.onConfirm,r.value.open()}function _(){r.value.close()}function x(){_(),f?.(),i("cancel")}function y(){_(),m?.(),i("confirm")}return t({open:k,close:_}),(p,w)=>(F(),Gt(Ve,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:n.overlayBgColor,onOpen:d,onClose:S},{default:Et(()=>[P("div",Py,[P("div",{class:"dialog",style:z({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(F(),U("div",Oy,[o.value?(F(),U("div",Iy,bt(o.value),1)):$t("",!0),l.value?(F(),U("div",{key:1,class:"close",onClick:_},[ft(on,{icon:"ic:baseline-close",color:Mt(Pt).colorGrayCC},null,8,["color"])])):$t("",!0)])):$t("",!0),P("div",Dy,[St(p.$slots,"default",{},()=>[P("div",Ry,bt(a.value),1)],!0)]),c.value||u.value?(F(),U("div",Ay,[c.value?(F(),Gt(ve,{key:0,onClick:x,class:"btn",bgColor:Mt(Pt).colorGrayE6,borderColor:Mt(Pt).colorGrayE6,fontColor:Mt(Pt).colorGray33,borderRadius:"0"},{default:Et(()=>[Jt(bt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):$t("",!0),u.value?(F(),Gt(ve,{key:1,onClick:y,class:"btn",borderRadius:"0"},{default:Et(()=>[Jt(bt(u.value),1)]),_:1})):$t("",!0)])):$t("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),bb="",fi=pt(My,[["__scopeId","data-v-f9df8635"]]),Ny={class:"loading-8"},Fy={viewBox:"25 25 50 50"},Ly=lt({__name:"Loading8",props:{color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),U("div",Ny,[(F(),U("svg",Fy,[P("circle",{cx:"50",cy:"50",r:"20",style:z(["stroke: "+t.color])},null,4)]))]))}}),xb="",Pa=pt(Ly,[["__scopeId","data-v-e5e3cf4c"]]),$y={class:"loading"},Vy={class:"icon"},zy={style:{width:"8em"}},By={key:0,class:"content"},Gy=lt({customOptions:{Overlay:Tn,Pop:Ve,Dialog:fi,Loading8:Pa},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h){o.value=h||"",r.value.open()}function u(){r.value.close()}return t({open:c,close:u}),(h,f)=>(F(),Gt(fi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,onOpen:a,onClose:l},{default:Et(()=>[P("div",$y,[P("div",Vy,[St(h.$slots,"default",{},()=>[P("div",zy,[ft(Pa)])],!0)]),o.value?(F(),U("div",By,bt(o.value),1)):$t("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),wb="",Yy=pt(Gy,[["__scopeId","data-v-e707960a"]]),Xy={class:"toast"},jy={class:"content"},Uy=lt({customOptions:{Overlay:Tn,Pop:Ve,Dialog:fi},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h,f=1500){o.value=h,r.value.open(),setTimeout(()=>{u()},f)}function u(){r.value.close()}return t({open:c,close:u}),(h,f)=>(F(),Gt(fi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:a,onClose:l},{default:Et(()=>[P("div",Xy,[P("div",jy,bt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),Cb="",Hy=pt(Uy,[["__scopeId","data-v-7a82fa25"]]),Wy={class:"tab"},qy=lt({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(F(),U("div",Wy,[St(e.$slots,"default",{},void 0,!0)]))}}),Tb="",Zy=pt(qy,[["__scopeId","data-v-6589e7fa"]]),Qy={class:"tabs"},Ky=["onClick"],Jy={class:"content"},t1=lt({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.initIndex),o=te([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),f=[],m=rd(),d=m.default&&m.default();d&&(ti(o,d),_(r.value));const S=(y,p)=>{if(y){if(f.push({index:p,el:y}),f.length<o.length)return;h.value=f}};Nt([a,h],()=>{k()});function k(){if(a.value&&h.value.length){const y=a.value.getBoundingClientRect(),p=h.value[r.value].el.getBoundingClientRect();l.value=p.x-y.x,c.value=p.y-y.y+p.height-2,u.value=p.width}}function _(y){r.value=y,i("changedIndex",y),k(),x.value.goto(y)}const x=M();return Nt(x,()=>{x.value&&x.value.reset(n.pages,()=>{x.value.goto(n.initIndex)})}),t({}),(y,p)=>(F(),U("div",Qy,[P("div",{class:"header",ref_key:"headerRef",ref:a},[(F(!0),U(Vt,null,ge(n.labels,(w,b)=>(F(),U("div",{key:w,class:Kt(b==r.value?"active":""),onClick:B=>_(b)},[P("div",{ref_for:!0,ref:B=>S(B,b)},bt(w),513)],10,Ky))),128)),P("div",{class:"indicator",style:z({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),P("div",Jy,[ft(Cr,{ref_key:"routesRef",ref:x},null,512)])]))}}),Sb="",e1=pt(t1,[["__scopeId","data-v-cb33ca53"]]),s1=["width","height"],n1=lt({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=M();return Nt(r,()=>{if(!r.value)return;const o=new Ls(r.value),a=new oh(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{ue.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(F(),U("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:z([`border: 1px solid ${o.borderColor}`])},null,12,s1))}}),i1={class:"page-vertical-scroll-progress-bar"},r1=lt({customOptions:{ProgressBar:hi},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=Um();return o.on(()=>{const a=wg();i("progress",a),r.value?.goto(a)}),le(()=>{o.remove()}),t({}),(a,l)=>(F(),U("div",i1,[ft(hi,{ref_key:"bar",ref:r,bgColor:n.bgColor,progressColor:n.progressColor,borderColor:n.borderColor,borderRadius:n.borderRadius,duringTimeGap:n.duringTimeGap,showText:n.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),kb="",o1=pt(r1,[["__scopeId","data-v-3ea8cc5c"]]),a1=["fill"],l1=["fill"],c1=lt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),U("svg",{style:z(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("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:t.color},null,8,a1),P("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:t.color},null,8,l1)],4))}}),Eb="",Oa=pt(c1,[["__scopeId","data-v-987aed3d"]]),Ia=s=>(Ln("data-v-85491020"),s=s(),$n(),s),u1=[Ia(()=>P("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)),Ia(()=>P("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)),Ia(()=>P("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))],h1=lt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),U("svg",{style:z(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},u1,4))}}),Db="",Tr=pt(h1,[["__scopeId","data-v-85491020"]]),f1=["data-number"],d1=["data-number","data-unactive"],p1=["data-number"],m1=["data-number","data-unactive"],g1=lt({customOptions:{Pop:Ve,SVGCleanUp:Tr,Container:kt},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(0),a=te([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&f()}Nt(()=>[...n.initPlates],()=>{ti(a,n.initPlates),l()},{immediate:!0});const c=M(0),u=(y,p)=>{c.value=p},h=()=>{r.value.open(),i("open")},f=()=>{r.value.close(),i("close")},m=()=>{a.pop(),l(),i("plates",a)},d=y=>{if(y.target.dataset.unactive||"")return;let w=y.target.dataset.number;w&&(a.push(w),l(),i("plates",a))};t({open:h,close:f});const S=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],k=["1","2","3","4","5","6","7","8","9","0"],_=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],x=["港","澳","学","警","使","领","挂","应","急"];return(y,p)=>(F(),Gt(Ve,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:Et(()=>[ft(kt,{class:"popup-plate",style:z({paddingBottom:Mt(Pt).safeAreaBottom}),onResize:u},{default:Et(()=>[P("div",null,[P("div",{onClick:f},"关闭")]),P("div",{class:Kt(["step",o.value==0?"":"hide"])},[(F(),U(Vt,null,ge(S,w=>P("div",{key:w,class:"popitem",onClick:d,"data-number":w},bt(w),9,f1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Tr,{width:"16px"})])],2),P("div",{class:Kt(["step",o.value!=0?"":"hide"])},[(F(),U(Vt,null,ge(k,w=>P("div",{key:w,class:Kt(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":w,"data-unactive":o.value!=2?"unactive":""},bt(w),11,d1)),64)),(F(),U(Vt,null,ge(_,w=>P("div",{key:w,class:"popitem",onClick:d,"data-number":w},bt(w),9,p1)),64)),(F(),U(Vt,null,ge(x,w=>P("div",{key:w,class:Kt(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":w,"data-unactive":o.value!=2?"unactive":""},bt(w),11,m1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Tr,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),Rb="",lh=pt(g1,[["__scopeId","data-v-7865d42e"]]),y1=document.getElementById("teleport")||document.documentElement;function v1(s){{const t=hs(lh,s);return Rc(t,y1),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Sr=s=>(Ln("data-v-7f69a9fe"),s=s(),$n(),s),_1=Sr(()=>P("div",{class:"title"},"车牌颜色",-1)),b1={class:"plate-types"},x1=["onClick"],w1=Sr(()=>P("div",{class:"title"},"车牌号码",-1)),C1={class:"plate-numbers"},T1=Sr(()=>P("div",{class:"dot"},"·",-1)),S1=["onClick"],k1=Sr(()=>P("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),E1=lt({customOptions:{SVGCheck:Oa},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=[{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}],o=M(0),a=te([]),l=M(-1);function c(){v1({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{ti(a,f),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=r[f].completePlateLength&&a.length<r[f].completePlateLength?(l.value=a.length,c(),i("clear")):ti(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{ti(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return t({}),(f,m)=>(F(),U("div",wo(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[_1,P("div",b1,[(F(),U(Vt,null,ge(r,(d,S)=>P("div",{key:S,class:Kt(S==o.value?"checked":""),onClick:k=>u(S)},[P("div",{style:z(d.style)},null,4),P("div",null,bt(d.name),1),P("div",null,[ft(Oa,{color:"#ffffff",width:"0.14rem"})])],10,x1)),64))]),w1,P("div",C1,[P("div",{onClick:m[0]||(m[0]=d=>h(0)),class:Kt(l.value==0?"current":"")},bt(a[0]),3),P("div",{onClick:m[1]||(m[1]=d=>h(1)),class:Kt(l.value==1?"current":"")},bt(a[1]),3),T1,(F(!0),U(Vt,null,ge(r[o.value].completePlateLength-2,d=>(F(),U("div",{key:d,class:Kt(d+1==l.value?"current":""),onClick:S=>h(d+1)},bt(a[d+1]),11,S1))),128))]),k1],16))}}),Ab="",P1=pt(E1,[["__scopeId","data-v-7f69a9fe"]]),O1={class:"parent"},I1=lt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,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":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function r(c){switch(c){case"b":case"蓝牌":c="蓝牌";break;case"g":case"绿牌":c="绿牌";break;case"y":case"黄牌":c="黄牌";break;case"q":case"黄绿":c="黄绿";break;case"d":case"黑牌":c="黑牌";break;case"w":case"白牌":c="白牌";break;default:c="未知";break}const u=i.filter(h=>h.name===c);return u.length?u[0]:r("未知")}const o=M(r(n.plateType||""));let a=n.fontColor,l=n.fontSize;switch(n.displayType){case"dot":a=a||"#999999",l=l||"14px";break;case"chinese":a=a||"#333333",l=l||"14px";break;case"plaintext":a=a||"#333333",l=l||"14px";break}return t({}),(c,u)=>(F(),U("div",O1,[c.displayType=="dot"&&c.plate!=="无牌车"?(F(),U("div",{key:0,class:Kt(["leading",c.displayType]),style:z({...o.value.style,width:Mt(l),height:Mt(l)})},bt(o.value.name),7)):$t("",!0),c.displayType=="chinese"&&c.plate!=="无牌车"?(F(),U("div",{key:1,class:Kt(["leading",c.displayType]),style:z(o.value.style)},bt(o.value.name),7)):$t("",!0),c.displayType=="plaintext"&&c.plate!=="无牌车"?(F(),U("div",{key:2,class:Kt(["leading",c.displayType]),style:z({color:Mt(a),fontSize:Mt(l)})},bt(o.value.name),7)):$t("",!0),P("div",{class:"text",style:z({color:Mt(a),"font-size":Mt(l)})},bt(c.plate),5)]))}}),Mb="",D1=pt(I1,[["__scopeId","data-v-04645907"]]),R1={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},A1=P("div",{style:{width:"100%",height:"100%",background:`linear-gradient(
76
76
  to bottom,
77
77
  rgba(0, 0, 0, 0) 0%,
78
78
  rgb(0, 0, 0) 100%
@@ -85,11 +85,11 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Nd(s){retur
85
85
  rgb(0, 255, 0) 67%,
86
86
  rgb(255, 255, 0) 84%,
87
87
  rgb(255, 0, 0) 100%
88
- )`,"box-sizing":"border-box"}},N1=lt({customOptions:{Popover:Ea,Container:kt},__name:"ColorPicker",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=new wt(n.color),a=new wt(n.color),l=M(o.toString()),c=M(o.opposite(!0).toString()),u=M(a.toString()),h=M(a.opposite(!0).toString()),f=M(a.h),m=M(o.s),d=M(o.v);function S(x){x&&(o.setColor(x),a.setColor(x)),l.value=o.toString(),c.value=o.opposite(!0).toString(),u.value=a.toString(),h.value=a.opposite(!0).toString(),f.value=a.h,m.value=o.s,d.value=o.v}const k=x=>{const y=(p,w)=>{a.h=(1-w.y/x.height)*360,o.h=a.h,S()};x.captureDrag({start:y,move:y})},_=x=>{const y=(p,w)=>{o.s=w.x/x.width,o.v=1-w.y/x.height,S()};x.captureDrag({start:y,move:y,end:()=>{i("change",l.value),r.value.close(),ih(l.value).then(()=>{})}})};return t({setColor:S}),(x,y)=>(F(),Bt(Ea,{ref_key:"popover",ref:r,closeWhenClickOverlay:!1},{button:Et(()=>[St(x.$slots,"default",{},()=>[P("span",{style:z([{display:"inline-block","vertical-align":"middle","font-size":"1em",padding:"0.3em 0.8em","border-radius":"0.3em",cursor:"pointer",outline:"'none'","text-align":"'center'",border:"0"},{backgroundColor:l.value,color:c.value}])},xt(l.value),5)])]),panel:Et(()=>[P("div",R1,[P("div",{class:"saturation-field",style:z([{position:"relative",width:"100px",height:"100px",display:"inline-block",cursor:"pointer","box-sizing":"border-box"},{background:`linear-gradient(
88
+ )`,"box-sizing":"border-box"}},N1=lt({customOptions:{Popover:Ea,Container:kt},__name:"ColorPicker",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=new wt(n.color),a=new wt(n.color),l=M(o.toString()),c=M(o.opposite(!0).toString()),u=M(a.toString()),h=M(a.opposite(!0).toString()),f=M(a.h),m=M(o.s),d=M(o.v);function S(x){x&&(o.setColor(x),a.setColor(x)),l.value=o.toString(),c.value=o.opposite(!0).toString(),u.value=a.toString(),h.value=a.opposite(!0).toString(),f.value=a.h,m.value=o.s,d.value=o.v}const k=x=>{const y=(p,w)=>{a.h=(1-w.y/x.height)*360,o.h=a.h,S()};x.captureDrag({start:y,move:y})},_=x=>{const y=(p,w)=>{o.s=w.x/x.width,o.v=1-w.y/x.height,S()};x.captureDrag({start:y,move:y,end:()=>{i("change",l.value),r.value.close(),ih(l.value).then(()=>{})}})};return t({setColor:S}),(x,y)=>(F(),Gt(Ea,{ref_key:"popover",ref:r,closeWhenClickOverlay:!1},{button:Et(()=>[St(x.$slots,"default",{},()=>[P("span",{style:z([{display:"inline-block","vertical-align":"middle","font-size":"1em",padding:"0.3em 0.8em","border-radius":"0.3em",cursor:"pointer",outline:"'none'","text-align":"'center'",border:"0"},{backgroundColor:l.value,color:c.value}])},bt(l.value),5)])]),panel:Et(()=>[P("div",R1,[P("div",{class:"saturation-field",style:z([{position:"relative",width:"100px",height:"100px",display:"inline-block",cursor:"pointer","box-sizing":"border-box"},{background:`linear-gradient(
89
89
  to right,
90
90
  rgb(255, 255, 255) 0%,
91
91
  ${u.value} 100%
92
- )`}])},[ft(kt,{type:"full",onReady:_},{default:Et(()=>[A1,P("div",{class:"field-knob",style:z([{position:"absolute",width:"12px",height:"12px","box-shadow":"rgba(0, 0, 0, 0.5) 0px 1px 3px","border-radius":"12px","z-index":"1",cursor:"pointer","box-sizing":"border-box"},{left:100*m.value-6+"px",top:100*(1-d.value)-6+"px",backgroundColor:l.value,border:`2px solid ${c.value}`}])},null,4)]),_:1})],4),P("div",M1,[ft(kt,{type:"full",onReady:k},{default:Et(()=>[P("div",{class:"hue-knob",style:z([{position:"absolute",width:"15px",height:"2px","z-index":"1","box-sizing":"border-box"},{marginTop:(1-f.value/360)*100+"px",borderRight:"4px solid "+h.value}])},null,4)]),_:1})])])]),_:3},512))}}),Nb="",F1={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 s=document.createElement("object");this._resizeObject=s,s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex",-1),s.onload=this.addResizeHandlers,s.type="text/html",Qo&&this.$el.appendChild(s),s.data="about:blank",Qo||this.$el.appendChild(s)},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&&(!Qo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},L1={class:"resize-observer",tabindex:"-1"};function $1(s,t,e,n,i,r){return F(),H("div",L1)}const V1=pt(F1,[["render",$1],["__scopeId","data-v-d5987ae1"]]),z1=lt({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=M(n.mapWidth),r=M(n.mapHeight);let o;const a=M();return Mt(a,()=>{a.value&&(o=new Ls(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),Es(()=>{Bg(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`).then(()=>{new Zg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)}).catch(l=>{console.log("error",l)})}),le(()=>{o.destroy()}),t({}),(l,c)=>(F(),H("div",wo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[St(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),Fb="",B1=pt(z1,[["__scopeId","data-v-318be0a5"]]);var di=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new di.Panel("FPS","#0ff","#002")),l=e(new di.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new di.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:t,setMode:n}};di.Panel=function(s,t,e){var n=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,f=15*o,m=74*o,d=30*o,S=document.createElement("canvas");S.width=a,S.height=l,S.style.cssText="width:80px;height:48px";var k=S.getContext("2d");return k.font="bold "+9*o+"px Helvetica,Arial,sans-serif",k.textBaseline="top",k.fillStyle=e,k.fillRect(0,0,a,l),k.fillStyle=t,k.fillText(s,c,u),k.fillRect(h,f,m,d),k.fillStyle=e,k.globalAlpha=.9,k.fillRect(h,f,m,d),{dom:S,update:function(_,x){n=Math.min(n,_),i=Math.max(i,_),k.fillStyle=e,k.globalAlpha=1,k.fillRect(0,0,a,f),k.fillStyle=t,k.fillText(r(_)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),k.drawImage(S,h+o,f,m-o,d,h,f,m-o,d),k.fillRect(h+m-o,f,o,d),k.fillStyle=e,k.globalAlpha=.9,k.fillRect(h+m-o,f,o,r((1-_/x)*d))}}};const G1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=M();return Es(()=>{const n=new di;n.domElement.style.margin="1em",e.value.appendChild(n.domElement),Zt(()=>(n.update(),!0))}),t({}),(n,i)=>(F(),H("div",{ref_key:"containerRef",ref:e},null,512))}}),Y1={class:"ease-graph"},X1=lt({customOptions:{Button:ve,Canvas:ns},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(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Mt(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},f=()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},m=new He({frameDuration:n.easeDuration});m.addTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,onUpdate:d=>{u.x=d.x},onComplete:()=>{}}),m.addTween(u,{y:n.graphVerticalGap},{frames:1,delay:0,easeFunction:n.easeFunction,onUpdate:d=>{u.y=d.y,f()},onComplete:()=>{i("onCompleted",n.easeName),a=!1}}),m.play()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return le(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(F(),H("div",Y1,[P("div",null,"缓动:"+xt(u.easeName),1),P("div",null,[P("div",null,[ft(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Et(()=>[Kt(" 开始 ")]),_:1})]),P("div",null,[ft(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Et(()=>[Kt(" 选择 ")]),_:1},8,["stylePattern"])])]),P("div",{style:z({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ft(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),$b="",Da=pt(X1,[["__scopeId","data-v-e8afe7ba"]]),j1=2e3,U1=lt({customOptions:{EaseGraphDisplay:Da},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:_t.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:_t.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:_t.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:_t.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:_t.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:_t.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:_t.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:_t.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:_t.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:_t.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:_t.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:_t.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:_t.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:_t.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:_t.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:_t.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:_t.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:_t.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:_t.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:_t.Easing.Circular.In},{easeName:"CircularOut",easeFunction:_t.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:_t.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:_t.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:_t.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:_t.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:_t.Easing.Back.In},{easeName:"BackOut",easeFunction:_t.Easing.Back.Out},{easeName:"BackInOut",easeFunction:_t.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:_t.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:_t.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:_t.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:_t.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:_t.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:_t.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:_t.Easing.createStep(4)},{easeName:"8 steps",easeFunction:_t.Easing.createStep(8)},{easeName:"12 steps",easeFunction:_t.Easing.createStep(12)},{easeName:"16 steps",easeFunction:_t.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:_t.Easing.swing},{easeName:"causeSeizures",easeFunction:_t.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(f,m){f&&(r[m]={el:f})}const a=new Ho(10);function l(f){a.addTask(()=>(r[f].el.start(),new Promise(m=>{r[f].resolve=m})))}function c(f){r[f].resolve?.()}const u=M("Linear");function h(f,m){u.value=f,i("selectedEaseFunction",f,m)}return h("Linear",_t.Easing.Linear.None),t({}),(f,m)=>(F(),H("div",null,[(F(!0),H($t,null,ge(n.easeList,d=>(F(),H("div",{key:d.easeName,class:"ease-graph-wrap"},[d.easeFunction?(F(),Bt(Da,{key:0,easeName:d.easeName,easeFunction:d.easeFunction,easeDuration:j1,isSelected:u.value==d.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:S=>o(S,d.easeName)},null,8,["easeName","easeFunction","isSelected"])):Gt("",!0)]))),128))]))}}),Vb="",H1=pt(U1,[["__scopeId","data-v-fa7ba01d"]]),W1={class:"interpolation-graph"},ch=1/6,uh=5/6,q1=lt({customOptions:{Button:ve,Canvas:ns},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Mt(r,()=>{r.value&&r.value.getCanvas().then(S=>{o=S,i("onMounted",n.interpolationName),o.app.on("showInParent",d)})});const a=n.canvasWidth*ch,l=n.canvasHeight/2,c=[n.canvasWidth*uh,n.canvasWidth/2],u=[n.canvasHeight*ch,n.canvasHeight*uh],h=[...c,a],f=[...u,l];let m=!1;const d=()=>{if(!o||m)return;m=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var S=0;S<c.length;S++)o.ctx.fillRect(c[S]-2,u[S]-2,4,4);const k=new He({frameDuration:n.interpolationDuration});k.addTween({x:a,y:l,old:{x:a,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{}}),k.addTween({x:a,y:l,old:{x:a,y:l}},{x:h,y:f},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{i("onCompleted",n.interpolationName),m=!1}}),k.play()};return le(()=>{o.app.off("showInParent",d)}),t({start:d}),(S,k)=>(F(),H("div",W1,[P("div",null,[Kt(" 插值:"+xt(S.interpolationName)+" ",1),ft(ve,{stylePattern:"outline",height:"32px",onClick:d},{default:Et(()=>[Kt(" 开始 ")]),_:1})]),P("div",{style:z({width:S.canvasWidth+"px",height:S.canvasHeight+"px"})},[ft(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),zb="",Ra=pt(q1,[["__scopeId","data-v-17bd4dde"]]),Z1=2e3,Q1=lt({customOptions:{InterpolationGraphDisplay:Ra},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:_t.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:_t.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:_t.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Ho(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(F(),H("div",null,[(F(!0),H($t,null,ge(n.interpolationList,h=>(F(),H("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ft(Ra,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Z1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Bb="",K1=pt(Q1,[["__scopeId","data-v-6e8312e3"]]),J1=lt({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r,o,a;const l=M();Mt(l,()=>{r||!l.value||(r=new Ls(l.value,!1),r.on("resize",(u,h)=>{i("resize",u,h),o=new Eg(r),a?.(o),i("ready",o)}),r.start())});function c(){return new Promise(u=>{if(o)return u(o);a=u})}return le(()=>{r?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(F(),H("div",{class:"svg",ref_key:"svgRef",ref:l,style:z({backgroundColor:n.bgColor})},null,4))}}),Gb="",hh=pt(J1,[["__scopeId","data-v-132e642b"]]),tv='<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>',ev={class:"btns"},sv={class:"btns"},nv={class:"btns sub-btns"},iv={class:"btns sub-btns"},rv={style:{width:"100%"}},ov={style:{width:"100%"}},av={style:{height:"400px"}},lv={style:{height:"400px"}},cv=lt({customOptions:{Button:ve,InputRange:$s,SVG:hh,Canvas:ns},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:_t.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=M();let i=0,r=0;Mt(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(R,A)=>{i=R,r=A})})});const o=M(),a=M(),l=M(),c=M(""),u=M("");let h;function f(O){switch(u.value=O,c.value){case"AnimateToTweenCSS":B();break}}const m=new Pg({svg:tv,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),d=new Ht({d:"M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"}),S=+d.getTotalLength().toFixed(0),k=M(S),_=M(Math.floor(S/2));function x(O){k.value=O,d.setAttr("strokeDasharray",`${k.value} ${k.value}`)}function y(O){_.value=O,d.setAttr("strokeDashoffset",`${_.value}`)}const p=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new xn({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:wt.random().toString()},enableDrag:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path([A]),R.draw([A]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!n.value||!o.value)return;h?.();const O=new he({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),R=new he({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),A=jt(0,i-100),D=jt(0,r-100),L=new he({attrs:{stroke:"#666666"}});L.x=A,L.y=D,L.toX=A+100,L.toY=D+100;const X=new he({attrs:{stroke:"#666666"}});X.x=A+100,X.y=D,X.toX=A,X.toY=D+100;const it=L.intersection(X),K=new Wt({x:0,y:0,radius:10,attrs:{fill:wt.random().toString()}});it&&(K.x=it.x,K.y=it.y);const W=new vr({x:jt(0,i),y:jt(0,r),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new ye({x:jt(0,i),y:jt(0,r),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new Og({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:wt.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),j=new Ig({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:wt.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),gt=new Dg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:wt.random().toString()},enableDrag:!0}),mt=new va({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new Rg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:wt.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new Ag({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:wt.random().toString()},enableDrag:!0}),Qt=new Mg({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:wt.random().toString(),fill:"none"},enableDrag:!0}),te=new Lg({x:jt(0,i),y:jt(0,r),degree:30,scalar:2,showFlame:!0,attrs:{stroke:wt.random().toString()},enableDrag:!0}),Ot=new xn({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:wt.random().toString()},enableDrag:!0}),ee=new Xu({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ee.on("change",Ae=>{console.log(`slider change: ${Ae}`)});const zt=new _a({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:wt.random().toString(),enableDrag:!0}),Y=new ju({x:jt(0,i),y:jt(0,r),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),Fe=new Gu({x:jt(0,i),y:jt(0,r),rx:50,ry:10,enableDrag:!0,attrs:{fill:wt.random().toString()}}),ze=[O,R,L,X,K,W,nt,G,j,gt,mt,Z,V,Qt,te,Ot,ee,zt,Y,Fe];n.value.getSVG().then(Ae=>{o.value.getCanvas().then(C=>{Ae.clear(),h=Zt(()=>(Ae.path(ze),C.ctx.clearRect(),C.draw(ze),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new vr({scalar:.5,followMouse:!0,attrs:{fill:wt.random().toString()}}),D=A.clone(),L=new he({x:O.app.width/2,y:O.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),X=L.clone();O.clear(),h=Zt(()=>(R.ctx.clearRect(),L.toX=A.x,L.toY=A.y,X.toX=D.x,X.toY=D.y,O.path([L,A]),R.draw([X,D]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width/2,y:O.app.height/2,radius:30,attrs:{fill:wt.random().toString()}});A.enableDrag=!0,A.targetToAfterDragFree={targetX:O.app.width/2,targetY:O.app.height/2};const D=A.clone();O.clear(),h=Zt(()=>(O.path(A),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:50,y:O.app.height/2,radius:30,attrs:{fill:wt.random().toString()}});A.mass=2,A.vx=2;const D=new Wt({x:O.app.width-50,y:O.app.height/2,radius:30,attrs:{fill:wt.random().toString()}});D.mass=1,D.vx=-2,O.clear(),h=Zt(()=>(A.checkCollision(D),A.run(),D.run(),O.path([A,D]),R.ctx.clearRect(),R.draw([A,D]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let it=0;it<15;it++){const K=Math.random()*20+15,W=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:K,attrs:{fill:wt.random().toString()}});W.mass=K,W.vx=Math.random()*10-5,W.vy=Math.random()*10-5,D.push(W)}const L=new ye({x:0,y:0,width:O.app.width,height:O.app.height}),X=new Re(D);O.clear(),h=Zt(()=>(X.run({wall:L}),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let X=0;X<30;X++){const it=Math.random()*25+5,K=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:it,attrs:{fill:wt.random().toString()}});K.mass=it,D.push(K)}const L=new Re(D);O.clear(),h=Zt(()=>(L.gravitate(),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width*.5,y:O.app.height*.5,radius:50,attrs:{fill:wt.random().toString()}});A.mass=1e4;const D=new Wt({x:O.app.width*.5+200,y:O.app.height*.5,radius:10,attrs:{fill:wt.random().toString()}});D.mass=1,D.vy=7;const L=[A,D],X=new Re(L);O.clear(),h=Zt(()=>(X.gravitate(),O.path(L),R.ctx.clearRect(),R.draw(L),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let W=0;W<30;W++){const nt=Math.random()*10+2,G=new Wt({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:nt,attrs:{fill:wt.random().toString()}});G.vx=Math.random()*6-3,G.vy=Math.random()*6-3,G.mass=nt,A.push(G)}const L=new Re(A),X=new ye({x:0,y:0,width:R.app.width,height:R.app.height}),it=new wt("#666666");let K=[];O.clear(),h=Zt(()=>(O.delete(K),K=[],L.springMass(X,{spring:5e-4}).forEach(([W,nt,G,j,gt])=>{gt>0&&K.push(new he({x:W,y:nt,toX:G,toY:j,attrs:{strokeWidth:"1",stroke:it.setAlpha(gt).toString()}}))}),O.path(K),O.path(A),R.ctx.clearRect(),R.draw(K),R.draw(A),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:0,y:0,radius:8,attrs:{fill:wt.random().toString()}}),D=new Wt({x:0,y:0,radius:5,attrs:{fill:wt.random().toString()}});let L=[m,A,D],X,it;m.on("clicked",j=>{it&&O.delete(it),X&&X.restore(),X=j,j.save(),j.setAttr({fill:"pink",stroke:"green"}),L=[m,A,D];const gt=j.getBoundingClientRect();gt&&(it=new ye(gt),it.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),L.push(it))});let K=0,W=m.shapes[K].getTotalLength(),nt=0;const G=.01;O.clear(),h=Zt(()=>{nt>1&&(K++,nt=0,K>m.shapes.length-1&&(K=0),W=m.shapes[K].getTotalLength()),R.ctx.clearRect();let{x:j,y:gt}=m.shapes[K].interpolate(nt);A.x=j,A.y=gt;let{x:mt,y:Z}=m.shapes[K].getPointAtLength(nt*W);return D.x=mt,D.y=Z,O.path(L),R.draw(L),nt+=G,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new xn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new xn({width:50,height:10,attrs:{stroke:"#666666"}}),L=new xn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new xn({width:50,height:10,attrs:{stroke:"#666666"}});let it=0,K=0;function W(){K+=.2,A.x+=it,A.y+=K,L.x+=it,L.y+=K}const nt=-Math.PI/2;function G(Z,V,Qt){const te=Math.sin(Qt)*45+90,Ot=Math.sin(Qt+nt)*45+45,ee=V.getPin();Z.degree=te,V.degree=Z.degree+Ot,V.x=Z.getPin().x,V.y=Z.getPin().y,V.vx=V.getPin().x-ee.x,V.vy=V.getPin().y-ee.y}function j(Z){const V=Z.getPin().y+Z.height/2;if(V>R.app.height){const Qt=V-R.app.height;A.y-=Qt,D.y-=Qt,L.y-=Qt,X.y-=Qt,it-=Z.vx,K-=Z.vy}}function gt(){const Z=R.app.width+200;A.x>R.app.width+100?(A.x-=Z,D.x-=Z,L.x-=Z,X.x-=Z):A.x<-100&&(A.x+=Z,D.x+=Z,L.x+=Z,X.x+=Z)}let mt=0;O.clear(),h=Zt(()=>(R.ctx.clearRect(),mt+=.06,W(),G(A,D,mt),G(L,X,mt+Math.PI),j(D),j(X),gt(),O.path([A,D,L,X]),R.draw([A,D,L,X]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!n.value||!o.value)return;h?.();function O(X){return new ye({x:Math.random()*X,y:0,width:50,height:50,attrs:{fill:wt.random().toString()},enableDrag:!0})}const R=.2,A=[];function D(){const X=O(i);return A.push(X),X}let L=D();n.value.getSVG().then(X=>{o.value.getCanvas().then(it=>{X.clear(),h=Zt(()=>(it.ctx.clearRect(),X.isMouseDown||it.isMouseDown?(X.path(A),it.draw(A)):(L&&L.run({gravity:R}),L&&L.y+L.height>=it.ctx.canvas.height&&(L.y=it.ctx.canvas.height-L.height,L=D()),A.forEach(K=>(L&&L!==K&&L.isIntersectRect(K)&&(L.y=K.y-L.height,L.y>=L.height?L=D():L=null),K)),X.path(A),it.draw(A)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let D=0;D<80;D++){const L=new Wt({x:O.app.width/2,y:O.app.height,radius:2,attrs:{fill:wt.random().toString()}});L.vx=Math.random()*2-1,L.vy=Math.random()*-10-10,A.push(L)}O.clear(),h=Zt(()=>(A.forEach(D=>{D.run({gravity:.5}),(D.x-D.radius>O.app.width||D.x+D.radius<0||D.y-D.radius>O.app.height||D.y+D.radius<0)&&(D.x=O.app.width/2,D.y=O.app.height,D.vx=Math.random()*2-1,D.vy=Math.random()*-10-10)}),O.path(A),R.ctx.clearRect(),R.draw(A),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!n.value||!o.value)return;h?.();function O(D,L){const X=[];for(let it=0;it<3;it++)X.push(new Wt({x:D,y:L,radius:20,attrs:{fill:wt.random().toString()}}));return X}function R(){const D=[];for(let L=0;L<3;L++)D.push(new he({attrs:{"stroke-width":"1",stroke:"#666666"}}));return D}const A={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(D=>{o.value.getCanvas().then(L=>{const X=R(),it=O(D.app.width/2,D.app.height/2),K=new Wt({x:0,y:0}),W=R(),nt=O(L.app.width/2,L.app.height/2),G=new Wt({x:0,y:0}),j=new Re([K,...it]),gt=new Re([G,...nt]);D.clear(),h=Zt(()=>(L.ctx.clearRect(),K.x=D.app.mousePoint.x,K.y=D.app.mousePoint.y,j.springChain(A),it.forEach((mt,Z)=>{if(Z===0)X[Z].x=D.app.mousePoint.x,X[Z].y=D.app.mousePoint.y,X[Z].toX=mt.x,X[Z].toY=mt.y;else{const V=it[Z-1];X[Z].x=V.x,X[Z].y=V.y,X[Z].toX=mt.x,X[Z].toY=mt.y}}),D.path(X),D.path(it),G.x=L.app.mousePoint.x,G.y=L.app.mousePoint.y,gt.springChain(A),nt.forEach((mt,Z)=>{if(Z===0)W[Z].x=L.app.mousePoint.x,W[Z].y=L.app.mousePoint.y,W[Z].toX=mt.x,W[Z].toY=mt.y;else{const V=nt[Z-1];W[Z].x=V.x,W[Z].y=V.y,W[Z].toX=mt.x,W[Z].toY=mt.y}}),L.draw(W),L.draw(nt),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:wt.random().toString()},enableDrag:!0}));const L=new Wt({radius:20,attrs:{fill:"#ff0000"}});O.clear(),h=Zt(()=>(R.ctx.clearRect(),L.runSpringTo(D,{spring:.03}),D.forEach((X,it)=>{A[it].x=L.x,A[it].y=L.y,A[it].toX=X.x,A[it].toY=X.y}),O.path([...A,...D,L]),R.draw([...A,...D,L]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:wt.random().toString()},enableDrag:!0}));const L=new Re(D);O.clear(),h=Zt(()=>(L.springConnect({springLength:120}),A[0].x=D[0].x,A[0].y=D[0].y,A[0].toX=D[1].x,A[0].toY=D[1].y,A[1].x=D[1].x,A[1].y=D[1].y,A[1].toX=D[2].x,A[1].toY=D[2].y,A[2].x=D[2].x,A[2].y=D[2].y,A[2].toX=D[0].x,A[2].toY=D[0].y,O.path([...A,...D]),R.ctx.clearRect(),R.draw([...A,...D]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=new yr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),L=new yr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),X=new yr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),it=new yr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),L.cx=D.cx=O.app.mousePoint.x,L.cy=D.cy=O.app.mousePoint.y,O.path(D),O.path(L),it.cx=X.cx=R.app.mousePoint.x,it.cy=X.cy=R.app.mousePoint.y,R.draw([X,it]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect();const A=[];for(let X=0;X<10;X++)A.push({x:Math.random()*O.app.width,y:Math.random()*O.app.height});const D=A.map((X,it)=>new ye({x:X.x,y:X.y,width:6,height:6,attrs:{fill:it==0?"#ff0000":it==A.length-1?"#00ff00":"#666666"}})),L=new Bu({points:A,attrs:{stroke:"#ff0000"},isStraight:!0});L.isStraight=!0,O.path(D),O.path(L),L.isStraight=!1,R.draw([...D,L])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!n.value||!o.value)return;h?.();const O=new Yu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),R=new Yu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(A=>{o.value.getCanvas().then(D=>{A.clear(),h=Zt(()=>(D.ctx.clearRect(),A.path(O),D.draw(R),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!n.value||!o.value)&&(h?.(),d.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${k.value} ${k.value}`,strokeDashoffset:`${_.value}`}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(d),R.draw(d),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!n.value||!o.value)&&(h?.(),d.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),d.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{O.path(d),R.ctx.clearRect(),R.draw(d)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:wt.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:wt.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!n.value||!o.value)return;h?.();const O=new vr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),A=new va({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=Re.generatePointsShape(100,100,100,3);D.x=100,D.y=100,D.setAttr({stroke:"#666666"});const L=Re.generatePointsShape(100,100,100,6);L.x=50,L.y=50,L.setAttr({stroke:"#7EEDFF"});const X=new Re([D,L,O,R,A]);n.value.getSVG().then(it=>{o.value.getCanvas().then(K=>{it.clear(),X.polymorphTween(6e3,{draw:W=>{it.path(W),K.ctx.clearRect(),K.draw(W)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!n.value||!o.value)return;h?.();const O=new vr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),A=new va({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=new Re([O,R,m,A]);n.value.getSVG().then(L=>{o.value.getCanvas().then(X=>{L.clear(),D.polymorphTween(6e3,{draw:it=>{L.path(it),X.ctx.clearRect(),X.draw(it)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!n.value||!o.value)&&(h?.(),Zu(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=Re.generateRosettaShape(120,120,55,35,6);A.setAttr({stroke:"none",fill:"none"});const D=new ye({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),L=new Ht({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});O.clear(),R.ctx.clearRect();const X=new He({frameDuration:15e3});X.addTween({progress:0},{progress:1},{onUpdate:it=>{const K=A.trailPath(L,it.progress);D.x=K.x,D.y=K.y,D.degree=K.alpha+90,O.path([L,D]),R.ctx.clearRect(),R.draw([L,D])}}),X.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new $g(R.app.width,R.app.height,{angle:jt(55,125),spread:jt(50,70),particleCount:jt(50,100)});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(A),R.draw(A),!0))})}))}}],w=[{type:"translateTo",onClick:()=>f("translateTo")},{type:"translateXTo",onClick:()=>f("translateXTo")},{type:"translateYTo",onClick:()=>f("translateYTo")},{type:"translateZTo",onClick:()=>f("translateZTo")},{type:"translate3dTo",onClick:()=>f("translate3dTo")},{type:"rotateTo",onClick:()=>f("rotateTo")},{type:"rotateXTo",onClick:()=>f("rotateXTo")},{type:"rotateYTo",onClick:()=>f("rotateYTo")},{type:"rotateZTo",onClick:()=>f("rotateZTo")},{type:"rotate3dTo",onClick:()=>f("rotate3dTo")},{type:"scaleTo",onClick:()=>f("scaleTo")},{type:"scaleXTo",onClick:()=>f("scaleXTo")},{type:"scaleYTo",onClick:()=>f("scaleYTo")},{type:"scaleZTo",onClick:()=>f("scaleZTo")},{type:"scale3dTo",onClick:()=>f("scale3dTo")},{type:"skewTo",onClick:()=>f("skewTo")},{type:"skewXTo",onClick:()=>f("skewXTo")},{type:"skewYTo",onClick:()=>f("skewYTo")},{type:"perspective",onClick:()=>f("perspective")}];let b;function B(){b||(b=new Ls(a.value));const O=50,R=0,A=0,D=0,L=b.width-O,X=b.height-O,it=b.height-O,K=b.width/2-O/2,W=b.height/2-O/2,nt={},G={};switch(u.value){case"translateTo":Object.assign(nt,{translateTo:[R,A]}),Object.assign(G,{translateTo:[L,X]});break;case"translateXTo":Object.assign(nt,{translateXTo:R}),Object.assign(G,{translateXTo:L});break;case"translateYTo":Object.assign(nt,{translateYTo:A}),Object.assign(G,{translateYTo:X});break;case"translateZTo":Object.assign(nt,{translateTo:[K,W],translateZTo:D}),Object.assign(G,{translateTo:[K,W],translateZTo:it});break;case"translate3dTo":Object.assign(nt,{translate3dTo:[K-50,W-50,D]}),Object.assign(G,{translate3dTo:[K+50,W+50,it]});break;case"rotateTo":Object.assign(nt,{translateTo:[K,W],rotateTo:0}),Object.assign(G,{translateTo:[K,W],rotateTo:360});break;case"rotateXTo":Object.assign(nt,{translateTo:[K,W],rotateXTo:0}),Object.assign(G,{translateTo:[K,W],rotateXTo:180});break;case"rotateYTo":Object.assign(nt,{translateTo:[K,W],rotateYTo:0}),Object.assign(G,{translateTo:[K,W],rotateYTo:180});break;case"rotateZTo":Object.assign(nt,{translateTo:[K,W],rotateZTo:0}),Object.assign(G,{translateTo:[K,W],rotateZTo:360});break;case"rotate3dTo":Object.assign(nt,{translateTo:[K,W],rotate3dTo:[0,0,0]}),Object.assign(G,{translateTo:[K,W],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(nt,{translateTo:[K,W],scaleTo:1}),Object.assign(G,{translateTo:[K,W],scaleTo:3});break;case"scaleXTo":Object.assign(nt,{translateTo:[K,W],scaleXTo:1}),Object.assign(G,{translateTo:[K,W],scaleXTo:3});break;case"scaleYTo":Object.assign(nt,{translateTo:[K,W],scaleYTo:1}),Object.assign(G,{translateTo:[K,W],scaleYTo:3});break;case"scaleZTo":Object.assign(nt,{translateTo:[K,W],scaleZTo:1}),Object.assign(G,{translateTo:[K,W],scaleZTo:3});break;case"scale3dTo":Object.assign(nt,{translateTo:[K,W],scale3dTo:[1,1,1]}),Object.assign(G,{translateTo:[K,W],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(nt,{translateTo:[K,W],skewTo:0}),Object.assign(G,{translateTo:[K,W],skewTo:30});break;case"skewXTo":Object.assign(nt,{translateTo:[K,W],skewXTo:0}),Object.assign(G,{translateTo:[K,W],skewXTo:30});break;case"skewYTo":Object.assign(nt,{translateTo:[K,W],skewYTo:0}),Object.assign(G,{translateTo:[K,W],skewYTo:30});break;case"perspective":Object.assign(nt,{translateTo:[K,W],perspective:0}),Object.assign(G,{translateTo:[K,W],perspective:1e3});break}const j=new He({frameDuration:2e3});j.addTween(nt,G,{easeFunction:e.easeFunction,onUpdate:gt=>{Zu(l.value,Xg(l.value,gt))}}),j.play()}function ct(){return new Promise(O=>{o.value.getCanvas().then(R=>{ue.downloadFromSVGString(R.ctx.toRawSVG().raw,"CanvasToSVG"),O()})})}return le(()=>{}),t({}),(O,R)=>(F(),H($t,null,[P("div",ev,[ft(ve,{asyncClick:ct},{default:Et(()=>[Kt(" downloadFromCanvasToSVG ")]),_:1})]),P("div",sv,[(F(),H($t,null,ge(p,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:c.value==A.type?"fullfilled":"outline"},{default:Et(()=>[Kt(xt(A.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Qs(P("div",null," 当前缓动函数:"+xt(e.easeName),513),[[Rs,c.value=="AnimateToTweenCSS"]]),Qs(P("div",nv,[(F(),H($t,null,ge(w,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:u.value==A.type?"fullfilled":"outline"},{default:Et(()=>[Kt(xt(A.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Rs,c.value=="AnimateToTweenCSS"]]),Qs(P("div",iv,[P("div",rv,[P("div",null,"stroke-dasharray: "+xt(k.value)+","+xt(k.value),1),ft($s,{max:988,defaultValue:k.value,onChange:x},null,8,["defaultValue"])]),P("div",ov,[P("div",null,"stroke-dashoffset: "+xt(_.value),1),ft($s,{max:988,defaultValue:_.value,onChange:y},null,8,["defaultValue"])])],512),[[Rs,c.value=="StrokeDash"]]),Qs(P("div",av,[ft(hh,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[Rs,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",lv,[ft(ns,{ref_key:"canvasRef",ref:o,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Rs,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",{ref_key:"tweenCSSContainerRef",ref:a,style:{height:"400px"},class:"css-area"},[P("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[Rs,c.value=="AnimateToTweenCSS"]])],64))}}),Yb="",uv=pt(cv,[["__scopeId","data-v-2c29a737"]]),hv={class:"svg"},fv=[Fd('<defs data-v-7ee5c19e><mask id="mask" maskContentUnits="objectBoundingBox" data-v-7ee5c19e><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-7ee5c19e></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-7ee5c19e></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-7ee5c19e></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-7ee5c19e></rect></mask></defs>',1)],dv=lt({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(F(),H("svg",hv,fv))}}),jb="",Aa=pt(dv,[["__scopeId","data-v-7ee5c19e"]]),pv={class:"loading-1"},mv=lt({__name:"Loading1",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",pv,[P("div",{class:"rect1",style:e}),P("div",{class:"rect2",style:e}),P("div",{class:"rect3",style:e}),P("div",{class:"rect4",style:e}),P("div",{class:"rect5",style:e})]))}}),Ub="",gv=pt(mv,[["__scopeId","data-v-48b10c9a"]]),yv={class:"loading-2"},vv=lt({__name:"Loading2",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",yv,[P("div",{class:"dot1",style:e}),P("div",{class:"dot2",style:e})]))}}),Hb="",_v=pt(vv,[["__scopeId","data-v-79f9930f"]]),bv=lt({__name:"Loading3",props:{fromColor:{default:Pt.colorPrimary},toColor:{default:Pt.colorRed}},setup(s){const t=s,e=`
92
+ )`}])},[ft(kt,{type:"full",onReady:_},{default:Et(()=>[A1,P("div",{class:"field-knob",style:z([{position:"absolute",width:"12px",height:"12px","box-shadow":"rgba(0, 0, 0, 0.5) 0px 1px 3px","border-radius":"12px","z-index":"1",cursor:"pointer","box-sizing":"border-box"},{left:100*m.value-6+"px",top:100*(1-d.value)-6+"px",backgroundColor:l.value,border:`2px solid ${c.value}`}])},null,4)]),_:1})],4),P("div",M1,[ft(kt,{type:"full",onReady:k},{default:Et(()=>[P("div",{class:"hue-knob",style:z([{position:"absolute",width:"15px",height:"2px","z-index":"1","box-sizing":"border-box"},{marginTop:(1-f.value/360)*100+"px",borderRight:"4px solid "+h.value}])},null,4)]),_:1})])])]),_:3},512))}}),Nb="",F1={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 s=document.createElement("object");this._resizeObject=s,s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex",-1),s.onload=this.addResizeHandlers,s.type="text/html",Qo&&this.$el.appendChild(s),s.data="about:blank",Qo||this.$el.appendChild(s)},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&&(!Qo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},L1={class:"resize-observer",tabindex:"-1"};function $1(s,t,e,n,i,r){return F(),U("div",L1)}const V1=pt(F1,[["render",$1],["__scopeId","data-v-d5987ae1"]]),z1=lt({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=M(n.mapWidth),r=M(n.mapHeight);let o;const a=M();return Nt(a,()=>{a.value&&(o=new Ls(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),Es(()=>{Bg(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`).then(()=>{new Zg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)}).catch(l=>{console.log("error",l)})}),le(()=>{o.destroy()}),t({}),(l,c)=>(F(),U("div",wo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[St(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),Fb="",B1=pt(z1,[["__scopeId","data-v-318be0a5"]]);var di=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new di.Panel("FPS","#0ff","#002")),l=e(new di.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new di.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:t,setMode:n}};di.Panel=function(s,t,e){var n=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,f=15*o,m=74*o,d=30*o,S=document.createElement("canvas");S.width=a,S.height=l,S.style.cssText="width:80px;height:48px";var k=S.getContext("2d");return k.font="bold "+9*o+"px Helvetica,Arial,sans-serif",k.textBaseline="top",k.fillStyle=e,k.fillRect(0,0,a,l),k.fillStyle=t,k.fillText(s,c,u),k.fillRect(h,f,m,d),k.fillStyle=e,k.globalAlpha=.9,k.fillRect(h,f,m,d),{dom:S,update:function(_,x){n=Math.min(n,_),i=Math.max(i,_),k.fillStyle=e,k.globalAlpha=1,k.fillRect(0,0,a,f),k.fillStyle=t,k.fillText(r(_)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),k.drawImage(S,h+o,f,m-o,d,h,f,m-o,d),k.fillRect(h+m-o,f,o,d),k.fillStyle=e,k.globalAlpha=.9,k.fillRect(h+m-o,f,o,r((1-_/x)*d))}}};const G1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=M();return Es(()=>{const n=new di;n.domElement.style.margin="1em",e.value.appendChild(n.domElement),Zt(()=>(n.update(),!0))}),t({}),(n,i)=>(F(),U("div",{ref_key:"containerRef",ref:e},null,512))}}),Y1={class:"ease-graph"},X1=lt({customOptions:{Button:ve,Canvas:ns},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(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Nt(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},f=()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},m=new He({frameDuration:n.easeDuration});m.addTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,onUpdate:d=>{u.x=d.x},onComplete:()=>{}}),m.addTween(u,{y:n.graphVerticalGap},{frames:1,delay:0,easeFunction:n.easeFunction,onUpdate:d=>{u.y=d.y,f()},onComplete:()=>{i("onCompleted",n.easeName),a=!1}}),m.play()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return le(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(F(),U("div",Y1,[P("div",null,"缓动:"+bt(u.easeName),1),P("div",null,[P("div",null,[ft(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Et(()=>[Jt(" 开始 ")]),_:1})]),P("div",null,[ft(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Et(()=>[Jt(" 选择 ")]),_:1},8,["stylePattern"])])]),P("div",{style:z({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ft(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),$b="",Da=pt(X1,[["__scopeId","data-v-e8afe7ba"]]),j1=2e3,U1=lt({customOptions:{EaseGraphDisplay:Da},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:_t.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:_t.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:_t.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:_t.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:_t.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:_t.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:_t.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:_t.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:_t.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:_t.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:_t.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:_t.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:_t.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:_t.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:_t.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:_t.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:_t.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:_t.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:_t.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:_t.Easing.Circular.In},{easeName:"CircularOut",easeFunction:_t.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:_t.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:_t.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:_t.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:_t.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:_t.Easing.Back.In},{easeName:"BackOut",easeFunction:_t.Easing.Back.Out},{easeName:"BackInOut",easeFunction:_t.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:_t.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:_t.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:_t.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:_t.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:_t.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:_t.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:_t.Easing.createStep(4)},{easeName:"8 steps",easeFunction:_t.Easing.createStep(8)},{easeName:"12 steps",easeFunction:_t.Easing.createStep(12)},{easeName:"16 steps",easeFunction:_t.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:_t.Easing.swing},{easeName:"causeSeizures",easeFunction:_t.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(f,m){f&&(r[m]={el:f})}const a=new Ho(10);function l(f){a.addTask(()=>(r[f].el.start(),new Promise(m=>{r[f].resolve=m})))}function c(f){r[f].resolve?.()}const u=M("Linear");function h(f,m){u.value=f,i("selectedEaseFunction",f,m)}return h("Linear",_t.Easing.Linear.None),t({}),(f,m)=>(F(),U("div",null,[(F(!0),U(Vt,null,ge(n.easeList,d=>(F(),U("div",{key:d.easeName,class:"ease-graph-wrap"},[d.easeFunction?(F(),Gt(Da,{key:0,easeName:d.easeName,easeFunction:d.easeFunction,easeDuration:j1,isSelected:u.value==d.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:S=>o(S,d.easeName)},null,8,["easeName","easeFunction","isSelected"])):$t("",!0)]))),128))]))}}),Vb="",H1=pt(U1,[["__scopeId","data-v-fa7ba01d"]]),W1={class:"interpolation-graph"},ch=1/6,uh=5/6,q1=lt({customOptions:{Button:ve,Canvas:ns},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Nt(r,()=>{r.value&&r.value.getCanvas().then(S=>{o=S,i("onMounted",n.interpolationName),o.app.on("showInParent",d)})});const a=n.canvasWidth*ch,l=n.canvasHeight/2,c=[n.canvasWidth*uh,n.canvasWidth/2],u=[n.canvasHeight*ch,n.canvasHeight*uh],h=[...c,a],f=[...u,l];let m=!1;const d=()=>{if(!o||m)return;m=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var S=0;S<c.length;S++)o.ctx.fillRect(c[S]-2,u[S]-2,4,4);const k=new He({frameDuration:n.interpolationDuration});k.addTween({x:a,y:l,old:{x:a,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{}}),k.addTween({x:a,y:l,old:{x:a,y:l}},{x:h,y:f},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{i("onCompleted",n.interpolationName),m=!1}}),k.play()};return le(()=>{o.app.off("showInParent",d)}),t({start:d}),(S,k)=>(F(),U("div",W1,[P("div",null,[Jt(" 插值:"+bt(S.interpolationName)+" ",1),ft(ve,{stylePattern:"outline",height:"32px",onClick:d},{default:Et(()=>[Jt(" 开始 ")]),_:1})]),P("div",{style:z({width:S.canvasWidth+"px",height:S.canvasHeight+"px"})},[ft(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),zb="",Ra=pt(q1,[["__scopeId","data-v-17bd4dde"]]),Z1=2e3,Q1=lt({customOptions:{InterpolationGraphDisplay:Ra},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:_t.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:_t.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:_t.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Ho(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(F(),U("div",null,[(F(!0),U(Vt,null,ge(n.interpolationList,h=>(F(),U("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ft(Ra,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Z1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Bb="",K1=pt(Q1,[["__scopeId","data-v-6e8312e3"]]),J1=lt({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r,o,a;const l=M();Nt(l,()=>{r||!l.value||(r=new Ls(l.value,!1),r.on("resize",(u,h)=>{i("resize",u,h),o=new Eg(r),a?.(o),i("ready",o)}),r.start())});function c(){return new Promise(u=>{if(o)return u(o);a=u})}return le(()=>{r?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(F(),U("div",{class:"svg",ref_key:"svgRef",ref:l,style:z({backgroundColor:n.bgColor})},null,4))}}),Gb="",hh=pt(J1,[["__scopeId","data-v-132e642b"]]),tv='<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>',ev={class:"btns"},sv={class:"btns"},nv={class:"btns sub-btns"},iv={class:"btns sub-btns"},rv={style:{width:"100%"}},ov={style:{width:"100%"}},av={style:{height:"400px"}},lv={style:{height:"400px"}},cv=lt({customOptions:{Button:ve,InputRange:$s,SVG:hh,Canvas:ns},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:_t.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=M();let i=0,r=0;Nt(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(R,A)=>{i=R,r=A})})});const o=M(),a=M(),l=M(),c=M(""),u=M("");let h;function f(O){switch(u.value=O,c.value){case"AnimateToTweenCSS":B();break}}const m=new Pg({svg:tv,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),d=new Ht({d:"M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"}),S=+d.getTotalLength().toFixed(0),k=M(S),_=M(Math.floor(S/2));function x(O){k.value=O,d.setAttr("strokeDasharray",`${k.value} ${k.value}`)}function y(O){_.value=O,d.setAttr("strokeDashoffset",`${_.value}`)}const p=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new xn({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:wt.random().toString()},enableDrag:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path([A]),R.draw([A]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!n.value||!o.value)return;h?.();const O=new he({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),R=new he({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),A=jt(0,i-100),D=jt(0,r-100),L=new he({attrs:{stroke:"#666666"}});L.x=A,L.y=D,L.toX=A+100,L.toY=D+100;const X=new he({attrs:{stroke:"#666666"}});X.x=A+100,X.y=D,X.toX=A,X.toY=D+100;const it=L.intersection(X),K=new Wt({x:0,y:0,radius:10,attrs:{fill:wt.random().toString()}});it&&(K.x=it.x,K.y=it.y);const W=new vr({x:jt(0,i),y:jt(0,r),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new ye({x:jt(0,i),y:jt(0,r),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new Og({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:wt.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),j=new Ig({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:wt.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),gt=new Dg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:wt.random().toString()},enableDrag:!0}),mt=new va({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new Rg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:wt.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new Ag({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:wt.random().toString()},enableDrag:!0}),Qt=new Mg({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:wt.random().toString(),fill:"none"},enableDrag:!0}),ee=new Lg({x:jt(0,i),y:jt(0,r),degree:30,scalar:2,showFlame:!0,attrs:{stroke:wt.random().toString()},enableDrag:!0}),Ot=new xn({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:wt.random().toString()},enableDrag:!0}),se=new Xu({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});se.on("change",Ae=>{console.log(`slider change: ${Ae}`)});const Bt=new _a({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:wt.random().toString(),enableDrag:!0}),Y=new ju({x:jt(0,i),y:jt(0,r),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),Fe=new Gu({x:jt(0,i),y:jt(0,r),rx:50,ry:10,enableDrag:!0,attrs:{fill:wt.random().toString()}}),ze=[O,R,L,X,K,W,nt,G,j,gt,mt,Z,V,Qt,ee,Ot,se,Bt,Y,Fe];n.value.getSVG().then(Ae=>{o.value.getCanvas().then(C=>{Ae.clear(),h=Zt(()=>(Ae.path(ze),C.ctx.clearRect(),C.draw(ze),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new vr({scalar:.5,followMouse:!0,attrs:{fill:wt.random().toString()}}),D=A.clone(),L=new he({x:O.app.width/2,y:O.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),X=L.clone();O.clear(),h=Zt(()=>(R.ctx.clearRect(),L.toX=A.x,L.toY=A.y,X.toX=D.x,X.toY=D.y,O.path([L,A]),R.draw([X,D]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width/2,y:O.app.height/2,radius:30,attrs:{fill:wt.random().toString()}});A.enableDrag=!0,A.targetToAfterDragFree={targetX:O.app.width/2,targetY:O.app.height/2};const D=A.clone();O.clear(),h=Zt(()=>(O.path(A),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:50,y:O.app.height/2,radius:30,attrs:{fill:wt.random().toString()}});A.mass=2,A.vx=2;const D=new Wt({x:O.app.width-50,y:O.app.height/2,radius:30,attrs:{fill:wt.random().toString()}});D.mass=1,D.vx=-2,O.clear(),h=Zt(()=>(A.checkCollision(D),A.run(),D.run(),O.path([A,D]),R.ctx.clearRect(),R.draw([A,D]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let it=0;it<15;it++){const K=Math.random()*20+15,W=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:K,attrs:{fill:wt.random().toString()}});W.mass=K,W.vx=Math.random()*10-5,W.vy=Math.random()*10-5,D.push(W)}const L=new ye({x:0,y:0,width:O.app.width,height:O.app.height}),X=new Re(D);O.clear(),h=Zt(()=>(X.run({wall:L}),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let X=0;X<30;X++){const it=Math.random()*25+5,K=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:it,attrs:{fill:wt.random().toString()}});K.mass=it,D.push(K)}const L=new Re(D);O.clear(),h=Zt(()=>(L.gravitate(),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width*.5,y:O.app.height*.5,radius:50,attrs:{fill:wt.random().toString()}});A.mass=1e4;const D=new Wt({x:O.app.width*.5+200,y:O.app.height*.5,radius:10,attrs:{fill:wt.random().toString()}});D.mass=1,D.vy=7;const L=[A,D],X=new Re(L);O.clear(),h=Zt(()=>(X.gravitate(),O.path(L),R.ctx.clearRect(),R.draw(L),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let W=0;W<30;W++){const nt=Math.random()*10+2,G=new Wt({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:nt,attrs:{fill:wt.random().toString()}});G.vx=Math.random()*6-3,G.vy=Math.random()*6-3,G.mass=nt,A.push(G)}const L=new Re(A),X=new ye({x:0,y:0,width:R.app.width,height:R.app.height}),it=new wt("#666666");let K=[];O.clear(),h=Zt(()=>(O.delete(K),K=[],L.springMass(X,{spring:5e-4}).forEach(([W,nt,G,j,gt])=>{gt>0&&K.push(new he({x:W,y:nt,toX:G,toY:j,attrs:{strokeWidth:"1",stroke:it.setAlpha(gt).toString()}}))}),O.path(K),O.path(A),R.ctx.clearRect(),R.draw(K),R.draw(A),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:0,y:0,radius:8,attrs:{fill:wt.random().toString()}}),D=new Wt({x:0,y:0,radius:5,attrs:{fill:wt.random().toString()}});let L=[m,A,D],X,it;m.on("clicked",j=>{it&&O.delete(it),X&&X.restore(),X=j,j.save(),j.setAttr({fill:"pink",stroke:"green"}),L=[m,A,D];const gt=j.getBoundingClientRect();gt&&(it=new ye(gt),it.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),L.push(it))});let K=0,W=m.shapes[K].getTotalLength(),nt=0;const G=.01;O.clear(),h=Zt(()=>{nt>1&&(K++,nt=0,K>m.shapes.length-1&&(K=0),W=m.shapes[K].getTotalLength()),R.ctx.clearRect();let{x:j,y:gt}=m.shapes[K].interpolate(nt);A.x=j,A.y=gt;let{x:mt,y:Z}=m.shapes[K].getPointAtLength(nt*W);return D.x=mt,D.y=Z,O.path(L),R.draw(L),nt+=G,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new xn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new xn({width:50,height:10,attrs:{stroke:"#666666"}}),L=new xn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new xn({width:50,height:10,attrs:{stroke:"#666666"}});let it=0,K=0;function W(){K+=.2,A.x+=it,A.y+=K,L.x+=it,L.y+=K}const nt=-Math.PI/2;function G(Z,V,Qt){const ee=Math.sin(Qt)*45+90,Ot=Math.sin(Qt+nt)*45+45,se=V.getPin();Z.degree=ee,V.degree=Z.degree+Ot,V.x=Z.getPin().x,V.y=Z.getPin().y,V.vx=V.getPin().x-se.x,V.vy=V.getPin().y-se.y}function j(Z){const V=Z.getPin().y+Z.height/2;if(V>R.app.height){const Qt=V-R.app.height;A.y-=Qt,D.y-=Qt,L.y-=Qt,X.y-=Qt,it-=Z.vx,K-=Z.vy}}function gt(){const Z=R.app.width+200;A.x>R.app.width+100?(A.x-=Z,D.x-=Z,L.x-=Z,X.x-=Z):A.x<-100&&(A.x+=Z,D.x+=Z,L.x+=Z,X.x+=Z)}let mt=0;O.clear(),h=Zt(()=>(R.ctx.clearRect(),mt+=.06,W(),G(A,D,mt),G(L,X,mt+Math.PI),j(D),j(X),gt(),O.path([A,D,L,X]),R.draw([A,D,L,X]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!n.value||!o.value)return;h?.();function O(X){return new ye({x:Math.random()*X,y:0,width:50,height:50,attrs:{fill:wt.random().toString()},enableDrag:!0})}const R=.2,A=[];function D(){const X=O(i);return A.push(X),X}let L=D();n.value.getSVG().then(X=>{o.value.getCanvas().then(it=>{X.clear(),h=Zt(()=>(it.ctx.clearRect(),X.isMouseDown||it.isMouseDown?(X.path(A),it.draw(A)):(L&&L.run({gravity:R}),L&&L.y+L.height>=it.ctx.canvas.height&&(L.y=it.ctx.canvas.height-L.height,L=D()),A.forEach(K=>(L&&L!==K&&L.isIntersectRect(K)&&(L.y=K.y-L.height,L.y>=L.height?L=D():L=null),K)),X.path(A),it.draw(A)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let D=0;D<80;D++){const L=new Wt({x:O.app.width/2,y:O.app.height,radius:2,attrs:{fill:wt.random().toString()}});L.vx=Math.random()*2-1,L.vy=Math.random()*-10-10,A.push(L)}O.clear(),h=Zt(()=>(A.forEach(D=>{D.run({gravity:.5}),(D.x-D.radius>O.app.width||D.x+D.radius<0||D.y-D.radius>O.app.height||D.y+D.radius<0)&&(D.x=O.app.width/2,D.y=O.app.height,D.vx=Math.random()*2-1,D.vy=Math.random()*-10-10)}),O.path(A),R.ctx.clearRect(),R.draw(A),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!n.value||!o.value)return;h?.();function O(D,L){const X=[];for(let it=0;it<3;it++)X.push(new Wt({x:D,y:L,radius:20,attrs:{fill:wt.random().toString()}}));return X}function R(){const D=[];for(let L=0;L<3;L++)D.push(new he({attrs:{"stroke-width":"1",stroke:"#666666"}}));return D}const A={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(D=>{o.value.getCanvas().then(L=>{const X=R(),it=O(D.app.width/2,D.app.height/2),K=new Wt({x:0,y:0}),W=R(),nt=O(L.app.width/2,L.app.height/2),G=new Wt({x:0,y:0}),j=new Re([K,...it]),gt=new Re([G,...nt]);D.clear(),h=Zt(()=>(L.ctx.clearRect(),K.x=D.app.mousePoint.x,K.y=D.app.mousePoint.y,j.springChain(A),it.forEach((mt,Z)=>{if(Z===0)X[Z].x=D.app.mousePoint.x,X[Z].y=D.app.mousePoint.y,X[Z].toX=mt.x,X[Z].toY=mt.y;else{const V=it[Z-1];X[Z].x=V.x,X[Z].y=V.y,X[Z].toX=mt.x,X[Z].toY=mt.y}}),D.path(X),D.path(it),G.x=L.app.mousePoint.x,G.y=L.app.mousePoint.y,gt.springChain(A),nt.forEach((mt,Z)=>{if(Z===0)W[Z].x=L.app.mousePoint.x,W[Z].y=L.app.mousePoint.y,W[Z].toX=mt.x,W[Z].toY=mt.y;else{const V=nt[Z-1];W[Z].x=V.x,W[Z].y=V.y,W[Z].toX=mt.x,W[Z].toY=mt.y}}),L.draw(W),L.draw(nt),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:wt.random().toString()},enableDrag:!0}));const L=new Wt({radius:20,attrs:{fill:"#ff0000"}});O.clear(),h=Zt(()=>(R.ctx.clearRect(),L.runSpringTo(D,{spring:.03}),D.forEach((X,it)=>{A[it].x=L.x,A[it].y=L.y,A[it].toX=X.x,A[it].toY=X.y}),O.path([...A,...D,L]),R.draw([...A,...D,L]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:wt.random().toString()},enableDrag:!0}));const L=new Re(D);O.clear(),h=Zt(()=>(L.springConnect({springLength:120}),A[0].x=D[0].x,A[0].y=D[0].y,A[0].toX=D[1].x,A[0].toY=D[1].y,A[1].x=D[1].x,A[1].y=D[1].y,A[1].toX=D[2].x,A[1].toY=D[2].y,A[2].x=D[2].x,A[2].y=D[2].y,A[2].toX=D[0].x,A[2].toY=D[0].y,O.path([...A,...D]),R.ctx.clearRect(),R.draw([...A,...D]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=new yr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),L=new yr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),X=new yr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),it=new yr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),L.cx=D.cx=O.app.mousePoint.x,L.cy=D.cy=O.app.mousePoint.y,O.path(D),O.path(L),it.cx=X.cx=R.app.mousePoint.x,it.cy=X.cy=R.app.mousePoint.y,R.draw([X,it]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect();const A=[];for(let X=0;X<10;X++)A.push({x:Math.random()*O.app.width,y:Math.random()*O.app.height});const D=A.map((X,it)=>new ye({x:X.x,y:X.y,width:6,height:6,attrs:{fill:it==0?"#ff0000":it==A.length-1?"#00ff00":"#666666"}})),L=new Bu({points:A,attrs:{stroke:"#ff0000"},isStraight:!0});L.isStraight=!0,O.path(D),O.path(L),L.isStraight=!1,R.draw([...D,L])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!n.value||!o.value)return;h?.();const O=new Yu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),R=new Yu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(A=>{o.value.getCanvas().then(D=>{A.clear(),h=Zt(()=>(D.ctx.clearRect(),A.path(O),D.draw(R),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!n.value||!o.value)&&(h?.(),d.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${k.value} ${k.value}`,strokeDashoffset:`${_.value}`}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(d),R.draw(d),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!n.value||!o.value)&&(h?.(),d.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),d.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{O.path(d),R.ctx.clearRect(),R.draw(d)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:wt.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:wt.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!n.value||!o.value)return;h?.();const O=new vr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),A=new va({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=Re.generatePointsShape(100,100,100,3);D.x=100,D.y=100,D.setAttr({stroke:"#666666"});const L=Re.generatePointsShape(100,100,100,6);L.x=50,L.y=50,L.setAttr({stroke:"#7EEDFF"});const X=new Re([D,L,O,R,A]);n.value.getSVG().then(it=>{o.value.getCanvas().then(K=>{it.clear(),X.polymorphTween(6e3,{draw:W=>{it.path(W),K.ctx.clearRect(),K.draw(W)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!n.value||!o.value)return;h?.();const O=new vr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),A=new va({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=new Re([O,R,m,A]);n.value.getSVG().then(L=>{o.value.getCanvas().then(X=>{L.clear(),D.polymorphTween(6e3,{draw:it=>{L.path(it),X.ctx.clearRect(),X.draw(it)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!n.value||!o.value)&&(h?.(),Zu(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=Re.generateRosettaShape(120,120,55,35,6);A.setAttr({stroke:"none",fill:"none"});const D=new ye({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),L=new Ht({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});O.clear(),R.ctx.clearRect();const X=new He({frameDuration:15e3});X.addTween({progress:0},{progress:1},{onUpdate:it=>{const K=A.trailPath(L,it.progress);D.x=K.x,D.y=K.y,D.degree=K.alpha+90,O.path([L,D]),R.ctx.clearRect(),R.draw([L,D])}}),X.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new $g(R.app.width,R.app.height,{angle:jt(55,125),spread:jt(50,70),particleCount:jt(50,100)});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(A),R.draw(A),!0))})}))}}],w=[{type:"translateTo",onClick:()=>f("translateTo")},{type:"translateXTo",onClick:()=>f("translateXTo")},{type:"translateYTo",onClick:()=>f("translateYTo")},{type:"translateZTo",onClick:()=>f("translateZTo")},{type:"translate3dTo",onClick:()=>f("translate3dTo")},{type:"rotateTo",onClick:()=>f("rotateTo")},{type:"rotateXTo",onClick:()=>f("rotateXTo")},{type:"rotateYTo",onClick:()=>f("rotateYTo")},{type:"rotateZTo",onClick:()=>f("rotateZTo")},{type:"rotate3dTo",onClick:()=>f("rotate3dTo")},{type:"scaleTo",onClick:()=>f("scaleTo")},{type:"scaleXTo",onClick:()=>f("scaleXTo")},{type:"scaleYTo",onClick:()=>f("scaleYTo")},{type:"scaleZTo",onClick:()=>f("scaleZTo")},{type:"scale3dTo",onClick:()=>f("scale3dTo")},{type:"skewTo",onClick:()=>f("skewTo")},{type:"skewXTo",onClick:()=>f("skewXTo")},{type:"skewYTo",onClick:()=>f("skewYTo")},{type:"perspective",onClick:()=>f("perspective")}];let b;function B(){b||(b=new Ls(a.value));const O=50,R=0,A=0,D=0,L=b.width-O,X=b.height-O,it=b.height-O,K=b.width/2-O/2,W=b.height/2-O/2,nt={},G={};switch(u.value){case"translateTo":Object.assign(nt,{translateTo:[R,A]}),Object.assign(G,{translateTo:[L,X]});break;case"translateXTo":Object.assign(nt,{translateXTo:R}),Object.assign(G,{translateXTo:L});break;case"translateYTo":Object.assign(nt,{translateYTo:A}),Object.assign(G,{translateYTo:X});break;case"translateZTo":Object.assign(nt,{translateTo:[K,W],translateZTo:D}),Object.assign(G,{translateTo:[K,W],translateZTo:it});break;case"translate3dTo":Object.assign(nt,{translate3dTo:[K-50,W-50,D]}),Object.assign(G,{translate3dTo:[K+50,W+50,it]});break;case"rotateTo":Object.assign(nt,{translateTo:[K,W],rotateTo:0}),Object.assign(G,{translateTo:[K,W],rotateTo:360});break;case"rotateXTo":Object.assign(nt,{translateTo:[K,W],rotateXTo:0}),Object.assign(G,{translateTo:[K,W],rotateXTo:180});break;case"rotateYTo":Object.assign(nt,{translateTo:[K,W],rotateYTo:0}),Object.assign(G,{translateTo:[K,W],rotateYTo:180});break;case"rotateZTo":Object.assign(nt,{translateTo:[K,W],rotateZTo:0}),Object.assign(G,{translateTo:[K,W],rotateZTo:360});break;case"rotate3dTo":Object.assign(nt,{translateTo:[K,W],rotate3dTo:[0,0,0]}),Object.assign(G,{translateTo:[K,W],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(nt,{translateTo:[K,W],scaleTo:1}),Object.assign(G,{translateTo:[K,W],scaleTo:3});break;case"scaleXTo":Object.assign(nt,{translateTo:[K,W],scaleXTo:1}),Object.assign(G,{translateTo:[K,W],scaleXTo:3});break;case"scaleYTo":Object.assign(nt,{translateTo:[K,W],scaleYTo:1}),Object.assign(G,{translateTo:[K,W],scaleYTo:3});break;case"scaleZTo":Object.assign(nt,{translateTo:[K,W],scaleZTo:1}),Object.assign(G,{translateTo:[K,W],scaleZTo:3});break;case"scale3dTo":Object.assign(nt,{translateTo:[K,W],scale3dTo:[1,1,1]}),Object.assign(G,{translateTo:[K,W],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(nt,{translateTo:[K,W],skewTo:0}),Object.assign(G,{translateTo:[K,W],skewTo:30});break;case"skewXTo":Object.assign(nt,{translateTo:[K,W],skewXTo:0}),Object.assign(G,{translateTo:[K,W],skewXTo:30});break;case"skewYTo":Object.assign(nt,{translateTo:[K,W],skewYTo:0}),Object.assign(G,{translateTo:[K,W],skewYTo:30});break;case"perspective":Object.assign(nt,{translateTo:[K,W],perspective:0}),Object.assign(G,{translateTo:[K,W],perspective:1e3});break}const j=new He({frameDuration:2e3});j.addTween(nt,G,{easeFunction:e.easeFunction,onUpdate:gt=>{Zu(l.value,Xg(l.value,gt))}}),j.play()}function ct(){return new Promise(O=>{o.value.getCanvas().then(R=>{ue.downloadFromSVGString(R.ctx.toRawSVG().raw,"CanvasToSVG"),O()})})}return le(()=>{}),t({}),(O,R)=>(F(),U(Vt,null,[P("div",ev,[ft(ve,{asyncClick:ct},{default:Et(()=>[Jt(" downloadFromCanvasToSVG ")]),_:1})]),P("div",sv,[(F(),U(Vt,null,ge(p,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:c.value==A.type?"fullfilled":"outline"},{default:Et(()=>[Jt(bt(A.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Qs(P("div",null," 当前缓动函数:"+bt(e.easeName),513),[[Rs,c.value=="AnimateToTweenCSS"]]),Qs(P("div",nv,[(F(),U(Vt,null,ge(w,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:u.value==A.type?"fullfilled":"outline"},{default:Et(()=>[Jt(bt(A.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Rs,c.value=="AnimateToTweenCSS"]]),Qs(P("div",iv,[P("div",rv,[P("div",null,"stroke-dasharray: "+bt(k.value)+","+bt(k.value),1),ft($s,{max:988,defaultValue:k.value,onChange:x},null,8,["defaultValue"])]),P("div",ov,[P("div",null,"stroke-dashoffset: "+bt(_.value),1),ft($s,{max:988,defaultValue:_.value,onChange:y},null,8,["defaultValue"])])],512),[[Rs,c.value=="StrokeDash"]]),Qs(P("div",av,[ft(hh,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[Rs,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",lv,[ft(ns,{ref_key:"canvasRef",ref:o,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Rs,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",{ref_key:"tweenCSSContainerRef",ref:a,style:{height:"400px"},class:"css-area"},[P("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[Rs,c.value=="AnimateToTweenCSS"]])],64))}}),Yb="",uv=pt(cv,[["__scopeId","data-v-2c29a737"]]),hv={class:"svg"},fv=[Fd('<defs data-v-7ee5c19e><mask id="mask" maskContentUnits="objectBoundingBox" data-v-7ee5c19e><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-7ee5c19e></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-7ee5c19e></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-7ee5c19e></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-7ee5c19e></rect></mask></defs>',1)],dv=lt({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(F(),U("svg",hv,fv))}}),jb="",Aa=pt(dv,[["__scopeId","data-v-7ee5c19e"]]),pv={class:"loading-1"},mv=lt({__name:"Loading1",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),U("div",pv,[P("div",{class:"rect1",style:e}),P("div",{class:"rect2",style:e}),P("div",{class:"rect3",style:e}),P("div",{class:"rect4",style:e}),P("div",{class:"rect5",style:e})]))}}),Ub="",gv=pt(mv,[["__scopeId","data-v-48b10c9a"]]),yv={class:"loading-2"},vv=lt({__name:"Loading2",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),U("div",yv,[P("div",{class:"dot1",style:e}),P("div",{class:"dot2",style:e})]))}}),Hb="",_v=pt(vv,[["__scopeId","data-v-79f9930f"]]),bv=lt({__name:"Loading3",props:{fromColor:{default:Pt.colorPrimary},toColor:{default:Pt.colorRed}},setup(s){const t=s,e=`
93
93
  @keyframes snake {
94
94
  0% {
95
95
  opacity: 0.3;
@@ -108,21 +108,21 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Nd(s){retur
108
108
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
109
109
  }
110
110
  }
111
- `,n={backgroundColor:t.fromColor,width:"20%"},i=M();return Mt(i,()=>{i.value&&rn(e,i.value)}),Es(()=>{}),le(()=>{}),(r,o)=>(F(),H("div",{class:"loading-3",ref_key:"loading3",ref:i},[P("div",{class:"dot",style:z({...n,left:"0"})},null,4),P("div",{class:"dot",style:z({...n,left:"20%"})},null,4),P("div",{class:"dot",style:z({...n,left:"40%"})},null,4),P("div",{class:"dot",style:z({...n,left:"60%"})},null,4),P("div",{class:"dot",style:z({...n,left:"80%"})},null,4)],512))}}),Wb="",xv=pt(bv,[["__scopeId","data-v-e36b6371"]]),wv={class:"loading-4"},Cv=lt({__name:"Loading4",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",wv,[P("div",{class:"rect",style:e})]))}}),qb="",Tv=pt(Cv,[["__scopeId","data-v-9028c8cf"]]),Sv={class:"loading-5"},kv=lt({__name:"Loading5",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",Sv,[P("div",{class:"cube1",style:e}),P("div",{class:"cube2",style:e})]))}}),Zb="",Ev=pt(kv,[["__scopeId","data-v-6f68ee6f"]]),Pv={class:"loading-6"},Ov=lt({__name:"Loading6",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",Pv,[P("div",{style:e}),P("div",{style:e}),P("div",{style:e})]))}}),Qb="",Iv=pt(Ov,[["__scopeId","data-v-e397194b"]]),Dv=[(s=>(Ln("data-v-835e0130"),s=s(),$n(),s))(()=>P("div",null,null,-1))],Rv=lt({__name:"Loading7",props:{color:{default:Pt.colorPrimary}},setup(s){const t=s,e=`
111
+ `,n={backgroundColor:t.fromColor,width:"20%"},i=M();return Nt(i,()=>{i.value&&rn(e,i.value)}),Es(()=>{}),le(()=>{}),(r,o)=>(F(),U("div",{class:"loading-3",ref_key:"loading3",ref:i},[P("div",{class:"dot",style:z({...n,left:"0"})},null,4),P("div",{class:"dot",style:z({...n,left:"20%"})},null,4),P("div",{class:"dot",style:z({...n,left:"40%"})},null,4),P("div",{class:"dot",style:z({...n,left:"60%"})},null,4),P("div",{class:"dot",style:z({...n,left:"80%"})},null,4)],512))}}),Wb="",xv=pt(bv,[["__scopeId","data-v-e36b6371"]]),wv={class:"loading-4"},Cv=lt({__name:"Loading4",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),U("div",wv,[P("div",{class:"rect",style:e})]))}}),qb="",Tv=pt(Cv,[["__scopeId","data-v-9028c8cf"]]),Sv={class:"loading-5"},kv=lt({__name:"Loading5",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),U("div",Sv,[P("div",{class:"cube1",style:e}),P("div",{class:"cube2",style:e})]))}}),Zb="",Ev=pt(kv,[["__scopeId","data-v-6f68ee6f"]]),Pv={class:"loading-6"},Ov=lt({__name:"Loading6",props:{color:{default:Pt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),U("div",Pv,[P("div",{style:e}),P("div",{style:e}),P("div",{style:e})]))}}),Qb="",Iv=pt(Ov,[["__scopeId","data-v-e397194b"]]),Dv=[(s=>(Ln("data-v-835e0130"),s=s(),$n(),s))(()=>P("div",null,null,-1))],Rv=lt({__name:"Loading7",props:{color:{default:Pt.colorPrimary}},setup(s){const t=s,e=`
112
112
  :root {
113
113
  --loading-7-bg-color: ${t.color}
114
114
  }
115
115
  :host {
116
116
  --loading-7-bg-color: ${t.color}
117
117
  }
118
- `,n=M();return Mt(n,()=>{n.value&&rn(e,n.value)}),Es(()=>{}),le(()=>{}),(i,r)=>(F(),H("div",{class:"loading-7",ref_key:"loading7",ref:n},Dv,512))}}),tx="",Av=pt(Rv,[["__scopeId","data-v-835e0130"]]),Mv={class:"loading-9"},Nv=lt({__name:"Loading9",props:{color:{default:Pt.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(F(),H("div",Mv,[P("div",{style:e})]))}}),ex="",Fv=pt(Nv,[["__scopeId","data-v-a563aaa4"]]),Lv={class:"loading-10"},$v={viewBox:"0 0 50 50"},Vv=lt({__name:"Loading10",props:{color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("div",Lv,[(F(),H("svg",$v,[P("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:z(["stroke: rgba(0,0,0,0.1)"])},null,4),P("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:z(["fill: "+t.color])},null,4)]))]))}}),sx="",zv=pt(Vv,[["__scopeId","data-v-361d898a"]]),Bv={class:"face front"},Gv={class:"face back"},Yv=lt({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(F(),H("div",{class:"card-flip-scene",style:z({perspective:n.perspective})},[P("div",{class:ie(["card",[n.type,{flip:r.value}]]),style:z({transition:`transform ${n.dur}ms`}),onClick:o},[P("div",Bv,[St(a.$slots,"front",{},()=>[Kt("front")],!0)]),P("div",Gv,[St(a.$slots,"back",{},()=>[Kt("back")],!0)])],6)],4))}}),nx="",Xv=pt(Yv,[["__scopeId","data-v-e37e840a"]]),jv=lt({customOptions:{RadioGroup:Ca,CheckboxGroup:wr,InputRange:$s},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=M(Math.floor(n.width/2)),r=`
118
+ `,n=M();return Nt(n,()=>{n.value&&rn(e,n.value)}),Es(()=>{}),le(()=>{}),(i,r)=>(F(),U("div",{class:"loading-7",ref_key:"loading7",ref:n},Dv,512))}}),tx="",Av=pt(Rv,[["__scopeId","data-v-835e0130"]]),Mv={class:"loading-9"},Nv=lt({__name:"Loading9",props:{color:{default:Pt.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(F(),U("div",Mv,[P("div",{style:e})]))}}),ex="",Fv=pt(Nv,[["__scopeId","data-v-a563aaa4"]]),Lv={class:"loading-10"},$v={viewBox:"0 0 50 50"},Vv=lt({__name:"Loading10",props:{color:{default:Pt.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),U("div",Lv,[(F(),U("svg",$v,[P("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:z(["stroke: rgba(0,0,0,0.1)"])},null,4),P("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:z(["fill: "+t.color])},null,4)]))]))}}),sx="",zv=pt(Vv,[["__scopeId","data-v-361d898a"]]),Bv={class:"face front"},Gv={class:"face back"},Yv=lt({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(F(),U("div",{class:"card-flip-scene",style:z({perspective:n.perspective})},[P("div",{class:Kt(["card",[n.type,{flip:r.value}]]),style:z({transition:`transform ${n.dur}ms`}),onClick:o},[P("div",Bv,[St(a.$slots,"front",{},()=>[Jt("front")],!0)]),P("div",Gv,[St(a.$slots,"back",{},()=>[Jt("back")],!0)])],6)],4))}}),nx="",Xv=pt(Yv,[["__scopeId","data-v-e37e840a"]]),jv=lt({customOptions:{RadioGroup:Ca,CheckboxGroup:wr,InputRange:$s},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=M(Math.floor(n.width/2)),r=`
119
119
  :root {
120
120
  --spin-cube-z: -${i.value}px;
121
121
  }
122
122
  :host {
123
123
  --spin-cube-z: -${i.value}px;
124
124
  }
125
- `,o=M();Mt(o,()=>{o.value&&rn(r,o.value)});const a=M(n.perspective+"px"),l=p=>{a.value=p==2e3?"none":p+"px"},c=M("50%"),u=p=>{c.value=p+"%"},h=M("50%"),f=p=>{h.value=p+"%"},m=`translateZ(-${i.value}px)`,d=M(m),S=p=>{switch(p){case"front":d.value=m+" rotateY(0deg)";break;case"right":d.value=m+" rotateY(-90deg)";break;case"back":d.value=m+" rotateY(-180deg)";break;case"left":d.value=m+" rotateY(90deg)";break;case"top":d.value=m+" rotateX(-90deg)";break;case"bottom":d.value=m+" rotateX(90deg)";break;default:d.value=m;break}},k=M(!1),_=p=>{p.length?k.value=!0:k.value=!1},x=M("visible"),y=p=>{p.length?x.value="visible":x.value="hidden"};return t({}),(p,w)=>(F(),H("div",{ref_key:"container",ref:o},[P("div",{class:"cube-scene",style:z({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[P("div",{class:ie(["cube",{spinning:k.value}]),style:z({transformStyle:"preserve-3d",transform:d.value,transition:`transform ${n.dur}ms`})},[P("div",{class:"face front",style:z({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"front",{},()=>[Kt("front")],!0)],4),P("div",{class:"face back",style:z({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"back",{},()=>[Kt("back")],!0)],4),P("div",{class:"face right",style:z({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"right",{},()=>[Kt("right")],!0)],4),P("div",{class:"face left",style:z({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"left",{},()=>[Kt("left")],!0)],4),P("div",{class:"face top",style:z({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"top",{},()=>[Kt("top")],!0)],4),P("div",{class:"face bottom",style:z({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"bottom",{},()=>[Kt("bottom")],!0)],4)],6)],4),P("div",null,[ft(Ca,{options:["front","right","back","left","top","bottom"],onChange:S})]),P("div",null,[ft(wr,{options:["Backface visible"],onChange:y})]),P("div",null,[ft(wr,{options:["spin cube"],onChange:_})]),P("div",null,[Kt(" perspective: "),ft($s,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),P("div",null,[Kt(" perspective-origin x: "),ft($s,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),P("div",null,[Kt(" perspective-origin y: "),ft($s,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),ix="",Uv=pt(jv,[["__scopeId","data-v-0bb102a7"]]),Hv=s=>(Ln("data-v-b4857d19"),s=s(),$n(),s),Wv={class:"ring-indicator"},qv={class:"ring-text"},Zv=Hv(()=>P("span",null,"%",-1)),Qv=lt({customOptions:{Canvas:ns},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=M(0);const i=ig(()=>{const c=qt(Math.floor(e.percent),0,100);return n.value<c?n.value=Math.min(n.value+1,c):n.value>c&&(n.value=Math.max(n.value-1,c)),we(n.value/100,2)},20),r=M(0),o=M(0),a=(c,u)=>{r.value=c,o.value=u},l=M();return Mt(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new ju({width:r.value,height:o.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});Zt(()=>(c.ctx.clearRect(),u.setPercent(i()),c.draw(u),!0))})}),t({}),(c,u)=>(F(),H("div",Wv,[ft(ns,{ref_key:"canvasRef",ref:l,onResize:a},null,512),P("div",qv,[P("span",null,xt(Lt(n)),1),Zv])]))}}),rx="",Kv=pt(Qv,[["__scopeId","data-v-b4857d19"]]),fh=s=>(Ln("data-v-8e39fba1"),s=s(),$n(),s),Jv=[fh(()=>P("div",{class:"left"},null,-1)),fh(()=>P("div",{class:"right"},null,-1))],t_={key:0},e_={key:1},an=10,Sn=4,s_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"RingText",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,n=M(0),i=(r,o)=>{n.value=Math.floor(Math.min(r,o))};return t({}),(r,o)=>(F(),Bt(kt,{onResize:i,type:"full"},{default:Et(()=>[P("div",{class:"ring",style:z({width:n.value+"px",height:n.value+"px",padding:an+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[P("div",{class:"ring-rotate",style:z({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-an-Sn}px, #000 ${n.value/2-an-Sn}px)`})},Jv,4),P("div",{class:"ring-content",style:z({top:an+Sn+"px",left:an+Sn+"px",width:n.value-(an+Sn)*2+"px",height:n.value-(an+Sn)*2+"px"})},[e.text?(F(),H("div",t_,xt(e.text),1)):Gt("",!0),e.secondText?(F(),H("div",e_,xt(e.secondText),1)):Gt("",!0)],4)],4)]),_:1}))}}),lx="",cx="",n_=pt(s_,[["__scopeId","data-v-8e39fba1"]]),i_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"ClockFlipper",props:{startTime:{default:"00:00:00"},initStart:{type:Boolean,default:!0},creaseType:{default:"increase"},flipDirection:{default:"down"},dur:{default:800},bgColor:{default:"#5a82f0"},textColor:{default:"#ffffff"},borderRadius:{default:8},gap:{default:1},perspective:{default:400}},setup(s,{expose:t}){const e=s,n=M(),i=M(40),r=M(20),o=M(20),a=(_,x)=>{i.value=Math.floor(_/(6+1)),r.value=Math.floor(x),o.value=Math.max(12,r.value)},l=()=>{e.initStart&&S(e.startTime)};let c;const u=()=>{c?.()},h=Jt([0,0,0,0,0,0]),f=Jt([0,0,0,0,0,0]),m=[0,0,0,0,0,0];let d=0;const S=_=>{_&&(Mm(Am(_),m),m.forEach((x,y)=>{h[y]=x,f[y]=x})),u(),d=0,k(ce(),0,!1),c=ng((x,y,p)=>{k(x,y,p)},1e3)},k=(_,x,y)=>{if(y)d=x;else{if(d>0){m.forEach((w,b)=>{h[b]=w,f[b]=w});const p=d+1;e.creaseType=="increase"?(jo(h,p),jo(f,p+1)):(Uo(h,p),Uo(f,p+1)),d=0}else e.creaseType=="increase"?jo(f,1):Uo(f,1);ra(()=>{f.forEach((p,w)=>{h[w]=p})},e.dur)}};return t({start:S,pause:u}),(_,x)=>(F(),Bt(kt,{ref_key:"containerRef",ref:n,type:"full",overflow:"visible","style-sheets":{"--yz-clock-flipper-bg-color":e.bgColor,"--yz-clock-flipper-text-color":e.textColor,"--yz-clock-flipper-border-radius":e.borderRadius+"px","--yz-clock-flipper-gap":e.gap+"px","--yz-clock-flipper-gap-double":e.gap*2+"px","--yz-clock-flipper-gap-four":e.gap*4+"px","--yz-clock-flipper-animation-duration":e.dur+"ms","--yz-clock-flipper-perspective":e.perspective+"px"},onResize:a,onReady:l},{default:Et(()=>[P("div",{class:"clock-flipper",style:z({fontSize:o.value+"px",lineHeight:r.value+"px"})},[(F(!0),H($t,null,ge(h,(y,p)=>(F(),H($t,{key:p},[P("div",{class:ie(["flip",[e.flipDirection,f[p]!=y?"go":""]]),style:z({width:i.value+"px"})},[P("div",{class:ie(["front digital",[`flipper_${p}`,`number_${y}`]])},null,2),P("div",{class:ie(["back digital",[`number_${f[p]}`]])},null,2)],6),p==1||p==3?(F(),H("div",{key:0,class:"gap",style:z({fontSize:Math.floor(o.value*.6)+"px",lineHeight:0})}," : ",4)):Gt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),ux="",hx="",r_=pt(i_,[["__scopeId","data-v-8d77ae6d"]]),o_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"TextBackgroundClip",props:{text:{default:"文字背景为图片"},bgImageUrl:{default:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/181794/kl-deer.png"}},setup(s,{expose:t}){const e=s;return t({}),(n,i)=>(F(),Bt(kt,null,{default:Et(()=>[P("div",{style:z({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},xt(e.text),5)]),_:1}))}}),a_={class:"slide"},l_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"Slide",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Jt({}),i=()=>{switch(e.direction){case"left":n.transformOrigin="center left",n.transform="scaleX(0)";break;case"right":n.transformOrigin="center right",n.transform="scaleX(0)";break;case"down":n.transformOrigin="center bottom",n.transform="scaleY(0)";break;case"up":n.transformOrigin="center top",n.transform="scaleY(0)";break}},r=()=>{switch(e.direction){case"left":n.transformOrigin="center right",n.transform="scaleX(1)";break;case"right":n.transformOrigin="center left",n.transform="scaleX(1)";break;case"down":n.transformOrigin="center top",n.transform="scaleY(1)";break;case"up":n.transformOrigin="center bottom",n.transform="scaleY(1)";break}};return t({}),(o,a)=>(F(),Bt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r,style:{overflow:"hidden"}},{default:Et(()=>[P("div",{class:"slide-before",style:z({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),P("div",a_,[St(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),fx="",c_=pt(l_,[["__scopeId","data-v-4b23f270"]]),u_={class:"slide-corner"},h_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"SlideCorner",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,n=Jt({});let i=1,r=i*2;const o=(c,u)=>{i=Math.ceil(Math.max(c,u)/Math.min(c,u)),r=i*2,n.width=n.height=Math.ceil(Math.min(c,u))+"px"},a=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":n.top="50%",n.left="50%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform=`translate(50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break}};return t({}),(c,u)=>(F(),Bt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:l,onResize:o,style:{overflow:"hidden"}},{default:Et(()=>[P("div",{class:"slide-corner-before",style:z({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Lt(i)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),P("div",u_,[St(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),dx="",f_=pt(h_,[["__scopeId","data-v-e47546e1"]]),d_={class:"line-single"},p_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineSingle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"underline"},direction:{default:"right"}},setup(s,{expose:t}){const e=s;let n=1;const i=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},r=Jt({});switch(e.location){case"underline":r.bottom="0";break;case"overline":r.top="0";break;case"through":r.top="50%";break}const o=()=>{switch(e.direction){case"right":r.transformOrigin="bottom right",r.transform="scaleX(0)";break;case"left":r.transformOrigin="bottom left",r.transform="scaleX(0)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(0)";break}},a=()=>{switch(e.direction){case"right":r.transformOrigin="bottom left",r.transform="scaleX(1)";break;case"left":r.transformOrigin="bottom right",r.transform="scaleX(1)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(1)";break}};return t({}),(l,c)=>(F(),Bt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:i},{default:Et(()=>[P("div",{class:"line-single-before",style:z({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...r})},null,4),P("div",d_,[St(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),px="",m_=pt(p_,[["__scopeId","data-v-8b261cbf"]]),g_={class:"line-double"},y_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineDouble",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"horizontal"},direction:{default:"toEnd"}},setup(s,{expose:t}){const e=s;let n=1;const i=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},r=Jt({}),o=Jt({}),a=Jt({});switch(e.location){case"horizontal":r.width="100%",r.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":r.width=e.lineHeight+"px",r.height="100%",o.left="0",a.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":o.right="0",o.transformOrigin="center right",a.left="0",a.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":o.left="0",o.transformOrigin="center left",a.right="0",a.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(F(),Bt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:i},{default:Et(()=>[P("div",{class:"line-double-before",style:z({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...r,...o})},null,4),P("div",g_,[St(u.$slots,"default",{},void 0,!0)]),P("div",{class:"line-double-after",style:z({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...r,...a})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),mx="",v_=pt(y_,[["__scopeId","data-v-ac519c85"]]),__=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"Float",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Jt({willChange:"box-shadow, transform"}),i=()=>{switch(n.boxShadow="none",e.direction){case"left":n.transform="translateX(0)";break;case"right":n.transform="translateX(0)";break;case"down":n.transform="translateY(0)";break;case"up":n.transform="translateY(0)";break}},r=()=>{switch(n.boxShadow=e.boxShadow,e.direction){case"left":n.transform=`translateX(-${e.distance}px)`;break;case"right":n.transform=`translateX(${e.distance}px)`;break;case"down":n.transform=`translateY(${e.distance}px)`;break;case"up":n.transform=`translateY(-${e.distance}px)`;break}};return t({}),(o,a)=>(F(),Bt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Et(()=>[P("div",{class:"float",style:z({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[St(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),gx="",b_=pt(__,[["__scopeId","data-v-2cdf6499"]]),x_={class:"circle"},w_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"Circle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,n=M(),i=Jt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),r=(l,c)=>{i.width=i.height=Math.ceil(Math.max(l,c))+"px",n.value?.repeatEffect?.()},o=()=>{const l=De(e.color,.2).toString();i.boxShadow=`
125
+ `,o=M();Nt(o,()=>{o.value&&rn(r,o.value)});const a=M(n.perspective+"px"),l=p=>{a.value=p==2e3?"none":p+"px"},c=M("50%"),u=p=>{c.value=p+"%"},h=M("50%"),f=p=>{h.value=p+"%"},m=`translateZ(-${i.value}px)`,d=M(m),S=p=>{switch(p){case"front":d.value=m+" rotateY(0deg)";break;case"right":d.value=m+" rotateY(-90deg)";break;case"back":d.value=m+" rotateY(-180deg)";break;case"left":d.value=m+" rotateY(90deg)";break;case"top":d.value=m+" rotateX(-90deg)";break;case"bottom":d.value=m+" rotateX(90deg)";break;default:d.value=m;break}},k=M(!1),_=p=>{p.length?k.value=!0:k.value=!1},x=M("visible"),y=p=>{p.length?x.value="visible":x.value="hidden"};return t({}),(p,w)=>(F(),U("div",{ref_key:"container",ref:o},[P("div",{class:"cube-scene",style:z({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[P("div",{class:Kt(["cube",{spinning:k.value}]),style:z({transformStyle:"preserve-3d",transform:d.value,transition:`transform ${n.dur}ms`})},[P("div",{class:"face front",style:z({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"front",{},()=>[Jt("front")],!0)],4),P("div",{class:"face back",style:z({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"back",{},()=>[Jt("back")],!0)],4),P("div",{class:"face right",style:z({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"right",{},()=>[Jt("right")],!0)],4),P("div",{class:"face left",style:z({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"left",{},()=>[Jt("left")],!0)],4),P("div",{class:"face top",style:z({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"top",{},()=>[Jt("top")],!0)],4),P("div",{class:"face bottom",style:z({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:x.value})},[St(p.$slots,"bottom",{},()=>[Jt("bottom")],!0)],4)],6)],4),P("div",null,[ft(Ca,{options:["front","right","back","left","top","bottom"],onChange:S})]),P("div",null,[ft(wr,{options:["Backface visible"],onChange:y})]),P("div",null,[ft(wr,{options:["spin cube"],onChange:_})]),P("div",null,[Jt(" perspective: "),ft($s,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),P("div",null,[Jt(" perspective-origin x: "),ft($s,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),P("div",null,[Jt(" perspective-origin y: "),ft($s,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),ix="",Uv=pt(jv,[["__scopeId","data-v-0bb102a7"]]),Hv=s=>(Ln("data-v-b4857d19"),s=s(),$n(),s),Wv={class:"ring-indicator"},qv={class:"ring-text"},Zv=Hv(()=>P("span",null,"%",-1)),Qv=lt({customOptions:{Canvas:ns},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=M(0);const i=ig(()=>{const c=qt(Math.floor(e.percent),0,100);return n.value<c?n.value=Math.min(n.value+1,c):n.value>c&&(n.value=Math.max(n.value-1,c)),we(n.value/100,2)},20),r=M(0),o=M(0),a=(c,u)=>{r.value=c,o.value=u},l=M();return Nt(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new ju({width:r.value,height:o.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});Zt(()=>(c.ctx.clearRect(),u.setPercent(i()),c.draw(u),!0))})}),t({}),(c,u)=>(F(),U("div",Wv,[ft(ns,{ref_key:"canvasRef",ref:l,onResize:a},null,512),P("div",qv,[P("span",null,bt(Mt(n)),1),Zv])]))}}),rx="",Kv=pt(Qv,[["__scopeId","data-v-b4857d19"]]),fh=s=>(Ln("data-v-8e39fba1"),s=s(),$n(),s),Jv=[fh(()=>P("div",{class:"left"},null,-1)),fh(()=>P("div",{class:"right"},null,-1))],t_={key:0},e_={key:1},an=10,Sn=4,s_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"RingText",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,n=M(0),i=(r,o)=>{n.value=Math.floor(Math.min(r,o))};return t({}),(r,o)=>(F(),Gt(kt,{onResize:i,type:"full"},{default:Et(()=>[P("div",{class:"ring",style:z({width:n.value+"px",height:n.value+"px",padding:an+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[P("div",{class:"ring-rotate",style:z({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-an-Sn}px, #000 ${n.value/2-an-Sn}px)`})},Jv,4),P("div",{class:"ring-content",style:z({top:an+Sn+"px",left:an+Sn+"px",width:n.value-(an+Sn)*2+"px",height:n.value-(an+Sn)*2+"px"})},[e.text?(F(),U("div",t_,bt(e.text),1)):$t("",!0),e.secondText?(F(),U("div",e_,bt(e.secondText),1)):$t("",!0)],4)],4)]),_:1}))}}),lx="",cx="",n_=pt(s_,[["__scopeId","data-v-8e39fba1"]]),i_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"ClockFlipper",props:{startTime:{default:"00:00:00"},initStart:{type:Boolean,default:!0},creaseType:{default:"increase"},flipDirection:{default:"down"},dur:{default:800},bgColor:{default:"#5a82f0"},textColor:{default:"#ffffff"},borderRadius:{default:8},gap:{default:1},perspective:{default:400}},setup(s,{expose:t}){const e=s,n=M(),i=M(40),r=M(20),o=M(20),a=(_,x)=>{i.value=Math.floor(_/(6+1)),r.value=Math.floor(x),o.value=Math.max(12,r.value)},l=()=>{e.initStart&&S(e.startTime)};let c;const u=()=>{c?.()},h=te([0,0,0,0,0,0]),f=te([0,0,0,0,0,0]),m=[0,0,0,0,0,0];let d=0;const S=_=>{_&&(Mm(Am(_),m),m.forEach((x,y)=>{h[y]=x,f[y]=x})),u(),d=0,k(ce(),0,!1),c=ng((x,y,p)=>{k(x,y,p)},1e3)},k=(_,x,y)=>{if(y)d=x;else{if(d>0){m.forEach((w,b)=>{h[b]=w,f[b]=w});const p=d+1;e.creaseType=="increase"?(jo(h,p),jo(f,p+1)):(Uo(h,p),Uo(f,p+1)),d=0}else e.creaseType=="increase"?jo(f,1):Uo(f,1);ra(()=>{f.forEach((p,w)=>{h[w]=p})},e.dur)}};return t({start:S,pause:u}),(_,x)=>(F(),Gt(kt,{ref_key:"containerRef",ref:n,type:"full",overflow:"visible","style-sheets":{"--yz-clock-flipper-bg-color":e.bgColor,"--yz-clock-flipper-text-color":e.textColor,"--yz-clock-flipper-border-radius":e.borderRadius+"px","--yz-clock-flipper-gap":e.gap+"px","--yz-clock-flipper-gap-double":e.gap*2+"px","--yz-clock-flipper-gap-four":e.gap*4+"px","--yz-clock-flipper-animation-duration":e.dur+"ms","--yz-clock-flipper-perspective":e.perspective+"px"},onResize:a,onReady:l},{default:Et(()=>[P("div",{class:"clock-flipper",style:z({fontSize:o.value+"px",lineHeight:r.value+"px"})},[(F(!0),U(Vt,null,ge(h,(y,p)=>(F(),U(Vt,{key:p},[P("div",{class:Kt(["flip",[e.flipDirection,f[p]!=y?"go":""]]),style:z({width:i.value+"px"})},[P("div",{class:Kt(["front digital",[`flipper_${p}`,`number_${y}`]])},null,2),P("div",{class:Kt(["back digital",[`number_${f[p]}`]])},null,2)],6),p==1||p==3?(F(),U("div",{key:0,class:"gap",style:z({fontSize:Math.floor(o.value*.6)+"px",lineHeight:0})}," : ",4)):$t("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),ux="",hx="",r_=pt(i_,[["__scopeId","data-v-8d77ae6d"]]),o_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"TextBackgroundClip",props:{text:{default:"文字背景为图片"},bgImageUrl:{default:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/181794/kl-deer.png"}},setup(s,{expose:t}){const e=s;return t({}),(n,i)=>(F(),Gt(kt,null,{default:Et(()=>[P("div",{style:z({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},bt(e.text),5)]),_:1}))}}),a_={class:"slide"},l_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"Slide",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=te({}),i=()=>{switch(e.direction){case"left":n.transformOrigin="center left",n.transform="scaleX(0)";break;case"right":n.transformOrigin="center right",n.transform="scaleX(0)";break;case"down":n.transformOrigin="center bottom",n.transform="scaleY(0)";break;case"up":n.transformOrigin="center top",n.transform="scaleY(0)";break}},r=()=>{switch(e.direction){case"left":n.transformOrigin="center right",n.transform="scaleX(1)";break;case"right":n.transformOrigin="center left",n.transform="scaleX(1)";break;case"down":n.transformOrigin="center top",n.transform="scaleY(1)";break;case"up":n.transformOrigin="center bottom",n.transform="scaleY(1)";break}};return t({}),(o,a)=>(F(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r,style:{overflow:"hidden"}},{default:Et(()=>[P("div",{class:"slide-before",style:z({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),P("div",a_,[St(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),fx="",c_=pt(l_,[["__scopeId","data-v-4b23f270"]]),u_={class:"slide-corner"},h_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"SlideCorner",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,n=te({});let i=1,r=i*2;const o=(c,u)=>{i=Math.ceil(Math.max(c,u)/Math.min(c,u)),r=i*2,n.width=n.height=Math.ceil(Math.min(c,u))+"px"},a=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":n.top="50%",n.left="50%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform=`translate(50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break}};return t({}),(c,u)=>(F(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:l,onResize:o,style:{overflow:"hidden"}},{default:Et(()=>[P("div",{class:"slide-corner-before",style:z({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Mt(i)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),P("div",u_,[St(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),dx="",f_=pt(h_,[["__scopeId","data-v-e47546e1"]]),d_={class:"line-single"},p_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineSingle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"underline"},direction:{default:"right"}},setup(s,{expose:t}){const e=s;let n=1;const i=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},r=te({});switch(e.location){case"underline":r.bottom="0";break;case"overline":r.top="0";break;case"through":r.top="50%";break}const o=()=>{switch(e.direction){case"right":r.transformOrigin="bottom right",r.transform="scaleX(0)";break;case"left":r.transformOrigin="bottom left",r.transform="scaleX(0)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(0)";break}},a=()=>{switch(e.direction){case"right":r.transformOrigin="bottom left",r.transform="scaleX(1)";break;case"left":r.transformOrigin="bottom right",r.transform="scaleX(1)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(1)";break}};return t({}),(l,c)=>(F(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:i},{default:Et(()=>[P("div",{class:"line-single-before",style:z({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Mt(n)}ms ease-in-out`,...r})},null,4),P("div",d_,[St(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),px="",m_=pt(p_,[["__scopeId","data-v-8b261cbf"]]),g_={class:"line-double"},y_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineDouble",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"horizontal"},direction:{default:"toEnd"}},setup(s,{expose:t}){const e=s;let n=1;const i=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},r=te({}),o=te({}),a=te({});switch(e.location){case"horizontal":r.width="100%",r.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":r.width=e.lineHeight+"px",r.height="100%",o.left="0",a.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":o.right="0",o.transformOrigin="center right",a.left="0",a.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":o.left="0",o.transformOrigin="center left",a.right="0",a.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(F(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:i},{default:Et(()=>[P("div",{class:"line-double-before",style:z({backgroundColor:e.color,transition:`transform ${e.timeGap*Mt(n)}ms ease-in-out`,...r,...o})},null,4),P("div",g_,[St(u.$slots,"default",{},void 0,!0)]),P("div",{class:"line-double-after",style:z({backgroundColor:e.color,transition:`transform ${e.timeGap*Mt(n)}ms ease-in-out`,...r,...a})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),mx="",v_=pt(y_,[["__scopeId","data-v-ac519c85"]]),__=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"Float",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=te({willChange:"box-shadow, transform"}),i=()=>{switch(n.boxShadow="none",e.direction){case"left":n.transform="translateX(0)";break;case"right":n.transform="translateX(0)";break;case"down":n.transform="translateY(0)";break;case"up":n.transform="translateY(0)";break}},r=()=>{switch(n.boxShadow=e.boxShadow,e.direction){case"left":n.transform=`translateX(-${e.distance}px)`;break;case"right":n.transform=`translateX(${e.distance}px)`;break;case"down":n.transform=`translateY(${e.distance}px)`;break;case"up":n.transform=`translateY(-${e.distance}px)`;break}};return t({}),(o,a)=>(F(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Et(()=>[P("div",{class:"float",style:z({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[St(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),gx="",b_=pt(__,[["__scopeId","data-v-2cdf6499"]]),x_={class:"circle"},w_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"Circle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,n=M(),i=te({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),r=(l,c)=>{i.width=i.height=Math.ceil(Math.max(l,c))+"px",n.value?.repeatEffect?.()},o=()=>{const l=De(e.color,.2).toString();i.boxShadow=`
126
126
  inset ${i.width} 0 0 ${l},
127
127
  inset 0 ${i.width} 0 ${l},
128
128
  inset -${i.width} 0 0 ${l},
@@ -132,5 +132,5 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Nd(s){retur
132
132
  inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
133
133
  inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
134
134
  inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
135
- `};return t({}),(l,c)=>(F(),Bt(kt,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:r},{default:Et(()=>[P("div",{class:"circle-before",style:z(i)},null,4),P("div",x_,[St(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),yx="",C_=pt(w_,[["__scopeId","data-v-0976c0d5"]]),T_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"BorderFocusText",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"manual"},text:{default:""},textSize:{default:12},borderColor:{default:"#5a82f0"},borderWidth:{default:2},borderRadius:{default:8}},setup(s,{expose:t}){const e=s,n=M(!0),i=()=>{n.value=!0},r=()=>{n.value=!1};return t({}),(o,a)=>(F(),Bt(kt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Et(()=>[n.value?(F(),H("div",{key:0,class:"text",style:z({fontSize:`${o.textSize}px`,top:`${-Math.ceil(o.textSize/2)-4}px`,padding:"4px 12px",backgroundColor:o.borderColor,borderRadius:`${o.textSize}px 0 ${o.textSize}px 0`,color:Lt(De)(o.borderColor).opposite(!0,"#333333","#ffffff").toString()})},xt(e.text),5)):Gt("",!0),P("div",{class:"inner",style:z(n.value?{border:`${o.borderWidth}px solid ${o.borderColor}`,borderRadius:`${o.borderRadius}px`}:{})},[St(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),vx="",S_=pt(T_,[["__scopeId","data-v-e9c63701"]]),k_=lt({customOptions:{Container:kt,SVGMaskNapkin:Aa},inheritAttrs:!0,__name:"ImageMask",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,n=M(0),i=M(0),r=(o,a)=>{n.value=o,i.value=a};return t({}),(o,a)=>(F(),H("div",{style:z({width:`${n.value}px`,height:`${i.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[St(o.$slots,"mask",{},()=>[ft(Aa)]),ft(kt,{type:"shrink",onResize:r},{default:Et(()=>[St(o.$slots,"default")]),_:3})],4))}});return at.Accordion=ay,at.BooleanBox=ci,at.BorderFocusText=S_,at.Button=ve,at.CSSAnimation=ui,at.CardFlip=Xv,at.CheckboxGroup=wr,at.Circle=C_,at.ClockFlipper=r_,at.ColorPicker=N1,at.Container=kt,at.Cube=Uv,at.Dialog=fi,at.DialogLoading=Yy,at.DialogToast=Hy,at.EaseGraphDisplay=Da,at.EaseGroupGraphDisplay=H1,at.FPSStats=G1,at.Float=b_,at.HandWritePanel=n1,at.Icon=on,at.Image=Sa,at.ImageMask=k_,at.ImageView=yy,at.Input=L0,at.InputFileDrop=ty,at.InputRange=$s,at.InputRangeBox=Z0,at.InputRangeCanvas=U0,at.InterpolationGraphDisplay=Ra,at.InterpolationGroupGraphDisplay=K1,at.LayoutCenter=ky,at.LayoutMobile=Ty,at.LineDouble=v_,at.LineSingle=m_,at.Loading1=gv,at.Loading10=zv,at.Loading11=wa,at.Loading2=_v,at.Loading3=xv,at.Loading4=Tv,at.Loading5=Ev,at.Loading6=Iv,at.Loading7=Av,at.Loading8=Pa,at.Loading9=Fv,at.MapTianditu=B1,at.Overlay=Tn,at.Page=ka,at.PageVerticalScrollProgressBar=o1,at.PlateDisplay=D1,at.PlateKeyboard=lh,at.PlateMobile=P1,at.Pop=Ve,at.Popover=Ea,at.ProgressBar=hi,at.RadioGroup=Ca,at.ResizeObserver=V1,at.RingIndicator=Kv,at.RingText=n_,at.Routes=Cr,at.SVGAndCanvas=uv,at.SVGCheck=Oa,at.SVGCleanUp=Tr,at.SVGDelete=Ta,at.SVGDown=li,at.SVGMaskNapkin=Aa,at.Select=l0,at.SelectAbsolute=g0,at.Slide=c_,at.SlideCorner=f_,at.SlideLeftItem=ry,at.Status=K0,at.Switch=v0,at.Tab=Zy,at.Tabs=e1,at.TextBackgroundClip=o_,at.Video=dy,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"}),at}({});
135
+ `};return t({}),(l,c)=>(F(),Gt(kt,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:r},{default:Et(()=>[P("div",{class:"circle-before",style:z(i)},null,4),P("div",x_,[St(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),yx="",C_=pt(w_,[["__scopeId","data-v-0976c0d5"]]),T_=lt({customOptions:{Container:kt},inheritAttrs:!0,__name:"BorderFocusText",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"manual"},text:{default:""},textSize:{default:12},borderColor:{default:"#5a82f0"},borderWidth:{default:2},borderRadius:{default:8}},setup(s,{expose:t}){const e=s,n=M(!0),i=()=>{n.value=!0},r=()=>{n.value=!1};return t({}),(o,a)=>(F(),Gt(kt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Et(()=>[n.value?(F(),U("div",{key:0,class:"text",style:z({fontSize:`${o.textSize}px`,top:`${-Math.ceil(o.textSize/2)-4}px`,padding:"4px 12px",backgroundColor:o.borderColor,borderRadius:`${o.textSize}px 0 ${o.textSize}px 0`,color:Mt(De)(o.borderColor).opposite(!0,"#333333","#ffffff").toString()})},bt(e.text),5)):$t("",!0),P("div",{class:"inner",style:z(n.value?{border:`${o.borderWidth}px solid ${o.borderColor}`,borderRadius:`${o.borderRadius}px`}:{})},[St(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),vx="",S_=pt(T_,[["__scopeId","data-v-e9c63701"]]),k_=lt({customOptions:{Container:kt,SVGMaskNapkin:Aa},inheritAttrs:!0,__name:"ImageMask",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,n=M(0),i=M(0),r=(o,a)=>{n.value=o,i.value=a};return t({}),(o,a)=>(F(),U("div",{style:z({width:`${n.value}px`,height:`${i.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[St(o.$slots,"mask",{},()=>[ft(Aa)]),ft(kt,{type:"shrink",onResize:r},{default:Et(()=>[St(o.$slots,"default")]),_:3})],4))}});return at.Accordion=ay,at.BooleanBox=ci,at.BorderFocusText=S_,at.Button=ve,at.CSSAnimation=ui,at.CardFlip=Xv,at.CheckboxGroup=wr,at.Circle=C_,at.ClockFlipper=r_,at.ColorPicker=N1,at.Container=kt,at.Cube=Uv,at.Dialog=fi,at.DialogLoading=Yy,at.DialogToast=Hy,at.EaseGraphDisplay=Da,at.EaseGroupGraphDisplay=H1,at.FPSStats=G1,at.Float=b_,at.HandWritePanel=n1,at.Icon=on,at.Image=Sa,at.ImageMask=k_,at.ImageView=yy,at.Input=L0,at.InputFileDrop=ty,at.InputRange=$s,at.InputRangeBox=Z0,at.InputRangeCanvas=U0,at.InterpolationGraphDisplay=Ra,at.InterpolationGroupGraphDisplay=K1,at.LayoutCenter=ky,at.LayoutMobile=Ty,at.LineDouble=v_,at.LineSingle=m_,at.Loading1=gv,at.Loading10=zv,at.Loading11=wa,at.Loading2=_v,at.Loading3=xv,at.Loading4=Tv,at.Loading5=Ev,at.Loading6=Iv,at.Loading7=Av,at.Loading8=Pa,at.Loading9=Fv,at.MapTianditu=B1,at.Overlay=Tn,at.Page=ka,at.PageVerticalScrollProgressBar=o1,at.PlateDisplay=D1,at.PlateKeyboard=lh,at.PlateMobile=P1,at.Pop=Ve,at.Popover=Ea,at.ProgressBar=hi,at.RadioGroup=Ca,at.ResizeObserver=V1,at.RingIndicator=Kv,at.RingText=n_,at.Routes=Cr,at.SVGAndCanvas=uv,at.SVGCheck=Oa,at.SVGCleanUp=Tr,at.SVGDelete=Ta,at.SVGDown=li,at.SVGMaskNapkin=Aa,at.Select=l0,at.SelectAbsolute=g0,at.Slide=c_,at.SlideCorner=f_,at.SlideLeftItem=ry,at.Status=K0,at.Switch=v0,at.Tab=Zy,at.Tabs=e1,at.TextBackgroundClip=o_,at.Video=dy,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"}),at}({});
136
136
  //# sourceMappingURL=zyzgroup_core_vue.iife.js.map