@zyzgroup/core-vue 0.0.33 → 0.0.34
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.
- package/ce/yz_custom_element.iife.js +80 -80
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +1566 -1563
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +68 -68
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +27 -27
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +900 -897
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +27 -27
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/components/form/Input.ce.vue.d.ts +2 -2
- package/types/components/form/Input.vue.d.ts +2 -2
- package/types/components/form/InputRange.ce.vue.d.ts +1 -1
- package/types/components/form/InputRange.vue.d.ts +1 -1
- package/types/components/form/InputRangeBox.ce.vue.d.ts +1 -1
- package/types/components/form/InputRangeBox.vue.d.ts +1 -1
- package/types/components/form/InputRangeCanvas.ce.vue.d.ts +1 -1
- package/types/components/form/InputRangeCanvas.vue.d.ts +1 -1
|
@@ -2,31 +2,31 @@ 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),gr=s=>s.startsWith("onUpdate:"),ne=Object.assign,$i=(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,
|
|
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),gr=s=>s.startsWith("onUpdate:"),ne=Object.assign,$i=(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,zs=s=>yr(s)==="[object Map]",ja=s=>yr(s)==="[object Set]",Tt=s=>typeof s=="function",ie=s=>typeof s=="string",fn=s=>typeof s=="symbol",Gt=s=>s!==null&&typeof s=="object",Vi=s=>(Gt(s)||Tt(s))&&Tt(s.then)&&Tt(s.catch),Ua=Object.prototype.toString,yr=s=>Ua.call(s),Yi=s=>yr(s).slice(8,-1),Ha=s=>yr(s)==="[object Object]",zi=s=>ie(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"),vr=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},Oh=/-(\w)/g,dn=vr(s=>s.replace(Oh,(t,e)=>e?e.toUpperCase():"")),Ih=/\B([A-Z])/g,_s=vr(s=>s.replace(Ih,"-$1").toLowerCase()),_r=vr(s=>s.charAt(0).toUpperCase()+s.slice(1)),Bs=vr(s=>s?`on${_r(s)}`:""),bs=(s,t)=>!Object.is(s,t),On=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},br=(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 Wa;const Bi=()=>Wa||(Wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Y(s){if(xt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],r=ie(n)?Nh(n):Y(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(ie(s)||Gt(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 re(s){let t="";if(ie(s))t=s;else if(xt(s))for(let e=0;e<s.length;e++){const n=re(s[e]);n&&(t+=n+" ")}else if(Gt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Fh=un("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function qa(s){return!!s||s===""}const wt=s=>ie(s)?s:s==null?"":xt(s)||Gt(s)&&(s.toString===Ua||!Tt(s.toString))?JSON.stringify(s,Za,2):String(s),Za=(s,t)=>t&&t.__v_isRef?Za(s,t.value):zs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,r],i)=>(e[Gi(n,i)+" =>"]=r,e),{})}:ja(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Gi(e))}:fn(t)?Gi(t):Gt(t)&&!xt(t)&&!Ha(t)?String(t):t,Gi=(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 xs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let Be;class Lh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Be,!t&&Be&&(this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=Be;try{return Be=this,t()}finally{Be=e}}else({}).NODE_ENV!=="production"&&xs("cannot run an inactive effect scope.")}on(){Be=this}off(){Be=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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function $h(s,t=Be){t&&t.active&&t.effects.push(s)}function Vh(){return Be}let Bs;class Xi{constructor(t,e,n,r){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,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Cs();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(Yh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ss()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ws,e=Bs;try{return ws=!0,Bs=this,this._runnings++,Qa(this),this.fn()}finally{Ka(this),this._runnings--,Bs=e,ws=t}}stop(){var t;this.active&&(Qa(this),Ka(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Yh(s){return s.value}function Qa(s){s._trackId++,s._depsLength=0}function Ka(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)Ja(s.deps[t],s);s.deps.length=s._depsLength}}function Ja(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let ws=!0,ji=0;const tl=[];function Cs(){tl.push(ws),ws=!1}function Ss(){const s=tl.pop();ws=s===void 0?!0:s}function Ui(){ji++}function Hi(){for(ji--;!ji&&Wi.length;)Wi.shift()()}function el(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const r=s.deps[s._depsLength];r!==t?(r&&Ja(r,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,ne({effect:s},e)))}}const Wi=[];function sl(s,t,e){var n;Ui();for(const r of s.keys()){let i;r._dirtyLevel<t&&(i??(i=s.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(i??(i=s.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((n=r.onTrigger)==null||n.call(r,ne({effect:r},e))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Wi.push(r.scheduler)))}Hi()}const nl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},qi=new WeakMap,Gs=Symbol({}.NODE_ENV!=="production"?"iterate":""),Zi=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function pe(s,t,e){if(ws&&Bs){let n=qi.get(s);n||qi.set(s,n=new Map);let r=n.get(e);r||n.set(e,r=nl(()=>n.delete(e))),el(Bs,r,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function qe(s,t,e,n,r,i){const o=qi.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)?zi(e)&&a.push(o.get("length")):(a.push(o.get(Gs)),Ys(s)&&a.push(o.get(Zi)));break;case"delete":xt(s)||(a.push(o.get(Gs)),Ys(s)&&a.push(o.get(Zi)));break;case"set":Ys(s)&&a.push(o.get(Gs));break}Ui();for(const l of a)l&&sl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:r,oldTarget:i}:void 0);Hi()}const zh=un("__proto__,__v_isRef,__isVue"),rl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(fn)),il=Bh();function Bh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Dt(this);for(let i=0,o=this.length;i<o;i++)pe(n,"get",i+"");const r=n[t](...e);return r===-1||r===!1?n[t](...e.map(Dt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){Cs(),Ui();const n=Dt(this)[t].apply(this,e);return Hi(),Ss(),n}}),s}function Gh(s){const t=Dt(this);return pe(t,"has",s),t.hasOwnProperty(s)}class ol{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const r=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!r;if(e==="__v_isReadonly")return r;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(r?i?yl:gl:i?ml:pl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=xt(t);if(!r){if(o&&At(il,e))return Reflect.get(il,e,n);if(e==="hasOwnProperty")return Gh}const a=Reflect.get(t,e,n);return(fn(e)?rl.has(e):zh(e))||(r||pe(t,"get",e),i)?a:me(a)?o&&zi(e)?a:a.value:Gt(a)?r?vl(a):Jt(a):a}}class al extends ol{constructor(t=!1){super(!1,t)}set(t,e,n,r){let i=t[e];if(!this._isShallow){const l=ks(i);if(!js(n)&&!ks(n)&&(i=Dt(i),n=Dt(n)),!xt(t)&&me(i)&&!me(n))return l?!1:(i.value=n,!0)}const o=xt(t)&&zi(e)?Number(e)<t.length:At(t,e),a=Reflect.set(t,e,n,r);return t===Dt(r)&&(o?bs(n,i)&&qe(t,"set",e,n,i):qe(t,"add",e,n)),a}deleteProperty(t,e){const n=At(t,e),r=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&qe(t,"delete",e,void 0,r),i}has(t,e){const n=Reflect.has(t,e);return(!fn(e)||!rl.has(e))&&pe(t,"has",e),n}ownKeys(t){return pe(t,"iterate",xt(t)?"length":Gs),Reflect.ownKeys(t)}}class ll extends ol{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&xs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&xs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Xh=new al,jh=new ll,Uh=new al(!0),Hh=new ll(!0),Qi=s=>s,xr=s=>Reflect.getPrototypeOf(s);function wr(s,t,e=!1,n=!1){s=s.__v_raw;const r=Dt(s),i=Dt(t);e||(bs(t,i)&&pe(r,"get",t),pe(r,"get",i));const{has:o}=xr(r),a=n?Qi:e?Ji:In;if(o.call(r,t))return a(s.get(t));if(o.call(r,i))return a(s.get(i));s!==r&&s.get(t)}function Cr(s,t=!1){const e=this.__v_raw,n=Dt(e),r=Dt(s);return t||(bs(s,r)&&pe(n,"has",s),pe(n,"has",r)),s===r?e.has(s):e.has(s)||e.has(r)}function Sr(s,t=!1){return s=s.__v_raw,!t&&pe(Dt(s),"iterate",Gs),Reflect.get(s,"size",s)}function cl(s){s=Dt(s);const t=Dt(this);return xr(t).has.call(t,s)||(t.add(s),qe(t,"add",s,s)),this}function ul(s,t){t=Dt(t);const e=Dt(this),{has:n,get:r}=xr(e);let i=n.call(e,s);i?{}.NODE_ENV!=="production"&&dl(e,n,s):(s=Dt(s),i=n.call(e,s));const o=r.call(e,s);return e.set(s,t),i?bs(t,o)&&qe(e,"set",s,t,o):qe(e,"add",s,t),this}function hl(s){const t=Dt(this),{has:e,get:n}=xr(t);let r=e.call(t,s);r?{}.NODE_ENV!=="production"&&dl(t,e,s):(s=Dt(s),r=e.call(t,s));const i=n?n.call(t,s):void 0,o=t.delete(s);return r&&qe(t,"delete",s,void 0,i),o}function fl(){const s=Dt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Ys(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&qe(s,"clear",void 0,void 0,e),n}function Tr(s,t){return function(n,r){const i=this,o=i.__v_raw,a=Dt(o),l=t?Qi:s?Ji:In;return!s&&pe(a,"iterate",Gs),o.forEach((c,u)=>n.call(r,l(c),l(u),i))}}function kr(s,t,e){return function(...n){const r=this.__v_raw,i=Dt(r),o=Ys(i),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=r[s](...n),u=e?Qi:t?Ji:In;return!t&&pe(i,"iterate",l?Zi:Gs),{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]}" `:"";xs(`${_r(s)} operation ${e}failed: target is readonly.`,Dt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Wh(){const s={get(i){return wr(this,i)},get size(){return Sr(this)},has:Cr,add:cl,set:ul,delete:hl,clear:fl,forEach:Tr(!1,!1)},t={get(i){return wr(this,i,!1,!0)},get size(){return Sr(this)},has:Cr,add:cl,set:ul,delete:hl,clear:fl,forEach:Tr(!1,!0)},e={get(i){return wr(this,i,!0)},get size(){return Sr(this,!0)},has(i){return Cr.call(this,i,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:Tr(!0,!1)},n={get(i){return wr(this,i,!0,!0)},get size(){return Sr(this,!0)},has(i){return Cr.call(this,i,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:Tr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=kr(i,!1,!1),e[i]=kr(i,!0,!1),t[i]=kr(i,!1,!0),n[i]=kr(i,!0,!0)}),[s,e,t,n]}const[qh,Zh,Qh,Kh]=Wh();function Er(s,t){const e=t?s?Kh:Qh:s?Zh:qh;return(n,r,i)=>r==="__v_isReactive"?!s:r==="__v_isReadonly"?s:r==="__v_raw"?n:Reflect.get(At(e,r)&&r in n?e:n,r,i)}const Jh={get:Er(!1,!1)},tf={get:Er(!1,!0)},ef={get:Er(!0,!1)},sf={get:Er(!0,!0)};function dl(s,t,e){const n=Dt(e);if(n!==e&&t.call(s,n)){const r=Yi(s);xs(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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 pl=new WeakMap,ml=new WeakMap,gl=new WeakMap,yl=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(Yi(s))}function Jt(s){return ks(s)?s:Pr(s,!1,Xh,Jh,pl)}function of(s){return Pr(s,!1,Uh,tf,ml)}function vl(s){return Pr(s,!0,jh,ef,gl)}function pn(s){return Pr(s,!0,Hh,sf,yl)}function Pr(s,t,e,n,r){if(!Gt(s))return{}.NODE_ENV!=="production"&&xs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const i=r.get(s);if(i)return i;const o=rf(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return r.set(s,a),a}function Xs(s){return ks(s)?Xs(s.__v_raw):!!(s&&s.__v_isReactive)}function ks(s){return!!(s&&s.__v_isReadonly)}function js(s){return!!(s&&s.__v_isShallow)}function Ki(s){return Xs(s)||ks(s)}function Dt(s){const t=s&&s.__v_raw;return t?Dt(t):s}function _l(s){return Object.isExtensible(s)&&br(s,"__v_skip",!0),s}const In=s=>Gt(s)?Jt(s):s,Ji=s=>Gt(s)?vl(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 bl{constructor(t,e,n,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Xi(()=>t(this._value),()=>Or(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=Dt(this);return(!t._cacheable||t.effect.dirty)&&bs(t._value,t._value=t.effect.run())&&Or(t,4),xl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&xs(af,`
|
|
9
|
+
**/function xs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let Be;class Lh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Be,!t&&Be&&(this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=Be;try{return Be=this,t()}finally{Be=e}}else({}).NODE_ENV!=="production"&&xs("cannot run an inactive effect scope.")}on(){Be=this}off(){Be=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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function $h(s,t=Be){t&&t.active&&t.effects.push(s)}function Vh(){return Be}let Gs;class Xi{constructor(t,e,n,r){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,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Cs();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(Yh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ss()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ws,e=Gs;try{return ws=!0,Gs=this,this._runnings++,Qa(this),this.fn()}finally{Ka(this),this._runnings--,Gs=e,ws=t}}stop(){var t;this.active&&(Qa(this),Ka(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Yh(s){return s.value}function Qa(s){s._trackId++,s._depsLength=0}function Ka(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)Ja(s.deps[t],s);s.deps.length=s._depsLength}}function Ja(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let ws=!0,ji=0;const tl=[];function Cs(){tl.push(ws),ws=!1}function Ss(){const s=tl.pop();ws=s===void 0?!0:s}function Ui(){ji++}function Hi(){for(ji--;!ji&&Wi.length;)Wi.shift()()}function el(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const r=s.deps[s._depsLength];r!==t?(r&&Ja(r,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,ne({effect:s},e)))}}const Wi=[];function sl(s,t,e){var n;Ui();for(const r of s.keys()){let i;r._dirtyLevel<t&&(i??(i=s.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(i??(i=s.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((n=r.onTrigger)==null||n.call(r,ne({effect:r},e))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Wi.push(r.scheduler)))}Hi()}const nl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},qi=new WeakMap,Xs=Symbol({}.NODE_ENV!=="production"?"iterate":""),Zi=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function pe(s,t,e){if(ws&&Gs){let n=qi.get(s);n||qi.set(s,n=new Map);let r=n.get(e);r||n.set(e,r=nl(()=>n.delete(e))),el(Gs,r,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function qe(s,t,e,n,r,i){const o=qi.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)?zi(e)&&a.push(o.get("length")):(a.push(o.get(Xs)),zs(s)&&a.push(o.get(Zi)));break;case"delete":xt(s)||(a.push(o.get(Xs)),zs(s)&&a.push(o.get(Zi)));break;case"set":zs(s)&&a.push(o.get(Xs));break}Ui();for(const l of a)l&&sl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:r,oldTarget:i}:void 0);Hi()}const zh=un("__proto__,__v_isRef,__isVue"),rl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(fn)),il=Bh();function Bh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Dt(this);for(let i=0,o=this.length;i<o;i++)pe(n,"get",i+"");const r=n[t](...e);return r===-1||r===!1?n[t](...e.map(Dt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){Cs(),Ui();const n=Dt(this)[t].apply(this,e);return Hi(),Ss(),n}}),s}function Gh(s){const t=Dt(this);return pe(t,"has",s),t.hasOwnProperty(s)}class ol{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const r=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!r;if(e==="__v_isReadonly")return r;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(r?i?yl:gl:i?ml:pl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=xt(t);if(!r){if(o&&At(il,e))return Reflect.get(il,e,n);if(e==="hasOwnProperty")return Gh}const a=Reflect.get(t,e,n);return(fn(e)?rl.has(e):zh(e))||(r||pe(t,"get",e),i)?a:me(a)?o&&zi(e)?a:a.value:Gt(a)?r?vl(a):Jt(a):a}}class al extends ol{constructor(t=!1){super(!1,t)}set(t,e,n,r){let i=t[e];if(!this._isShallow){const l=ks(i);if(!Us(n)&&!ks(n)&&(i=Dt(i),n=Dt(n)),!xt(t)&&me(i)&&!me(n))return l?!1:(i.value=n,!0)}const o=xt(t)&&zi(e)?Number(e)<t.length:At(t,e),a=Reflect.set(t,e,n,r);return t===Dt(r)&&(o?bs(n,i)&&qe(t,"set",e,n,i):qe(t,"add",e,n)),a}deleteProperty(t,e){const n=At(t,e),r=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&qe(t,"delete",e,void 0,r),i}has(t,e){const n=Reflect.has(t,e);return(!fn(e)||!rl.has(e))&&pe(t,"has",e),n}ownKeys(t){return pe(t,"iterate",xt(t)?"length":Xs),Reflect.ownKeys(t)}}class ll extends ol{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&xs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&xs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Xh=new al,jh=new ll,Uh=new al(!0),Hh=new ll(!0),Qi=s=>s,xr=s=>Reflect.getPrototypeOf(s);function wr(s,t,e=!1,n=!1){s=s.__v_raw;const r=Dt(s),i=Dt(t);e||(bs(t,i)&&pe(r,"get",t),pe(r,"get",i));const{has:o}=xr(r),a=n?Qi:e?Ji:In;if(o.call(r,t))return a(s.get(t));if(o.call(r,i))return a(s.get(i));s!==r&&s.get(t)}function Cr(s,t=!1){const e=this.__v_raw,n=Dt(e),r=Dt(s);return t||(bs(s,r)&&pe(n,"has",s),pe(n,"has",r)),s===r?e.has(s):e.has(s)||e.has(r)}function Sr(s,t=!1){return s=s.__v_raw,!t&&pe(Dt(s),"iterate",Xs),Reflect.get(s,"size",s)}function cl(s){s=Dt(s);const t=Dt(this);return xr(t).has.call(t,s)||(t.add(s),qe(t,"add",s,s)),this}function ul(s,t){t=Dt(t);const e=Dt(this),{has:n,get:r}=xr(e);let i=n.call(e,s);i?{}.NODE_ENV!=="production"&&dl(e,n,s):(s=Dt(s),i=n.call(e,s));const o=r.call(e,s);return e.set(s,t),i?bs(t,o)&&qe(e,"set",s,t,o):qe(e,"add",s,t),this}function hl(s){const t=Dt(this),{has:e,get:n}=xr(t);let r=e.call(t,s);r?{}.NODE_ENV!=="production"&&dl(t,e,s):(s=Dt(s),r=e.call(t,s));const i=n?n.call(t,s):void 0,o=t.delete(s);return r&&qe(t,"delete",s,void 0,i),o}function fl(){const s=Dt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?zs(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&qe(s,"clear",void 0,void 0,e),n}function Tr(s,t){return function(n,r){const i=this,o=i.__v_raw,a=Dt(o),l=t?Qi:s?Ji:In;return!s&&pe(a,"iterate",Xs),o.forEach((c,u)=>n.call(r,l(c),l(u),i))}}function kr(s,t,e){return function(...n){const r=this.__v_raw,i=Dt(r),o=zs(i),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=r[s](...n),u=e?Qi:t?Ji:In;return!t&&pe(i,"iterate",l?Zi: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]}" `:"";xs(`${_r(s)} operation ${e}failed: target is readonly.`,Dt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Wh(){const s={get(i){return wr(this,i)},get size(){return Sr(this)},has:Cr,add:cl,set:ul,delete:hl,clear:fl,forEach:Tr(!1,!1)},t={get(i){return wr(this,i,!1,!0)},get size(){return Sr(this)},has:Cr,add:cl,set:ul,delete:hl,clear:fl,forEach:Tr(!1,!0)},e={get(i){return wr(this,i,!0)},get size(){return Sr(this,!0)},has(i){return Cr.call(this,i,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:Tr(!0,!1)},n={get(i){return wr(this,i,!0,!0)},get size(){return Sr(this,!0)},has(i){return Cr.call(this,i,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:Tr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=kr(i,!1,!1),e[i]=kr(i,!0,!1),t[i]=kr(i,!1,!0),n[i]=kr(i,!0,!0)}),[s,e,t,n]}const[qh,Zh,Qh,Kh]=Wh();function Er(s,t){const e=t?s?Kh:Qh:s?Zh:qh;return(n,r,i)=>r==="__v_isReactive"?!s:r==="__v_isReadonly"?s:r==="__v_raw"?n:Reflect.get(At(e,r)&&r in n?e:n,r,i)}const Jh={get:Er(!1,!1)},tf={get:Er(!1,!0)},ef={get:Er(!0,!1)},sf={get:Er(!0,!0)};function dl(s,t,e){const n=Dt(e);if(n!==e&&t.call(s,n)){const r=Yi(s);xs(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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 pl=new WeakMap,ml=new WeakMap,gl=new WeakMap,yl=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(Yi(s))}function Jt(s){return ks(s)?s:Pr(s,!1,Xh,Jh,pl)}function of(s){return Pr(s,!1,Uh,tf,ml)}function vl(s){return Pr(s,!0,jh,ef,gl)}function pn(s){return Pr(s,!0,Hh,sf,yl)}function Pr(s,t,e,n,r){if(!Gt(s))return{}.NODE_ENV!=="production"&&xs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const i=r.get(s);if(i)return i;const o=rf(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return r.set(s,a),a}function js(s){return ks(s)?js(s.__v_raw):!!(s&&s.__v_isReactive)}function ks(s){return!!(s&&s.__v_isReadonly)}function Us(s){return!!(s&&s.__v_isShallow)}function Ki(s){return js(s)||ks(s)}function Dt(s){const t=s&&s.__v_raw;return t?Dt(t):s}function _l(s){return Object.isExtensible(s)&&br(s,"__v_skip",!0),s}const In=s=>Gt(s)?Jt(s):s,Ji=s=>Gt(s)?vl(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 bl{constructor(t,e,n,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Xi(()=>t(this._value),()=>Or(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=Dt(this);return(!t._cacheable||t.effect.dirty)&&bs(t._value,t._value=t.effect.run())&&Or(t,4),xl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&xs(af,`
|
|
10
10
|
|
|
11
|
-
getter: `,this.getter),Or(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,r;const i=Tt(s);i?(n=s,r={}.NODE_ENV!=="production"?()=>{xs("Write operation failed: computed value is readonly")}:oe):(n=s.get,r=s.set);const o=new bl(n,r,i||!r,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function xl(s){var t;ws&&
|
|
11
|
+
getter: `,this.getter),Or(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,r;const i=Tt(s);i?(n=s,r={}.NODE_ENV!=="production"?()=>{xs("Write operation failed: computed value is readonly")}:oe):(n=s.get,r=s.set);const o=new bl(n,r,i||!r,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function xl(s){var t;ws&&Gs&&(s=Dt(s),el(Gs,(t=s.dep)!=null?t:s.dep=nl(()=>s.dep=void 0,s instanceof bl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Or(s,t=4,e){s=Dt(s);const n=s.dep;n&&sl(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:Dt(t),this._value=e?t:In(t)}get value(){return xl(this),this._value}set value(t){const e=this.__v_isShallow||Us(t)||ks(t);t=e?t:Dt(t),bs(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:In(t),Or(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 r=s[t];return me(r)&&!me(e)?(r.value=e,!0):Reflect.set(s,t,e,n)}};function wl(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
|
-
**/const
|
|
15
|
+
**/const Hs=[];function Ir(s){Hs.push(s)}function Dr(){Hs.pop()}function it(s,...t){Cs();const e=Hs.length?Hs[Hs.length-1].component:null,n=e&&e.appContext.config.warnHandler,r=ff();if(n)os(n,e,11,[s+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),e&&e.proxy,r.map(({vnode:i})=>`at <${Wr(e,i.type)}>`).join(`
|
|
16
16
|
`),r]);else{const i=[`[Vue warn]: ${s}`,...t];r.length&&i.push(`
|
|
17
|
-
`,...df(r)),console.warn(...i)}Ss()}function ff(){let s=
|
|
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,r=` at <${Wr(s.component,s.type,n)}`,i=">"+e;return s.props?[r,...mf(s.props),i]:[r+i]}function mf(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Cl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Cl(s,t,e){return ie(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:me(t)?(t=Cl(s,Dt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Tt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Dt(t),e?t:[`${s}=`,t])}const to={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(r){Dn(r,t,e)}}function Ge(s,t,e,n){if(Tt(s)){const i=os(s,t,e,n);return i&&Vi(i)&&i.catch(o=>{Dn(o,t,e)}),i}const r=[];for(let i=0;i<s.length;i++)r.push(Ge(s[i],t,e,n));return r}function Dn(s,t,e,n=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?to[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){os(l,null,10,[s,o,a]);return}}gf(s,e,r,n)}function gf(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const r=to[t];if(e&&Ir(e),it(`Unhandled error${r?` during execution of ${r}`:""}`),e&&Dr(),n)throw s;console.error(s)}else console.error(s)}let Rn=!1,eo=!1;const xe=[];let Ze=0;const mn=[];let as=null,Es=0;const Sl=Promise.resolve();let so=null;const yf=100;function vf(s){const t=so||Sl;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,r=xe[n],i=An(r);i<s||i===s&&r.pre?t=n+1:e=n}return t}function Rr(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),Tl())}function Tl(){!Rn&&!eo&&(eo=!0,so=Sl.then(Ol))}function bf(s){const t=xe.indexOf(s);t>Ze&&xe.splice(t,1)}function kl(s){xt(s)?mn.push(...s):(!as||!as.includes(s,s.allowRecurse?Es+1:Es))&&mn.push(s),Tl()}function El(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"&&no(t,n))continue;xe.splice(e,1),e--,n()}}}function Pl(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),Es=0;Es<as.length;Es++)({}).NODE_ENV!=="production"&&no(s,as[Es])||as[Es]();as=null,Es=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 Ol(s){eo=!1,Rn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(xf);const t={}.NODE_ENV!=="production"?e=>no(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,Pl(s),Rn=!1,so=null,(xe.length||mn.length)&&Ol(s)}}function no(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>yf){const n=t.ownerInstance,r=n&&xc(n.type);return Dn(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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 Hs=!1;const gn=new Set;({}).NODE_ENV!=="production"&&(Bi().__VUE_HMR_RUNTIME__={createRecord:ro(Il),rerender:ro(Sf),reload:ro(Tf)});const Ws=new Map;function wf(s){const t=s.type.__hmrId;let e=Ws.get(t);e||(Il(t,s.type),e=Ws.get(t)),e.instances.add(s)}function Cf(s){Ws.get(s.type.__hmrId).instances.delete(s)}function Il(s,t){return Ws.has(s)?!1:(Ws.set(s,{initialDef:Mn(t),instances:new Set}),!0)}function Mn(s){return wc(s)?s.__vccOpts:s}function Sf(s,t){const e=Ws.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Mn(n.type).render=t),n.renderCache=[],Hs=!0,n.effect.dirty=!0,n.update(),Hs=!1}))}function Tf(s,t){const e=Ws.get(s);if(!e)return;t=Mn(t),Dl(e.initialDef,t);const n=[...e.instances];for(const r of n){const i=Mn(r.type);gn.has(i)||(i!==e.initialDef&&Dl(i,t),gn.add(i)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(gn.add(i),r.ceReload(t.styles),gn.delete(i)):r.parent?(r.parent.effect.dirty=!0,Rr(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}kl(()=>{for(const r of n)gn.delete(Mn(r.type))})}function Dl(s,t){ne(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function ro(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=[],io=!1;function Fn(s,...t){Qe?Qe.emit(s,...t):io||Nn.push({event:s,args:t})}function Rl(s,t){var e,n;Qe=s,Qe?(Qe.enabled=!0,Nn.forEach(({event:r,args:i})=>Qe.emit(r,...i)),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(i=>{Rl(i,t)}),setTimeout(()=>{Qe||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,io=!0,Nn=[])},3e3)):(io=!0,Nn=[])}function kf(s,t){Fn("app:init",s,t,{Fragment:$t,Text:Gn,Comment:Oe,Static:Xn})}function Ef(s){Fn("app:unmount",s)}const Pf=oo("component:added"),Al=oo("component:updated"),Of=oo("component:removed"),If=s=>{Qe&&typeof Qe.cleanupBuffer=="function"&&!Qe.cleanupBuffer(s)&&Of(s)};function oo(s){return t=>{Fn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Df=Ml("perf:start"),Rf=Ml("perf:end");function Ml(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||!(zs(t)in h))&&it(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${zs(t)}" prop.`);else{const f=u[t];Tt(f)&&(f(...e)||it(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=e;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Xt;f&&(r=e.map(m=>ie(m)?m.trim():m)),h&&(r=e.map(Dh))}if({}.NODE_ENV!=="production"&&Af(s,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[zs(u)]&&it(`Event "${u}" is emitted in component ${Wr(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 "${_s(t)}" instead of "${t}".`)}let a,l=n[a=zs(t)]||n[a=zs(dn(t))];!l&&i&&(l=n[a=zs(_s(t))]),l&&Ge(l,s,6,r);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,Ge(c,s,6,r)}}function Nl(s,t,e=!1){const n=t.emitsCache,r=n.get(s);if(r!==void 0)return r;const i=s.emits;let o={},a=!1;if(!Tt(s)){const l=c=>{const u=Nl(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!i&&!a?(Gt(s)&&n.set(s,null),null):(xt(i)?i.forEach(l=>o[l]=null):ne(o,i),Gt(s)&&n.set(s,o),o)}function Ar(s,t){return!s||!En(t)?!1:(t=t.slice(2).replace(/Once$/,""),At(s,t[0].toLowerCase()+t.slice(1))||At(s,_s(t))||At(s,t))}let ae=null,Mr=null;function Nr(s){const t=ae;return ae=s,Mr=s&&s.type.__scopeId||null,t}function Ln(s){Mr=s}function $n(){Mr=null}function Pt(s,t=ae,e){if(!t||s._n)return s;const n=(...r)=>{n._d&&cc(-1);const i=Nr(t);let o;try{o=s(...r)}finally{Nr(i),n._d&&cc(1)}return{}.NODE_ENV!=="production"&&Al(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let ao=!1;function Fr(){ao=!0}function lo(s){const{type:t,vnode:e,proxy:n,withProxy:r,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:m,ctx:d,inheritAttrs:k}=s;let S,_;const C=Nr(s);({}).NODE_ENV!=="production"&&(ao=!1);try{if(e.shapeFlag&4){const x=r||n,b={}.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(x,{get(z,ct,O){return it(`Property '${String(ct)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(z,ct,O)}}):x;S=je(u.call(b,x,h,i,m,f,d)),_=l}else{const x=t;({}).NODE_ENV!=="production"&&l===i&&Fr(),S=je(x.length>1?x(i,{}.NODE_ENV!=="production"?{get attrs(){return Fr(),l},slots:a,emit:c}:{attrs:l,slots:a,emit:c}):x(i,null)),_=t.props?l:Nf(l)}}catch(x){jn.length=0,Dn(x,s,1),S=dt(Oe)}let y=S,p;if({}.NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&([y,p]=Fl(S)),_&&k!==!1){const x=Object.keys(_),{shapeFlag:b}=y;if(x.length){if(b&7)o&&x.some(gr)&&(_=Ff(_,o)),y=Os(y,_);else if({}.NODE_ENV!=="production"&&!ao&&y.type!==Oe){const z=Object.keys(l),ct=[],O=[];for(let R=0,A=z.length;R<A;R++){const D=z[R];En(D)?gr(D)||ct.push(D[2].toLowerCase()+D.slice(3)):O.push(D)}O.length&&it(`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&&it(`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"&&!Ll(y)&&it("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"&&!Ll(y)&&it("Component inside <Transition> renders non-element root node that cannot be animated."),y.transition=e.transition),{}.NODE_ENV!=="production"&&p?p(y):S=y,Nr(C),S}const Fl=s=>{const t=s.children,e=s.dynamicChildren,n=co(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Fl(n)}else return[s,void 0];const r=t.indexOf(n),i=e?e.indexOf(n):-1,o=a=>{t[r]=a,e&&(i>-1?e[i]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[je(n),o]};function co(s,t=!0){let e;for(let n=0;n<s.length;n++){const r=s[n];if(yn(r)){if(r.type!==Oe||r.children==="v-if"){if(e)return;if(e=r,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return co(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)(!gr(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Ll=s=>s.shapeFlag&7||s.type===Oe;function Lf(s,t,e){const{props:n,children:r,component:i}=s,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if({}.NODE_ENV!=="production"&&(r||a)&&Hs||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?$l(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]&&!Ar(c,f))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?$l(n,o,c):!0:!!o;return!1}function $l(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==s[i]&&!Ar(e,i))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"),Yf=s=>s.__isSuspense;function zf(s,t){t&&t.pendingBranch?xt(s)?t.effects.push(...s):t.effects.push(s):kl(s)}const Bf=Symbol.for("v-scx"),Gf=()=>{{const s=Yr(Bf);return s||{}.NODE_ENV!=="production"&&it("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Vl(s,t){return uo(s,null,t)}const Lr={};function Mt(s,t,e){return{}.NODE_ENV!=="production"&&!Tt(t)&&it("`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."),uo(s,t,e)}function uo(s,t,{immediate:e,deep:n,flush:r,once:i,onTrack:o,onTrigger:a}=Xt){if(t&&i){const z=t;t=(...ct)=>{z(...ct),b()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&it('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&&it('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&it('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&it('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=z=>{it("Invalid watch source: ",z,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=fe,u=z=>n===!0?z:qs(z,n===!1?1:void 0);let h,f=!1,m=!1;if(me(s)?(h=()=>s.value,f=js(s)):Xs(s)?(h=()=>u(s),f=!0):xt(s)?(m=!0,f=s.some(z=>Xs(z)||js(z)),h=()=>s.map(z=>{if(me(z))return z.value;if(Xs(z))return u(z);if(Tt(z))return os(z,c,2);({}).NODE_ENV!=="production"&&l(z)})):Tt(s)?t?h=()=>os(s,c,2):h=()=>(d&&d(),Ge(s,c,3,[k])):(h=oe,{}.NODE_ENV!=="production"&&l(s)),t&&n){const z=h;h=()=>qs(z())}let d,k=z=>{d=p.onStop=()=>{os(z,c,4),d=p.onStop=void 0}},S;if(Ur)if(k=oe,t?e&&Ge(t,c,3,[h(),m?[]:void 0,k]):h(),r==="sync"){const z=Gf();S=z.__watcherHandles||(z.__watcherHandles=[])}else return oe;let _=m?new Array(s.length).fill(Lr):Lr;const C=()=>{if(!(!p.active||!p.dirty))if(t){const z=p.run();(n||f||(m?z.some((ct,O)=>bs(ct,_[O])):bs(z,_)))&&(d&&d(),Ge(t,c,3,[z,_===Lr?void 0:m&&_[0]===Lr?[]:_,k]),_=z)}else p.run()};C.allowRecurse=!!t;let y;r==="sync"?y=C:r==="post"?y=()=>Pe(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),y=()=>Rr(C));const p=new Xi(h,oe,y),x=Vh(),b=()=>{p.stop(),x&&$i(x.effects,p)};return{}.NODE_ENV!=="production"&&(p.onTrack=o,p.onTrigger=a),t?e?C():_=p.run():r==="post"?Pe(p.run.bind(p),c&&c.suspense):p.run(),S&&S.push(b),b}function Xf(s,t,e){const n=this.proxy,r=ie(s)?s.includes(".")?Yl(n,s):()=>n[s]:s.bind(n,n);let i;Tt(t)?i=t:(i=t.handler,e=t);const o=Wn(this),a=uo(r,i.bind(n),e);return o(),a}function Yl(s,t){const e=t.split(".");return()=>{let n=s;for(let r=0;r<e.length&&n;r++)n=n[e[r]];return n}}function qs(s,t,e=0,n){if(!Gt(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))qs(s.value,t,e,n);else if(xt(s))for(let r=0;r<s.length;r++)qs(s[r],t,e,n);else if(ja(s)||Ys(s))s.forEach(r=>{qs(r,t,e,n)});else if(Ha(s))for(const r in s)qs(s[r],t,e,n);return s}function zl(s){Ph(s)&&it("Do not use built-in directive ids as custom directive id: "+s)}function Zs(s,t){if(ae===null)return{}.NODE_ENV!=="production"&&it("withDirectives can only be used inside render functions."),s;const e=Hr(ae)||ae.proxy,n=s.dirs||(s.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,a,l=Xt]=t[r];i&&(Tt(i)&&(i={mounted:i,updated:i}),i.deep&&qs(o),n.push({dir:i,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function Qs(s,t,e,n){const r=s.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[n];l&&(Cs(),Ge(l,e,8,[s.el,a,s,t]),Ss())}}/*! #__NO_SIDE_EFFECTS__ */function lt(s,t){return Tt(s)?(()=>ne({name:s.name},t,{setup:s}))():s}const Vn=s=>!!s.type.__asyncLoader,ho=s=>s.type.__isKeepAlive;function jf(s,t){Bl(s,"a",t)}function Uf(s,t){Bl(s,"da",t)}function Bl(s,t,e=fe){const n=s.__wdc||(s.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return s()});if($r(t,n,e),e){let r=e.parent;for(;r&&r.parent;)ho(r.parent.vnode)&&Hf(n,t,e,r),r=r.parent}}function Hf(s,t,e,n){const r=$r(t,s,n,!0);le(()=>{$i(n[t],r)},e)}function $r(s,t,e=fe,n=!1){if(e){const r=e[s]||(e[s]=[]),i=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;Cs();const a=Wn(e),l=Ge(t,e,s,o);return a(),Ss(),l});return n?r.unshift(i):r.push(i),i}else if({}.NODE_ENV!=="production"){const r=zs(to[s].replace(/ hook$/,""));it(`${r} 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)=>(!Ur||s==="sp")&&$r(s,(...n)=>t(...n),e),Wf=ls("bm"),Ks=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){$r("ec",s,t)}function ge(s,t,e,n){let r;const i=e&&e[n];if(xt(s)||ie(s)){r=new Array(s.length);for(let o=0,a=s.length;o<a;o++)r[o]=t(s[o],o,void 0,i&&i[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&it(`The v-for range expect an integer value but got ${s}.`),r=new Array(s);for(let o=0;o<s;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(Gt(s))if(s[Symbol.iterator])r=Array.from(s,(o,a)=>t(o,a,void 0,i&&i[a]));else{const o=Object.keys(s);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];r[a]=t(s[c],c,a,i&&i[a])}}else r=[];return e&&(e[n]=r),r}function kt(s,t,e={},n,r){if(ae.isCE||ae.parent&&Vn(ae.parent)&&ae.parent.isCE)return t!=="default"&&(e.name=t),dt("slot",e,n&&n());let i=s[t];({}).NODE_ENV!=="production"&&i&&i.length>1&&(it("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."),i=()=>[]),i&&i._c&&(i._d=!1),F();const o=i&&Gl(i(e)),a=zt($t,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Gl(s){return s.some(t=>yn(t)?!(t.type===Oe||t.type===$t&&!Gl(t.children)):!0)?s:null}const fo=s=>s?gc(s)?Hr(s)||s.proxy:fo(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=>fo(s.parent),$root:s=>fo(s.root),$emit:s=>s.emit,$options:s=>yo(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Rr(s.update)}),$nextTick:s=>s.n||(s.n=vf.bind(s.proxy)),$watch:s=>Xf.bind(s)}),po=s=>s==="_"||s==="$",mo=(s,t)=>s!==Xt&&!s.__isScriptSetup&&At(s,t),Xl={get({_:s},t){const{ctx:e,setupState:n,data:r,props:i,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 r[t];case 4:return e[t];case 3:return i[t]}else{if(mo(n,t))return o[t]=1,n[t];if(r!==Xt&&At(r,t))return o[t]=2,r[t];if((c=s.propsOptions[0])&&At(c,t))return o[t]=3,i[t];if(e!==Xt&&At(e,t))return o[t]=4,e[t];go&&(o[t]=0)}}const u=Js[t];let h,f;if(u)return t==="$attrs"?(pe(s,"get",t),{}.NODE_ENV!=="production"&&Fr()):{}.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&&(!ie(t)||t.indexOf("__v")!==0)&&(r!==Xt&&po(t[0])&&At(r,t)?it(`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&&it(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:r,ctx:i}=s;return mo(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&At(r,t)?(it(`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"&&it(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&it(`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(i,t,{enumerable:!0,configurable:!0,value:e}):i[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:r,propsOptions:i}},o){let a;return!!e[o]||s!==Xt&&At(s,o)||mo(t,o)||(a=i[0])&&At(a,o)||At(n,o)||At(Js,o)||At(r.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"&&(Xl.ownKeys=s=>(it("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 rd(s){const{ctx:t,setupState:e}=s;Object.keys(Dt(e)).forEach(n=>{if(!e.__isScriptSetup){if(po(n[0])){it(`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 id(){return od().slots}function od(){const s=pc();return{}.NODE_ENV!=="production"&&!s&&it("useContext() called without active instance."),s.setupContext||(s.setupContext=bc(s))}function jl(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]?it(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let go=!0;function ld(s){const t=yo(s),e=s.proxy,n=s.ctx;go=!1,t.beforeCreate&&Ul(t.beforeCreate,s,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:m,updated:d,activated:k,deactivated:S,beforeDestroy:_,beforeUnmount:C,destroyed:y,unmounted:p,render:x,renderTracked:b,renderTriggered:z,errorCaptured:ct,serverPrefetch:O,expose:R,inheritAttrs:A,components:D,directives:L,filters:X}=t,rt={}.NODE_ENV!=="production"?ad():null;if({}.NODE_ENV!=="production"){const[W]=s.propsOptions;if(W)for(const nt in W)rt("Props",nt)}if(c&&cd(c,n,rt),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"&&rt("Methods",W)):{}.NODE_ENV!=="production"&&it(`Method "${W}" has type "${typeof nt}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Tt(r)&&it("The data option must be a function. Plain object usage is no longer supported.");const W=r.call(e,e);if({}.NODE_ENV!=="production"&&Vi(W)&&it("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Gt(W))({}).NODE_ENV!=="production"&&it("data() should return an object.");else if(s.data=Jt(W),{}.NODE_ENV!=="production")for(const nt in W)rt("Data",nt),po(nt[0])||Object.defineProperty(n,nt,{configurable:!0,enumerable:!0,get:()=>W[nt],set:oe})}if(go=!0,i)for(const W in i){const nt=i[W],B=Tt(nt)?nt.bind(e,e):Tt(nt.get)?nt.get.bind(e,e):oe;({}).NODE_ENV!=="production"&&B===oe&&it(`Computed property "${W}" has no getter.`);const j=!Tt(nt)&&Tt(nt.set)?nt.set.bind(e):{}.NODE_ENV!=="production"?()=>{it(`Write operation failed: computed property "${W}" is readonly.`)}:oe,yt=Hd({get:B,set:j});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>yt.value,set:gt=>yt.value=gt}),{}.NODE_ENV!=="production"&&rt("Computed",W)}if(a)for(const W in a)Hl(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&&Ul(u,s,"c");function K(W,nt){xt(nt)?nt.forEach(B=>W(B.bind(e))):nt&&W(nt.bind(e))}if(K(Wf,h),K(Ks,f),K(qf,m),K(Zf,d),K(jf,k),K(Uf,S),K(ed,ct),K(td,b),K(Jf,z),K(Qf,C),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:B=>e[nt]=B})})}else s.exposed||(s.exposed={});x&&s.render===oe&&(s.render=x),A!=null&&(s.inheritAttrs=A),D&&(s.components=D),L&&(s.directives=L)}function cd(s,t,e=oe){xt(s)&&(s=vo(s));for(const n in s){const r=s[n];let i;Gt(r)?"default"in r?i=Yr(r.from||n,r.default,!0):i=Yr(r.from||n):i=Yr(r),me(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i,{}.NODE_ENV!=="production"&&e("Inject",n)}}function Ul(s,t,e){Ge(xt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function Hl(s,t,e,n){const r=n.includes(".")?Yl(e,n):()=>e[n];if(ie(s)){const i=t[s];Tt(i)?Mt(r,i):{}.NODE_ENV!=="production"&&it(`Invalid watch handler specified by key "${s}"`,i)}else if(Tt(s))Mt(r,s.bind(e));else if(Gt(s))if(xt(s))s.forEach(i=>Hl(i,t,e,n));else{const i=Tt(s.handler)?s.handler.bind(e):t[s.handler];Tt(i)?Mt(r,i,s):{}.NODE_ENV!=="production"&&it(`Invalid watch handler specified by key "${s.handler}"`,i)}else({}).NODE_ENV!=="production"&&it(`Invalid watch option: "${n}"`,s)}function yo(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=s.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!e&&!n?l=t:(l={},r.length&&r.forEach(c=>Vr(l,c,o,!0)),Vr(l,t,o)),Gt(t)&&i.set(t,l),l}function Vr(s,t,e,n=!1){const{mixins:r,extends:i}=t;i&&Vr(s,i,e,!0),r&&r.forEach(o=>Vr(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&it('"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:Wl,props:ql,emits:ql,methods:Yn,computed:Yn,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:Yn,directives:Yn,watch:fd,provide:Wl,inject:hd};function Wl(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 Yn(vo(s),vo(t))}function vo(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 Yn(s,t){return s?ne(Object.create(null),s,t):t}function ql(s,t){return s?xt(s)&&xt(t)?[...new Set([...s,...t])]:ne(Object.create(null),jl(s),jl(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 Zl(){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,r=null){Tt(n)||(n=ne({},n)),r!=null&&!Gt(r)&&({}.NODE_ENV!=="production"&&it("root props passed to app.mount() must be an object."),r=null);const i=Zl(),o=new WeakSet;let a=!1;const l=i.app={_uid:dd++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Cc,get config(){return i.config},set config(c){({}).NODE_ENV!=="production"&&it("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&it("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"&&it('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return i.mixins.includes(c)?{}.NODE_ENV!=="production"&&it("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):i.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Eo(c,i.config),u?({}.NODE_ENV!=="production"&&i.components[c]&&it(`Component "${c}" has already been registered in target app.`),i.components[c]=u,l):i.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&zl(c),u?({}.NODE_ENV!=="production"&&i.directives[c]&&it(`Directive "${c}" has already been registered in target app.`),i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&it("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__&&it("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=dt(n,r);return f.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(i.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,Cc)),Hr(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"&&it("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in i.provides&&it(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),i.provides[c]=u,l},runWithContext(c){const u=zn;zn=l;try{return c()}finally{zn=u}}};return l}}let zn=null;function md(s,t){if(!fe)({}).NODE_ENV!=="production"&&it("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 Yr(s,t,e=!1){const n=fe||ae;if(n||zn){const r=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:zn._context.provides;if(r&&s in r)return r[s];if(arguments.length>1)return e&&Tt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&it(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&it("inject() can only be used inside setup() or functional components.")}function gd(s,t,e,n=!1){const r={},i={};br(i,Gr,1),s.propsDefaults=Object.create(null),Ql(s,t,r,i);for(const o in s.propsOptions[0])o in r||(r[o]=void 0);({}).NODE_ENV!=="production"&&sc(t||{},r,s),e?s.props=n?r:of(r):s.type.props?s.props=r:s.props=i,s.attrs=i}function yd(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function vd(s,t,e,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=s,a=Dt(r),[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(Ar(s.emitsOptions,f))continue;const m=t[f];if(l)if(At(i,f))m!==i[f]&&(i[f]=m,c=!0);else{const d=dn(f);r[d]=_o(l,a,d,m,s,!1)}else m!==i[f]&&(i[f]=m,c=!0)}}}else{Ql(s,t,r,i)&&(c=!0);let u;for(const h in a)(!t||!At(t,h)&&((u=_s(h))===h||!At(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(r[h]=_o(l,a,h,void 0,s,!0)):delete r[h]);if(i!==a)for(const h in i)(!t||!At(t,h))&&(delete i[h],c=!0)}c&&qe(s,"set","$attrs"),{}.NODE_ENV!=="production"&&sc(t||{},r,s)}function Ql(s,t,e,n){const[r,i]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Pn(l))continue;const c=t[l];let u;r&&At(r,u=dn(l))?!i||!i.includes(u)?e[u]=c:(a||(a={}))[u]=c:Ar(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(i){const l=Dt(e),c=a||Xt;for(let u=0;u<i.length;u++){const h=i[u];e[h]=_o(r,l,h,c[h],s,!At(c,h))}}return o}function _o(s,t,e,n,r,i){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}=r;if(e in c)n=c[e];else{const u=Wn(r);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===_s(e))&&(n=!0))}return n}function Kl(s,t,e=!1){const n=t.propsCache,r=n.get(s);if(r)return r;const i=s.props,o={},a=[];let l=!1;if(!Tt(s)){const u=h=>{l=!0;const[f,m]=Kl(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(!i&&!l)return Gt(s)&&n.set(s,hn),hn;if(xt(i))for(let u=0;u<i.length;u++){({}).NODE_ENV!=="production"&&!ie(i[u])&&it("props must be strings when using array syntax.",i[u]);const h=dn(i[u]);Jl(h)&&(o[h]=Xt)}else if(i){({}).NODE_ENV!=="production"&&!Gt(i)&&it("invalid props options",i);for(const u in i){const h=dn(u);if(Jl(h)){const f=i[u],m=o[h]=xt(f)||Tt(f)?{type:f}:ne({},f);if(m){const d=ec(Boolean,m.type),k=ec(String,m.type);m[0]=d>-1,m[1]=k<0||d<k,(d>-1||At(m,"default"))&&a.push(h)}}}}const c=[o,a];return Gt(s)&&n.set(s,c),c}function Jl(s){return s[0]!=="$"&&!Pn(s)?!0:({}.NODE_ENV!=="production"&&it(`Invalid prop name: "${s}" is a reserved property.`),!1)}function bo(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function tc(s,t){return bo(s)===bo(t)}function ec(s,t){return xt(t)?t.findIndex(e=>tc(e,s)):Tt(t)&&tc(t,s)?0:-1}function sc(s,t,e){const n=Dt(t),r=e.propsOptions[0];for(const i in r){let o=r[i];o!=null&&_d(i,n[i],o,{}.NODE_ENV!=="production"?pn(n):n,!At(s,i)&&!At(s,_s(i)))}}function _d(s,t,e,n,r){const{type:i,required:o,validator:a,skipCheck:l}=e;if(o&&r){it('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(i!=null&&i!==!0&&!l){let c=!1;const u=xt(i)?i:[i],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){it(wd(s,t,h));return}}a&&!a(t,n)&&it('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=bo(t);if(bd(n)){const r=typeof s;e=r===n.toLowerCase(),!e&&r==="object"&&(e=s instanceof t)}else n==="Object"?e=Gt(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(_r).join(" | ")}`;const r=e[0],i=Yi(t),o=nc(t,r),a=nc(t,i);return e.length===1&&rc(r)&&!Cd(r,i)&&(n+=` with value ${o}`),n+=`, got ${i} `,rc(i)&&(n+=`with value ${a}.`),n}function nc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function rc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Cd(...s){return s.some(t=>t.toLowerCase()==="boolean")}const ic=s=>s[0]==="_"||s==="$stable",xo=s=>xt(s)?s.map(je):[je(s)],Sd=(s,t,e)=>{if(t._n)return t;const n=Pt((...r)=>({}.NODE_ENV!=="production"&&fe&&(!e||e.root===fe.root)&&it(`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.`),xo(t(...r))),e);return n._c=!1,n},oc=(s,t,e)=>{const n=s._ctx;for(const r in s){if(ic(r))continue;const i=s[r];if(Tt(i))t[r]=Sd(r,i,n);else if(i!=null){({}).NODE_ENV!=="production"&&it(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const o=xo(i);t[r]=()=>o}}},ac=(s,t)=>{({}).NODE_ENV!=="production"&&!ho(s.vnode)&&it("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=xo(t);s.slots.default=()=>e},Td=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=Dt(t),br(t,"_",e)):oc(t,s.slots={})}else s.slots={},t&&ac(s,t);br(s.slots,Gr,1)},kd=(s,t,e)=>{const{vnode:n,slots:r}=s;let i=!0,o=Xt;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Hs?(ne(r,t),qe(s,"set","$slots")):e&&a===1?i=!1:(ne(r,t),!e&&a===1&&delete r._):(i=!t.$stable,oc(t,r)),o=t}else t&&(ac(s,t),o={default:1});if(i)for(const a in r)!ic(a)&&o[a]==null&&delete r[a]};function wo(s,t,e,n,r=!1){if(xt(s)){s.forEach((f,m)=>wo(f,t&&(xt(t)?t[m]:t),e,n,r));return}if(Vn(n)&&!r)return;const i=n.shapeFlag&4?Hr(n.component)||n.component.proxy:n.el,o=r?null:i,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){it("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&&(ie(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=ie(l),m=me(l);if(f||m){const d=()=>{if(s.f){const k=f?At(h,l)?h[l]:u[l]:l.value;r?xt(k)&&$i(k,i):xt(k)?k.includes(i)||k.push(i):f?(u[l]=[i],At(h,l)&&(h[l]=u[l])):(l.value=[i],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"&&it("Invalid template ref type:",l,`(${typeof l})`)};o?(d.id=-1,Pe(d,e)):d()}else({}).NODE_ENV!=="production"&&it("Invalid template ref type:",l,`(${typeof l})`)}}let Bn,Ps;function cs(s,t){s.appContext.config.performance&&zr()&&Ps.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Df(s,t,zr()?Ps.now():Date.now())}function us(s,t){if(s.appContext.config.performance&&zr()){const e=`vue-${t}-${s.uid}`,n=e+":end";Ps.mark(n),Ps.measure(`<${Wr(s,s.type)}> ${t}`,e,n),Ps.clearMarks(e),Ps.clearMarks(n)}({}).NODE_ENV!=="production"&&Rf(s,t,zr()?Ps.now():Date.now())}function zr(){return Bn!==void 0||(typeof window<"u"&&window.performance?(Bn=!0,Ps=window.performance):Bn=!1),Bn}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.
|
|
17
|
+
`,...df(r)),console.warn(...i)}Ss()}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,r=` at <${Wr(s.component,s.type,n)}`,i=">"+e;return s.props?[r,...mf(s.props),i]:[r+i]}function mf(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Cl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Cl(s,t,e){return ie(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:me(t)?(t=Cl(s,Dt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Tt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Dt(t),e?t:[`${s}=`,t])}const to={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(r){Dn(r,t,e)}}function Ge(s,t,e,n){if(Tt(s)){const i=os(s,t,e,n);return i&&Vi(i)&&i.catch(o=>{Dn(o,t,e)}),i}const r=[];for(let i=0;i<s.length;i++)r.push(Ge(s[i],t,e,n));return r}function Dn(s,t,e,n=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?to[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){os(l,null,10,[s,o,a]);return}}gf(s,e,r,n)}function gf(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const r=to[t];if(e&&Ir(e),it(`Unhandled error${r?` during execution of ${r}`:""}`),e&&Dr(),n)throw s;console.error(s)}else console.error(s)}let Rn=!1,eo=!1;const xe=[];let Ze=0;const mn=[];let as=null,Es=0;const Sl=Promise.resolve();let so=null;const yf=100;function vf(s){const t=so||Sl;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,r=xe[n],i=An(r);i<s||i===s&&r.pre?t=n+1:e=n}return t}function Rr(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),Tl())}function Tl(){!Rn&&!eo&&(eo=!0,so=Sl.then(Ol))}function bf(s){const t=xe.indexOf(s);t>Ze&&xe.splice(t,1)}function kl(s){xt(s)?mn.push(...s):(!as||!as.includes(s,s.allowRecurse?Es+1:Es))&&mn.push(s),Tl()}function El(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"&&no(t,n))continue;xe.splice(e,1),e--,n()}}}function Pl(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),Es=0;Es<as.length;Es++)({}).NODE_ENV!=="production"&&no(s,as[Es])||as[Es]();as=null,Es=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 Ol(s){eo=!1,Rn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(xf);const t={}.NODE_ENV!=="production"?e=>no(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,Pl(s),Rn=!1,so=null,(xe.length||mn.length)&&Ol(s)}}function no(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>yf){const n=t.ownerInstance,r=n&&xc(n.type);return Dn(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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"&&(Bi().__VUE_HMR_RUNTIME__={createRecord:ro(Il),rerender:ro(Sf),reload:ro(Tf)});const qs=new Map;function wf(s){const t=s.type.__hmrId;let e=qs.get(t);e||(Il(t,s.type),e=qs.get(t)),e.instances.add(s)}function Cf(s){qs.get(s.type.__hmrId).instances.delete(s)}function Il(s,t){return qs.has(s)?!1:(qs.set(s,{initialDef:Mn(t),instances:new Set}),!0)}function Mn(s){return wc(s)?s.__vccOpts:s}function Sf(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 Tf(s,t){const e=qs.get(s);if(!e)return;t=Mn(t),Dl(e.initialDef,t);const n=[...e.instances];for(const r of n){const i=Mn(r.type);gn.has(i)||(i!==e.initialDef&&Dl(i,t),gn.add(i)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(gn.add(i),r.ceReload(t.styles),gn.delete(i)):r.parent?(r.parent.effect.dirty=!0,Rr(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}kl(()=>{for(const r of n)gn.delete(Mn(r.type))})}function Dl(s,t){ne(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function ro(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=[],io=!1;function Fn(s,...t){Qe?Qe.emit(s,...t):io||Nn.push({event:s,args:t})}function Rl(s,t){var e,n;Qe=s,Qe?(Qe.enabled=!0,Nn.forEach(({event:r,args:i})=>Qe.emit(r,...i)),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(i=>{Rl(i,t)}),setTimeout(()=>{Qe||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,io=!0,Nn=[])},3e3)):(io=!0,Nn=[])}function kf(s,t){Fn("app:init",s,t,{Fragment:$t,Text:Gn,Comment:Oe,Static:Xn})}function Ef(s){Fn("app:unmount",s)}const Pf=oo("component:added"),Al=oo("component:updated"),Of=oo("component:removed"),If=s=>{Qe&&typeof Qe.cleanupBuffer=="function"&&!Qe.cleanupBuffer(s)&&Of(s)};function oo(s){return t=>{Fn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Df=Ml("perf:start"),Rf=Ml("perf:end");function Ml(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||!(Bs(t)in h))&&it(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Bs(t)}" prop.`);else{const f=u[t];Tt(f)&&(f(...e)||it(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=e;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Xt;f&&(r=e.map(m=>ie(m)?m.trim():m)),h&&(r=e.map(Dh))}if({}.NODE_ENV!=="production"&&Af(s,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Bs(u)]&&it(`Event "${u}" is emitted in component ${Wr(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 "${_s(t)}" instead of "${t}".`)}let a,l=n[a=Bs(t)]||n[a=Bs(dn(t))];!l&&i&&(l=n[a=Bs(_s(t))]),l&&Ge(l,s,6,r);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,Ge(c,s,6,r)}}function Nl(s,t,e=!1){const n=t.emitsCache,r=n.get(s);if(r!==void 0)return r;const i=s.emits;let o={},a=!1;if(!Tt(s)){const l=c=>{const u=Nl(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!i&&!a?(Gt(s)&&n.set(s,null),null):(xt(i)?i.forEach(l=>o[l]=null):ne(o,i),Gt(s)&&n.set(s,o),o)}function Ar(s,t){return!s||!En(t)?!1:(t=t.slice(2).replace(/Once$/,""),At(s,t[0].toLowerCase()+t.slice(1))||At(s,_s(t))||At(s,t))}let ae=null,Mr=null;function Nr(s){const t=ae;return ae=s,Mr=s&&s.type.__scopeId||null,t}function Ln(s){Mr=s}function $n(){Mr=null}function Pt(s,t=ae,e){if(!t||s._n)return s;const n=(...r)=>{n._d&&cc(-1);const i=Nr(t);let o;try{o=s(...r)}finally{Nr(i),n._d&&cc(1)}return{}.NODE_ENV!=="production"&&Al(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let ao=!1;function Fr(){ao=!0}function lo(s){const{type:t,vnode:e,proxy:n,withProxy:r,props:i,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=Nr(s);({}).NODE_ENV!=="production"&&(ao=!1);try{if(e.shapeFlag&4){const w=r||n,b={}.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(w,{get(z,ct,O){return it(`Property '${String(ct)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(z,ct,O)}}):w;k=je(u.call(b,w,h,i,m,f,d)),_=l}else{const w=t;({}).NODE_ENV!=="production"&&l===i&&Fr(),k=je(w.length>1?w(i,{}.NODE_ENV!=="production"?{get attrs(){return Fr(),l},slots:a,emit:c}:{attrs:l,slots:a,emit:c}):w(i,null)),_=t.props?l:Nf(l)}}catch(w){jn.length=0,Dn(w,s,1),k=dt(Oe)}let y=k,p;if({}.NODE_ENV!=="production"&&k.patchFlag>0&&k.patchFlag&2048&&([y,p]=Fl(k)),_&&S!==!1){const w=Object.keys(_),{shapeFlag:b}=y;if(w.length){if(b&7)o&&w.some(gr)&&(_=Ff(_,o)),y=Is(y,_);else if({}.NODE_ENV!=="production"&&!ao&&y.type!==Oe){const z=Object.keys(l),ct=[],O=[];for(let R=0,A=z.length;R<A;R++){const D=z[R];En(D)?gr(D)||ct.push(D[2].toLowerCase()+D.slice(3)):O.push(D)}O.length&&it(`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&&it(`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"&&!Ll(y)&&it("Runtime directive used on component with non-element root node. The directives will not function as intended."),y=Is(y),y.dirs=y.dirs?y.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Ll(y)&&it("Component inside <Transition> renders non-element root node that cannot be animated."),y.transition=e.transition),{}.NODE_ENV!=="production"&&p?p(y):k=y,Nr(x),k}const Fl=s=>{const t=s.children,e=s.dynamicChildren,n=co(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Fl(n)}else return[s,void 0];const r=t.indexOf(n),i=e?e.indexOf(n):-1,o=a=>{t[r]=a,e&&(i>-1?e[i]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[je(n),o]};function co(s,t=!0){let e;for(let n=0;n<s.length;n++){const r=s[n];if(yn(r)){if(r.type!==Oe||r.children==="v-if"){if(e)return;if(e=r,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return co(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)(!gr(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Ll=s=>s.shapeFlag&7||s.type===Oe;function Lf(s,t,e){const{props:n,children:r,component:i}=s,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if({}.NODE_ENV!=="production"&&(r||a)&&Ws||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?$l(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]&&!Ar(c,f))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?$l(n,o,c):!0:!!o;return!1}function $l(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==s[i]&&!Ar(e,i))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"),Yf=s=>s.__isSuspense;function zf(s,t){t&&t.pendingBranch?xt(s)?t.effects.push(...s):t.effects.push(s):kl(s)}const Bf=Symbol.for("v-scx"),Gf=()=>{{const s=Yr(Bf);return s||{}.NODE_ENV!=="production"&&it("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Vl(s,t){return uo(s,null,t)}const Lr={};function Mt(s,t,e){return{}.NODE_ENV!=="production"&&!Tt(t)&&it("`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."),uo(s,t,e)}function uo(s,t,{immediate:e,deep:n,flush:r,once:i,onTrack:o,onTrigger:a}=Xt){if(t&&i){const z=t;t=(...ct)=>{z(...ct),b()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&it('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&&it('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&it('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&it('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=z=>{it("Invalid watch source: ",z,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=fe,u=z=>n===!0?z:Zs(z,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(z=>js(z)||Us(z)),h=()=>s.map(z=>{if(me(z))return z.value;if(js(z))return u(z);if(Tt(z))return os(z,c,2);({}).NODE_ENV!=="production"&&l(z)})):Tt(s)?t?h=()=>os(s,c,2):h=()=>(d&&d(),Ge(s,c,3,[S])):(h=oe,{}.NODE_ENV!=="production"&&l(s)),t&&n){const z=h;h=()=>Zs(z())}let d,S=z=>{d=p.onStop=()=>{os(z,c,4),d=p.onStop=void 0}},k;if(Ur)if(S=oe,t?e&&Ge(t,c,3,[h(),m?[]:void 0,S]):h(),r==="sync"){const z=Gf();k=z.__watcherHandles||(z.__watcherHandles=[])}else return oe;let _=m?new Array(s.length).fill(Lr):Lr;const x=()=>{if(!(!p.active||!p.dirty))if(t){const z=p.run();(n||f||(m?z.some((ct,O)=>bs(ct,_[O])):bs(z,_)))&&(d&&d(),Ge(t,c,3,[z,_===Lr?void 0:m&&_[0]===Lr?[]:_,S]),_=z)}else p.run()};x.allowRecurse=!!t;let y;r==="sync"?y=x:r==="post"?y=()=>Pe(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),y=()=>Rr(x));const p=new Xi(h,oe,y),w=Vh(),b=()=>{p.stop(),w&&$i(w.effects,p)};return{}.NODE_ENV!=="production"&&(p.onTrack=o,p.onTrigger=a),t?e?x():_=p.run():r==="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,r=ie(s)?s.includes(".")?Yl(n,s):()=>n[s]:s.bind(n,n);let i;Tt(t)?i=t:(i=t.handler,e=t);const o=Wn(this),a=uo(r,i.bind(n),e);return o(),a}function Yl(s,t){const e=t.split(".");return()=>{let n=s;for(let r=0;r<e.length&&n;r++)n=n[e[r]];return n}}function Zs(s,t,e=0,n){if(!Gt(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 r=0;r<s.length;r++)Zs(s[r],t,e,n);else if(ja(s)||zs(s))s.forEach(r=>{Zs(r,t,e,n)});else if(Ha(s))for(const r in s)Zs(s[r],t,e,n);return s}function zl(s){Ph(s)&&it("Do not use built-in directive ids as custom directive id: "+s)}function Qs(s,t){if(ae===null)return{}.NODE_ENV!=="production"&&it("withDirectives can only be used inside render functions."),s;const e=Hr(ae)||ae.proxy,n=s.dirs||(s.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,a,l=Xt]=t[r];i&&(Tt(i)&&(i={mounted:i,updated:i}),i.deep&&Zs(o),n.push({dir:i,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function Ks(s,t,e,n){const r=s.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[n];l&&(Cs(),Ge(l,e,8,[s.el,a,s,t]),Ss())}}/*! #__NO_SIDE_EFFECTS__ */function lt(s,t){return Tt(s)?(()=>ne({name:s.name},t,{setup:s}))():s}const Vn=s=>!!s.type.__asyncLoader,ho=s=>s.type.__isKeepAlive;function jf(s,t){Bl(s,"a",t)}function Uf(s,t){Bl(s,"da",t)}function Bl(s,t,e=fe){const n=s.__wdc||(s.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return s()});if($r(t,n,e),e){let r=e.parent;for(;r&&r.parent;)ho(r.parent.vnode)&&Hf(n,t,e,r),r=r.parent}}function Hf(s,t,e,n){const r=$r(t,s,n,!0);le(()=>{$i(n[t],r)},e)}function $r(s,t,e=fe,n=!1){if(e){const r=e[s]||(e[s]=[]),i=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;Cs();const a=Wn(e),l=Ge(t,e,s,o);return a(),Ss(),l});return n?r.unshift(i):r.push(i),i}else if({}.NODE_ENV!=="production"){const r=Bs(to[s].replace(/ hook$/,""));it(`${r} 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)=>(!Ur||s==="sp")&&$r(s,(...n)=>t(...n),e),Wf=ls("bm"),Ps=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){$r("ec",s,t)}function ge(s,t,e,n){let r;const i=e&&e[n];if(xt(s)||ie(s)){r=new Array(s.length);for(let o=0,a=s.length;o<a;o++)r[o]=t(s[o],o,void 0,i&&i[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&it(`The v-for range expect an integer value but got ${s}.`),r=new Array(s);for(let o=0;o<s;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(Gt(s))if(s[Symbol.iterator])r=Array.from(s,(o,a)=>t(o,a,void 0,i&&i[a]));else{const o=Object.keys(s);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];r[a]=t(s[c],c,a,i&&i[a])}}else r=[];return e&&(e[n]=r),r}function kt(s,t,e={},n,r){if(ae.isCE||ae.parent&&Vn(ae.parent)&&ae.parent.isCE)return t!=="default"&&(e.name=t),dt("slot",e,n&&n());let i=s[t];({}).NODE_ENV!=="production"&&i&&i.length>1&&(it("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."),i=()=>[]),i&&i._c&&(i._d=!1),F();const o=i&&Gl(i(e)),a=zt($t,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Gl(s){return s.some(t=>yn(t)?!(t.type===Oe||t.type===$t&&!Gl(t.children)):!0)?s:null}const fo=s=>s?gc(s)?Hr(s)||s.proxy:fo(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=>fo(s.parent),$root:s=>fo(s.root),$emit:s=>s.emit,$options:s=>yo(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Rr(s.update)}),$nextTick:s=>s.n||(s.n=vf.bind(s.proxy)),$watch:s=>Xf.bind(s)}),po=s=>s==="_"||s==="$",mo=(s,t)=>s!==Xt&&!s.__isScriptSetup&&At(s,t),Xl={get({_:s},t){const{ctx:e,setupState:n,data:r,props:i,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 r[t];case 4:return e[t];case 3:return i[t]}else{if(mo(n,t))return o[t]=1,n[t];if(r!==Xt&&At(r,t))return o[t]=2,r[t];if((c=s.propsOptions[0])&&At(c,t))return o[t]=3,i[t];if(e!==Xt&&At(e,t))return o[t]=4,e[t];go&&(o[t]=0)}}const u=Js[t];let h,f;if(u)return t==="$attrs"?(pe(s,"get",t),{}.NODE_ENV!=="production"&&Fr()):{}.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&&(!ie(t)||t.indexOf("__v")!==0)&&(r!==Xt&&po(t[0])&&At(r,t)?it(`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&&it(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:r,ctx:i}=s;return mo(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&At(r,t)?(it(`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"&&it(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&it(`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(i,t,{enumerable:!0,configurable:!0,value:e}):i[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:r,propsOptions:i}},o){let a;return!!e[o]||s!==Xt&&At(s,o)||mo(t,o)||(a=i[0])&&At(a,o)||At(n,o)||At(Js,o)||At(r.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"&&(Xl.ownKeys=s=>(it("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 rd(s){const{ctx:t,setupState:e}=s;Object.keys(Dt(e)).forEach(n=>{if(!e.__isScriptSetup){if(po(n[0])){it(`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 id(){return od().slots}function od(){const s=pc();return{}.NODE_ENV!=="production"&&!s&&it("useContext() called without active instance."),s.setupContext||(s.setupContext=bc(s))}function jl(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]?it(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let go=!0;function ld(s){const t=yo(s),e=s.proxy,n=s.ctx;go=!1,t.beforeCreate&&Ul(t.beforeCreate,s,"bc");const{data:r,computed:i,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:z,errorCaptured:ct,serverPrefetch:O,expose:R,inheritAttrs:A,components:D,directives:L,filters:X}=t,rt={}.NODE_ENV!=="production"?ad():null;if({}.NODE_ENV!=="production"){const[W]=s.propsOptions;if(W)for(const nt in W)rt("Props",nt)}if(c&&cd(c,n,rt),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"&&rt("Methods",W)):{}.NODE_ENV!=="production"&&it(`Method "${W}" has type "${typeof nt}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Tt(r)&&it("The data option must be a function. Plain object usage is no longer supported.");const W=r.call(e,e);if({}.NODE_ENV!=="production"&&Vi(W)&&it("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Gt(W))({}).NODE_ENV!=="production"&&it("data() should return an object.");else if(s.data=Jt(W),{}.NODE_ENV!=="production")for(const nt in W)rt("Data",nt),po(nt[0])||Object.defineProperty(n,nt,{configurable:!0,enumerable:!0,get:()=>W[nt],set:oe})}if(go=!0,i)for(const W in i){const nt=i[W],B=Tt(nt)?nt.bind(e,e):Tt(nt.get)?nt.get.bind(e,e):oe;({}).NODE_ENV!=="production"&&B===oe&&it(`Computed property "${W}" has no getter.`);const j=!Tt(nt)&&Tt(nt.set)?nt.set.bind(e):{}.NODE_ENV!=="production"?()=>{it(`Write operation failed: computed property "${W}" is readonly.`)}:oe,yt=Hd({get:B,set:j});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>yt.value,set:gt=>yt.value=gt}),{}.NODE_ENV!=="production"&&rt("Computed",W)}if(a)for(const W in a)Hl(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&&Ul(u,s,"c");function K(W,nt){xt(nt)?nt.forEach(B=>W(B.bind(e))):nt&&W(nt.bind(e))}if(K(Wf,h),K(Ps,f),K(qf,m),K(Zf,d),K(jf,S),K(Uf,k),K(ed,ct),K(td,b),K(Jf,z),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:B=>e[nt]=B})})}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=vo(s));for(const n in s){const r=s[n];let i;Gt(r)?"default"in r?i=Yr(r.from||n,r.default,!0):i=Yr(r.from||n):i=Yr(r),me(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i,{}.NODE_ENV!=="production"&&e("Inject",n)}}function Ul(s,t,e){Ge(xt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function Hl(s,t,e,n){const r=n.includes(".")?Yl(e,n):()=>e[n];if(ie(s)){const i=t[s];Tt(i)?Mt(r,i):{}.NODE_ENV!=="production"&&it(`Invalid watch handler specified by key "${s}"`,i)}else if(Tt(s))Mt(r,s.bind(e));else if(Gt(s))if(xt(s))s.forEach(i=>Hl(i,t,e,n));else{const i=Tt(s.handler)?s.handler.bind(e):t[s.handler];Tt(i)?Mt(r,i,s):{}.NODE_ENV!=="production"&&it(`Invalid watch handler specified by key "${s.handler}"`,i)}else({}).NODE_ENV!=="production"&&it(`Invalid watch option: "${n}"`,s)}function yo(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=s.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!e&&!n?l=t:(l={},r.length&&r.forEach(c=>Vr(l,c,o,!0)),Vr(l,t,o)),Gt(t)&&i.set(t,l),l}function Vr(s,t,e,n=!1){const{mixins:r,extends:i}=t;i&&Vr(s,i,e,!0),r&&r.forEach(o=>Vr(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&it('"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:Wl,props:ql,emits:ql,methods:Yn,computed:Yn,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:Yn,directives:Yn,watch:fd,provide:Wl,inject:hd};function Wl(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 Yn(vo(s),vo(t))}function vo(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 Yn(s,t){return s?ne(Object.create(null),s,t):t}function ql(s,t){return s?xt(s)&&xt(t)?[...new Set([...s,...t])]:ne(Object.create(null),jl(s),jl(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 Zl(){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,r=null){Tt(n)||(n=ne({},n)),r!=null&&!Gt(r)&&({}.NODE_ENV!=="production"&&it("root props passed to app.mount() must be an object."),r=null);const i=Zl(),o=new WeakSet;let a=!1;const l=i.app={_uid:dd++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Cc,get config(){return i.config},set config(c){({}).NODE_ENV!=="production"&&it("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&it("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"&&it('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return i.mixins.includes(c)?{}.NODE_ENV!=="production"&&it("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):i.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Eo(c,i.config),u?({}.NODE_ENV!=="production"&&i.components[c]&&it(`Component "${c}" has already been registered in target app.`),i.components[c]=u,l):i.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&zl(c),u?({}.NODE_ENV!=="production"&&i.directives[c]&&it(`Directive "${c}" has already been registered in target app.`),i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&it("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__&&it("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=dt(n,r);return f.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(i.reload=()=>{s(Is(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,Cc)),Hr(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"&&it("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in i.provides&&it(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),i.provides[c]=u,l},runWithContext(c){const u=zn;zn=l;try{return c()}finally{zn=u}}};return l}}let zn=null;function md(s,t){if(!fe)({}).NODE_ENV!=="production"&&it("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 Yr(s,t,e=!1){const n=fe||ae;if(n||zn){const r=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:zn._context.provides;if(r&&s in r)return r[s];if(arguments.length>1)return e&&Tt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&it(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&it("inject() can only be used inside setup() or functional components.")}function gd(s,t,e,n=!1){const r={},i={};br(i,Gr,1),s.propsDefaults=Object.create(null),Ql(s,t,r,i);for(const o in s.propsOptions[0])o in r||(r[o]=void 0);({}).NODE_ENV!=="production"&&sc(t||{},r,s),e?s.props=n?r:of(r):s.type.props?s.props=r:s.props=i,s.attrs=i}function yd(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function vd(s,t,e,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=s,a=Dt(r),[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(Ar(s.emitsOptions,f))continue;const m=t[f];if(l)if(At(i,f))m!==i[f]&&(i[f]=m,c=!0);else{const d=dn(f);r[d]=_o(l,a,d,m,s,!1)}else m!==i[f]&&(i[f]=m,c=!0)}}}else{Ql(s,t,r,i)&&(c=!0);let u;for(const h in a)(!t||!At(t,h)&&((u=_s(h))===h||!At(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(r[h]=_o(l,a,h,void 0,s,!0)):delete r[h]);if(i!==a)for(const h in i)(!t||!At(t,h))&&(delete i[h],c=!0)}c&&qe(s,"set","$attrs"),{}.NODE_ENV!=="production"&&sc(t||{},r,s)}function Ql(s,t,e,n){const[r,i]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Pn(l))continue;const c=t[l];let u;r&&At(r,u=dn(l))?!i||!i.includes(u)?e[u]=c:(a||(a={}))[u]=c:Ar(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(i){const l=Dt(e),c=a||Xt;for(let u=0;u<i.length;u++){const h=i[u];e[h]=_o(r,l,h,c[h],s,!At(c,h))}}return o}function _o(s,t,e,n,r,i){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}=r;if(e in c)n=c[e];else{const u=Wn(r);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===_s(e))&&(n=!0))}return n}function Kl(s,t,e=!1){const n=t.propsCache,r=n.get(s);if(r)return r;const i=s.props,o={},a=[];let l=!1;if(!Tt(s)){const u=h=>{l=!0;const[f,m]=Kl(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(!i&&!l)return Gt(s)&&n.set(s,hn),hn;if(xt(i))for(let u=0;u<i.length;u++){({}).NODE_ENV!=="production"&&!ie(i[u])&&it("props must be strings when using array syntax.",i[u]);const h=dn(i[u]);Jl(h)&&(o[h]=Xt)}else if(i){({}).NODE_ENV!=="production"&&!Gt(i)&&it("invalid props options",i);for(const u in i){const h=dn(u);if(Jl(h)){const f=i[u],m=o[h]=xt(f)||Tt(f)?{type:f}:ne({},f);if(m){const d=ec(Boolean,m.type),S=ec(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 Gt(s)&&n.set(s,c),c}function Jl(s){return s[0]!=="$"&&!Pn(s)?!0:({}.NODE_ENV!=="production"&&it(`Invalid prop name: "${s}" is a reserved property.`),!1)}function bo(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function tc(s,t){return bo(s)===bo(t)}function ec(s,t){return xt(t)?t.findIndex(e=>tc(e,s)):Tt(t)&&tc(t,s)?0:-1}function sc(s,t,e){const n=Dt(t),r=e.propsOptions[0];for(const i in r){let o=r[i];o!=null&&_d(i,n[i],o,{}.NODE_ENV!=="production"?pn(n):n,!At(s,i)&&!At(s,_s(i)))}}function _d(s,t,e,n,r){const{type:i,required:o,validator:a,skipCheck:l}=e;if(o&&r){it('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(i!=null&&i!==!0&&!l){let c=!1;const u=xt(i)?i:[i],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){it(wd(s,t,h));return}}a&&!a(t,n)&&it('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=bo(t);if(bd(n)){const r=typeof s;e=r===n.toLowerCase(),!e&&r==="object"&&(e=s instanceof t)}else n==="Object"?e=Gt(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(_r).join(" | ")}`;const r=e[0],i=Yi(t),o=nc(t,r),a=nc(t,i);return e.length===1&&rc(r)&&!Cd(r,i)&&(n+=` with value ${o}`),n+=`, got ${i} `,rc(i)&&(n+=`with value ${a}.`),n}function nc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function rc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Cd(...s){return s.some(t=>t.toLowerCase()==="boolean")}const ic=s=>s[0]==="_"||s==="$stable",xo=s=>xt(s)?s.map(je):[je(s)],Sd=(s,t,e)=>{if(t._n)return t;const n=Pt((...r)=>({}.NODE_ENV!=="production"&&fe&&(!e||e.root===fe.root)&&it(`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.`),xo(t(...r))),e);return n._c=!1,n},oc=(s,t,e)=>{const n=s._ctx;for(const r in s){if(ic(r))continue;const i=s[r];if(Tt(i))t[r]=Sd(r,i,n);else if(i!=null){({}).NODE_ENV!=="production"&&it(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const o=xo(i);t[r]=()=>o}}},ac=(s,t)=>{({}).NODE_ENV!=="production"&&!ho(s.vnode)&&it("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=xo(t);s.slots.default=()=>e},Td=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=Dt(t),br(t,"_",e)):oc(t,s.slots={})}else s.slots={},t&&ac(s,t);br(s.slots,Gr,1)},kd=(s,t,e)=>{const{vnode:n,slots:r}=s;let i=!0,o=Xt;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Ws?(ne(r,t),qe(s,"set","$slots")):e&&a===1?i=!1:(ne(r,t),!e&&a===1&&delete r._):(i=!t.$stable,oc(t,r)),o=t}else t&&(ac(s,t),o={default:1});if(i)for(const a in r)!ic(a)&&o[a]==null&&delete r[a]};function wo(s,t,e,n,r=!1){if(xt(s)){s.forEach((f,m)=>wo(f,t&&(xt(t)?t[m]:t),e,n,r));return}if(Vn(n)&&!r)return;const i=n.shapeFlag&4?Hr(n.component)||n.component.proxy:n.el,o=r?null:i,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){it("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&&(ie(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=ie(l),m=me(l);if(f||m){const d=()=>{if(s.f){const S=f?At(h,l)?h[l]:u[l]:l.value;r?xt(S)&&$i(S,i):xt(S)?S.includes(i)||S.push(i):f?(u[l]=[i],At(h,l)&&(h[l]=u[l])):(l.value=[i],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"&&it("Invalid template ref type:",l,`(${typeof l})`)};o?(d.id=-1,Pe(d,e)):d()}else({}).NODE_ENV!=="production"&&it("Invalid template ref type:",l,`(${typeof l})`)}}let Bn,Os;function cs(s,t){s.appContext.config.performance&&zr()&&Os.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Df(s,t,zr()?Os.now():Date.now())}function us(s,t){if(s.appContext.config.performance&&zr()){const e=`vue-${t}-${s.uid}`,n=e+":end";Os.mark(n),Os.measure(`<${Wr(s,s.type)}> ${t}`,e,n),Os.clearMarks(e),Os.clearMarks(n)}({}).NODE_ENV!=="production"&&Rf(s,t,zr()?Os.now():Date.now())}function zr(){return Bn!==void 0||(typeof window<"u"&&window.performance?(Bn=!0,Os=window.performance):Bn=!1),Bn}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=zf;function Pd(s){return Od(s)}function Od(s,t){Ed();const e=Bi();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Rl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:m=oe,insertStaticContent:d}=s,k=(w,I,$,U=null,q=null,et=null,ot=void 0,Q=null,st={}.NODE_ENV!=="production"&&Hs?!1:!!I.dynamicChildren)=>{if(w===I)return;w&&!Hn(w,I)&&(U=ee(w),Z(w,q,et,!0),w=null),I.patchFlag===-2&&(st=!1,I.dynamicChildren=null);const{type:J,ref:ht,shapeFlag:_t}=I;switch(J){case Gn:S(w,I,$,U);break;case Oe:_(w,I,$,U);break;case Xn:w==null?C(I,$,U,ot):{}.NODE_ENV!=="production"&&y(w,I,$,ot);break;case $t:L(w,I,$,U,q,et,ot,Q,st);break;default:_t&1?b(w,I,$,U,q,et,ot,Q,st):_t&6?X(w,I,$,U,q,et,ot,Q,st):_t&64||_t&128?J.process(w,I,$,U,q,et,ot,Q,st,Fe):{}.NODE_ENV!=="production"&&it("Invalid VNode type:",J,`(${typeof J})`)}ht!=null&&q&&wo(ht,w&&w.ref,et,I||w,!I)},S=(w,I,$,U)=>{if(w==null)n(I.el=a(I.children),$,U);else{const q=I.el=w.el;I.children!==w.children&&c(q,I.children)}},_=(w,I,$,U)=>{w==null?n(I.el=l(I.children||""),$,U):I.el=w.el},C=(w,I,$,U)=>{[w.el,w.anchor]=d(w.children,I,$,U,w.el,w.anchor)},y=(w,I,$,U)=>{if(I.children!==w.children){const q=f(w.anchor);x(w),[I.el,I.anchor]=d(I.children,$,q,U)}else I.el=w.el,I.anchor=w.anchor},p=({el:w,anchor:I},$,U)=>{let q;for(;w&&w!==I;)q=f(w),n(w,$,U),w=q;n(I,$,U)},x=({el:w,anchor:I})=>{let $;for(;w&&w!==I;)$=f(w),r(w),w=$;r(I)},b=(w,I,$,U,q,et,ot,Q,st)=>{I.type==="svg"?ot="svg":I.type==="math"&&(ot="mathml"),w==null?z(I,$,U,q,et,ot,Q,st):R(w,I,q,et,ot,Q,st)},z=(w,I,$,U,q,et,ot,Q)=>{let st,J;const{props:ht,shapeFlag:_t,transition:vt,dirs:St}=w;if(st=w.el=o(w.type,et,ht&&ht.is,ht),_t&8?u(st,w.children):_t&16&&O(w.children,st,null,U,q,Co(w,et),ot,Q),St&&Qs(w,null,U,"created"),ct(st,w,w.scopeId,ot,U),ht){for(const Vt in ht)Vt!=="value"&&!Pn(Vt)&&i(st,Vt,null,ht[Vt],et,w.children,U,q,It);"value"in ht&&i(st,"value",null,ht.value,et),(J=ht.onVnodeBeforeMount)&&Ke(J,U,w)}({}).NODE_ENV!=="production"&&(Object.defineProperty(st,"__vnode",{value:w,enumerable:!1}),Object.defineProperty(st,"__vueParentComponent",{value:U,enumerable:!1})),St&&Qs(w,null,U,"beforeMount");const Rt=Id(q,vt);Rt&&vt.beforeEnter(st),n(st,I,$),((J=ht&&ht.onVnodeMounted)||Rt||St)&&Pe(()=>{J&&Ke(J,U,w),Rt&&vt.enter(st),St&&Qs(w,null,U,"mounted")},q)},ct=(w,I,$,U,q)=>{if($&&m(w,$),U)for(let et=0;et<U.length;et++)m(w,U[et]);if(q){let et=q.subTree;if({}.NODE_ENV!=="production"&&et.patchFlag>0&&et.patchFlag&2048&&(et=co(et.children)||et),I===et){const ot=q.vnode;ct(w,ot,ot.scopeId,ot.slotScopeIds,q.parent)}}},O=(w,I,$,U,q,et,ot,Q,st=0)=>{for(let J=st;J<w.length;J++){const ht=w[J]=Q?Is(w[J]):je(w[J]);k(null,ht,I,$,U,q,et,ot,Q)}},R=(w,I,$,U,q,et,ot)=>{const Q=I.el=w.el;let{patchFlag:st,dynamicChildren:J,dirs:ht}=I;st|=w.patchFlag&16;const _t=w.props||Xt,vt=I.props||Xt;let St;if($&&tn($,!1),(St=vt.onVnodeBeforeUpdate)&&Ke(St,$,I,w),ht&&Qs(I,w,$,"beforeUpdate"),$&&tn($,!0),{}.NODE_ENV!=="production"&&Hs&&(st=0,ot=!1,J=null),J?(A(w.dynamicChildren,J,Q,$,U,Co(I,q),et),{}.NODE_ENV!=="production"&&Br(w,I)):ot||B(w,I,Q,null,$,U,Co(I,q),et,!1),st>0){if(st&16)D(Q,I,_t,vt,$,U,q);else if(st&2&&_t.class!==vt.class&&i(Q,"class",null,vt.class,q),st&4&&i(Q,"style",_t.style,vt.style,q),st&8){const Rt=I.dynamicProps;for(let Vt=0;Vt<Rt.length;Vt++){const Ut=Rt[Vt],se=_t[Ut],Te=vt[Ut];(Te!==se||Ut==="value")&&i(Q,Ut,se,Te,q,w.children,$,U,It)}}st&1&&w.children!==I.children&&u(Q,I.children)}else!ot&&J==null&&D(Q,I,_t,vt,$,U,q);((St=vt.onVnodeUpdated)||ht)&&Pe(()=>{St&&Ke(St,$,I,w),ht&&Qs(I,w,$,"updated")},U)},A=(w,I,$,U,q,et,ot)=>{for(let Q=0;Q<I.length;Q++){const st=w[Q],J=I[Q],ht=st.el&&(st.type===$t||!Hn(st,J)||st.shapeFlag&70)?h(st.el):$;k(st,J,ht,null,U,q,et,ot,!0)}},D=(w,I,$,U,q,et,ot)=>{if($!==U){if($!==Xt)for(const Q in $)!Pn(Q)&&!(Q in U)&&i(w,Q,$[Q],null,ot,I.children,q,et,It);for(const Q in U){if(Pn(Q))continue;const st=U[Q],J=$[Q];st!==J&&Q!=="value"&&i(w,Q,J,st,ot,I.children,q,et,It)}"value"in U&&i(w,"value",$.value,U.value,ot)}},L=(w,I,$,U,q,et,ot,Q,st)=>{const J=I.el=w?w.el:a(""),ht=I.anchor=w?w.anchor:a("");let{patchFlag:_t,dynamicChildren:vt,slotScopeIds:St}=I;({}).NODE_ENV!=="production"&&(Hs||_t&2048)&&(_t=0,st=!1,vt=null),St&&(Q=Q?Q.concat(St):St),w==null?(n(J,$,U),n(ht,$,U),O(I.children||[],$,ht,q,et,ot,Q,st)):_t>0&&_t&64&&vt&&w.dynamicChildren?(A(w.dynamicChildren,vt,$,q,et,ot,Q),{}.NODE_ENV!=="production"?Br(w,I):(I.key!=null||q&&I===q.subTree)&&Br(w,I,!0)):B(w,I,$,ht,q,et,ot,Q,st)},X=(w,I,$,U,q,et,ot,Q,st)=>{I.slotScopeIds=Q,w==null?I.shapeFlag&512?q.ctx.activate(I,$,U,ot,st):rt(I,$,U,q,et,ot,st):K(w,I,st)},rt=(w,I,$,U,q,et,ot)=>{const Q=w.component=Vd(w,U,q);if({}.NODE_ENV!=="production"&&Q.type.__hmrId&&wf(Q),{}.NODE_ENV!=="production"&&(Ir(w),cs(Q,"mount")),ho(w)&&(Q.ctx.renderer=Fe),{}.NODE_ENV!=="production"&&cs(Q,"init"),zd(Q),{}.NODE_ENV!=="production"&&us(Q,"init"),Q.asyncDep){if(q&&q.registerDep(Q,W),!w.el){const st=Q.subTree=dt(Oe);_(null,st,I,$)}}else W(Q,w,I,$,q,et,ot);({}).NODE_ENV!=="production"&&(Dr(),us(Q,"mount"))},K=(w,I,$)=>{const U=I.component=w.component;if(Lf(w,I,$))if(U.asyncDep&&!U.asyncResolved){({}).NODE_ENV!=="production"&&Ir(I),nt(U,I,$),{}.NODE_ENV!=="production"&&Dr();return}else U.next=I,bf(U.update),U.effect.dirty=!0,U.update();else I.el=w.el,U.vnode=I},W=(w,I,$,U,q,et,ot)=>{const Q=()=>{if(w.isMounted){let{next:ht,bu:_t,u:vt,parent:St,vnode:Rt}=w;{const $s=lc(w);if($s){ht&&(ht.el=Rt.el,nt(w,ht,ot)),$s.asyncDep.then(()=>{w.isUnmounted||Q()});return}}let Vt=ht,Ut;({}).NODE_ENV!=="production"&&Ir(ht||w.vnode),tn(w,!1),ht?(ht.el=Rt.el,nt(w,ht,ot)):ht=Rt,_t&&On(_t),(Ut=ht.props&&ht.props.onVnodeBeforeUpdate)&&Ke(Ut,St,ht,Rt),tn(w,!0),{}.NODE_ENV!=="production"&&cs(w,"render");const se=lo(w);({}).NODE_ENV!=="production"&&us(w,"render");const Te=w.subTree;w.subTree=se,{}.NODE_ENV!=="production"&&cs(w,"patch"),k(Te,se,h(Te.el),ee(Te),w,q,et),{}.NODE_ENV!=="production"&&us(w,"patch"),ht.el=se.el,Vt===null&&$f(w,se.el),vt&&Pe(vt,q),(Ut=ht.props&&ht.props.onVnodeUpdated)&&Pe(()=>Ke(Ut,St,ht,Rt),q),{}.NODE_ENV!=="production"&&Al(w),{}.NODE_ENV!=="production"&&Dr()}else{let ht;const{el:_t,props:vt}=I,{bm:St,m:Rt,parent:Vt}=w,Ut=Vn(I);if(tn(w,!1),St&&On(St),!Ut&&(ht=vt&&vt.onVnodeBeforeMount)&&Ke(ht,Vt,I),tn(w,!0),_t&&Ae){const se=()=>{({}).NODE_ENV!=="production"&&cs(w,"render"),w.subTree=lo(w),{}.NODE_ENV!=="production"&&us(w,"render"),{}.NODE_ENV!=="production"&&cs(w,"hydrate"),Ae(_t,w.subTree,w,q,null),{}.NODE_ENV!=="production"&&us(w,"hydrate")};Ut?I.type.__asyncLoader().then(()=>!w.isUnmounted&&se()):se()}else{({}).NODE_ENV!=="production"&&cs(w,"render");const se=w.subTree=lo(w);({}).NODE_ENV!=="production"&&us(w,"render"),{}.NODE_ENV!=="production"&&cs(w,"patch"),k(null,se,$,U,w,q,et),{}.NODE_ENV!=="production"&&us(w,"patch"),I.el=se.el}if(Rt&&Pe(Rt,q),!Ut&&(ht=vt&&vt.onVnodeMounted)){const se=I;Pe(()=>Ke(ht,Vt,se),q)}(I.shapeFlag&256||Vt&&Vn(Vt.vnode)&&Vt.vnode.shapeFlag&256)&&w.a&&Pe(w.a,q),w.isMounted=!0,{}.NODE_ENV!=="production"&&Pf(w),I=$=U=null}},st=w.effect=new Xi(Q,oe,()=>Rr(J),w.scope),J=w.update=()=>{st.dirty&&st.run()};J.id=w.uid,tn(w,!0),{}.NODE_ENV!=="production"&&(st.onTrack=w.rtc?ht=>On(w.rtc,ht):void 0,st.onTrigger=w.rtg?ht=>On(w.rtg,ht):void 0,J.ownerInstance=w),J()},nt=(w,I,$)=>{I.component=w;const U=w.vnode.props;w.vnode=I,w.next=null,vd(w,I.props,U,$),kd(w,I.children,$),Cs(),El(w),Ss()},B=(w,I,$,U,q,et,ot,Q,st=!1)=>{const J=w&&w.children,ht=w?w.shapeFlag:0,_t=I.children,{patchFlag:vt,shapeFlag:St}=I;if(vt>0){if(vt&128){yt(J,_t,$,U,q,et,ot,Q,st);return}else if(vt&256){j(J,_t,$,U,q,et,ot,Q,st);return}}St&8?(ht&16&&It(J,q,et),_t!==J&&u($,_t)):ht&16?St&16?yt(J,_t,$,U,q,et,ot,Q,st):It(J,q,et,!0):(ht&8&&u($,""),St&16&&O(_t,$,U,q,et,ot,Q,st))},j=(w,I,$,U,q,et,ot,Q,st)=>{w=w||hn,I=I||hn;const J=w.length,ht=I.length,_t=Math.min(J,ht);let vt;for(vt=0;vt<_t;vt++){const St=I[vt]=st?Is(I[vt]):je(I[vt]);k(w[vt],St,$,null,q,et,ot,Q,st)}J>ht?It(w,q,et,!0,!1,_t):O(I,$,U,q,et,ot,Q,st,_t)},yt=(w,I,$,U,q,et,ot,Q,st)=>{let J=0;const ht=I.length;let _t=w.length-1,vt=ht-1;for(;J<=_t&&J<=vt;){const St=w[J],Rt=I[J]=st?Is(I[J]):je(I[J]);if(Hn(St,Rt))k(St,Rt,$,null,q,et,ot,Q,st);else break;J++}for(;J<=_t&&J<=vt;){const St=w[_t],Rt=I[vt]=st?Is(I[vt]):je(I[vt]);if(Hn(St,Rt))k(St,Rt,$,null,q,et,ot,Q,st);else break;_t--,vt--}if(J>_t){if(J<=vt){const St=vt+1,Rt=St<ht?I[St].el:U;for(;J<=vt;)k(null,I[J]=st?Is(I[J]):je(I[J]),$,Rt,q,et,ot,Q,st),J++}}else if(J>vt)for(;J<=_t;)Z(w[J],q,et,!0),J++;else{const St=J,Rt=J,Vt=new Map;for(J=Rt;J<=vt;J++){const _e=I[J]=st?Is(I[J]):je(I[J]);_e.key!=null&&({}.NODE_ENV!=="production"&&Vt.has(_e.key)&&it("Duplicate keys found during update:",JSON.stringify(_e.key),"Make sure keys are unique."),Vt.set(_e.key,J))}let Ut,se=0;const Te=vt-Rt+1;let $s=!1,Oi=0;const ln=new Array(Te);for(J=0;J<Te;J++)ln[J]=0;for(J=St;J<=_t;J++){const _e=w[J];if(se>=Te){Z(_e,q,et,!0);continue}let ke;if(_e.key!=null)ke=Vt.get(_e.key);else for(Ut=Rt;Ut<=vt;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>=Oi?Oi=ke:$s=!0,k(_e,I[ke],$,null,q,et,ot,Q,st),se++)}const Ii=$s?Dd(ln):hn;for(Ut=Ii.length-1,J=Te-1;J>=0;J--){const _e=Rt+J,ke=I[_e],Di=_e+1<ht?I[_e+1].el:U;ln[J]===0?k(null,ke,$,Di,q,et,ot,Q,st):$s&&(Ut<0||J!==Ii[Ut]?gt(ke,$,Di,2):Ut--)}}},gt=(w,I,$,U,q=null)=>{const{el:et,type:ot,transition:Q,children:st,shapeFlag:J}=w;if(J&6){gt(w.component.subTree,I,$,U);return}if(J&128){w.suspense.move(I,$,U);return}if(J&64){ot.move(w,I,$,Fe);return}if(ot===$t){n(et,I,$);for(let _t=0;_t<st.length;_t++)gt(st[_t],I,$,U);n(w.anchor,I,$);return}if(ot===Xn){p(w,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:_t,delayLeave:vt,afterLeave:St}=Q,Rt=()=>n(et,I,$),Vt=()=>{_t(et,()=>{Rt(),St&&St()})};vt?vt(et,Rt,Vt):Vt()}else n(et,I,$)},Z=(w,I,$,U=!1,q=!1)=>{const{type:et,props:ot,ref:Q,children:st,dynamicChildren:J,shapeFlag:ht,patchFlag:_t,dirs:vt}=w;if(Q!=null&&wo(Q,null,$,w,!0),ht&256){I.ctx.deactivate(w);return}const St=ht&1&&vt,Rt=!Vn(w);let Vt;if(Rt&&(Vt=ot&&ot.onVnodeBeforeUnmount)&&Ke(Vt,I,w),ht&6)te(w.component,$,U);else{if(ht&128){w.suspense.unmount($,U);return}St&&Qs(w,null,I,"beforeUnmount"),ht&64?w.type.remove(w,I,$,q,Fe,U):J&&(et!==$t||_t>0&&_t&64)?It(J,I,$,!1,!0):(et===$t&&_t&384||!q&&ht&16)&&It(st,I,$),U&&V(w)}(Rt&&(Vt=ot&&ot.onVnodeUnmounted)||St)&&Pe(()=>{Vt&&Ke(Vt,I,w),St&&Qs(w,null,I,"unmounted")},$)},V=w=>{const{type:I,el:$,anchor:U,transition:q}=w;if(I===$t){({}).NODE_ENV!=="production"&&w.patchFlag>0&&w.patchFlag&2048&&q&&!q.persisted?w.children.forEach(ot=>{ot.type===Oe?r(ot.el):V(ot)}):Qt($,U);return}if(I===Xn){x(w);return}const et=()=>{r($),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(w.shapeFlag&1&&q&&!q.persisted){const{leave:ot,delayLeave:Q}=q,st=()=>ot($,et);Q?Q(w.el,et,st):st()}else et()},Qt=(w,I)=>{let $;for(;w!==I;)$=f(w),r(w),w=$;r(I)},te=(w,I,$)=>{({}).NODE_ENV!=="production"&&w.type.__hmrId&&Cf(w);const{bum:U,scope:q,update:et,subTree:ot,um:Q}=w;U&&On(U),q.stop(),et&&(et.active=!1,Z(ot,w,I,$)),Q&&Pe(Q,I),Pe(()=>{w.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve()),{}.NODE_ENV!=="production"&&If(w)},It=(w,I,$,U=!1,q=!1,et=0)=>{for(let ot=et;ot<w.length;ot++)Z(w[ot],I,$,U,q)},ee=w=>w.shapeFlag&6?ee(w.component.subTree):w.shapeFlag&128?w.suspense.next():f(w.anchor||w.el);let Yt=!1;const G=(w,I,$)=>{w==null?I._vnode&&Z(I._vnode,null,null,!0):k(I._vnode||null,w,I,null,null,null,$),Yt||(Yt=!0,El(),Pl(),Yt=!1),I._vnode=w},Fe={p:k,um:Z,m:gt,r:V,mt:rt,mc:O,pc:B,pbc:A,n:ee,o:s};let Ye,Ae;return t&&([Ye,Ae]=t(Fe)),{render:G,hydrate:Ye,createApp:pd(G,Ye)}}function Co({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 Br(s,t,e=!1){const n=s.children,r=t.children;if(xt(n)&&xt(r))for(let i=0;i<n.length;i++){const o=n[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Is(r[i]),a.el=o.el),e||Br(o,a)),a.type===Gn&&(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,r,i,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(r=e[e.length-1],s[r]<c){t[n]=r,e.push(n);continue}for(i=0,o=e.length-1;i<o;)a=i+o>>1,s[e[a]]<c?i=a+1:o=a;c<s[e[i]]&&(i>0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,o=e[i-1];i-- >0;)e[i]=o,o=t[o];return e}function lc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:lc(t)}const Rd=s=>s.__isTeleport,$t=Symbol.for("v-fgt"),Gn=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 cc(s){Un+=s}function uc(s){return s.dynamicChildren=Un>0?Xe||hn:null,Ad(),Un>0&&Xe&&Xe.push(s),s}function H(s,t,e,n,r,i){return uc(P(s,t,e,n,r,i,!0))}function zt(s,t,e,n,r){return uc(dt(s,t,e,n,r,!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)=>fc(...s),Gr="__vInternal",hc=({key:s})=>s??null,Xr=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?ie(s)||me(s)||Tt(s)?{i:ae,r:s,k:t,f:!!e}:s:null);function P(s,t=null,e=null,n=0,r=null,i=s===$t?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&hc(t),ref:t&&Xr(t),scopeId:Mr,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ae};return a?(So(l,e),i&128&&s.normalize(l)):e&&(l.shapeFlag|=ie(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&it("VNode created with invalid key (NaN). VNode type:",l.type),Un>0&&!o&&Xe&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Xe.push(l),l}const dt={}.NODE_ENV!=="production"?Md:fc;function fc(s,t=null,e=null,n=0,r=null,i=!1){if((!s||s===Vf)&&({}.NODE_ENV!=="production"&&!s&&it(`Invalid vnode type when creating vnode: ${s}.`),s=Oe),yn(s)){const a=Os(s,t,!0);return e&&So(a,e),Un>0&&!i&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(s)]=a:Xe.push(a)),a.patchFlag|=-2,a}if(wc(s)&&(s=s.__vccOpts),t){t=Nd(t);let{class:a,style:l}=t;a&&!ie(a)&&(t.class=re(a)),Gt(l)&&(Ki(l)&&!xt(l)&&(l=ne({},l)),t.style=Y(l))}const o=ie(s)?1:Yf(s)?128:Rd(s)?64:Gt(s)?4:Tt(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&Ki(s)&&(s=Dt(s),it("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,r,o,i,!0)}function Nd(s){return s?Ki(s)||Gr in s?ne({},s):s:null}function
|
|
20
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Pe=zf;function Pd(s){return Od(s)}function Od(s,t){Ed();const e=Bi();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Rl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:r,patchProp:i,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:_t}=I;switch(J){case Gn: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:_t&1?b(C,I,$,U,q,et,ot,Q,st):_t&6?X(C,I,$,U,q,et,ot,Q,st):_t&64||_t&128?J.process(C,I,$,U,q,et,ot,Q,st,Fe):{}.NODE_ENV!=="production"&&it("Invalid VNode type:",J,`(${typeof J})`)}ht!=null&&q&&wo(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),r(C),C=$;r(I)},b=(C,I,$,U,q,et,ot,Q,st)=>{I.type==="svg"?ot="svg":I.type==="math"&&(ot="mathml"),C==null?z(I,$,U,q,et,ot,Q,st):R(C,I,q,et,ot,Q,st)},z=(C,I,$,U,q,et,ot,Q)=>{let st,J;const{props:ht,shapeFlag:_t,transition:vt,dirs:St}=C;if(st=C.el=o(C.type,et,ht&&ht.is,ht),_t&8?u(st,C.children):_t&16&&O(C.children,st,null,U,q,Co(C,et),ot,Q),St&&Ks(C,null,U,"created"),ct(st,C,C.scopeId,ot,U),ht){for(const Vt in ht)Vt!=="value"&&!Pn(Vt)&&i(st,Vt,null,ht[Vt],et,C.children,U,q,It);"value"in ht&&i(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})),St&&Ks(C,null,U,"beforeMount");const Rt=Id(q,vt);Rt&&vt.beforeEnter(st),n(st,I,$),((J=ht&&ht.onVnodeMounted)||Rt||St)&&Pe(()=>{J&&Ke(J,U,C),Rt&&vt.enter(st),St&&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=co(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?Ds(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 _t=C.props||Xt,vt=I.props||Xt;let St;if($&&tn($,!1),(St=vt.onVnodeBeforeUpdate)&&Ke(St,$,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,Co(I,q),et),{}.NODE_ENV!=="production"&&Br(C,I)):ot||B(C,I,Q,null,$,U,Co(I,q),et,!1),st>0){if(st&16)D(Q,I,_t,vt,$,U,q);else if(st&2&&_t.class!==vt.class&&i(Q,"class",null,vt.class,q),st&4&&i(Q,"style",_t.style,vt.style,q),st&8){const Rt=I.dynamicProps;for(let Vt=0;Vt<Rt.length;Vt++){const Ut=Rt[Vt],se=_t[Ut],Te=vt[Ut];(Te!==se||Ut==="value")&&i(Q,Ut,se,Te,q,C.children,$,U,It)}}st&1&&C.children!==I.children&&u(Q,I.children)}else!ot&&J==null&&D(Q,I,_t,vt,$,U,q);((St=vt.onVnodeUpdated)||ht)&&Pe(()=>{St&&Ke(St,$,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)&&i(C,Q,$[Q],null,ot,I.children,q,et,It);for(const Q in U){if(Pn(Q))continue;const st=U[Q],J=$[Q];st!==J&&Q!=="value"&&i(C,Q,J,st,ot,I.children,q,et,It)}"value"in U&&i(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:_t,dynamicChildren:vt,slotScopeIds:St}=I;({}).NODE_ENV!=="production"&&(Ws||_t&2048)&&(_t=0,st=!1,vt=null),St&&(Q=Q?Q.concat(St):St),C==null?(n(J,$,U),n(ht,$,U),O(I.children||[],$,ht,q,et,ot,Q,st)):_t>0&&_t&64&&vt&&C.dynamicChildren?(A(C.dynamicChildren,vt,$,q,et,ot,Q),{}.NODE_ENV!=="production"?Br(C,I):(I.key!=null||q&&I===q.subTree)&&Br(C,I,!0)):B(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):rt(I,$,U,q,et,ot,st):K(C,I,st)},rt=(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"&&(Ir(C),cs(Q,"mount")),ho(C)&&(Q.ctx.renderer=Fe),{}.NODE_ENV!=="production"&&cs(Q,"init"),zd(Q),{}.NODE_ENV!=="production"&&us(Q,"init"),Q.asyncDep){if(q&&q.registerDep(Q,W),!C.el){const st=Q.subTree=dt(Oe);_(null,st,I,$)}}else W(Q,C,I,$,q,et,ot);({}).NODE_ENV!=="production"&&(Dr(),us(Q,"mount"))},K=(C,I,$)=>{const U=I.component=C.component;if(Lf(C,I,$))if(U.asyncDep&&!U.asyncResolved){({}).NODE_ENV!=="production"&&Ir(I),nt(U,I,$),{}.NODE_ENV!=="production"&&Dr();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:_t,u:vt,parent:St,vnode:Rt}=C;{const Vs=lc(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"&&Ir(ht||C.vnode),tn(C,!1),ht?(ht.el=Rt.el,nt(C,ht,ot)):ht=Rt,_t&&On(_t),(Ut=ht.props&&ht.props.onVnodeBeforeUpdate)&&Ke(Ut,St,ht,Rt),tn(C,!0),{}.NODE_ENV!=="production"&&cs(C,"render");const se=lo(C);({}).NODE_ENV!=="production"&&us(C,"render");const Te=C.subTree;C.subTree=se,{}.NODE_ENV!=="production"&&cs(C,"patch"),S(Te,se,h(Te.el),ee(Te),C,q,et),{}.NODE_ENV!=="production"&&us(C,"patch"),ht.el=se.el,Vt===null&&$f(C,se.el),vt&&Pe(vt,q),(Ut=ht.props&&ht.props.onVnodeUpdated)&&Pe(()=>Ke(Ut,St,ht,Rt),q),{}.NODE_ENV!=="production"&&Al(C),{}.NODE_ENV!=="production"&&Dr()}else{let ht;const{el:_t,props:vt}=I,{bm:St,m:Rt,parent:Vt}=C,Ut=Vn(I);if(tn(C,!1),St&&On(St),!Ut&&(ht=vt&&vt.onVnodeBeforeMount)&&Ke(ht,Vt,I),tn(C,!0),_t&&Ae){const se=()=>{({}).NODE_ENV!=="production"&&cs(C,"render"),C.subTree=lo(C),{}.NODE_ENV!=="production"&&us(C,"render"),{}.NODE_ENV!=="production"&&cs(C,"hydrate"),Ae(_t,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=lo(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=vt&&vt.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 Xi(Q,oe,()=>Rr(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,$),Cs(),El(C),Ss()},B=(C,I,$,U,q,et,ot,Q,st=!1)=>{const J=C&&C.children,ht=C?C.shapeFlag:0,_t=I.children,{patchFlag:vt,shapeFlag:St}=I;if(vt>0){if(vt&128){yt(J,_t,$,U,q,et,ot,Q,st);return}else if(vt&256){j(J,_t,$,U,q,et,ot,Q,st);return}}St&8?(ht&16&&It(J,q,et),_t!==J&&u($,_t)):ht&16?St&16?yt(J,_t,$,U,q,et,ot,Q,st):It(J,q,et,!0):(ht&8&&u($,""),St&16&&O(_t,$,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,_t=Math.min(J,ht);let vt;for(vt=0;vt<_t;vt++){const St=I[vt]=st?Ds(I[vt]):je(I[vt]);S(C[vt],St,$,null,q,et,ot,Q,st)}J>ht?It(C,q,et,!0,!1,_t):O(I,$,U,q,et,ot,Q,st,_t)},yt=(C,I,$,U,q,et,ot,Q,st)=>{let J=0;const ht=I.length;let _t=C.length-1,vt=ht-1;for(;J<=_t&&J<=vt;){const St=C[J],Rt=I[J]=st?Ds(I[J]):je(I[J]);if(Hn(St,Rt))S(St,Rt,$,null,q,et,ot,Q,st);else break;J++}for(;J<=_t&&J<=vt;){const St=C[_t],Rt=I[vt]=st?Ds(I[vt]):je(I[vt]);if(Hn(St,Rt))S(St,Rt,$,null,q,et,ot,Q,st);else break;_t--,vt--}if(J>_t){if(J<=vt){const St=vt+1,Rt=St<ht?I[St].el:U;for(;J<=vt;)S(null,I[J]=st?Ds(I[J]):je(I[J]),$,Rt,q,et,ot,Q,st),J++}}else if(J>vt)for(;J<=_t;)Z(C[J],q,et,!0),J++;else{const St=J,Rt=J,Vt=new Map;for(J=Rt;J<=vt;J++){const _e=I[J]=st?Ds(I[J]):je(I[J]);_e.key!=null&&({}.NODE_ENV!=="production"&&Vt.has(_e.key)&&it("Duplicate keys found during update:",JSON.stringify(_e.key),"Make sure keys are unique."),Vt.set(_e.key,J))}let Ut,se=0;const Te=vt-Rt+1;let Vs=!1,Oi=0;const ln=new Array(Te);for(J=0;J<Te;J++)ln[J]=0;for(J=St;J<=_t;J++){const _e=C[J];if(se>=Te){Z(_e,q,et,!0);continue}let ke;if(_e.key!=null)ke=Vt.get(_e.key);else for(Ut=Rt;Ut<=vt;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>=Oi?Oi=ke:Vs=!0,S(_e,I[ke],$,null,q,et,ot,Q,st),se++)}const Ii=Vs?Dd(ln):hn;for(Ut=Ii.length-1,J=Te-1;J>=0;J--){const _e=Rt+J,ke=I[_e],Di=_e+1<ht?I[_e+1].el:U;ln[J]===0?S(null,ke,$,Di,q,et,ot,Q,st):Vs&&(Ut<0||J!==Ii[Ut]?gt(ke,$,Di,2):Ut--)}}},gt=(C,I,$,U,q=null)=>{const{el:et,type:ot,transition:Q,children:st,shapeFlag:J}=C;if(J&6){gt(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 _t=0;_t<st.length;_t++)gt(st[_t],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:_t,delayLeave:vt,afterLeave:St}=Q,Rt=()=>n(et,I,$),Vt=()=>{_t(et,()=>{Rt(),St&&St()})};vt?vt(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:_t,dirs:vt}=C;if(Q!=null&&wo(Q,null,$,C,!0),ht&256){I.ctx.deactivate(C);return}const St=ht&1&&vt,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}St&&Ks(C,null,I,"beforeUnmount"),ht&64?C.type.remove(C,I,$,q,Fe,U):J&&(et!==$t||_t>0&&_t&64)?It(J,I,$,!1,!0):(et===$t&&_t&384||!q&&ht&16)&&It(st,I,$),U&&V(C)}(Rt&&(Vt=ot&&ot.onVnodeUnmounted)||St)&&Pe(()=>{Vt&&Ke(Vt,I,C),St&&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?r(ot.el):V(ot)}):Qt($,U);return}if(I===Xn){w(C);return}const et=()=>{r($),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),r(C),C=$;r(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)},It=(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 Yt=!1;const G=(C,I,$)=>{C==null?I._vnode&&Z(I._vnode,null,null,!0):S(I._vnode||null,C,I,null,null,null,$),Yt||(Yt=!0,El(),Pl(),Yt=!1),I._vnode=C},Fe={p:S,um:Z,m:gt,r:V,mt:rt,mc:O,pc:B,pbc:A,n:ee,o:s};let Ye,Ae;return t&&([Ye,Ae]=t(Fe)),{render:G,hydrate:Ye,createApp:pd(G,Ye)}}function Co({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 Br(s,t,e=!1){const n=s.children,r=t.children;if(xt(n)&&xt(r))for(let i=0;i<n.length;i++){const o=n[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Ds(r[i]),a.el=o.el),e||Br(o,a)),a.type===Gn&&(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,r,i,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(r=e[e.length-1],s[r]<c){t[n]=r,e.push(n);continue}for(i=0,o=e.length-1;i<o;)a=i+o>>1,s[e[a]]<c?i=a+1:o=a;c<s[e[i]]&&(i>0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,o=e[i-1];i-- >0;)e[i]=o,o=t[o];return e}function lc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:lc(t)}const Rd=s=>s.__isTeleport,$t=Symbol.for("v-fgt"),Gn=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 cc(s){Un+=s}function uc(s){return s.dynamicChildren=Un>0?Xe||hn:null,Ad(),Un>0&&Xe&&Xe.push(s),s}function H(s,t,e,n,r,i){return uc(P(s,t,e,n,r,i,!0))}function zt(s,t,e,n,r){return uc(dt(s,t,e,n,r,!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)=>fc(...s),Gr="__vInternal",hc=({key:s})=>s??null,Xr=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?ie(s)||me(s)||Tt(s)?{i:ae,r:s,k:t,f:!!e}:s:null);function P(s,t=null,e=null,n=0,r=null,i=s===$t?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&hc(t),ref:t&&Xr(t),scopeId:Mr,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ae};return a?(So(l,e),i&128&&s.normalize(l)):e&&(l.shapeFlag|=ie(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&it("VNode created with invalid key (NaN). VNode type:",l.type),Un>0&&!o&&Xe&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Xe.push(l),l}const dt={}.NODE_ENV!=="production"?Md:fc;function fc(s,t=null,e=null,n=0,r=null,i=!1){if((!s||s===Vf)&&({}.NODE_ENV!=="production"&&!s&&it(`Invalid vnode type when creating vnode: ${s}.`),s=Oe),yn(s)){const a=Is(s,t,!0);return e&&So(a,e),Un>0&&!i&&Xe&&(a.shapeFlag&6?Xe[Xe.indexOf(s)]=a:Xe.push(a)),a.patchFlag|=-2,a}if(wc(s)&&(s=s.__vccOpts),t){t=Nd(t);let{class:a,style:l}=t;a&&!ie(a)&&(t.class=re(a)),Gt(l)&&(Ki(l)&&!xt(l)&&(l=ne({},l)),t.style=Y(l))}const o=ie(s)?1:Yf(s)?128:Rd(s)?64:Gt(s)?4:Tt(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&Ki(s)&&(s=Dt(s),it("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,r,o,i,!0)}function Nd(s){return s?Ki(s)||Gr in s?ne({},s):s:null}function Is(s,t,e=!1){const{props:n,ref:r,patchFlag:i,children:o}=s,a=t?To(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&hc(a),ref:t&&t.ref?e&&r?xt(r)?r.concat(Xr(t)):[r,Xr(t)]:Xr(t):r,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&i===-1&&xt(o)?o.map(dc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==$t?i===-1?16:i|16:i,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Is(s.ssContent),ssFallback:s.ssFallback&&Is(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function dc(s){const t=Is(s);return xt(s.children)&&(t.children=s.children.map(dc)),t}function Kt(s=" ",t=0){return dt(Gn,null,s,t)}function Fd(s,t){const e=dt(Xn,null,s);return e.staticCount=t,e}function Bt(s="",t=!1){return t?(F(),zt(Oe,null,s)):dt(Oe,null,s)}function je(s){return s==null||typeof s=="boolean"?dt(Oe):xt(s)?dt($t,null,s.slice()):typeof s=="object"?Ds(s):dt(Gn,null,String(s))}function Ds(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Is(s)}function So(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 r=t.default;r&&(r._c&&(r._d=!1),So(s,r()),r._c&&(r._d=!0));return}else{e=32;const r=t._;!r&&!(Gr in t)?t._ctx=ae:r===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 To(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=re([t.class,n.class]));else if(r==="style")t.style=Y([t.style,n.style]);else if(En(r)){const i=t[r],o=n[r];o&&i!==o&&!(xt(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=n[r])}return t}function Ke(s,t,e,n=null){Ge(s,t,7,[e,n])}const Ld=Zl();let $d=0;function Vd(s,t,e){const n=s.type,r=(t?t.appContext:s.appContext)||Ld,i={uid:$d++,vnode:s,type:n,parent:t,appContext:r,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(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kl(n,r),emitsOptions:Nl(n,r),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"?i.ctx=sd(i):i.ctx={_:i},i.root=t?t.root:i,i.emit=Mf.bind(null,i),s.ce&&s.ce(i),i}let fe=null;const pc=()=>fe||ae;let jr,ko;{const s=Bi(),t=(e,n)=>{let r;return(r=s[e])||(r=s[e]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};jr=t("__VUE_INSTANCE_SETTERS__",e=>fe=e),ko=t("__VUE_SSR_SETTERS__",e=>Ur=e)}const Wn=s=>{const t=fe;return jr(s),s.scope.on(),()=>{s.scope.off(),jr(t)}},mc=()=>{fe&&fe.scope.off(),jr(null)},Yd=un("slot,component");function Eo(s,{isNativeTag:t}){(Yd(s)||t(s))&&it("Do not use built-in or reserved HTML elements as component id: "+s)}function gc(s){return s.vnode.shapeFlag&4}let Ur=!1;function zd(s,t=!1){t&&ko(t);const{props:e,children:n}=s.vnode,r=gc(s);gd(s,e,r,t),Td(s,n);const i=r?Bd(s,t):void 0;return t&&ko(!1),i}function Bd(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Eo(n.name,s.appContext.config),n.components){const i=Object.keys(n.components);for(let o=0;o<i.length;o++)Eo(i[o],s.appContext.config)}if(n.directives){const i=Object.keys(n.directives);for(let o=0;o<i.length;o++)zl(i[o])}n.compilerOptions&&Gd()&&it('"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=_l(new Proxy(s.ctx,Xl)),{}.NODE_ENV!=="production"&&nd(s);const{setup:r}=n;if(r){const i=s.setupContext=r.length>1?bc(s):null,o=Wn(s);Cs();const a=os(r,s,0,[{}.NODE_ENV!=="production"?pn(s.props):s.props,i]);if(Ss(),o(),Vi(a)){if(a.then(mc,mc),t)return a.then(l=>{yc(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";it(`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 yc(s,a,t)}else vc(s,t)}function yc(s,t,e){Tt(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Gt(t)?({}.NODE_ENV!=="production"&&yn(t)&&it("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=wl(t),{}.NODE_ENV!=="production"&&rd(s)):{}.NODE_ENV!=="production"&&t!==void 0&&it(`setup() should return an object. Received: ${t===null?"null":typeof t}`),vc(s,e)}let Po;const Gd=()=>!Po;function vc(s,t,e){const n=s.type;if(!s.render){if(!t&&Po&&!n.render){const r=n.template||yo(s).template;if(r){({}).NODE_ENV!=="production"&&cs(s,"compile");const{isCustomElement:i,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=ne(ne({isCustomElement:i,delimiters:a},o),l);n.render=Po(r,c),{}.NODE_ENV!=="production"&&us(s,"compile")}}s.render=n.render||oe}{const r=Wn(s);Cs();try{ld(s)}finally{Ss(),r()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===oe&&!t&&(n.template?it('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".'):it("Component is missing template or render function."))}function _c(s){return s.attrsProxy||(s.attrsProxy=new Proxy(s.attrs,{}.NODE_ENV!=="production"?{get(t,e){return Fr(),pe(s,"get","$attrs"),t[e]},set(){return it("setupContext.attrs is readonly."),!1},deleteProperty(){return it("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 bc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&it("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"&&it(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};return{}.NODE_ENV!=="production"?Object.freeze({get attrs(){return _c(s)},get slots(){return Xd(s)},get emit(){return(e,...n)=>s.emit(e,...n)},expose:t}):{get attrs(){return _c(s)},slots:s.slots,emit:s.emit,expose:t}}function Hr(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(wl(_l(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 xc(s,t=!0){return Tt(s)?s.displayName||s.name:s.name||t&&s.__name}function Wr(s,t,e=!1){let n=xc(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&s&&s.parent){const r=i=>{for(const o in i)if(i[o]===t)return o};n=r(s.components||s.parent.type.components)||r(s.appContext.components)}return n?Ud(n):e?"App":"Anonymous"}function wc(s){return Tt(s)&&"__vccOpts"in s}const Hd=(s,t)=>{const e=lf(s,t,Ur);if({}.NODE_ENV!=="production"){const n=pc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function hs(s,t,e){const n=arguments.length;return n===2?Gt(t)&&!xt(t)?yn(t)?dt(s,null,[t]):dt(s,t):dt(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&yn(e)&&(e=[e]),dt(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"},r={header(h){return Gt(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),`>${ks(h)?" (readonly)":""}`]:ks(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",{},...i(h.$)]}};function i(h){const f=[];h.type.props&&h.props&&f.push(o("props",Dt(h.props))),h.setupState!==Xt&&f.push(o("setup",h.setupState)),h.data!==Xt&&f.push(o("data",Dt(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]:Gt(h)?["object",{object:f?Dt(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)||Gt(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(r):window.devtoolsFormatters=[r]}const Cc="3.4.21",Sc={}.NODE_ENV!=="production"?it: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",
|
|
25
|
+
**/const qd="http://www.w3.org/2000/svg",Zd="http://www.w3.org/1998/Math/MathML",Rs=typeof document<"u"?document:null,Tc=Rs&&Rs.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 r=t==="svg"?Rs.createElementNS(qd,s):t==="mathml"?Rs.createElementNS(Zd,s):Rs.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:s=>Rs.createTextNode(s),createComment:s=>Rs.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Rs.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,n,r,i){const o=e?e.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),e),!(r===i||!(r=r.nextSibling)););else{Tc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=Tc.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 qr=Symbol("_vod"),kc=Symbol("_vsh"),As={beforeMount(s,{value:t},{transition:e}){s[qr]=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"&&(As.name="show");function qn(s,t){s.style.display=t?s[qr]:"none",s[kc]=!t}const tp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ep=/(^|;)\s*display\s*:/;function sp(s,t,e){const n=s.style,r=ie(e);let i=!1;if(e&&!r){if(t)if(ie(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&Zr(n,a,"")}else for(const o in t)e[o]==null&&Zr(n,o,"");for(const o in e)o==="display"&&(i=!0),Zr(n,o,e[o])}else if(r){if(t!==e){const o=n[tp];o&&(e+=";"+o),n.cssText=e,i=ep.test(e)}}else t&&s.removeAttribute("style");qr in s&&(s[qr]=i?n.display:"",s[kc]&&(n.display="none"))}const np=/[^\\];\s*$/,Ec=/\s*!important$/;function Zr(s,t,e){if(xt(e))e.forEach(n=>Zr(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&np.test(e)&&Sc(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=rp(s,t);Ec.test(e)?s.setProperty(_s(n),e.replace(Ec,""),"important"):s[n]=e}}const Pc=["Webkit","Moz","ms"],Oo={};function rp(s,t){const e=Oo[t];if(e)return e;let n=dn(t);if(n!=="filter"&&n in s)return Oo[t]=n;n=_r(n);for(let r=0;r<Pc.length;r++){const i=Pc[r]+n;if(i in s)return Oo[t]=i}return t}const Oc="http://www.w3.org/1999/xlink";function ip(s,t,e,n,r){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(Oc,t.slice(6,t.length)):s.setAttributeNS(Oc,t,e);else{const i=Fh(t);e==null||i&&!qa(e)?s.removeAttribute(t):s.setAttribute(t,i?"":e)}}function op(s,t,e,n,r,i,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,r,i),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=qa(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&Sc(`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 Ic=Symbol("_vei");function cp(s,t,e,n,r=null){const i=s[Ic]||(s[Ic]={}),o=i[t];if(n&&o)o.value=n;else{const[a,l]=up(t);if(n){const c=i[t]=dp(n,r);ap(s,a,c,l)}else o&&(lp(s,a,o,l),i[t]=void 0)}}const Dc=/(?:Once|Passive|Capture)$/;function up(s){let t;if(Dc.test(s)){t={};let n;for(;n=s.match(Dc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):_s(s.slice(2)),t]}let Io=0;const hp=Promise.resolve(),fp=()=>Io||(hp.then(()=>Io=0),Io=Date.now());function dp(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Ge(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=>r=>!r._stopped&&n&&n(r))}else return t}const Rc=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,mp=(s,t,e,n,r,i,o,a,l)=>{const c=r==="svg";t==="class"?Jd(s,n,c):t==="style"?sp(s,e,n):En(t)?gr(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,i,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),ip(s,t,n,c))};function gp(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Rc(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 r=s.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rc(t)&&ie(e)?!1:t in s}const yp=ne({patchProp:mp},Qd);let Ac;function vp(){return Ac||(Ac=Pd(yp))}const Mc=(...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
|
|
29
|
-
**/function _p(){Wd()}({}).NODE_ENV!=="production"&&_p();const Zn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Qr=(s,t,e,n="")=>{const r=s.split(":");if(s.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:n,prefix:l,name:a};return t&&!Kr(c)?null:c}const i=r[0],o=i.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!Kr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:i};return t&&!Kr(a,e)?null:a}return null},Kr=(s,t)=>s?!!((s.provider===""||s.provider.match(Zn))&&(t&&s.prefix===""||s.prefix.match(Zn))&&s.name.match(Zn)):!1,Nc=Object.freeze({left:0,top:0,width:16,height:16}),Jr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ti=Object.freeze({...Nc,...Jr}),Do=Object.freeze({...ti,body:"",hidden:!1});function bp(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const n=((s.rotate||0)+(t.rotate||0))%4;return n&&(e.rotate=n),e}function Fc(s,t){const e=bp(s,t);for(const n in Do)n in Jr?n in s&&!(n in e)&&(e[n]=Jr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function xp(s,t){const e=s.icons,n=s.aliases||Object.create(null),r=Object.create(null);function i(o){if(e[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=n[o]&&n[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(t||Object.keys(e).concat(Object.keys(n))).forEach(i),r}function wp(s,t,e){const n=s.icons,r=s.aliases||Object.create(null);let i={};function o(a){i=Fc(n[a]||r[a],i)}return o(t),e.forEach(o),Fc(s,i)}function Lc(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(r=>{t(r,null),e.push(r)});const n=xp(s);for(const r in n){const i=n[r];i&&(t(r,wp(s,r,i)),e.push(r))}return e}const Cp={provider:"",aliases:{},not_found:{},...Nc};function Ro(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function $c(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Ro(s,Cp))return null;const e=t.icons;for(const r in e){const i=e[r];if(!r.match(Zn)||typeof i.body!="string"||!Ro(i,Do))return null}const n=t.aliases||Object.create(null);for(const r in n){const i=n[r],o=i.parent;if(!r.match(Zn)||typeof o!="string"||!e[o]&&!n[o]||!Ro(i,Do))return null}return t}const Vc=Object.create(null);function Sp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function en(s,t){const e=Vc[s]||(Vc[s]=Object.create(null));return e[t]||(e[t]=Sp(s,t))}function Ao(s,t){return $c(t)?Lc(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function Tp(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let Qn=!1;function Yc(s){return typeof s=="boolean"&&(Qn=s),Qn}function kp(s){const t=typeof s=="string"?Qr(s,!0,Qn):s;if(t){const e=en(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Ep(s,t){const e=Qr(s,!0,Qn);if(!e)return!1;const n=en(e.provider,e.prefix);return Tp(n,e.name,t)}function Pp(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),Qn&&!t&&!s.prefix){let r=!1;return $c(s)&&(s.prefix="",Lc(s,(i,o)=>{o&&Ep(i,o)&&(r=!0)})),r}const e=s.prefix;if(!Kr({provider:t,prefix:e,name:"a"}))return!1;const n=en(t,e);return!!Ao(n,s)}const zc=Object.freeze({width:null,height:null}),Bc=Object.freeze({...zc,...Jr}),Op=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ip=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Gc(s,t,e){if(t===1)return s;if(e=e||100,typeof s=="number")return Math.ceil(s*t*e)/e;if(typeof s!="string")return s;const n=s.split(Op);if(n===null||!n.length)return s;const r=[];let i=n.shift(),o=Ip.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*t*e)/e)}else r.push(i);if(i=n.shift(),i===void 0)return r.join("");o=!o}}function Dp(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const r=s.indexOf(">",n),i=s.indexOf("</"+t);if(r===-1||i===-1)break;const o=s.indexOf(">",i);if(o===-1)break;e+=s.slice(r+1,i).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function Rp(s,t){return s?"<defs>"+s+"</defs>"+t:t}function Ap(s,t,e){const n=Dp(s);return Rp(n.defs,t+n.content+e)}const Mp=s=>s==="unset"||s==="undefined"||s==="none";function Np(s,t){const e={...ti,...s},n={...Bc,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let i=e.body;[e,n].forEach(k=>{const S=[],_=k.hFlip,C=k.vFlip;let y=k.rotate;_?C?y+=2:(S.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),S.push("scale(-1 1)"),r.top=r.left=0):C&&(S.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),S.push("scale(1 -1)"),r.top=r.left=0);let p;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:p=r.height/2+r.top,S.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:S.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:p=r.width/2+r.left,S.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}y%2===1&&(r.left!==r.top&&(p=r.left,r.left=r.top,r.top=p),r.width!==r.height&&(p=r.width,r.width=r.height,r.height=p)),S.length&&(i=Ap(i,'<g transform="'+S.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=r.width,c=r.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=Gc(h,l/c)):(u=o==="auto"?l:o,h=a===null?Gc(u,c/l):a==="auto"?c:a);const f={},m=(k,S)=>{Mp(S)||(f[k]=S.toString())};m("width",u),m("height",h);const d=[r.left,r.top,l,c];return f.viewBox=d.join(" "),{attributes:f,viewBox:d,body:i}}const Fp=/\sid="(\S+)"/g,Lp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let $p=0;function Vp(s,t=Lp){const e=[];let n;for(;n=Fp.exec(s);)e.push(n[1]);if(!e.length)return s;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(i=>{const o=typeof t=="function"?t(i):t+($p++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),s=s.replace(new RegExp(r,"g"),""),s}const Mo=Object.create(null);function Yp(s,t){Mo[s]=t}function No(s){return Mo[s]||Mo[""]}function Fo(s){let t;if(typeof s.resources=="string")t=[s.resources];else if(t=s.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Lo=Object.create(null),Kn=["https://api.simplesvg.com","https://api.unisvg.com"],ei=[];for(;Kn.length>0;)Kn.length===1||Math.random()>.5?ei.push(Kn.shift()):ei.push(Kn.pop());Lo[""]=Fo({resources:["https://api.iconify.design"].concat(ei)});function zp(s,t){const e=Fo(t);return e===null?!1:(Lo[s]=e,!0)}function $o(s){return Lo[s]}let Xc=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Bp(s,t){const e=$o(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let r=0;e.resources.forEach(o=>{r=Math.max(r,o.length)});const i=t+".json?icons=";n=e.maxURL-r-e.path.length-i.length}return n}function Gp(s){return s===404}const Xp=(s,t,e)=>{const n=[],r=Bp(s,t),i="icons";let o={type:i,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=r&&c>0&&(n.push(o),o={type:i,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function jp(s){if(typeof s=="string"){const t=$o(s);if(t)return t.path}return"/"}const Up={prepare:Xp,send:(s,t,e)=>{if(!Xc){e("abort",424);return}let n=jp(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:e("abort",400);return}let r=503;Xc(s+n).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{e(Gp(o)?"abort":"next",o)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?e("abort",i):e("next",r)});return}setTimeout(()=>{e("success",i)})}).catch(()=>{e("next",r)})}};function Hp(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return s.forEach(r=>{if(n.name===r.name&&n.prefix===r.prefix&&n.provider===r.provider)return;n=r;const i=r.provider,o=r.prefix,a=r.name,l=e[i]||(e[i]=Object.create(null)),c=l[o]||(l[o]=en(i,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:i,prefix:o,name:a};u.push(h)}),t}function jc(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(r=>r.id!==t))})}function Wp(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const t=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const n=s.provider,r=s.prefix;t.forEach(i=>{const o=i.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(s.icons[c])o.loaded.push({provider:n,prefix:r,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:r,name:c});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||jc([s],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let qp=0;function Zp(s,t,e){const n=qp++,r=jc.bind(null,e,n);if(!t.pending.length)return r;const i={id:n,icons:t,callback:s,abort:r};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),r}function Qp(s,t=!0,e=!1){const n=[];return s.forEach(r=>{const i=typeof r=="string"?Qr(r,t,e):r;i&&n.push(i)}),n}var Kp={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Jp(s,t,e,n){const r=s.resources.length,i=s.random?Math.floor(Math.random()*r):s.index;let o;if(s.random){let b=s.resources.slice(0);for(o=[];b.length>1;){const z=Math.floor(Math.random()*b.length);o.push(b[z]),b=b.slice(0,z).concat(b.slice(z+1))}o=o.concat(b)}else o=s.resources.slice(i).concat(s.resources.slice(0,i));const a=Date.now();let l="pending",c=0,u,h=null,f=[],m=[];typeof n=="function"&&m.push(n);function d(){h&&(clearTimeout(h),h=null)}function k(){l==="pending"&&(l="aborted"),d(),f.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),f=[]}function S(b,z){z&&(m=[]),typeof b=="function"&&m.push(b)}function _(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:S,abort:k}}function C(){l="failed",m.forEach(b=>{b(void 0,u)})}function y(){f.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),f=[]}function p(b,z,ct){const O=z!=="success";switch(f=f.filter(R=>R!==b),l){case"pending":break;case"failed":if(O||!s.dataAfterTimeout)return;break;default:return}if(z==="abort"){u=ct,C();return}if(O){u=ct,f.length||(o.length?x():C());return}if(d(),y(),!s.random){const R=s.resources.indexOf(b.resource);R!==-1&&R!==s.index&&(s.index=R)}l="completed",m.forEach(R=>{R(ct)})}function x(){if(l!=="pending")return;d();const b=o.shift();if(b===void 0){if(f.length){h=setTimeout(()=>{d(),l==="pending"&&(y(),C())},s.timeout);return}C();return}const z={status:"pending",resource:b,callback:(ct,O)=>{p(z,ct,O)}};f.push(z),c++,h=setTimeout(x,s.rotate),e(b,t,z.callback)}return setTimeout(x),_}function Uc(s){const t={...Kp,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function r(a,l,c){const u=Jp(t,a,l,(h,f)=>{n(),c&&c(h,f)});return e.push(u),u}function i(a){return e.find(l=>a(l))||null}return{query:r,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Hc(){}const Vo=Object.create(null);function tm(s){if(!Vo[s]){const t=$o(s);if(!t)return;const e=Uc(t),n={config:t,redundancy:e};Vo[s]=n}return Vo[s]}function em(s,t,e){let n,r;if(typeof s=="string"){const i=No(s);if(!i)return e(void 0,424),Hc;r=i.send;const o=tm(s);o&&(n=o.redundancy)}else{const i=Fo(s);if(i){n=Uc(i);const o=s.resources?s.resources[0]:"",a=No(o);a&&(r=a.send)}}return!n||!r?(e(void 0,424),Hc):n.query(t,r,e)().abort}const Wc="iconify2",Jn="iconify",qc=Jn+"-count",Zc=Jn+"-version",Qc=36e5,sm=168,nm=50;function Yo(s,t){try{return s.getItem(t)}catch{}}function zo(s,t,e){try{return s.setItem(t,e),!0}catch{}}function Kc(s,t){try{s.removeItem(t)}catch{}}function Bo(s,t){return zo(s,qc,t.toString())}function Go(s){return parseInt(Yo(s,qc))||0}const si={local:!0,session:!0},Jc={local:new Set,session:new Set};let Xo=!1;function rm(s){Xo=s}let ni=typeof window>"u"?{}:window;function tu(s){const t=s+"Storage";try{if(ni&&ni[t]&&typeof ni[t].length=="number")return ni[t]}catch{}si[s]=!1}function eu(s,t){const e=tu(s);if(!e)return;const n=Yo(e,Zc);if(n!==Wc){if(n){const a=Go(e);for(let l=0;l<a;l++)Kc(e,Jn+l.toString())}zo(e,Zc,Wc),Bo(e,0);return}const r=Math.floor(Date.now()/Qc)-sm,i=a=>{const l=Jn+a.toString(),c=Yo(e,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Kc(e,l)}};let o=Go(e);for(let a=o-1;a>=0;a--)i(a)||(a===o-1?(o--,Bo(e,o)):Jc[s].add(a))}function su(){if(!Xo){rm(!0);for(const s in si)eu(s,t=>{const e=t.data,n=t.provider,r=e.prefix,i=en(n,r);if(!Ao(i,e).length)return!1;const o=e.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,o):o,!0})}}function im(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in si)eu(n,r=>{const i=r.data;return r.provider!==s.provider||i.prefix!==s.prefix||i.lastModified===t});return!0}function om(s,t){Xo||su();function e(n){let r;if(!si[n]||!(r=tu(n)))return;const i=Jc[n];let o;if(i.size)i.delete(o=Array.from(i).shift());else if(o=Go(r),o>=nm||!Bo(r,o+1))return;const a={cached:Math.floor(Date.now()/Qc),provider:s.provider,data:t};return zo(r,Jn+o.toString(),JSON.stringify(a))}t.lastModified&&!im(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function nu(){}function am(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Wp(s)}))}function lm(s,t){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:e,prefix:n}=s,r=s.iconsToLoad;delete s.iconsToLoad;let i;if(!r||!(i=No(e)))return;i.prepare(e,n,r).forEach(a=>{em(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Ao(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),om(s,l)}catch(c){console.error(c)}am(s)})})}))}const cm=(s,t)=>{const e=Qp(s,!0,Yc()),n=Hp(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,nu)}),()=>{l=!1}}const r=Object.create(null),i=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,i.push(en(c,u));const h=r[c]||(r[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=en(c,u),m=f.pendingIcons||(f.pendingIcons=new Set);m.has(h)||(m.add(h),r[c][u].push(h))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&lm(l,r[c][u])}),t?Zp(t,n,i):nu};function um(s,t){const e={...s};for(const n in t){const r=t[n],i=typeof r;n in zc?(r===null||r&&(i==="string"||i==="number"))&&(e[n]=r):i===typeof e[n]&&(e[n]=n==="rotate"?r%4:r)}return e}const hm=/[\s,]+/;function fm(s,t){t.split(hm).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function dm(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(s);return isNaN(r)?0:n(r)}else if(e!==s){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(s.slice(0,s.length-e.length));return isNaN(i)?0:(i=i/r,i%1===0?n(i):0)}}return t}function pm(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)e+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function mm(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function gm(s){return"data:image/svg+xml,"+mm(s)}function ym(s){return'url("'+gm(s)+'")'}const ru={...Bc,inline:!1},vm={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},_m={display:"inline-block"},jo={backgroundColor:"currentColor"},iu={backgroundColor:"transparent"},ou={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},au={webkitMask:jo,mask:jo,background:iu};for(const s in au){const t=au[s];for(const e in ou)t[s+e]=ou[e]}const ri={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";ri[s+"-flip"]=t,ri[s.slice(0,1)+"-flip"]=t,ri[s+"Flip"]=t});function lu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const cu=(s,t)=>{const e=um(ru,t),n={...vm},r=t.mode||"svg",i={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let k in t){const S=t[k];if(S!==void 0)switch(k){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[k]=S===!0||S==="true"||S===1;break;case"flip":typeof S=="string"&&fm(e,S);break;case"color":i.color=S;break;case"rotate":typeof S=="string"?e[k]=dm(S):typeof S=="number"&&(e[k]=S);break;case"ariaHidden":case"aria-hidden":S!==!0&&S!=="true"&&delete n["aria-hidden"];break;default:{const _=ri[k];_?(S===!0||S==="true"||S===1)&&(e[_]=!0):ru[k]===void 0&&(n[k]=S)}}}const l=Np(s,e),c=l.attributes;if(e.inline&&(i.verticalAlign="-0.125em"),r==="svg"){n.style={...i,...a},Object.assign(n,c);let k=0,S=t.id;return typeof S=="string"&&(S=S.replace(/-/g,"_")),n.innerHTML=Vp(l.body,S?()=>S+"ID"+k++:"iconifyVue"),hs("svg",n)}const{body:u,width:h,height:f}=s,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),d=pm(u,{...c,width:h+"",height:f+""});return n.style={...i,"--svg":ym(d),width:lu(c.width),height:lu(c.height),..._m,...m?jo:iu,...a},hs("span",n)};if(Yc(!0),Yp("",Up),typeof document<"u"&&typeof window<"u"){su();const s=window;if(s.IconifyPreload!==void 0){const t=s.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Pp(n))&&console.error(e)}catch{console.error(e)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;zp(e,r)||console.error(n)}catch{console.error(n)}}}}const bm={...ti,body:""},xm=lt({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(s,t){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let e;if(typeof s!="string"||(e=Qr(s,!1,!0))===null)return this.abortLoading(),null;const n=kp(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:cm([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const r=["iconify"];return e.prefix!==""&&r.push("iconify--"+e.prefix),e.provider!==""&&r.push("iconify--"+e.provider),{data:n,classes:r}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return cu(bm,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),cu({...ti,...t.data},e)}});function uu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}const ii=s=>{let t=null;switch(s){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/i;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"trim":t=/^\s+|\s+$/g;break;case"regexp":t=/[\\^$.*+?()[\]{}|]/g;break;case"regexp-flags":t=/\w*$/;break;case"native-method":t=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(ii("regexp"),"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+?[1-9]{1}[0-9]{10}$/g;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+\@[A-Za-z0-9._-]+\.[A-Za-z0-9]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"time":t=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"datetime":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"whitespace":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"bezier":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
29
|
+
**/function _p(){Wd()}({}).NODE_ENV!=="production"&&_p();const Zn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Qr=(s,t,e,n="")=>{const r=s.split(":");if(s.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:n,prefix:l,name:a};return t&&!Kr(c)?null:c}const i=r[0],o=i.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!Kr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:i};return t&&!Kr(a,e)?null:a}return null},Kr=(s,t)=>s?!!((s.provider===""||s.provider.match(Zn))&&(t&&s.prefix===""||s.prefix.match(Zn))&&s.name.match(Zn)):!1,Nc=Object.freeze({left:0,top:0,width:16,height:16}),Jr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ti=Object.freeze({...Nc,...Jr}),Do=Object.freeze({...ti,body:"",hidden:!1});function bp(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const n=((s.rotate||0)+(t.rotate||0))%4;return n&&(e.rotate=n),e}function Fc(s,t){const e=bp(s,t);for(const n in Do)n in Jr?n in s&&!(n in e)&&(e[n]=Jr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function xp(s,t){const e=s.icons,n=s.aliases||Object.create(null),r=Object.create(null);function i(o){if(e[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=n[o]&&n[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(t||Object.keys(e).concat(Object.keys(n))).forEach(i),r}function wp(s,t,e){const n=s.icons,r=s.aliases||Object.create(null);let i={};function o(a){i=Fc(n[a]||r[a],i)}return o(t),e.forEach(o),Fc(s,i)}function Lc(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(r=>{t(r,null),e.push(r)});const n=xp(s);for(const r in n){const i=n[r];i&&(t(r,wp(s,r,i)),e.push(r))}return e}const Cp={provider:"",aliases:{},not_found:{},...Nc};function Ro(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function $c(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Ro(s,Cp))return null;const e=t.icons;for(const r in e){const i=e[r];if(!r.match(Zn)||typeof i.body!="string"||!Ro(i,Do))return null}const n=t.aliases||Object.create(null);for(const r in n){const i=n[r],o=i.parent;if(!r.match(Zn)||typeof o!="string"||!e[o]&&!n[o]||!Ro(i,Do))return null}return t}const Vc=Object.create(null);function Sp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function en(s,t){const e=Vc[s]||(Vc[s]=Object.create(null));return e[t]||(e[t]=Sp(s,t))}function Ao(s,t){return $c(t)?Lc(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function Tp(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let Qn=!1;function Yc(s){return typeof s=="boolean"&&(Qn=s),Qn}function kp(s){const t=typeof s=="string"?Qr(s,!0,Qn):s;if(t){const e=en(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Ep(s,t){const e=Qr(s,!0,Qn);if(!e)return!1;const n=en(e.provider,e.prefix);return Tp(n,e.name,t)}function Pp(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),Qn&&!t&&!s.prefix){let r=!1;return $c(s)&&(s.prefix="",Lc(s,(i,o)=>{o&&Ep(i,o)&&(r=!0)})),r}const e=s.prefix;if(!Kr({provider:t,prefix:e,name:"a"}))return!1;const n=en(t,e);return!!Ao(n,s)}const zc=Object.freeze({width:null,height:null}),Bc=Object.freeze({...zc,...Jr}),Op=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ip=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Gc(s,t,e){if(t===1)return s;if(e=e||100,typeof s=="number")return Math.ceil(s*t*e)/e;if(typeof s!="string")return s;const n=s.split(Op);if(n===null||!n.length)return s;const r=[];let i=n.shift(),o=Ip.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*t*e)/e)}else r.push(i);if(i=n.shift(),i===void 0)return r.join("");o=!o}}function Dp(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const r=s.indexOf(">",n),i=s.indexOf("</"+t);if(r===-1||i===-1)break;const o=s.indexOf(">",i);if(o===-1)break;e+=s.slice(r+1,i).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function Rp(s,t){return s?"<defs>"+s+"</defs>"+t:t}function Ap(s,t,e){const n=Dp(s);return Rp(n.defs,t+n.content+e)}const Mp=s=>s==="unset"||s==="undefined"||s==="none";function Np(s,t){const e={...ti,...s},n={...Bc,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let i=e.body;[e,n].forEach(S=>{const k=[],_=S.hFlip,x=S.vFlip;let y=S.rotate;_?x?y+=2:(k.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),k.push("scale(-1 1)"),r.top=r.left=0):x&&(k.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),k.push("scale(1 -1)"),r.top=r.left=0);let p;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:p=r.height/2+r.top,k.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:k.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:p=r.width/2+r.left,k.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}y%2===1&&(r.left!==r.top&&(p=r.left,r.left=r.top,r.top=p),r.width!==r.height&&(p=r.width,r.width=r.height,r.height=p)),k.length&&(i=Ap(i,'<g transform="'+k.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=r.width,c=r.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=Gc(h,l/c)):(u=o==="auto"?l:o,h=a===null?Gc(u,c/l):a==="auto"?c:a);const f={},m=(S,k)=>{Mp(k)||(f[S]=k.toString())};m("width",u),m("height",h);const d=[r.left,r.top,l,c];return f.viewBox=d.join(" "),{attributes:f,viewBox:d,body:i}}const Fp=/\sid="(\S+)"/g,Lp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let $p=0;function Vp(s,t=Lp){const e=[];let n;for(;n=Fp.exec(s);)e.push(n[1]);if(!e.length)return s;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(i=>{const o=typeof t=="function"?t(i):t+($p++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),s=s.replace(new RegExp(r,"g"),""),s}const Mo=Object.create(null);function Yp(s,t){Mo[s]=t}function No(s){return Mo[s]||Mo[""]}function Fo(s){let t;if(typeof s.resources=="string")t=[s.resources];else if(t=s.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Lo=Object.create(null),Kn=["https://api.simplesvg.com","https://api.unisvg.com"],ei=[];for(;Kn.length>0;)Kn.length===1||Math.random()>.5?ei.push(Kn.shift()):ei.push(Kn.pop());Lo[""]=Fo({resources:["https://api.iconify.design"].concat(ei)});function zp(s,t){const e=Fo(t);return e===null?!1:(Lo[s]=e,!0)}function $o(s){return Lo[s]}let Xc=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Bp(s,t){const e=$o(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let r=0;e.resources.forEach(o=>{r=Math.max(r,o.length)});const i=t+".json?icons=";n=e.maxURL-r-e.path.length-i.length}return n}function Gp(s){return s===404}const Xp=(s,t,e)=>{const n=[],r=Bp(s,t),i="icons";let o={type:i,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=r&&c>0&&(n.push(o),o={type:i,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function jp(s){if(typeof s=="string"){const t=$o(s);if(t)return t.path}return"/"}const Up={prepare:Xp,send:(s,t,e)=>{if(!Xc){e("abort",424);return}let n=jp(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:e("abort",400);return}let r=503;Xc(s+n).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{e(Gp(o)?"abort":"next",o)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?e("abort",i):e("next",r)});return}setTimeout(()=>{e("success",i)})}).catch(()=>{e("next",r)})}};function Hp(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return s.forEach(r=>{if(n.name===r.name&&n.prefix===r.prefix&&n.provider===r.provider)return;n=r;const i=r.provider,o=r.prefix,a=r.name,l=e[i]||(e[i]=Object.create(null)),c=l[o]||(l[o]=en(i,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:i,prefix:o,name:a};u.push(h)}),t}function jc(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(r=>r.id!==t))})}function Wp(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const t=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const n=s.provider,r=s.prefix;t.forEach(i=>{const o=i.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(s.icons[c])o.loaded.push({provider:n,prefix:r,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:r,name:c});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||jc([s],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let qp=0;function Zp(s,t,e){const n=qp++,r=jc.bind(null,e,n);if(!t.pending.length)return r;const i={id:n,icons:t,callback:s,abort:r};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),r}function Qp(s,t=!0,e=!1){const n=[];return s.forEach(r=>{const i=typeof r=="string"?Qr(r,t,e):r;i&&n.push(i)}),n}var Kp={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Jp(s,t,e,n){const r=s.resources.length,i=s.random?Math.floor(Math.random()*r):s.index;let o;if(s.random){let b=s.resources.slice(0);for(o=[];b.length>1;){const z=Math.floor(Math.random()*b.length);o.push(b[z]),b=b.slice(0,z).concat(b.slice(z+1))}o=o.concat(b)}else o=s.resources.slice(i).concat(s.resources.slice(0,i));const a=Date.now();let l="pending",c=0,u,h=null,f=[],m=[];typeof n=="function"&&m.push(n);function d(){h&&(clearTimeout(h),h=null)}function S(){l==="pending"&&(l="aborted"),d(),f.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),f=[]}function k(b,z){z&&(m=[]),typeof b=="function"&&m.push(b)}function _(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:k,abort:S}}function x(){l="failed",m.forEach(b=>{b(void 0,u)})}function y(){f.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),f=[]}function p(b,z,ct){const O=z!=="success";switch(f=f.filter(R=>R!==b),l){case"pending":break;case"failed":if(O||!s.dataAfterTimeout)return;break;default:return}if(z==="abort"){u=ct,x();return}if(O){u=ct,f.length||(o.length?w():x());return}if(d(),y(),!s.random){const R=s.resources.indexOf(b.resource);R!==-1&&R!==s.index&&(s.index=R)}l="completed",m.forEach(R=>{R(ct)})}function w(){if(l!=="pending")return;d();const b=o.shift();if(b===void 0){if(f.length){h=setTimeout(()=>{d(),l==="pending"&&(y(),x())},s.timeout);return}x();return}const z={status:"pending",resource:b,callback:(ct,O)=>{p(z,ct,O)}};f.push(z),c++,h=setTimeout(w,s.rotate),e(b,t,z.callback)}return setTimeout(w),_}function Uc(s){const t={...Kp,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function r(a,l,c){const u=Jp(t,a,l,(h,f)=>{n(),c&&c(h,f)});return e.push(u),u}function i(a){return e.find(l=>a(l))||null}return{query:r,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Hc(){}const Vo=Object.create(null);function tm(s){if(!Vo[s]){const t=$o(s);if(!t)return;const e=Uc(t),n={config:t,redundancy:e};Vo[s]=n}return Vo[s]}function em(s,t,e){let n,r;if(typeof s=="string"){const i=No(s);if(!i)return e(void 0,424),Hc;r=i.send;const o=tm(s);o&&(n=o.redundancy)}else{const i=Fo(s);if(i){n=Uc(i);const o=s.resources?s.resources[0]:"",a=No(o);a&&(r=a.send)}}return!n||!r?(e(void 0,424),Hc):n.query(t,r,e)().abort}const Wc="iconify2",Jn="iconify",qc=Jn+"-count",Zc=Jn+"-version",Qc=36e5,sm=168,nm=50;function Yo(s,t){try{return s.getItem(t)}catch{}}function zo(s,t,e){try{return s.setItem(t,e),!0}catch{}}function Kc(s,t){try{s.removeItem(t)}catch{}}function Bo(s,t){return zo(s,qc,t.toString())}function Go(s){return parseInt(Yo(s,qc))||0}const si={local:!0,session:!0},Jc={local:new Set,session:new Set};let Xo=!1;function rm(s){Xo=s}let ni=typeof window>"u"?{}:window;function tu(s){const t=s+"Storage";try{if(ni&&ni[t]&&typeof ni[t].length=="number")return ni[t]}catch{}si[s]=!1}function eu(s,t){const e=tu(s);if(!e)return;const n=Yo(e,Zc);if(n!==Wc){if(n){const a=Go(e);for(let l=0;l<a;l++)Kc(e,Jn+l.toString())}zo(e,Zc,Wc),Bo(e,0);return}const r=Math.floor(Date.now()/Qc)-sm,i=a=>{const l=Jn+a.toString(),c=Yo(e,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Kc(e,l)}};let o=Go(e);for(let a=o-1;a>=0;a--)i(a)||(a===o-1?(o--,Bo(e,o)):Jc[s].add(a))}function su(){if(!Xo){rm(!0);for(const s in si)eu(s,t=>{const e=t.data,n=t.provider,r=e.prefix,i=en(n,r);if(!Ao(i,e).length)return!1;const o=e.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,o):o,!0})}}function im(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in si)eu(n,r=>{const i=r.data;return r.provider!==s.provider||i.prefix!==s.prefix||i.lastModified===t});return!0}function om(s,t){Xo||su();function e(n){let r;if(!si[n]||!(r=tu(n)))return;const i=Jc[n];let o;if(i.size)i.delete(o=Array.from(i).shift());else if(o=Go(r),o>=nm||!Bo(r,o+1))return;const a={cached:Math.floor(Date.now()/Qc),provider:s.provider,data:t};return zo(r,Jn+o.toString(),JSON.stringify(a))}t.lastModified&&!im(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function nu(){}function am(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Wp(s)}))}function lm(s,t){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:e,prefix:n}=s,r=s.iconsToLoad;delete s.iconsToLoad;let i;if(!r||!(i=No(e)))return;i.prepare(e,n,r).forEach(a=>{em(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Ao(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),om(s,l)}catch(c){console.error(c)}am(s)})})}))}const cm=(s,t)=>{const e=Qp(s,!0,Yc()),n=Hp(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,nu)}),()=>{l=!1}}const r=Object.create(null),i=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,i.push(en(c,u));const h=r[c]||(r[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=en(c,u),m=f.pendingIcons||(f.pendingIcons=new Set);m.has(h)||(m.add(h),r[c][u].push(h))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&lm(l,r[c][u])}),t?Zp(t,n,i):nu};function um(s,t){const e={...s};for(const n in t){const r=t[n],i=typeof r;n in zc?(r===null||r&&(i==="string"||i==="number"))&&(e[n]=r):i===typeof e[n]&&(e[n]=n==="rotate"?r%4:r)}return e}const hm=/[\s,]+/;function fm(s,t){t.split(hm).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function dm(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(s);return isNaN(r)?0:n(r)}else if(e!==s){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(s.slice(0,s.length-e.length));return isNaN(i)?0:(i=i/r,i%1===0?n(i):0)}}return t}function pm(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)e+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function mm(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function gm(s){return"data:image/svg+xml,"+mm(s)}function ym(s){return'url("'+gm(s)+'")'}const ru={...Bc,inline:!1},vm={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},_m={display:"inline-block"},jo={backgroundColor:"currentColor"},iu={backgroundColor:"transparent"},ou={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},au={webkitMask:jo,mask:jo,background:iu};for(const s in au){const t=au[s];for(const e in ou)t[s+e]=ou[e]}const ri={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";ri[s+"-flip"]=t,ri[s.slice(0,1)+"-flip"]=t,ri[s+"Flip"]=t});function lu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const cu=(s,t)=>{const e=um(ru,t),n={...vm},r=t.mode||"svg",i={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let S in t){const k=t[S];if(k!==void 0)switch(S){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[S]=k===!0||k==="true"||k===1;break;case"flip":typeof k=="string"&&fm(e,k);break;case"color":i.color=k;break;case"rotate":typeof k=="string"?e[S]=dm(k):typeof k=="number"&&(e[S]=k);break;case"ariaHidden":case"aria-hidden":k!==!0&&k!=="true"&&delete n["aria-hidden"];break;default:{const _=ri[S];_?(k===!0||k==="true"||k===1)&&(e[_]=!0):ru[S]===void 0&&(n[S]=k)}}}const l=Np(s,e),c=l.attributes;if(e.inline&&(i.verticalAlign="-0.125em"),r==="svg"){n.style={...i,...a},Object.assign(n,c);let S=0,k=t.id;return typeof k=="string"&&(k=k.replace(/-/g,"_")),n.innerHTML=Vp(l.body,k?()=>k+"ID"+S++:"iconifyVue"),hs("svg",n)}const{body:u,width:h,height:f}=s,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),d=pm(u,{...c,width:h+"",height:f+""});return n.style={...i,"--svg":ym(d),width:lu(c.width),height:lu(c.height),..._m,...m?jo:iu,...a},hs("span",n)};if(Yc(!0),Yp("",Up),typeof document<"u"&&typeof window<"u"){su();const s=window;if(s.IconifyPreload!==void 0){const t=s.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Pp(n))&&console.error(e)}catch{console.error(e)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;zp(e,r)||console.error(n)}catch{console.error(n)}}}}const bm={...ti,body:""},xm=lt({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(s,t){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let e;if(typeof s!="string"||(e=Qr(s,!1,!0))===null)return this.abortLoading(),null;const n=kp(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:cm([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const r=["iconify"];return e.prefix!==""&&r.push("iconify--"+e.prefix),e.provider!==""&&r.push("iconify--"+e.provider),{data:n,classes:r}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return cu(bm,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),cu({...ti,...t.data},e)}});function uu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}const ii=s=>{let t=null;switch(s){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/i;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"trim":t=/^\s+|\s+$/g;break;case"regexp":t=/[\\^$.*+?()[\]{}|]/g;break;case"regexp-flags":t=/\w*$/;break;case"native-method":t=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(ii("regexp"),"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+?[1-9]{1}[0-9]{10}$/g;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+\@[A-Za-z0-9._-]+\.[A-Za-z0-9]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"time":t=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"datetime":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"whitespace":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"bezier":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
30
30
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
31
31
|
|[\u{4E00}-\u{9FCC}]
|
|
32
32
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -35,8 +35,8 @@ Component that was made reactive: `,s)),P(s,t,e,n,r,o,i,!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=ii(s)||new RegExp(s)),s.test(t)),hu=(s,t)=>{typeof s=="string"&&(s=ii(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},fu=(s,t)=>{typeof s=="string"&&(s=ii(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const r of n)e.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return e};function wm(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function du(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function oi(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let n="";for(let r=0;r<s;r++)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 Sm(s){return s.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function pu(s){return Cm(Sm(s))}function Tm(s){return s!=null}function km(s,...t){return new s.constructor(...t)}function mu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function gu(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function tr(s=[],t=[]){const e=s.length,n=t.length;for(let i=0;i<n;i++)s[i]=t[i];let r=Math.max(0,e-n);for(;r>0;)s.pop(),r--;return s}function Em(s,t){const e=s.findIndex(n=>n===t);return e>=0&&s.splice(e,1),s}let yu;try{yu=Map}catch{yu=function(){}}let vu;try{vu=Set}catch{vu=function(){}}function
|
|
39
|
-
`);n=~yt?B.length-yt:n+B.length}function i(){var B={line:e,column:n};return function(j){return j.position=new o(B),d(),j}}function o(B){this.start=B,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(B){var j=new Error(t.source+":"+e+":"+n+": "+B);if(j.reason=B,j.filename=t.source,j.line=e,j.column=n,j.source=s,t.silent)a.push(j);else throw j}function c(){var B=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:B,parsingErrors:a}}}function u(){return m(/^{\s*/)}function h(){return m(/^}/)}function f(){var B,j=[];for(d(),k(j);s.length&&s.charAt(0)!="}"&&(B=W()||nt());)B!==!1&&(j.push(B),k(j));return j}function m(B){var j=B.exec(s);if(j){var yt=j[0];return r(yt),s=s.slice(yt.length),j}}function d(){m(/^\s*/)}function k(B){var j;for(B=B||[];j=S();)j!==!1&&B.push(j);return B}function S(){var B=i();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 yt=s.slice(2,j-2);return n+=2,r(yt),s=s.slice(j),n+=2,B({type:"comment",comment:yt})}}function _(){var B=m(/^([^{]+)/);if(B)return ds(B[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 C(){var B=i(),j=m(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(j){if(j=ds(j[0]),!m(/^:\s*/))return l("property missing ':'");var yt=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),gt=B({type:"declaration",property:j.replace(Tu,""),value:yt?ds(yt[0]).replace(Tu,""):""});return m(/^[;\s]*/),gt}}function y(){var B=[];if(!u())return l("missing '{'");k(B);for(var j;j=C();)j!==!1&&(B.push(j),k(B));return h()?B:l("missing '}'")}function p(){for(var B,j=[],yt=i();B=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)j.push(B[1]),m(/^,\s*/);if(j.length)return yt({type:"keyframe",values:j,declarations:y()})}function x(){var B=i(),j=m(/^@([-\w]+)?keyframes\s*/);if(j){var yt=j[1];if(j=m(/^([-\w]+)\s*/),!j)return l("@keyframes missing name");var gt=j[1];if(!u())return l("@keyframes missing '{'");for(var Z,V=k();Z=p();)V.push(Z),V=V.concat(k());return h()?B({type:"keyframes",name:gt,vendor:yt,keyframes:V}):l("@keyframes missing '}'")}}function b(){var B=i(),j=m(/^@supports *([^{]+)/);if(j){var yt=ds(j[1]);if(!u())return l("@supports missing '{'");var gt=k().concat(f());return h()?B({type:"supports",supports:yt,rules:gt}):l("@supports missing '}'")}}function z(){var B=i(),j=m(/^@host\s*/);if(j){if(!u())return l("@host missing '{'");var yt=k().concat(f());return h()?B({type:"host",rules:yt}):l("@host missing '}'")}}function ct(){var B=i(),j=m(/^@media *([^{]+)/);if(j){var yt=ds(j[1]);if(!u())return l("@media missing '{'");var gt=k().concat(f());return h()?B({type:"media",media:yt,rules:gt}):l("@media missing '}'")}}function O(){var B=i(),j=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(j)return B({type:"custom-media",name:ds(j[1]),media:ds(j[2])})}function R(){var B=i(),j=m(/^@page */);if(j){var yt=_()||[];if(!u())return l("@page missing '{'");for(var gt=k(),Z;Z=C();)gt.push(Z),gt=gt.concat(k());return h()?B({type:"page",selectors:yt,declarations:gt}):l("@page missing '}'")}}function A(){var B=i(),j=m(/^@([-\w]+)?document *([^{]+)/);if(j){var yt=ds(j[1]),gt=ds(j[2]);if(!u())return l("@document missing '{'");var Z=k().concat(f());return h()?B({type:"document",document:gt,vendor:yt,rules:Z}):l("@document missing '}'")}}function D(){var B=i(),j=m(/^@font-face\s*/);if(j){if(!u())return l("@font-face missing '{'");for(var yt=k(),gt;gt=C();)yt.push(gt),yt=yt.concat(k());return h()?B({type:"font-face",declarations:yt}):l("@font-face missing '}'")}}var L=K("import"),X=K("charset"),rt=K("namespace");function K(B){var j=new RegExp("^@"+B+"\\s*([^;]+);");return function(){var yt=i(),gt=m(j);if(gt){var Z={type:B};return Z[B]=gt[1].trim(),yt(Z)}}}function W(){if(s[0]=="@")return x()||ct()||O()||b()||L()||X()||rt()||A()||R()||z()||D()}function nt(){var B=i(),j=_();return j?(k(),B({type:"rule",selectors:j,declarations:y()})):l("selector missing")}return Ko(c())}function ds(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Ko(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var r in s){var i=s[r];Array.isArray(i)?i.forEach(function(o){Ko(o,n)}):i&&typeof i=="object"&&Ko(i,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const zm={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s=>{const t=["th","st","nd","rd"],e=s%100;return`[${s}${t[(e-20)%10]||t[e]||t[0]}]`}};let ci="en";const ui={};ui[ci]=zm;function ku(s,t){if(!s)return ci;let e;if(typeof s=="string"){const n=s.toLowerCase();ui[n]&&(e=n),t&&(ui[n]=t,e=n);const r=s.split("-");if(!e&&r.length>1)return ku(r[0])}else{const{name:n}=s;ui[n]=s,e=n}return e&&(ci=e),e||ci}const Bm={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:(s,t)=>{switch(t){case"W":return`${s}周`;default:return`${s}日`}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:(s,t)=>{const e=s*100+t;return e<600?"凌晨":e<900?"早上":e<1100?"上午":e<1300?"中午":e<1800?"下午":"晚上"}};ku(Bm);function Gm(s,t=(e,n)=>e<=n){const e=s.length;let n=Math.floor(e/2);for(;n>0;){for(let r=n;r<e;r++){const i=s[r];let o=r;for(;o>=n&&!t(s[o-n],i);)s[o]=s[o-n],o-=n;s[o]=i}n=Math.floor(n/2)}}let Eu;try{Eu=Promise}catch{Eu=function(){}}class Pu{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)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,r=e.length;n<r;n++){const[i,o]=e[n];t(i,o)===!1&&this.delete(i)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function Xm(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var jm={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 r(_,C){var y=_[0],p=_[1],x=_[2],b=_[3];y+=(p&x|~p&b)+C[0]-680876936|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&x)+C[1]-389564586|0,b=(b<<12|b>>>20)+y|0,x+=(b&y|~b&p)+C[2]+606105819|0,x=(x<<17|x>>>15)+b|0,p+=(x&b|~x&y)+C[3]-1044525330|0,p=(p<<22|p>>>10)+x|0,y+=(p&x|~p&b)+C[4]-176418897|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&x)+C[5]+1200080426|0,b=(b<<12|b>>>20)+y|0,x+=(b&y|~b&p)+C[6]-1473231341|0,x=(x<<17|x>>>15)+b|0,p+=(x&b|~x&y)+C[7]-45705983|0,p=(p<<22|p>>>10)+x|0,y+=(p&x|~p&b)+C[8]+1770035416|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&x)+C[9]-1958414417|0,b=(b<<12|b>>>20)+y|0,x+=(b&y|~b&p)+C[10]-42063|0,x=(x<<17|x>>>15)+b|0,p+=(x&b|~x&y)+C[11]-1990404162|0,p=(p<<22|p>>>10)+x|0,y+=(p&x|~p&b)+C[12]+1804603682|0,y=(y<<7|y>>>25)+p|0,b+=(y&p|~y&x)+C[13]-40341101|0,b=(b<<12|b>>>20)+y|0,x+=(b&y|~b&p)+C[14]-1502002290|0,x=(x<<17|x>>>15)+b|0,p+=(x&b|~x&y)+C[15]+1236535329|0,p=(p<<22|p>>>10)+x|0,y+=(p&b|x&~b)+C[1]-165796510|0,y=(y<<5|y>>>27)+p|0,b+=(y&x|p&~x)+C[6]-1069501632|0,b=(b<<9|b>>>23)+y|0,x+=(b&p|y&~p)+C[11]+643717713|0,x=(x<<14|x>>>18)+b|0,p+=(x&y|b&~y)+C[0]-373897302|0,p=(p<<20|p>>>12)+x|0,y+=(p&b|x&~b)+C[5]-701558691|0,y=(y<<5|y>>>27)+p|0,b+=(y&x|p&~x)+C[10]+38016083|0,b=(b<<9|b>>>23)+y|0,x+=(b&p|y&~p)+C[15]-660478335|0,x=(x<<14|x>>>18)+b|0,p+=(x&y|b&~y)+C[4]-405537848|0,p=(p<<20|p>>>12)+x|0,y+=(p&b|x&~b)+C[9]+568446438|0,y=(y<<5|y>>>27)+p|0,b+=(y&x|p&~x)+C[14]-1019803690|0,b=(b<<9|b>>>23)+y|0,x+=(b&p|y&~p)+C[3]-187363961|0,x=(x<<14|x>>>18)+b|0,p+=(x&y|b&~y)+C[8]+1163531501|0,p=(p<<20|p>>>12)+x|0,y+=(p&b|x&~b)+C[13]-1444681467|0,y=(y<<5|y>>>27)+p|0,b+=(y&x|p&~x)+C[2]-51403784|0,b=(b<<9|b>>>23)+y|0,x+=(b&p|y&~p)+C[7]+1735328473|0,x=(x<<14|x>>>18)+b|0,p+=(x&y|b&~y)+C[12]-1926607734|0,p=(p<<20|p>>>12)+x|0,y+=(p^x^b)+C[5]-378558|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^x)+C[8]-2022574463|0,b=(b<<11|b>>>21)+y|0,x+=(b^y^p)+C[11]+1839030562|0,x=(x<<16|x>>>16)+b|0,p+=(x^b^y)+C[14]-35309556|0,p=(p<<23|p>>>9)+x|0,y+=(p^x^b)+C[1]-1530992060|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^x)+C[4]+1272893353|0,b=(b<<11|b>>>21)+y|0,x+=(b^y^p)+C[7]-155497632|0,x=(x<<16|x>>>16)+b|0,p+=(x^b^y)+C[10]-1094730640|0,p=(p<<23|p>>>9)+x|0,y+=(p^x^b)+C[13]+681279174|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^x)+C[0]-358537222|0,b=(b<<11|b>>>21)+y|0,x+=(b^y^p)+C[3]-722521979|0,x=(x<<16|x>>>16)+b|0,p+=(x^b^y)+C[6]+76029189|0,p=(p<<23|p>>>9)+x|0,y+=(p^x^b)+C[9]-640364487|0,y=(y<<4|y>>>28)+p|0,b+=(y^p^x)+C[12]-421815835|0,b=(b<<11|b>>>21)+y|0,x+=(b^y^p)+C[15]+530742520|0,x=(x<<16|x>>>16)+b|0,p+=(x^b^y)+C[2]-995338651|0,p=(p<<23|p>>>9)+x|0,y+=(x^(p|~b))+C[0]-198630844|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~x))+C[7]+1126891415|0,b=(b<<10|b>>>22)+y|0,x+=(y^(b|~p))+C[14]-1416354905|0,x=(x<<15|x>>>17)+b|0,p+=(b^(x|~y))+C[5]-57434055|0,p=(p<<21|p>>>11)+x|0,y+=(x^(p|~b))+C[12]+1700485571|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~x))+C[3]-1894986606|0,b=(b<<10|b>>>22)+y|0,x+=(y^(b|~p))+C[10]-1051523|0,x=(x<<15|x>>>17)+b|0,p+=(b^(x|~y))+C[1]-2054922799|0,p=(p<<21|p>>>11)+x|0,y+=(x^(p|~b))+C[8]+1873313359|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~x))+C[15]-30611744|0,b=(b<<10|b>>>22)+y|0,x+=(y^(b|~p))+C[6]-1560198380|0,x=(x<<15|x>>>17)+b|0,p+=(b^(x|~y))+C[13]+1309151649|0,p=(p<<21|p>>>11)+x|0,y+=(x^(p|~b))+C[4]-145523070|0,y=(y<<6|y>>>26)+p|0,b+=(p^(y|~x))+C[11]-1120210379|0,b=(b<<10|b>>>22)+y|0,x+=(y^(b|~p))+C[2]+718787259|0,x=(x<<15|x>>>17)+b|0,p+=(b^(x|~y))+C[9]-343485551|0,p=(p<<21|p>>>11)+x|0,_[0]=y+_[0]|0,_[1]=p+_[1]|0,_[2]=x+_[2]|0,_[3]=b+_[3]|0}function i(_){var C=[],y;for(y=0;y<64;y+=4)C[y>>2]=_.charCodeAt(y)+(_.charCodeAt(y+1)<<8)+(_.charCodeAt(y+2)<<16)+(_.charCodeAt(y+3)<<24);return C}function o(_){var C=[],y;for(y=0;y<64;y+=4)C[y>>2]=_[y]+(_[y+1]<<8)+(_[y+2]<<16)+(_[y+3]<<24);return C}function a(_){var C=_.length,y=[1732584193,-271733879,-1732584194,271733878],p,x,b,z,ct,O;for(p=64;p<=C;p+=64)r(y,i(_.substring(p-64,p)));for(_=_.substring(p-64),x=_.length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<x;p+=1)b[p>>2]|=_.charCodeAt(p)<<(p%4<<3);if(b[p>>2]|=128<<(p%4<<3),p>55)for(r(y,b),p=0;p<16;p+=1)b[p]=0;return z=C*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(z[2],16),O=parseInt(z[1],16)||0,b[14]=ct,b[15]=O,r(y,b),y}function l(_){var C=_.length,y=[1732584193,-271733879,-1732584194,271733878],p,x,b,z,ct,O;for(p=64;p<=C;p+=64)r(y,o(_.subarray(p-64,p)));for(_=p-64<C?_.subarray(p-64):new Uint8Array(0),x=_.length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<x;p+=1)b[p>>2]|=_[p]<<(p%4<<3);if(b[p>>2]|=128<<(p%4<<3),p>55)for(r(y,b),p=0;p<16;p+=1)b[p]=0;return z=C*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(z[2],16),O=parseInt(z[1],16)||0,b[14]=ct,b[15]=O,r(y,b),y}function c(_){var C="",y;for(y=0;y<4;y+=1)C+=n[_>>y*8+4&15]+n[_>>y*8&15];return C}function u(_){var C;for(C=0;C<_.length;C+=1)_[C]=c(_[C]);return _.join("")}u(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function _(C,y){return C=C|0||0,C<0?Math.max(C+y,0):Math.min(C,y)}ArrayBuffer.prototype.slice=function(C,y){var p=this.byteLength,x=_(C,p),b=p,z,ct,O,R;return y!==e&&(b=_(y,p)),x>b?new ArrayBuffer(0):(z=b-x,ct=new ArrayBuffer(z),O=new Uint8Array(ct),R=new Uint8Array(this,x,z),O.set(R),ct)}}();function h(_){return/[\u0080-\uFFFF]/.test(_)&&(_=unescape(encodeURIComponent(_))),_}function f(_,C){var y=_.length,p=new ArrayBuffer(y),x=new Uint8Array(p),b;for(b=0;b<y;b+=1)x[b]=_.charCodeAt(b);return C?x:p}function m(_){return String.fromCharCode.apply(null,new Uint8Array(_))}function d(_,C,y){var p=new Uint8Array(_.byteLength+C.byteLength);return p.set(new Uint8Array(_)),p.set(new Uint8Array(C),_.byteLength),y?p:p.buffer}function k(_){var C=[],y=_.length,p;for(p=0;p<y-1;p+=2)C.push(parseInt(_.substr(p,2),16));return String.fromCharCode.apply(String,C)}function S(){this.reset()}return S.prototype.append=function(_){return this.appendBinary(h(_)),this},S.prototype.appendBinary=function(_){this._buff+=_,this._length+=_.length;var C=this._buff.length,y;for(y=64;y<=C;y+=64)r(this._hash,i(this._buff.substring(y-64,y)));return this._buff=this._buff.substring(y-64),this},S.prototype.end=function(_){var C=this._buff,y=C.length,p,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b;for(p=0;p<y;p+=1)x[p>>2]|=C.charCodeAt(p)<<(p%4<<3);return this._finish(x,y),b=u(this._hash),_&&(b=k(b)),this.reset(),b},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(_){return this._buff=_.buff,this._length=_.length,this._hash=_.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(_,C){var y=C,p,x,b;if(_[y>>2]|=128<<(y%4<<3),y>55)for(r(this._hash,_),y=0;y<16;y+=1)_[y]=0;p=this._length*8,p=p.toString(16).match(/(.*?)(.{0,8})$/),x=parseInt(p[2],16),b=parseInt(p[1],16)||0,_[14]=x,_[15]=b,r(this._hash,_)},S.hash=function(_,C){return S.hashBinary(h(_),C)},S.hashBinary=function(_,C){var y=a(_),p=u(y);return C?k(p):p},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(_){var C=d(this._buff.buffer,_,!0),y=C.length,p;for(this._length+=_.byteLength,p=64;p<=y;p+=64)r(this._hash,o(C.subarray(p-64,p)));return this._buff=p-64<y?new Uint8Array(C.buffer.slice(p-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(_){var C=this._buff,y=C.length,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x,b;for(x=0;x<y;x+=1)p[x>>2]|=C[x]<<(x%4<<3);return this._finish(p,y),b=u(this._hash),_&&(b=k(b)),this.reset(),b},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var _=S.prototype.getState.call(this);return _.buff=m(_.buff),_},S.ArrayBuffer.prototype.setState=function(_){return _.buff=f(_.buff,!0),S.prototype.setState.call(this,_)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(_,C){var y=l(new Uint8Array(_)),p=u(y);return C?k(p):p},S})})(jm);const Ou=s=>new XMLSerializer().serializeToString(s),Um=(s,t=bu.SVG,e=li.utf8)=>xu(Ou(s),t,e);function Iu(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(),window.URL.revokeObjectURL(e.href)}const Hm=(s,t,e)=>{const n=async r=>{await e(r)};return s.addEventListener(t,n,!1),()=>{s.removeEventListener(t,n,!1)}};function Wm(){const s=new er;return{on:(t,e)=>{s.on(t,e)},off:(t,e)=>{s.off(t,e)},emit:(t,...e)=>{s.emit(t,...e)}}}const Jo=Wm();function qm(){return{remove:Hm(document,"scroll",s=>{Jo.emit("scroll",s)}),on:s=>{Jo.on("scroll",s)},off:s=>{Jo.off("scroll",s)}}}function Zm(){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 r=s.indexOf("rv:");return parseInt(s.substring(r+3,s.indexOf(".",r)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const ta=Zm()!==-1;(()=>{const s=uu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!uu().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 Qm(s,t,e){const n=document.createElement("script");n.type="text/javascript",n.src=s,n.async=!1,n.onload=t||wu,n.onerror=e||wu,document.body.appendChild(n)}(function(){if(!window.requestAnimationFrame){let s=ce();window.requestAnimationFrame=function(t){const e=ce(),n=Math.max(0,16-(e-s)),r=window.setTimeout(function(){t(e+n)},n);return s=e+n,r}}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 ea(s,t=0){if(t==0)return s(ce()),()=>{};{const e=ce();return Zt(n=>n-e>=t?(s(n),!1):!0)}}function Km(s,t=0){let e=!1,n=0;const r=ce(),i=o=>{if(e)return;n++;const a=o-r-n*t;s(o,n,t<=a),ea(i,Math.max(0,t-a))};return ea(i,t),()=>{e=!0}}function Jm(s,t=20){const e=1e3/t;let n=0,r;return()=>(ce()-n>=e&&(n=ce(),r=s()),r)}const hi=new Pu;let sa=!1;function Du(s,t,e){if(s&&t&&hi.set(s,t),sa)return;sa=!0;const n=ce();eg(r=>{for(sa=!1;(r.timeRemaining()>0||e&&ce()-n>=e)&&hi.length>0;){const i=hi.shift();i&&i[1]()}hi.length>0&&Du()})}let fi=0,sn=33,Ms=33,na;const Ru=new MessageChannel,tg=Ru.port2;Ru.port1.onmessage=s=>{na!==null&&na({didTimeout:fi<=ce(),timeRemaining:()=>Math.max(0,fi-ce())})};function eg(s){return na=s,requestAnimationFrame(t=>{let e=t-fi+Ms;e<Ms&&sn<Ms?(e<8&&(e=8),Ms=e<sn?sn:e):e>Ms&&sn>Ms?Ms=e<sn?sn:e:sn=e,fi=t+Ms,tg.postMessage(null)})}class nr{static _nextId=0;static nextId(){return nr._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}},ra=ut;function sg(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 vn={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=vn.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,r){const i=(e-s)*.5,o=(n-t)*.5,a=r*r,l=r*a;return(2*t-2*e+i+o)*l+(-3*t+3*e-2*i-o)*a+i*r+t},QuadraticBezier:(s,t,e,n)=>{const r=1-n;return r*r*s+2*r*n*t+n*n*e},CubicBezier:(s,t,e,n,r)=>{const i=1-r;return i*i*i*s+3*i*i*r*t+3*i*r*r*e+r*r*r*n}},Linear:function(s,t){const e=s.length-1,n=e*t,r=Math.floor(n),i=vn.Utils.Linear;return t<0?i(s[0],s[1],n):t>1?i(s[e],s[e-1],e-n):i(s[r],s[r+1>e?e:r+1],n-r)},Bezier:function(s,t){let e=0;const n=s.length-1,r=Math.pow,i=vn.Utils.Bernstein;for(let o=0;o<=n;o++)e+=r(1-t,n-o)*r(t,o)*s[o]*i(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,r=Math.floor(n);const i=vn.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(r=Math.floor(n=e*(1+t))),i(s[(r-1+e)%e],s[r],s[(r+1)%e],s[(r+2)%e],n-r)):t<0?s[0]-(i(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(i(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):i(s[r?r-1:0],s[r],s[e<r+1?e:r+1],s[e<r+2?e:r+2],n-r)}},ia=vn;class Au{_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 r=0;r<n.length;r++){const i=this._tweens[n[r]],o=!e;i&&i.update(t,o)===!1&&!e&&delete this._tweens[n[r]]}return!!Object.keys(this._tweens).length}}const Le=new Au;class Mu{constructor(t,e=Le){this._object=t,this._group=e}_id=nr.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=ra.Linear.None;_interpolationFunction=ia.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,r){for(const i in n){const o=t[i],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[i]);if(!(l==="undefined"||l==="function")){if(c){let u=n[i];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[i]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[i]=a?[]:{};for(const u in o)e[i][u]=o[u];r[i]=a?[]:{},this._setupProperties(o,e[i],n[i],r[i])}else typeof e[i]>"u"&&(e[i]=o),a||(e[i]*=1),c?r[i]=n[i].slice().reverse():r[i]=e[i]||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=ra.Linear.None){return this._easingFunction=t,this}interpolation(t=ia.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,r;const i=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>i)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),r=(t-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===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,r){for(const i in n){if(e[i]===void 0)continue;const o=e[i]||0;let a=n[i];const l=Array.isArray(t[i]),c=Array.isArray(a);!l&&c?t[i]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(t[i],o,a,r):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[i]=o+(a-o)*r))}}_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 ng=Mu,rg=nr.nextId,ig=Le.getAll.bind(Le),og=Le.removeAll.bind(Le),ag=Le.add.bind(Le),lg=Le.remove.bind(Le),cg=Le.update.bind(Le),bt={now:ce,Sequence:nr,Easing:ra,Interpolation:ia,Group:Au,Tween:ng,nextId:rg,getAll:ig,removeAll:og,add:ag,remove:lg,update:cg};class ug{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 Nu=ug;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){Gm(this.tweens,(e,n)=>t?e.delay>n.delay:e.delay<=n.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(n=>{const r={...n};delete r.tween,r.fromValues={...r.fromValues},r.toValues={...r.toValues},e.push(r)}),e}addTween(t,e,n){const r={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||vn.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(r),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new Nu,n=this.frameDuration;return new Promise(r=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Zt(i=>{if(!this.isPaused){const a=Math.max(0,i-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*n<=l).forEach(c=>{c.tween||(c.tween=new Mu({...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?.(),r()),o})})}isPaused=!1;pausedClock=new Nu;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=sg(n.easeFunction);const r={...n.toValues};n.toValues={...n.fromValues},n.fromValues={...r}}),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}}const di=new Pu,hg=(s=!0)=>{di.filter((t,e)=>(e.alternate&&(Xu(e,e.alternate),s&&di.set(t,e.alternate),e.alternate=void 0),s))};function Fu(s){let t=di.get(s);return t||(t=aa(s),di.set(s,t)),t}function fg(s){const t=Fu(s);return t.alternate||(t.alternate=aa(s)),t.alternate}function Lu(s,t,e=!0){t(fg(s)),Du("FLUSH_DOM_ACTION",()=>hg(e),50)}function _n(s,t,e){const n=Fu(s);return t?n.props.style[t]||n.props.style[pu(t)]||n.props.style[Ue(t)]:n.props.style}function pi(s,t,e){Lu(s,n=>{typeof t=="string"&&e?n.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(r=>{n.props.style[r]=t[r]})},!0)}function $u(s){const t=[];if(getComputedStyle){const e=getComputedStyle(s);for(let n=0,r=e.length;n<r;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,r)=>r==0?pu(n).trim():n.trim())))}function oa(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=>{oa(s,n,t[n])})}function Vu(s,t){typeof t=="string"?s.style.removeProperty(Ue(t)):Object.keys(t).forEach(e=>{Vu(s,e)})}function nn(s,t){let e;if(typeof t=="string"){const r=document.querySelector(t)?.shadowRoot;r?e=r: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 r=document.styleSheets[0].insertRule(s);return()=>{document.styleSheets[0].deleteRule(r)}}}function bn(s,t,e){if(t===void 0&&e===void 0)return Yu(s);if(typeof t=="string"&&e===void 0)return dg(s,t);let n={};typeof t=="object"?n=t:typeof t=="string"&&typeof e=="string"&&(n[t]=e),Lu(s,r=>{Object.entries(n).forEach(([i,o])=>{r.props[i]=o})})}function Yu(s){const t={};for(let e=0,n=s.attributes,r=n.length;e<r;e++){const i=n[e];i.nodeName&&i.nodeValue&&(i.nodeName==="style"?t[i.nodeName]=$u(s):t[i.nodeName]=i.nodeValue)}return t}function dg(s,t){return t==="style"?$u(s):s.getAttribute(Ue(t))}function zu(s,t,e){return s.setAttribute(Ue(t),e)}function Bu(s,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(s.className)||!1}async function Gu(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 pg(s,t={},e=[],n){return{tag:s,props:t,children:e,el:n}}function aa(s){return pg(s.tagName,Yu(s),Array.from(s.children).map(t=>aa(t)),s)}function mi(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"?oa(s.el,s.props[e]):zu(s.el,e,n)}return s.children&&(typeof s.children=="string"?s.el.appendChild(document.createTextNode(s.children)):s.children.forEach(e=>{mi(e,s.el)})),t.appendChild(s.el),s.el}function Xu(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(mi(t),s.el);return}const e=t.el=s.el,n=s.props,r=t.props;for(const a in n)a in r||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),n[a]):e.removeAttribute(a));for(const a in r){const l=n[a],c=r[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||Vu(e,u);oa(e,c)}else zu(e,a,c)}const i=s.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof i=="string")e.innerHTML="",o.forEach(a=>{mi(a,e)});else{const a=Math.min(i.length,o.length);for(let l=0;l<a;l++)Xu(i[l],o[l]);o.length>i.length&&o.slice(i.length).forEach(l=>{mi(l,e)}),o.length<i.length&&i.slice(o.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function Ft(s){return s*Math.PI/180}function Ie(s){return s*180/Math.PI}function la(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function ca(s,t,e,n){return la(e-s,n-t)}function ua(s,t,e,n){const r=e-s,i=n-t;return r*r+i*i}function xn(s,t,e,n){let r=Math.atan2(n-t,e-s);return r<0&&(r+=Math.PI*2),r}function ps(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const ju=mg("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 mg(s,t=10){const e={},n=s.split(",");for(let r=0;r<n.length;r+=2){const i="&"+n[r+1]+";",o=parseInt(n[r],t);e[i]="&#"+o+";"}return e["\\xa0"]=" ",e}function Se(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 gi(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 gg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function yg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const rr={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 ha{__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 i=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);i&&(n.setAttribute("stop-color",Se("rgb({r},{g},{b})",{r:i[1],g:i[2],b:i[3]})),n.setAttribute("stop-opacity",i[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class Uu{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class yi{__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(rr);for(let e=0,n=t.length;e<n;e++){const r=t[e];this[r]=rr[r].canvas}}__getStyleState(){const t={},e=Object.keys(rr);for(let n=0,r=e.length;n<r;n++){const i=e[n];t[i]=this[i]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){const i=e[n];this[i]=t[i]}}__createElement(t,e={},n=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),i=Object.keys(e);n&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<i.length;o++){const a=i[o];r.setAttribute(a,e[a])}return r}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(i=>{i.setAttribute(t,"")}));const r=Object.keys(rr);for(let i=0;i<r.length;i++){const o=rr[r[i]],a=this[r[i]];if(o.apply){if(a instanceof Uu){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,Se("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof ha)e.setAttribute(o.apply,Se("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,Se("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(r[i]==="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 r=Object.keys(ju);for(let i=0,o=r.length;i<o;i++){const a=r[i],l=ju[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 r=this.__createElement("g");e.appendChild(r),this.__currentElement=r}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(Se("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Se("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Se("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,r,i,o){this.__addTransform(Se("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:r,e:i,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(Se("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(Se("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Se("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,r,i,o){this.__currentPosition={x:i,y:o},this.__addPathCommand(Se("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:r,x:i,y:o}))}quadraticCurveTo(t,e,n,r){this.__currentPosition={x:n,y:r},this.__addPathCommand(Se("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:r}))}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,r,i){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(i<0)throw new Error("IndexSizeError: The radius provided ("+i+") is negative.");if(o===t&&a===e||t===n&&e===r||i===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,r-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=i/Math.sin(h/2),d=t+m*f[0],k=e+m*f[1],S=[-l[1],l[0]],_=[c[1],-c[0]],C=function(x){const b=x[0];return x[1]>=0?Math.acos(b):-Math.acos(b)},y=C(S),p=C(_);this.lineTo(d+S[0]*i,k+S[1]*i),this.arc(d,k,i,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,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,r){const i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,r){const i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],r=n.childNodes;for(let i=r.length-1;i>=0;i--)r[i]&&n.removeChild(r[i]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,r){if(t===0&&e===0&&n===this.width&&r===this.height){this.__clearCanvas();return}const i=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:r,fill:"#FFFFFF"},!0);i.appendChild(o)}createLinearGradient(t,e,n,r){const i=this.__createElement("linearGradient",{id:gi(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new ha(i,this)}createRadialGradient(t,e,n,r,i,o){const a=this.__createElement("radialGradient",{id:gi(this.__ids),cx:r+"px",cy:i+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new ha(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,r){const i=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":i.family,"font-size":i.size,"font-style":i.style,"font-weight":i.weight,"text-decoration":i.decoration,x:e,y:n,"text-anchor":gg(this.textAlign),"dominant-baseline":yg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(i,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,r,i,o){if(r===i)return;r=r%(2*Math.PI),i=i%(2*Math.PI),r===i&&(i=(i+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(i),l=e+n*Math.sin(i),c=t+n*Math.cos(r),u=e+n*Math.sin(r),h=o?0:1;let f=0,m=i-r;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(Se("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=gi(this.__ids),r=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",Se("url(#{id})",{id:n})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],n,r,i,o,a=0,l=0,c,u,h,f,m,d,k,S;if(t.length===3)n=t[1],r=t[2],c=e.width,u=e.height,i=c,o=u;else if(t.length===5)n=t[1],r=t[2],i=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],r=t[6],i=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const _=this.__closestGroupOrSvg();this.__currentElement;const C="translate("+n+", "+r+")";if(e instanceof yi){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)S=f.childNodes[0].getAttribute("id"),this.__ids[S]=S,this.__SVGdefs.appendChild(f.childNodes[0]);if(m=h.childNodes[1],m){const y=m.getAttribute("transform");let p;y?p=y+" "+C:p=C,m.setAttribute("transform",p),_.appendChild(m)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(d=this.__createElement("image"),d.setAttribute("width",i),d.setAttribute("height",o),d.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(k=this.__document.createElement("canvas"),k.width=i,k.height=o,k.getContext("2d")?.drawImage(e,a,l,c,u,0,0,i,o),e=k),d.setAttribute("transform",C),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"),r=gi(this.__ids);let i;return n.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(i=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(i),this.__SVGdefs.appendChild(n)):t instanceof yi&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new Uu(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class fa{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,r=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),r&&(this.customContext=new yi({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,r){return this.context.fillRect(t,e,n,r),this.customContext&&this.customContext.fillRect(t,e,n,r),this}fillText(t,e,n,r){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,r),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,r){return this.context.strokeText(t,e,n,r),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,r){return this.context.strokeRect(t,e,n,r),this.customContext&&this.customContext.strokeRect(t,e,n,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,n,r),this.customContext&&this.customContext.clearRect(t,e,n,r),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,r=0){return this.translate(n,r),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-r),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,r,i,o){return this.context.arc(t,e,n,r,i,o),this.customContext&&this.customContext.arc(t,e,n,r,i,o?-1:1),this.currentPath2D.arc(t,e,n,r,i,o),this}arcTo(t,e,n,r,i){return this.context.arcTo(t,e,n,r,i),this.customContext&&this.customContext.arcTo(t,e,n,r,i),this.currentPath2D.arcTo(t,e,n,r,i),this}ellipse(t,e,n,r,i,o,a,l){return this.context.ellipse(t,e,n,r,i,o,a,l),this.currentPath2D.ellipse(t,e,n,r,i,o,a,l),this}quadraticCurveTo(t,e,n,r){return this.context.quadraticCurveTo(t,e,n,r),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,r),this.currentPath2D.quadraticCurveTo(t,e,n,r),this}bezierCurveTo(t,e,n,r,i,o){return this.context.bezierCurveTo(t,e,n,r,i,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,r,i,o),this.currentPath2D.bezierCurveTo(t,e,n,r,i,o),this}rect(t,e,n,r){return this.context.rect(t,e,n,r),this.customContext&&this.customContext.rect(t,e,n,r),this.currentPath2D.rect(t,e,n,r),this}createLinearGradient(t,e,n,r,i){const o=this.context.createLinearGradient(t,e,n,r);return i&&Object.entries(i).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,r,i,o,a){const l=this.context.createRadialGradient(t,e,n,r,i,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],r=e[1];this.context.drawImage(t,n,r)}else if(e.length===4){const n=e[0],r=e[1],i=e[2],o=e[3];this.context.drawImage(t,n,r,i,o)}else if(e.length===8){const n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,r,i,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,r=this.canvas.height,i){return this.context.getImageData(t,e,n,r,i)}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 vi{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=xn(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),r=Math.max(this.x,this.toX),i=Math.max(this.y,this.toY);return{x:e,y:n,width:r-e,height:i-n}}else{const e=Math.sin(t),n=Math.cos(t),r=n*this.x-e*this.y,i=n*this.toX-e*this.toY,o=n*this.y+e*this.x,a=n*this.toY+e*this.toX;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.max(r,i)-Math.min(r,i),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,r=t.toX,i=t.toY,o=this.toX-e,a=t.x-r;if(!o&&!a)return null;const l=(this.toY-n)/o,c=(t.y-i)/a;if(o){if(!a)return{x:r,y:l*(r-e)+n}}else return{x:e,y:c*(e-r)+i};const u=(-c*r+i+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}const Hu=vi;class da extends vi{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,r,i,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,r,i,o,a,l,!this.sweepFlag)}convert(t,e,n,r,i,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-r)/2,m=Math.cos(u)*h+Math.sin(u)*f,d=-Math.sin(u)*h+Math.cos(u)*f,k=m*m/(i*i)+d*d/(o*o);if(k>1){const A=Math.sqrt(k);throw i=A*i,o=A*o,new Error(`Radii are too small to build an arc. Correcting them to ${i}/${o}.`)}const S=Math.sqrt((i*i*o*o-i*i*d*d-o*o*m*m)/(i*i*d*d+o*o*m*m)),_=l!=c?1:-1,C=_*S*i*d/o,y=_*S*-o*m/i,p=(t+n)/2,x=(e+r)/2,b=Math.cos(u)*C-Math.sin(u)*y+p,z=Math.sin(u)*C+Math.cos(u)*y+x,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-z)-u,R=ct(t-b,e-z,n-b,r-z);return[b,z,i,o,u,O,O+R]}}const vg=da;class _g extends vi{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,r,i,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,r=c==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,i=c==0?this.x:this.y,Math.abs(n)>1e-12&&(o=-r/(2*n),0<o&&o<1&&[t,e][c].push(n*o*o+r*o+i));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 bg=_g;class rn extends vi{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,r=(-e+Math.sqrt(e*e-4*t*n))/2/t,i=(-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(r)>1e12&&(r=.5),Math.abs(i)>1e12&&(i=.5),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),i>=0&&i<=1&&(l=this.interpolate(i),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,r=(-e+Math.sqrt(e*e-4*t*n))/2/t,i=(-e-Math.sqrt(e*e-4*t*n))/2/t,Math.abs(r)>1e12&&(r=.5),Math.abs(i)>1e12&&(i=.5),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),i>=0&&i<=1&&(l=this.interpolate(i),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 k=d+1;k<h;k++)c[d].X===c[k].X&&c[d].Y===c[k].Y&&(k=++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,r,i){const o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n}static bezlen(t,e,n,r,i,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 k=u*h[d]+u,S=this.base3(k,t,n,i,a),_=this.base3(k,e,r,o,l);m+=f[d]*Math.sqrt(S*S+_*_)}return u*m}length(t=1){return rn.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,r=this.c1x,i=this.c1y,o=this.c2x,a=this.c2y,l=this.toX,c=this.toY;if(t<0||rn.bezlen(e,n,r,i,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,m=rn.bezlen(e,n,r,i,o,a,l,c,f);for(;Math.abs(m-t)>.01;)h/=2,f+=(m<t?1:-1)*h,m=rn.bezlen(e,n,r,i,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t);let n=1-e,r=Math.pow(n,3),i=Math.pow(n,2),o=e*e,a=o*e,l=r*this.x+i*3*e*this.c1x+n*3*e*e*this.c2x+a*this.toX,c=r*this.y+i*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,k=n*this.y+e*this.c1y,S=n*this.c2x+e*this.toX,_=n*this.c2y+e*this.toY,C=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:k},end:{x:S,y:_},alpha:C}}}const Ns=rn,ir=Math.PI*2;function Wu(s,t,e,n){const r=s*n-t*e<0?-1:1;let i=s*e+t*n;return i>1&&(i=1),i<-1&&(i=-1),r*Math.acos(i)}function xg(s,t,e,n,r,i,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,k=h*h;let S=f*m-f*k-m*d;S<0&&(S=0),S/=f*k+m*d,S=Math.sqrt(S)*(r===i?-1:1);const _=S*o/a*h,C=S*-a/o*u,y=c*_-l*C+(s+e)/2,p=l*_+c*C+(t+n)/2,x=(u-_)/o,b=(h-C)/a,z=(-u-_)/o,ct=(-h-C)/a,O=Wu(1,0,x,b);let R=Wu(x,b,z,ct);return i===0&&R>0&&(R-=ir),i===1&&R<0&&(R+=ir),[y,p,O,R]}function wg(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),r=Math.sin(s),i=Math.cos(s+t),o=Math.sin(s+t);return[n,r,n-r*e,r+n*e,i+o*e,o-i*e,i,o]}function qu(s,t,e,n,r,i,o,a,l){const c=Math.sin(l*ir/360),u=Math.cos(l*ir/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=xg(s,t,e,n,r,i,o,a,c,u),k=[];let S=d[2],_=d[3];const C=Math.max(Math.ceil(Math.abs(_)/(ir/4)),1);_/=C;for(let y=0;y<C;y++)k.push(wg(S,_)),S+=_;return k.map(y=>{for(let p=0;p<y.length;p+=2){let x=y[p+0],b=y[p+1];x*=o,b*=a;const z=u*x-c*b,ct=c*x+u*b;y[p+0]=z+d[0],y[p+1]=ct+d[1]}return y})}function pa(s,t,e,n,r,i){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,r/3+.6666666666666666*e,i/3+.6666666666666666*n,r,i]}function or(s,t,e,n){return[s,t,e,n,e,n]}const _i={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&&bn(n,e),n}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||oi()})}static downloadFromSVGElement(t,e="shape"){return Iu(Um(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Iu(xu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Ou(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,r,i)=>{let o=r.toLowerCase();const a=Uo(i);for(o=="m"&&a.length>_i[o]&&(e.push([r,...a.splice(0,_i[o])]),o="l",r=r=="m"?"l":"L");a.length;){if(a.length<_i[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${r} } args:{ ${a} }`);e.push([r,...a.splice(0,_i[o])])}return o=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,r=0,i=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]+=r,o[7]+=i;break;case"v":o[1]+=i;break;case"h":o[1]+=r;break;default:for(let c=1;c<o.length;)o[c++]+=r,o[c++]+=i}switch(l){case"Z":r=e,i=n;break;case"H":r=o[1];break;case"V":i=o[1];break;case"M":r=e=o[1],i=n=o[2];break;default:r=o[o.length-2],i=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,r=0,i=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]-=r,o[7]-=i;break;case"V":o[1]-=i;break;case"H":o[1]-=r;break;default:for(let c=1;c<o.length;)o[c++]-=r,o[c++]-=i}switch(l){case"z":r=e,i=n;break;case"h":r+=o[1];break;case"v":i+=o[1];break;case"m":r+=o[1],i+=o[2],e+=o[1],n+=o[2];break;default:r+=o[o.length-2],i+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let n=0,r=0,i=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 k=d[0];switch(k){case"M":n=d[1],r=d[2];break;case"A":const S=qu(i,o,d[6],d[7],d[4],d[5],d[1],d[2],d[3]);if(!S.length)continue;S.forEach((y,p)=>{const[x,b,z,ct,O,R,A,D]=y;d=["C",z,ct,O,R,A,D],p<S.length-1&&e.push(d)});break;case"S":let _=i,C=o;(h=="C"||h=="S")&&(_+=_-c,C+=C-u),d=["C",_,C,d[1],d[2],d[3],d[4]];break;case"T":h=="Q"||h=="T"?(a=i*2-a,l=o*2-l):(a=i,l=o),d=["C",...pa(i,o,a,l,d[1],d[2])];break;case"Q":a=d[1],l=d[2],d=["C",...pa(i,o,d[1],d[2],d[3],d[4])];break;case"L":d=["C",...or(i,o,d[1],d[2])];break;case"H":d=["C",...or(i,o,d[1],o)];break;case"V":d=["C",...or(i,o,i,d[1])];break;case"Z":d=["C",...or(i,o,n,r)];break}h=k,i=d[d.length-2],o=d[d.length-1],d.length>4?(c=d[d.length-4],u=d[d.length-3]):(c=i,u=o),e.push(d)}return e}static catmullRom2bezier(t){const e=[];for(let n=0,r=t.length;r-2>n;n+=2){let i;n==0?i=[{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]}]:r-4==n?i=[{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]}]:i=[{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:i[1].x,y:i[1].y},{x:(-i[0].x+6*i[1].x+i[2].x)/6,y:(-i[0].y+6*i[1].y+i[2].y)/6},{x:(i[1].x+6*i[2].x-i[3].x)/6,y:(i[1].y+6*i[2].y-i[3].y)/6},{x:i[2].x,y:i[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],r;for(let i=0,o=t.length;i<o;i++){const a=t[i];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",a[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.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,r=0,i=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?(r=2*Number(n[c.x+2])-Number(n[c.x]),i=2*Number(n[c.x+3])-Number(n[c.x+1])):(r=Number(n[n.length-2]),i=Number(n[n.length-1]))),l.splice(1,0,r,i)),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 r=!1;for(let i=0,o=n.length;i<o;i++){const a=n[i];if(a[0]=="M"){r||(r=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Ns({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(i=>{({x:i.x,y:i.y}=e.transformPoint({x:i.x,y:i.y})),{x:i.c1x,y:i.c1y}=e.transformPoint({x:i.c1x,y:i.c1y}),{x:i.c2x,y:i.c2y}=e.transformPoint({x:i.c2x,y:i.c2y}),{x:i.toX,y:i.toY}=e.transformPoint({x:i.toX,y:i.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,r=t.length;n+5<r;n+=6)e.appendLine(new Ns({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,r=t.length;n<r;n++)e.appendLine(t[n]);return e}appendLine(t){if(t instanceof vg){qu(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,k,S,_]=c;this.normalizedLines.push(new Ns({x:this.prevPathX,y:this.prevPathY,c1x:f,c1y:m,c2x:d,c2y:k,toX:S,toY:_})),this.prevPathX=S,this.prevPathY=_});return}let e,n,r,i,o,a;t instanceof Ns?(e=t.c1x,n=t.c1y,r=t.c2x,i=t.c2y,o=t.toX,a=t.toY):t instanceof bg?[e,n,r,i,o,a]=pa(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,n,r,i,o,a]=or(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Ns({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:n,c2x:r,c2y:i,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform(),r=[];r.push(["M",t,e]);for(let i=0,o=n.length;i<o;i++)r.push(...n[i].toSVGPathData());return r}toSVGPathD(){return ue.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:n,normalizedLines:r}=this.updateTransform();t.beginPath(),t.moveTo(e,n),r.forEach(i=>{i.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 r=Math.min.apply(0,e),i=Math.min.apply(0,n),o=Math.max.apply(0,e),a=Math.max.apply(0,n);return{x:r,y:i,width:o-r,height:a-i}}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 r=[];return this.normalizedLines.forEach(i=>{let o=i.x,a=i.y,l=i.c1x,c=i.c1y,u=i.c2x,h=i.c2y,f=i.toX,m=i.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}),r.push(new Ns({x:o,y:a,c1x:l,c1y:c,c2x:u,c2y:h,toX:f,toY:m}))}),{startPathX:e,startPathY:n,normalizedLines:r}}}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 r=e.length;for(let i=0;i<r;i++){const o=e[i],a=o.length();if(n+a>=t)return o.getPointAtSegmentLength(t-n);n+=a}return e[r-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:n,normalizedLines:r}=this.updateTransform(),i=r.length;if(i===0)return{x:e,y:n};if(i===1)return r[0].interpolate(t);{let o=t*i,a=r[0];if(o--,o>1)for(let l=1;l<i&&(a=r[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:r,startPathY:i,normalizedLines:o}=t.updateTransform();let a=null,l=0;const c=new Me;c.prevPathX=c.startPathX=r,c.prevPathY=c.startPathY=i;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 Ns({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 Ns({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 r={x:t,y:e},i=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ua(u.x,u.y,t,e);h<o&&(r=u,i=c,o=h)}for(a/=2;a>.5;){let c=i-a,u=this.getPointAtLength(c),h=ua(u.x,u.y,t,e),f=i+a,m=this.getPointAtLength(f),d=ua(m.x,m.y,t,e);c>=0&&h<o?(r=u,i=c,o=h):f<=n&&d<o?(r=m,i=f,o=d):a/=2}const l=this.getPointAtLength(i+(i===n?-.1:.1));return{point:r,rotation:i>=n?xn(l.x,l.y,r.x,r.y):xn(r.x,r.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((r,i)=>r.concat([i.c1x,i.c1y,i.c2x,i.c2y,i.toX,i.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],r=t[e-1],i=0;for(let o=0;o<e;o+=6)i+=ca(t[o],t[o+1],n,r),n=t[o],r=t[o+1];return Math.floor(i)}expendFill(t){const e=this.polymorphPoints,n=e.length;let r=t-n;const i=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<i&&r>0;)o.push(["C",f,m,f,m,f,m]),r-=6,d++}return o}static mixPoints(t,e,n){const r=t.length,i=new Array(r);for(let o=0;o<r;o++)i[o]=we(t[o]+(e[o]-t[o])*n,6);return i}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()}}class Ht extends er{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=oi(),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=Uo(n).reduce((r,i)=>r+i,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,Qo(()=>{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 r=n.originMatrix?n.originMatrix.clone():new Ne;r.translate(-t.x+n.x,-t.y+n.y),n.originMatrix=r});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 fa)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=n.createSVGPoint(),r.x=t,r.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(r);{const i=this.getBoundingClientRect();if(i)return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height}return!1}isPointInStroke(t,e,n){if(n instanceof fa)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=n.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!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,r])=>[Ue(n),r]))):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 ca(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Ie(xn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:r}=ps(Ft(this.degree),e);this.vx=n,this.vy=r,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:r}=ps(Ft(this.degree),e);this.ax=n,this.ay=r,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,n=t.y-this.y,r=e*e+n*n,i=Math.sqrt(r),o=this.mass*t.mass/r,a=o*e/i,l=o*n/i;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),r=t.x-this.cX-this.x,i=t.y-this.cY-this.y;this.vx=r*n,this.vy=i*n,this.run(e)}runSpringTo(t,e){const n=As(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(r=>{const i=r.x-this.cX-this.x,o=r.y-this.cY-this.y,a=i*n,l=o*n;this.vx+=a,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const n=As(e?.springLength,100),r=As(e?.spring,1e-4),i=t.x-this.x,o=t.y-this.y,a=Math.sqrt(i*i+o*o);if(a<n){const l=i*r,c=o*r;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(),r=we(n.getTotalLength(),0);this.setAttr({strokeDasharray:`${r} ${r}`,strokeDashoffset:`${r}`});const i=e?.onUpdate,o=new He({frameDuration:t});o.addTween({offset:r},{offset:0},Object.assign(e||{},{onUpdate:(a,l)=>{this.setAttr("strokeDashoffset",""+we(a.offset,2)),i?.(a,l)}})),o.play()}}class Cg 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 la(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,r=t.z-this.z;return Math.sqrt(e*e+n*n+r*r)}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,r=this.z;return{x:n*t.z-r*t.y,y:r*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 bi=Cg,Zu=[1,0,0,1,0,0],Qu=[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=Zu){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=fu("number",t);return n.length===6&&n.forEach((r,i)=>{r.fullMatch&&(e.value[i]=parseFloat(r.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(Zu),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,r=this.m21,i=this.m22,o=this.m23,a=this.m31,l=this.m32,c=this.m33,u=c*i-o*l,h=-c*r+o*a,f=l*r-i*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*i)*m,this.m21=h*m,this.m22=(c*t-n*a)*m,this.m23=(-o*t+n*r)*m,this.m31=f*m,this.m32=(-l*t+e*a)*m,this.m33=(i*t-e*r)*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],r=this.value[2],i=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,k=c*u,S=(u*n-e*h)/(k-d),_=(l*n-e*c)/(d-k),C=(u*i-r*h)/(k-d),y=(l*i-r*c)/(d-k),p=(u*(a-m)+h*(f-o))/(k-d),x=(l*(a-m)+c*(f-o))/(d-k),b=[S,_,C,y,p,x];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 r=Ft(t),i=Math.cos(r),o=Math.sin(r);return this.translate(e,n),this.multiply([i,o,-o,i,0,0]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{degree:r}=this.split();return this.rotate(t-r,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:r,degreeY:i,degreeZ:o}=this.matrix3d.split();return this.rotate3d(t-r,e-i,n-o),this}scale(t,e=t,n=0,r=0){return this.translate(n,r),this.multiply([t,0,0,e,0,0]),this.translate(-n,-r),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,r=0){return this.scale(t/this.m11,e/this.m22,n,r)}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:r,scalarY:i,scalarZ:o}=this.matrix3d.split();return this.scale3d(t/r,e/i,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:r}=this.split();return this.skew(t-n,e-r)}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=Qu){this.value=Array.from(t)}static fromString(t){const e=new $e,n=fu("number",t);return n.length===16&&n.forEach((r,i)=>{r.fullMatch&&(e.value[i]=parseFloat(r.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(Qu),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:r,skewY:i,x:o,y:a}=this.split(),l=[e,i,r,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),r=Ie(qt(Math.asin(-this.m13),-1,1));let i=Ie(Math.atan2(this.m23,this.m33));Math.cos(Ft(r))===0&&(i=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:i,degreeY:r,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,r=this.m13,i=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,k=this.m42,S=this.m43,_=this.m44;t[0]=l*m*k-c*f*k+c*h*S-a*m*S-l*h*_+a*f*_,t[1]=i*f*k-r*m*k-i*h*S+n*m*S+r*h*_-n*f*_,t[2]=r*c*k-i*l*k+i*a*S-n*c*S-r*a*_+n*l*_,t[3]=i*l*h-r*c*h-i*a*f+n*c*f+r*a*m-n*l*m;const C=e*t[0]+o*t[1]+u*t[2]+d*t[3];if(C==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*d-l*m*d-c*u*S+o*m*S+l*u*_-o*f*_,t[5]=r*m*d-i*f*d+i*u*S-e*m*S-r*u*_+e*f*_,t[6]=i*l*d-r*c*d-i*o*S+e*c*S+r*o*_-e*l*_,t[7]=r*c*u-i*l*u+i*o*f-e*c*f-r*o*m+e*l*m,t[8]=a*m*d-c*h*d+c*u*k-o*m*k-a*u*_+o*h*_,t[9]=i*h*d-n*m*d-i*u*k+e*m*k+n*u*_-e*h*_,t[10]=n*c*d-i*a*d+i*o*k-e*c*k-n*o*_+e*a*_,t[11]=i*a*u-n*c*u-i*o*h+e*c*h+n*o*m-e*a*m,t[12]=l*h*d-a*f*d-l*u*k+o*f*k+a*u*S-o*h*S,t[13]=n*f*d-r*h*d+r*u*k-e*f*k-n*u*S+e*h*S,t[14]=r*a*d-n*l*d-r*o*k+e*l*k+n*o*S-e*a*S,t[15]=n*l*u-r*a*u+r*o*h-e*l*h-n*o*f+e*a*f,this.value=t,this.scalar(1/C)}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),r=Math.sin(e);return this.multiply(new $e([1,0,0,0,0,n,r,0,0,-r,n,0,0,0,0,1]))}rotateY(t){const e=Ft(t),n=Math.cos(e),r=Math.sin(e);return this.multiply(new $e([n,0,-r,0,0,1,0,0,r,0,n,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Ft(t),n=Math.cos(e),r=Math.sin(e);return this.multiply(new $e([n,r,0,0,-r,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,r=t.x*this.m13+t.y*this.m23+this.m43,i=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=r+this.m33,c=i+this.m34;i==0&&(i=1e-4),e/=i,n/=i,r/=i,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-r;if(u==0)return{x:e,y:n,z:r,mass:i};const h=-r/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:r,mass:i}}project(t){const e=t.z;let n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,r=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,i=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return i==0&&(i=1e-4),n/=i,r/=i,i<0&&(n-=this.m41,r-=this.m42,n*=1/i,r*=1/i,n+=this.m41,r+=this.m42),{x:n,y:r,z:e,mass:i}}bounds(t,e,n,r){const i=new bi({x:t,y:e}),o=new bi({x:t+n,y:e}),a=new bi({x:t+n,y:e+r}),l=new bi({x:t,y:e+r});({x:i.x,y:i.y,z:i.z,mass:i.mass}=this.project(i)),{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(i.x,o.x,a.x,l.x),u=Math.min(i.y,o.y,a.y,l.y),h=Math.max(i.x,o.x,a.x,l.x)-c,f=Math.max(i.y,o.y,a.y,l.y)-u;return{x:c,y:u,width:h,height:f}}}function Ku(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,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const i=[];for(let o=0,a=r.length;o<a;o++)r[o].trim()&&i.push(parseFloat(""+r[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(i[0],i[1]);break;case"translatex":t.translateX(i[0]);break;case"translatey":t.translateY(i[0]);break;case"translatez":t.translateZ(i[0]);break;case"translate3d":t.translate3d(i[0],i[1],i[2]);break;case"r":case"rotate":t.rotate(i[0],i[1]??0,i[2]??0);break;case"rotatex":t.rotateX(i[0]);break;case"rotatey":t.rotateY(i[0]);break;case"rotatez":t.rotateZ(i[0]);break;case"rotate3d":t.rotate3d(i[0],i[1],i[2]);break;case"s":case"scale":t.scale(i[0],i[1]??i[0]);break;case"scalex":t.scaleX(i[0]);break;case"scaley":t.scaleY(i[0]);break;case"scalez":t.scaleZ(i[0]);break;case"scale3d":t.scale3d(i[0],i[1],i[2]);break;case"skew":t.skew(i[0],i[1]??0);break;case"skewx":t.skewX(i[0]);break;case"skewy":t.skewY(i[0]);break;case"skewz":t.skewZ(i[0]);break;case"skew3d":t.skew3d(i[0],i[1],i[2]);break;case"m":case"matrix":t.multiply([i[0],i[1],i[2],i[3],i[4],i[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new $e(i)),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 ft{static createElementNS(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}static isActive(t){return t===document.activeElement&&(t.type||t.href)}static getElement(t){const e=t.style?t.ownerDocument:t.document||t;return{el:t,document:e,window:e.defaultView,isRootNode:/(html|body)/i.test(t.tagName)||t===document}}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,e){document.documentElement.style.setProperty(t,e)}static add3DSupport(t,e="1000px"){if(t.parentElement){const n=_n(t.parentElement,"position");pi(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}pi(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){Object.prototype.hasOwnProperty.call(n,"transform")||Object.assign(n,{transform:_n(t,"transform")||""});const r=Ku(n.transform),i={};for(const o in e){const a=e[o];switch(o){case"transform":break;case"translate":r.translate(a[0]||0,a[1]||0);break;case"translateTo":r.translateTo(a[0]||0,a[1]||0);break;case"translateX":r.translateX(a||0);break;case"translateXTo":r.translateXTo(a||0);break;case"translateY":r.translateY(a||0);break;case"translateYTo":r.translateYTo(a||0);break;case"translateZ":r.translateZ(a||0);break;case"translateZTo":r.translateZTo(a||0);break;case"translate3d":r.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":r.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?r.rotate(a||0):r.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?r.rotateTo(a||0):r.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":r.rotateX(a||0);break;case"rotateXTo":r.rotateXTo(a||0);break;case"rotateY":r.rotateY(a||0);break;case"rotateYTo":r.rotateYTo(a||0);break;case"rotateZ":r.rotateZ(a||0);break;case"rotateZTo":r.rotateZTo(a||0);break;case"rotate3d":r.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":r.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?r.scale(a||1):r.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?r.scaleTo(a||1):r.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":r.scaleX(a||1);break;case"scaleXTo":r.scaleXTo(a||1);break;case"scaleY":r.scaleY(a||1);break;case"scaleYTo":r.scaleYTo(a||1);break;case"scaleZ":r.scaleZ(a||1);break;case"scaleZTo":r.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?r.scale3d(a||1):r.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?r.scale3dTo(a||1):r.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?r.skew(a||0):r.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?r.skewTo(a||0):r.skewTo(a[0]||0,a[1]||0);break;case"skewX":r.skewX(a||0);break;case"skewXTo":r.skewXTo(a||0);break;case"skewY":r.skewY(a||0);break;case"skewYTo":r.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":r.perspective(a||0);break;default:Object.prototype.hasOwnProperty.call(n,o)||(n[o]=_n(t,o)),Object.assign(i,{[o]:`${a}`});break}}return Object.assign(i,{transform:r.toString()}),i}static attrsToCanvas(t,e){for(const n in e){const r=e[n];switch(n){case"fill":r!=="none"&&(t.fillStyle=r);break;case"stroke":r!=="none"&&(t.strokeStyle=r);break;case"stroke-width":case"strokeWidth":t.lineWidth=Number(r);break;case"stroke-linecap":case"strokeLinecap":t.lineCap=r;break;case"stroke-linejoin":case"strokeLinejoin":switch(r){case"round":case"bevel":case"miter":t.lineJoin=r;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":t.miterLimit=Number(r);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":t.lineDashOffset=Number(r);break;case"stroke-dasharray":case"strokeDasharray":typeof r=="string"&&t.setLineDash(r.split(/\s+/).map(i=>Number(i)));break;case"cursor":break;case"font":typeof r=="string"&&(t.font=r);break;case"font-size":case"fontSize":t.font+=` ${r}`;break;case"font-family":case"fontFamily":t.font+=` ${r}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(r){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(r){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=r;break;default:t.textBaseline="alphabetic";break}break}}}static fixProp(t){const e={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return e[t]?e[t]:t}static prop(t,e,n){if(n===void 0&&typeof e=="string")return t[e];{let r={};typeof e=="object"?r=e:typeof e=="string"&&n!==void 0&&(r[e]=n),Object.entries(r).forEach(([i,o])=>{const a=this.fixProp(i);t[a]=o,a=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t[this.fixProp(n.trim())]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static scriptConvert(t){const e=n=>{const i=n.ownerDocument.createElement("script");i.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)i.setAttribute(o[a].name,o[a].value);return i};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static insert(t,e,n="append"){return typeof e=="string"?t[n](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[n](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const r=this.scriptConvert(n);r!=n&&e.content.replaceChild(r,n)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static parents(t,e=[]){return!t||t.parentElement===null?e:ft.parents(t.parentElement,e.concat([t]))}static overflow(t){return _n(t,"overflow")+_n(t,"overflow-y")+_n(t,"overflow-x")}static getScrollParent(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return;const e=ft.parents(t.parentElement,[]);for(let n=0;n<e.length;n+=1)if(/(auto|scroll)/.test(ft.overflow(e[n])))return e[n];return document.scrollingElement||document.documentElement}static contains(t,e){return t.contains?t!=e&&t.contains(e):!!(t.compareDocumentPosition(e)&16)}static isInputElement(t){return t.tagName==="INPUT"||t instanceof HTMLInputElement}static isInputCheckboxElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="checkbox"}static isInputRadioElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="radio"}static isInputTextElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="text"}static isInputNumberElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="number"}static isSelectElement(t){return t instanceof HTMLSelectElement}static isTextAreaElement(t){return t instanceof HTMLTextAreaElement}static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const n=t.options;for(let r=0,i=n.length;r<i;r++)n[r].value==e?n[r].selected=!0:n[r].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={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 n;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?n=parseInt(t.substring(2),16):n=parseInt(t.substring(1),10):n=e[t],n?String.fromCharCode(n):"&"+t}static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
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=ii(s)||new RegExp(s)),s.test(t)),hu=(s,t)=>{typeof s=="string"&&(s=ii(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},fu=(s,t)=>{typeof s=="string"&&(s=ii(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const r of n)e.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return e};function wm(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function du(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function oi(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let n="";for(let r=0;r<s;r++)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 Sm(s){return s.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function pu(s){return Cm(Sm(s))}function Tm(s){return s!=null}function km(s,...t){return new s.constructor(...t)}function mu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function gu(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function tr(s=[],t=[]){const e=s.length,n=t.length;for(let i=0;i<n;i++)s[i]=t[i];let r=Math.max(0,e-n);for(;r>0;)s.pop(),r--;return s}function Em(s,t){const e=s.findIndex(n=>n===t);return e>=0&&s.splice(e,1),s}let yu;try{yu=Map}catch{yu=function(){}}let vu;try{vu=Set}catch{vu=function(){}}function Ms(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function ai(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,r){return n+(r-n)*((s-t)/(e-t))}const _u=(s,t,e)=>n=>{const r=qt(n,s,t);return e==0?r:t-r<e?t:Math.round(r/e)*e};function Om(s,t=12){return Ms(s).toFixed(t)}function we(s,t=12){return+Om(s,t)}function Je(s,t){const e=hu("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Tm(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 Uo(s){const t=hu("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),r=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(n[l]=0,n[l|256]=32768,r[l]=24,r[l|256]=24):c<-14?(n[l]=1024>>-c-14,n[l|256]=1024>>-c-14|32768,r[l]=-c-1,r[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,r[l]=13,r[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,r[l]=24,r[l|256]=24):(n[l]=31744,n[l|256]=64512,r[l]=13,r[l|256]=13)}const i=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,i[l]=c|u}for(let l=1024;l<2048;++l)i[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:r,mantissaTable:i,exponentTable:o,offsetTable:a}}var bu=(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))(bu||{}),li=(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))(li||{});const xu=(s,t,e)=>t?e===li.base64?new Blob([s],{type:`${t};${e}`}):e===li.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 Ho(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 r=t%60%24;return s[1]=r%10,s[0]=Math.floor(r/10),s}function Am(s){const t=[0,0,0,0,0,0],e=Uo(s);for(let n=0,r=Math.min(e.length,3);n<r;n++){const i=Math.floor(Math.abs(e[n]));t[2*n+1]=i%10,t[2*n]=Math.floor(i/10)}return Ho(t)}function Wo(s,t=1){return s[5]+=t,Ho(s)}function qo(s,t=1){return s[5]-=t,Ho(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 er{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 r=(()=>{let i=!1;return(...o)=>{i||(i=!0,e(...o),this.off(t,r))}})();return this.on(t,r),this}}class Zo extends er{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(r=>r())),n=this.results.length;e.forEach((r,i)=>{if(r.status=="fulfilled"){const o=r.value;this.results.push(o),this.controller?.enqueue(o),this.emit("success",n+i,o)}else if(r.status=="rejected"){const o=new Error(r.reason);this.results.push(o),this.controller?.enqueue(o),this.emit("error",n+i,o)}}),this.activeTaskCount-=e.length}}}const wu=()=>{};let sr;function Qo(s){sr=s,s(),sr=null}class Lm{subscribers=new Set;add(){sr&&!this.subscribers.has(sr)&&this.subscribers.add(sr)}notify(){this.subscribers.forEach(t=>t())}}const Cu=new WeakMap;function Su(s,t){let e=Cu.get(s);e||(e=new Map,Cu.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,r){return Su(s,n).add(),Reflect.get(e,n,r)},set(e,n,r,i){const o=Su(s,n),a=Reflect.get(e,n,i),l=Reflect.set(e,n,r,i);return a!=r&&o.notify(),l}};return new Proxy(s,t)}const Vm=$m;var Tu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Ym(s,t={}){var e=1,n=1;function r(B){var j=B.match(/\n/g);j&&(e+=j.length);var yt=B.lastIndexOf(`
|
|
39
|
+
`);n=~yt?B.length-yt:n+B.length}function i(){var B={line:e,column:n};return function(j){return j.position=new o(B),d(),j}}function o(B){this.start=B,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(B){var j=new Error(t.source+":"+e+":"+n+": "+B);if(j.reason=B,j.filename=t.source,j.line=e,j.column=n,j.source=s,t.silent)a.push(j);else throw j}function c(){var B=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:B,parsingErrors:a}}}function u(){return m(/^{\s*/)}function h(){return m(/^}/)}function f(){var B,j=[];for(d(),S(j);s.length&&s.charAt(0)!="}"&&(B=W()||nt());)B!==!1&&(j.push(B),S(j));return j}function m(B){var j=B.exec(s);if(j){var yt=j[0];return r(yt),s=s.slice(yt.length),j}}function d(){m(/^\s*/)}function S(B){var j;for(B=B||[];j=k();)j!==!1&&B.push(j);return B}function k(){var B=i();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 yt=s.slice(2,j-2);return n+=2,r(yt),s=s.slice(j),n+=2,B({type:"comment",comment:yt})}}function _(){var B=m(/^([^{]+)/);if(B)return ds(B[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 B=i(),j=m(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(j){if(j=ds(j[0]),!m(/^:\s*/))return l("property missing ':'");var yt=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),gt=B({type:"declaration",property:j.replace(Tu,""),value:yt?ds(yt[0]).replace(Tu,""):""});return m(/^[;\s]*/),gt}}function y(){var B=[];if(!u())return l("missing '{'");S(B);for(var j;j=x();)j!==!1&&(B.push(j),S(B));return h()?B:l("missing '}'")}function p(){for(var B,j=[],yt=i();B=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)j.push(B[1]),m(/^,\s*/);if(j.length)return yt({type:"keyframe",values:j,declarations:y()})}function w(){var B=i(),j=m(/^@([-\w]+)?keyframes\s*/);if(j){var yt=j[1];if(j=m(/^([-\w]+)\s*/),!j)return l("@keyframes missing name");var gt=j[1];if(!u())return l("@keyframes missing '{'");for(var Z,V=S();Z=p();)V.push(Z),V=V.concat(S());return h()?B({type:"keyframes",name:gt,vendor:yt,keyframes:V}):l("@keyframes missing '}'")}}function b(){var B=i(),j=m(/^@supports *([^{]+)/);if(j){var yt=ds(j[1]);if(!u())return l("@supports missing '{'");var gt=S().concat(f());return h()?B({type:"supports",supports:yt,rules:gt}):l("@supports missing '}'")}}function z(){var B=i(),j=m(/^@host\s*/);if(j){if(!u())return l("@host missing '{'");var yt=S().concat(f());return h()?B({type:"host",rules:yt}):l("@host missing '}'")}}function ct(){var B=i(),j=m(/^@media *([^{]+)/);if(j){var yt=ds(j[1]);if(!u())return l("@media missing '{'");var gt=S().concat(f());return h()?B({type:"media",media:yt,rules:gt}):l("@media missing '}'")}}function O(){var B=i(),j=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(j)return B({type:"custom-media",name:ds(j[1]),media:ds(j[2])})}function R(){var B=i(),j=m(/^@page */);if(j){var yt=_()||[];if(!u())return l("@page missing '{'");for(var gt=S(),Z;Z=x();)gt.push(Z),gt=gt.concat(S());return h()?B({type:"page",selectors:yt,declarations:gt}):l("@page missing '}'")}}function A(){var B=i(),j=m(/^@([-\w]+)?document *([^{]+)/);if(j){var yt=ds(j[1]),gt=ds(j[2]);if(!u())return l("@document missing '{'");var Z=S().concat(f());return h()?B({type:"document",document:gt,vendor:yt,rules:Z}):l("@document missing '}'")}}function D(){var B=i(),j=m(/^@font-face\s*/);if(j){if(!u())return l("@font-face missing '{'");for(var yt=S(),gt;gt=x();)yt.push(gt),yt=yt.concat(S());return h()?B({type:"font-face",declarations:yt}):l("@font-face missing '}'")}}var L=K("import"),X=K("charset"),rt=K("namespace");function K(B){var j=new RegExp("^@"+B+"\\s*([^;]+);");return function(){var yt=i(),gt=m(j);if(gt){var Z={type:B};return Z[B]=gt[1].trim(),yt(Z)}}}function W(){if(s[0]=="@")return w()||ct()||O()||b()||L()||X()||rt()||A()||R()||z()||D()}function nt(){var B=i(),j=_();return j?(S(),B({type:"rule",selectors:j,declarations:y()})):l("selector missing")}return Ko(c())}function ds(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Ko(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var r in s){var i=s[r];Array.isArray(i)?i.forEach(function(o){Ko(o,n)}):i&&typeof i=="object"&&Ko(i,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const zm={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:s=>{const t=["th","st","nd","rd"],e=s%100;return`[${s}${t[(e-20)%10]||t[e]||t[0]}]`}};let ci="en";const ui={};ui[ci]=zm;function ku(s,t){if(!s)return ci;let e;if(typeof s=="string"){const n=s.toLowerCase();ui[n]&&(e=n),t&&(ui[n]=t,e=n);const r=s.split("-");if(!e&&r.length>1)return ku(r[0])}else{const{name:n}=s;ui[n]=s,e=n}return e&&(ci=e),e||ci}const Bm={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:(s,t)=>{switch(t){case"W":return`${s}周`;default:return`${s}日`}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:(s,t)=>{const e=s*100+t;return e<600?"凌晨":e<900?"早上":e<1100?"上午":e<1300?"中午":e<1800?"下午":"晚上"}};ku(Bm);function Gm(s,t=(e,n)=>e<=n){const e=s.length;let n=Math.floor(e/2);for(;n>0;){for(let r=n;r<e;r++){const i=s[r];let o=r;for(;o>=n&&!t(s[o-n],i);)s[o]=s[o-n],o-=n;s[o]=i}n=Math.floor(n/2)}}let Eu;try{Eu=Promise}catch{Eu=function(){}}class Pu{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)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,r=e.length;n<r;n++){const[i,o]=e[n];t(i,o)===!1&&this.delete(i)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function Xm(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var jm={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 r(_,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 i(_){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,z,ct,O;for(p=64;p<=x;p+=64)r(y,i(_.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(r(y,b),p=0;p<16;p+=1)b[p]=0;return z=x*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(z[2],16),O=parseInt(z[1],16)||0,b[14]=ct,b[15]=O,r(y,b),y}function l(_){var x=_.length,y=[1732584193,-271733879,-1732584194,271733878],p,w,b,z,ct,O;for(p=64;p<=x;p+=64)r(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(r(y,b),p=0;p<16;p+=1)b[p]=0;return z=x*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),ct=parseInt(z[2],16),O=parseInt(z[1],16)||0,b[14]=ct,b[15]=O,r(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,z,ct,O,R;return y!==e&&(b=_(y,p)),w>b?new ArrayBuffer(0):(z=b-w,ct=new ArrayBuffer(z),O=new Uint8Array(ct),R=new Uint8Array(this,w,z),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)r(this._hash,i(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(r(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,r(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)r(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})})(jm);const Ou=s=>new XMLSerializer().serializeToString(s),Um=(s,t=bu.SVG,e=li.utf8)=>xu(Ou(s),t,e);function Iu(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(),window.URL.revokeObjectURL(e.href)}const Hm=(s,t,e)=>{const n=async r=>{await e(r)};return s.addEventListener(t,n,!1),()=>{s.removeEventListener(t,n,!1)}};function Wm(){const s=new er;return{on:(t,e)=>{s.on(t,e)},off:(t,e)=>{s.off(t,e)},emit:(t,...e)=>{s.emit(t,...e)}}}const Jo=Wm();function qm(){return{remove:Hm(document,"scroll",s=>{Jo.emit("scroll",s)}),on:s=>{Jo.on("scroll",s)},off:s=>{Jo.off("scroll",s)}}}function Zm(){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 r=s.indexOf("rv:");return parseInt(s.substring(r+3,s.indexOf(".",r)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const ta=Zm()!==-1;(()=>{const s=uu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!uu().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 Qm(s,t,e){const n=document.createElement("script");n.type="text/javascript",n.src=s,n.async=!1,n.onload=t||wu,n.onerror=e||wu,document.body.appendChild(n)}(function(){if(!window.requestAnimationFrame){let s=ce();window.requestAnimationFrame=function(t){const e=ce(),n=Math.max(0,16-(e-s)),r=window.setTimeout(function(){t(e+n)},n);return s=e+n,r}}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 ea(s,t=0){if(t==0)return s(ce()),()=>{};{const e=ce();return Zt(n=>n-e>=t?(s(n),!1):!0)}}function Km(s,t=0){let e=!1,n=0;const r=ce(),i=o=>{if(e)return;n++;const a=o-r-n*t;s(o,n,t<=a),ea(i,Math.max(0,t-a))};return ea(i,t),()=>{e=!0}}function Jm(s,t=20){const e=1e3/t;let n=0,r;return()=>(ce()-n>=e&&(n=ce(),r=s()),r)}const hi=new Pu;let sa=!1;function Du(s,t,e){if(s&&t&&hi.set(s,t),sa)return;sa=!0;const n=ce();eg(r=>{for(sa=!1;(r.timeRemaining()>0||e&&ce()-n>=e)&&hi.length>0;){const i=hi.shift();i&&i[1]()}hi.length>0&&Du()})}let fi=0,sn=33,Ns=33,na;const Ru=new MessageChannel,tg=Ru.port2;Ru.port1.onmessage=s=>{na!==null&&na({didTimeout:fi<=ce(),timeRemaining:()=>Math.max(0,fi-ce())})};function eg(s){return na=s,requestAnimationFrame(t=>{let e=t-fi+Ns;e<Ns&&sn<Ns?(e<8&&(e=8),Ns=e<sn?sn:e):e>Ns&&sn>Ns?Ns=e<sn?sn:e:sn=e,fi=t+Ns,tg.postMessage(null)})}class nr{static _nextId=0;static nextId(){return nr._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}},ra=ut;function sg(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 vn={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=vn.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,r){const i=(e-s)*.5,o=(n-t)*.5,a=r*r,l=r*a;return(2*t-2*e+i+o)*l+(-3*t+3*e-2*i-o)*a+i*r+t},QuadraticBezier:(s,t,e,n)=>{const r=1-n;return r*r*s+2*r*n*t+n*n*e},CubicBezier:(s,t,e,n,r)=>{const i=1-r;return i*i*i*s+3*i*i*r*t+3*i*r*r*e+r*r*r*n}},Linear:function(s,t){const e=s.length-1,n=e*t,r=Math.floor(n),i=vn.Utils.Linear;return t<0?i(s[0],s[1],n):t>1?i(s[e],s[e-1],e-n):i(s[r],s[r+1>e?e:r+1],n-r)},Bezier:function(s,t){let e=0;const n=s.length-1,r=Math.pow,i=vn.Utils.Bernstein;for(let o=0;o<=n;o++)e+=r(1-t,n-o)*r(t,o)*s[o]*i(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,r=Math.floor(n);const i=vn.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(r=Math.floor(n=e*(1+t))),i(s[(r-1+e)%e],s[r],s[(r+1)%e],s[(r+2)%e],n-r)):t<0?s[0]-(i(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(i(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):i(s[r?r-1:0],s[r],s[e<r+1?e:r+1],s[e<r+2?e:r+2],n-r)}},ia=vn;class Au{_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 r=0;r<n.length;r++){const i=this._tweens[n[r]],o=!e;i&&i.update(t,o)===!1&&!e&&delete this._tweens[n[r]]}return!!Object.keys(this._tweens).length}}const Le=new Au;class Mu{constructor(t,e=Le){this._object=t,this._group=e}_id=nr.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=ra.Linear.None;_interpolationFunction=ia.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,r){for(const i in n){const o=t[i],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[i]);if(!(l==="undefined"||l==="function")){if(c){let u=n[i];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[i]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[i]=a?[]:{};for(const u in o)e[i][u]=o[u];r[i]=a?[]:{},this._setupProperties(o,e[i],n[i],r[i])}else typeof e[i]>"u"&&(e[i]=o),a||(e[i]*=1),c?r[i]=n[i].slice().reverse():r[i]=e[i]||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=ra.Linear.None){return this._easingFunction=t,this}interpolation(t=ia.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,r;const i=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>i)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),r=(t-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===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,r){for(const i in n){if(e[i]===void 0)continue;const o=e[i]||0;let a=n[i];const l=Array.isArray(t[i]),c=Array.isArray(a);!l&&c?t[i]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(t[i],o,a,r):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[i]=o+(a-o)*r))}}_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 ng=Mu,rg=nr.nextId,ig=Le.getAll.bind(Le),og=Le.removeAll.bind(Le),ag=Le.add.bind(Le),lg=Le.remove.bind(Le),cg=Le.update.bind(Le),bt={now:ce,Sequence:nr,Easing:ra,Interpolation:ia,Group:Au,Tween:ng,nextId:rg,getAll:ig,removeAll:og,add:ag,remove:lg,update:cg};class ug{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 Nu=ug;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){Gm(this.tweens,(e,n)=>t?e.delay>n.delay:e.delay<=n.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(n=>{const r={...n};delete r.tween,r.fromValues={...r.fromValues},r.toValues={...r.toValues},e.push(r)}),e}addTween(t,e,n){const r={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||vn.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(r),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new Nu,n=this.frameDuration;return new Promise(r=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Zt(i=>{if(!this.isPaused){const a=Math.max(0,i-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*n<=l).forEach(c=>{c.tween||(c.tween=new Mu({...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?.(),r()),o})})}isPaused=!1;pausedClock=new Nu;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=sg(n.easeFunction);const r={...n.toValues};n.toValues={...n.fromValues},n.fromValues={...r}}),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}}const di=new Pu,hg=(s=!0)=>{di.filter((t,e)=>(e.alternate&&(Xu(e,e.alternate),s&&di.set(t,e.alternate),e.alternate=void 0),s))};function Fu(s){let t=di.get(s);return t||(t=aa(s),di.set(s,t)),t}function fg(s){const t=Fu(s);return t.alternate||(t.alternate=aa(s)),t.alternate}function Lu(s,t,e=!0){t(fg(s)),Du("FLUSH_DOM_ACTION",()=>hg(e),50)}function _n(s,t,e){const n=Fu(s);return t?n.props.style[t]||n.props.style[pu(t)]||n.props.style[Ue(t)]:n.props.style}function pi(s,t,e){Lu(s,n=>{typeof t=="string"&&e?n.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(r=>{n.props.style[r]=t[r]})},!0)}function $u(s){const t=[];if(getComputedStyle){const e=getComputedStyle(s);for(let n=0,r=e.length;n<r;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,r)=>r==0?pu(n).trim():n.trim())))}function oa(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=>{oa(s,n,t[n])})}function Vu(s,t){typeof t=="string"?s.style.removeProperty(Ue(t)):Object.keys(t).forEach(e=>{Vu(s,e)})}function nn(s,t){let e;if(typeof t=="string"){const r=document.querySelector(t)?.shadowRoot;r?e=r: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 r=document.styleSheets[0].insertRule(s);return()=>{document.styleSheets[0].deleteRule(r)}}}function bn(s,t,e){if(t===void 0&&e===void 0)return Yu(s);if(typeof t=="string"&&e===void 0)return dg(s,t);let n={};typeof t=="object"?n=t:typeof t=="string"&&typeof e=="string"&&(n[t]=e),Lu(s,r=>{Object.entries(n).forEach(([i,o])=>{r.props[i]=o})})}function Yu(s){const t={};for(let e=0,n=s.attributes,r=n.length;e<r;e++){const i=n[e];i.nodeName&&i.nodeValue&&(i.nodeName==="style"?t[i.nodeName]=$u(s):t[i.nodeName]=i.nodeValue)}return t}function dg(s,t){return t==="style"?$u(s):s.getAttribute(Ue(t))}function zu(s,t,e){return s.setAttribute(Ue(t),e)}function Bu(s,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(s.className)||!1}async function Gu(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 pg(s,t={},e=[],n){return{tag:s,props:t,children:e,el:n}}function aa(s){return pg(s.tagName,Yu(s),Array.from(s.children).map(t=>aa(t)),s)}function mi(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"?oa(s.el,s.props[e]):zu(s.el,e,n)}return s.children&&(typeof s.children=="string"?s.el.appendChild(document.createTextNode(s.children)):s.children.forEach(e=>{mi(e,s.el)})),t.appendChild(s.el),s.el}function Xu(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(mi(t),s.el);return}const e=t.el=s.el,n=s.props,r=t.props;for(const a in n)a in r||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),n[a]):e.removeAttribute(a));for(const a in r){const l=n[a],c=r[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||Vu(e,u);oa(e,c)}else zu(e,a,c)}const i=s.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof i=="string")e.innerHTML="",o.forEach(a=>{mi(a,e)});else{const a=Math.min(i.length,o.length);for(let l=0;l<a;l++)Xu(i[l],o[l]);o.length>i.length&&o.slice(i.length).forEach(l=>{mi(l,e)}),o.length<i.length&&i.slice(o.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function Ft(s){return s*Math.PI/180}function Ie(s){return s*180/Math.PI}function la(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function ca(s,t,e,n){return la(e-s,n-t)}function ua(s,t,e,n){const r=e-s,i=n-t;return r*r+i*i}function xn(s,t,e,n){let r=Math.atan2(n-t,e-s);return r<0&&(r+=Math.PI*2),r}function ps(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const ju=mg("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 mg(s,t=10){const e={},n=s.split(",");for(let r=0;r<n.length;r+=2){const i="&"+n[r+1]+";",o=parseInt(n[r],t);e[i]="&#"+o+";"}return e["\\xa0"]=" ",e}function Se(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 gi(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 gg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function yg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const rr={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 ha{__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 i=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);i&&(n.setAttribute("stop-color",Se("rgb({r},{g},{b})",{r:i[1],g:i[2],b:i[3]})),n.setAttribute("stop-opacity",i[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class Uu{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class yi{__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(rr);for(let e=0,n=t.length;e<n;e++){const r=t[e];this[r]=rr[r].canvas}}__getStyleState(){const t={},e=Object.keys(rr);for(let n=0,r=e.length;n<r;n++){const i=e[n];t[i]=this[i]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){const i=e[n];this[i]=t[i]}}__createElement(t,e={},n=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),i=Object.keys(e);n&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<i.length;o++){const a=i[o];r.setAttribute(a,e[a])}return r}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(i=>{i.setAttribute(t,"")}));const r=Object.keys(rr);for(let i=0;i<r.length;i++){const o=rr[r[i]],a=this[r[i]];if(o.apply){if(a instanceof Uu){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,Se("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof ha)e.setAttribute(o.apply,Se("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,Se("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(r[i]==="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 r=Object.keys(ju);for(let i=0,o=r.length;i<o;i++){const a=r[i],l=ju[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 r=this.__createElement("g");e.appendChild(r),this.__currentElement=r}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(Se("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Se("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Se("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,r,i,o){this.__addTransform(Se("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:r,e:i,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(Se("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(Se("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Se("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,r,i,o){this.__currentPosition={x:i,y:o},this.__addPathCommand(Se("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:r,x:i,y:o}))}quadraticCurveTo(t,e,n,r){this.__currentPosition={x:n,y:r},this.__addPathCommand(Se("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:r}))}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,r,i){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(i<0)throw new Error("IndexSizeError: The radius provided ("+i+") is negative.");if(o===t&&a===e||t===n&&e===r||i===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,r-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=i/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]*i,S+k[1]*i),this.arc(d,S,i,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,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,r){const i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,r){const i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],r=n.childNodes;for(let i=r.length-1;i>=0;i--)r[i]&&n.removeChild(r[i]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,r){if(t===0&&e===0&&n===this.width&&r===this.height){this.__clearCanvas();return}const i=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:r,fill:"#FFFFFF"},!0);i.appendChild(o)}createLinearGradient(t,e,n,r){const i=this.__createElement("linearGradient",{id:gi(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new ha(i,this)}createRadialGradient(t,e,n,r,i,o){const a=this.__createElement("radialGradient",{id:gi(this.__ids),cx:r+"px",cy:i+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new ha(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,r){const i=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":i.family,"font-size":i.size,"font-style":i.style,"font-weight":i.weight,"text-decoration":i.decoration,x:e,y:n,"text-anchor":gg(this.textAlign),"dominant-baseline":yg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(i,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,r,i,o){if(r===i)return;r=r%(2*Math.PI),i=i%(2*Math.PI),r===i&&(i=(i+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(i),l=e+n*Math.sin(i),c=t+n*Math.cos(r),u=e+n*Math.sin(r),h=o?0:1;let f=0,m=i-r;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(Se("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=gi(this.__ids),r=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",Se("url(#{id})",{id:n})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],n,r,i,o,a=0,l=0,c,u,h,f,m,d,S,k;if(t.length===3)n=t[1],r=t[2],c=e.width,u=e.height,i=c,o=u;else if(t.length===5)n=t[1],r=t[2],i=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],r=t[6],i=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+", "+r+")";if(e instanceof yi){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",i),d.setAttribute("height",o),d.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(S=this.__document.createElement("canvas"),S.width=i,S.height=o,S.getContext("2d")?.drawImage(e,a,l,c,u,0,0,i,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"),r=gi(this.__ids);let i;return n.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(i=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(i),this.__SVGdefs.appendChild(n)):t instanceof yi&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new Uu(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class fa{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,r=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),r&&(this.customContext=new yi({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,r){return this.context.fillRect(t,e,n,r),this.customContext&&this.customContext.fillRect(t,e,n,r),this}fillText(t,e,n,r){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,r),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,r){return this.context.strokeText(t,e,n,r),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,r){return this.context.strokeRect(t,e,n,r),this.customContext&&this.customContext.strokeRect(t,e,n,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,n,r),this.customContext&&this.customContext.clearRect(t,e,n,r),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,r=0){return this.translate(n,r),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-r),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,r,i,o){return this.context.arc(t,e,n,r,i,o),this.customContext&&this.customContext.arc(t,e,n,r,i,o?-1:1),this.currentPath2D.arc(t,e,n,r,i,o),this}arcTo(t,e,n,r,i){return this.context.arcTo(t,e,n,r,i),this.customContext&&this.customContext.arcTo(t,e,n,r,i),this.currentPath2D.arcTo(t,e,n,r,i),this}ellipse(t,e,n,r,i,o,a,l){return this.context.ellipse(t,e,n,r,i,o,a,l),this.currentPath2D.ellipse(t,e,n,r,i,o,a,l),this}quadraticCurveTo(t,e,n,r){return this.context.quadraticCurveTo(t,e,n,r),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,r),this.currentPath2D.quadraticCurveTo(t,e,n,r),this}bezierCurveTo(t,e,n,r,i,o){return this.context.bezierCurveTo(t,e,n,r,i,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,r,i,o),this.currentPath2D.bezierCurveTo(t,e,n,r,i,o),this}rect(t,e,n,r){return this.context.rect(t,e,n,r),this.customContext&&this.customContext.rect(t,e,n,r),this.currentPath2D.rect(t,e,n,r),this}createLinearGradient(t,e,n,r,i){const o=this.context.createLinearGradient(t,e,n,r);return i&&Object.entries(i).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,r,i,o,a){const l=this.context.createRadialGradient(t,e,n,r,i,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],r=e[1];this.context.drawImage(t,n,r)}else if(e.length===4){const n=e[0],r=e[1],i=e[2],o=e[3];this.context.drawImage(t,n,r,i,o)}else if(e.length===8){const n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,r,i,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,r=this.canvas.height,i){return this.context.getImageData(t,e,n,r,i)}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 vi{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=xn(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),r=Math.max(this.x,this.toX),i=Math.max(this.y,this.toY);return{x:e,y:n,width:r-e,height:i-n}}else{const e=Math.sin(t),n=Math.cos(t),r=n*this.x-e*this.y,i=n*this.toX-e*this.toY,o=n*this.y+e*this.x,a=n*this.toY+e*this.toX;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.max(r,i)-Math.min(r,i),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,r=t.toX,i=t.toY,o=this.toX-e,a=t.x-r;if(!o&&!a)return null;const l=(this.toY-n)/o,c=(t.y-i)/a;if(o){if(!a)return{x:r,y:l*(r-e)+n}}else return{x:e,y:c*(e-r)+i};const u=(-c*r+i+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}const Hu=vi;class da extends vi{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,r,i,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,r,i,o,a,l,!this.sweepFlag)}convert(t,e,n,r,i,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-r)/2,m=Math.cos(u)*h+Math.sin(u)*f,d=-Math.sin(u)*h+Math.cos(u)*f,S=m*m/(i*i)+d*d/(o*o);if(S>1){const A=Math.sqrt(S);throw i=A*i,o=A*o,new Error(`Radii are too small to build an arc. Correcting them to ${i}/${o}.`)}const k=Math.sqrt((i*i*o*o-i*i*d*d-o*o*m*m)/(i*i*d*d+o*o*m*m)),_=l!=c?1:-1,x=_*k*i*d/o,y=_*k*-o*m/i,p=(t+n)/2,w=(e+r)/2,b=Math.cos(u)*x-Math.sin(u)*y+p,z=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-z)-u,R=ct(t-b,e-z,n-b,r-z);return[b,z,i,o,u,O,O+R]}}const vg=da;class _g extends vi{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,r,i,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,r=c==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,i=c==0?this.x:this.y,Math.abs(n)>1e-12&&(o=-r/(2*n),0<o&&o<1&&[t,e][c].push(n*o*o+r*o+i));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 bg=_g;class rn extends vi{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,r=(-e+Math.sqrt(e*e-4*t*n))/2/t,i=(-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(r)>1e12&&(r=.5),Math.abs(i)>1e12&&(i=.5),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),i>=0&&i<=1&&(l=this.interpolate(i),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,r=(-e+Math.sqrt(e*e-4*t*n))/2/t,i=(-e-Math.sqrt(e*e-4*t*n))/2/t,Math.abs(r)>1e12&&(r=.5),Math.abs(i)>1e12&&(i=.5),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),i>=0&&i<=1&&(l=this.interpolate(i),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,r,i){const o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n}static bezlen(t,e,n,r,i,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,i,a),_=this.base3(S,e,r,o,l);m+=f[d]*Math.sqrt(k*k+_*_)}return u*m}length(t=1){return rn.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,r=this.c1x,i=this.c1y,o=this.c2x,a=this.c2y,l=this.toX,c=this.toY;if(t<0||rn.bezlen(e,n,r,i,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,m=rn.bezlen(e,n,r,i,o,a,l,c,f);for(;Math.abs(m-t)>.01;)h/=2,f+=(m<t?1:-1)*h,m=rn.bezlen(e,n,r,i,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t);let n=1-e,r=Math.pow(n,3),i=Math.pow(n,2),o=e*e,a=o*e,l=r*this.x+i*3*e*this.c1x+n*3*e*e*this.c2x+a*this.toX,c=r*this.y+i*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 Fs=rn,ir=Math.PI*2;function Wu(s,t,e,n){const r=s*n-t*e<0?-1:1;let i=s*e+t*n;return i>1&&(i=1),i<-1&&(i=-1),r*Math.acos(i)}function xg(s,t,e,n,r,i,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)*(r===i?-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,z=(-u-_)/o,ct=(-h-x)/a,O=Wu(1,0,w,b);let R=Wu(w,b,z,ct);return i===0&&R>0&&(R-=ir),i===1&&R<0&&(R+=ir),[y,p,O,R]}function wg(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),r=Math.sin(s),i=Math.cos(s+t),o=Math.sin(s+t);return[n,r,n-r*e,r+n*e,i+o*e,o-i*e,i,o]}function qu(s,t,e,n,r,i,o,a,l){const c=Math.sin(l*ir/360),u=Math.cos(l*ir/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=xg(s,t,e,n,r,i,o,a,c,u),S=[];let k=d[2],_=d[3];const x=Math.max(Math.ceil(Math.abs(_)/(ir/4)),1);_/=x;for(let y=0;y<x;y++)S.push(wg(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 z=u*w-c*b,ct=c*w+u*b;y[p+0]=z+d[0],y[p+1]=ct+d[1]}return y})}function pa(s,t,e,n,r,i){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,r/3+.6666666666666666*e,i/3+.6666666666666666*n,r,i]}function or(s,t,e,n){return[s,t,e,n,e,n]}const _i={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&&bn(n,e),n}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||oi()})}static downloadFromSVGElement(t,e="shape"){return Iu(Um(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Iu(xu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Ou(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,r,i)=>{let o=r.toLowerCase();const a=Uo(i);for(o=="m"&&a.length>_i[o]&&(e.push([r,...a.splice(0,_i[o])]),o="l",r=r=="m"?"l":"L");a.length;){if(a.length<_i[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${r} } args:{ ${a} }`);e.push([r,...a.splice(0,_i[o])])}return o=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,r=0,i=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]+=r,o[7]+=i;break;case"v":o[1]+=i;break;case"h":o[1]+=r;break;default:for(let c=1;c<o.length;)o[c++]+=r,o[c++]+=i}switch(l){case"Z":r=e,i=n;break;case"H":r=o[1];break;case"V":i=o[1];break;case"M":r=e=o[1],i=n=o[2];break;default:r=o[o.length-2],i=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,r=0,i=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]-=r,o[7]-=i;break;case"V":o[1]-=i;break;case"H":o[1]-=r;break;default:for(let c=1;c<o.length;)o[c++]-=r,o[c++]-=i}switch(l){case"z":r=e,i=n;break;case"h":r+=o[1];break;case"v":i+=o[1];break;case"m":r+=o[1],i+=o[2],e+=o[1],n+=o[2];break;default:r+=o[o.length-2],i+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let n=0,r=0,i=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],r=d[2];break;case"A":const k=qu(i,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,z,ct,O,R,A,D]=y;d=["C",z,ct,O,R,A,D],p<k.length-1&&e.push(d)});break;case"S":let _=i,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=i*2-a,l=o*2-l):(a=i,l=o),d=["C",...pa(i,o,a,l,d[1],d[2])];break;case"Q":a=d[1],l=d[2],d=["C",...pa(i,o,d[1],d[2],d[3],d[4])];break;case"L":d=["C",...or(i,o,d[1],d[2])];break;case"H":d=["C",...or(i,o,d[1],o)];break;case"V":d=["C",...or(i,o,i,d[1])];break;case"Z":d=["C",...or(i,o,n,r)];break}h=S,i=d[d.length-2],o=d[d.length-1],d.length>4?(c=d[d.length-4],u=d[d.length-3]):(c=i,u=o),e.push(d)}return e}static catmullRom2bezier(t){const e=[];for(let n=0,r=t.length;r-2>n;n+=2){let i;n==0?i=[{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]}]:r-4==n?i=[{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]}]:i=[{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:i[1].x,y:i[1].y},{x:(-i[0].x+6*i[1].x+i[2].x)/6,y:(-i[0].y+6*i[1].y+i[2].y)/6},{x:(i[1].x+6*i[2].x-i[3].x)/6,y:(i[1].y+6*i[2].y-i[3].y)/6},{x:i[2].x,y:i[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],r;for(let i=0,o=t.length;i<o;i++){const a=t[i];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",a[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.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,r=0,i=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?(r=2*Number(n[c.x+2])-Number(n[c.x]),i=2*Number(n[c.x+3])-Number(n[c.x+1])):(r=Number(n[n.length-2]),i=Number(n[n.length-1]))),l.splice(1,0,r,i)),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 r=!1;for(let i=0,o=n.length;i<o;i++){const a=n[i];if(a[0]=="M"){r||(r=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Fs({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(i=>{({x:i.x,y:i.y}=e.transformPoint({x:i.x,y:i.y})),{x:i.c1x,y:i.c1y}=e.transformPoint({x:i.c1x,y:i.c1y}),{x:i.c2x,y:i.c2y}=e.transformPoint({x:i.c2x,y:i.c2y}),{x:i.toX,y:i.toY}=e.transformPoint({x:i.toX,y:i.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,r=t.length;n+5<r;n+=6)e.appendLine(new Fs({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,r=t.length;n<r;n++)e.appendLine(t[n]);return e}appendLine(t){if(t instanceof vg){qu(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 Fs({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,r,i,o,a;t instanceof Fs?(e=t.c1x,n=t.c1y,r=t.c2x,i=t.c2y,o=t.toX,a=t.toY):t instanceof bg?[e,n,r,i,o,a]=pa(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,n,r,i,o,a]=or(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Fs({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:n,c2x:r,c2y:i,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform(),r=[];r.push(["M",t,e]);for(let i=0,o=n.length;i<o;i++)r.push(...n[i].toSVGPathData());return r}toSVGPathD(){return ue.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:n,normalizedLines:r}=this.updateTransform();t.beginPath(),t.moveTo(e,n),r.forEach(i=>{i.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 r=Math.min.apply(0,e),i=Math.min.apply(0,n),o=Math.max.apply(0,e),a=Math.max.apply(0,n);return{x:r,y:i,width:o-r,height:a-i}}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 r=[];return this.normalizedLines.forEach(i=>{let o=i.x,a=i.y,l=i.c1x,c=i.c1y,u=i.c2x,h=i.c2y,f=i.toX,m=i.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}),r.push(new Fs({x:o,y:a,c1x:l,c1y:c,c2x:u,c2y:h,toX:f,toY:m}))}),{startPathX:e,startPathY:n,normalizedLines:r}}}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 r=e.length;for(let i=0;i<r;i++){const o=e[i],a=o.length();if(n+a>=t)return o.getPointAtSegmentLength(t-n);n+=a}return e[r-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:n,normalizedLines:r}=this.updateTransform(),i=r.length;if(i===0)return{x:e,y:n};if(i===1)return r[0].interpolate(t);{let o=t*i,a=r[0];if(o--,o>1)for(let l=1;l<i&&(a=r[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:r,startPathY:i,normalizedLines:o}=t.updateTransform();let a=null,l=0;const c=new Me;c.prevPathX=c.startPathX=r,c.prevPathY=c.startPathY=i;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 Fs({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 Fs({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 r={x:t,y:e},i=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ua(u.x,u.y,t,e);h<o&&(r=u,i=c,o=h)}for(a/=2;a>.5;){let c=i-a,u=this.getPointAtLength(c),h=ua(u.x,u.y,t,e),f=i+a,m=this.getPointAtLength(f),d=ua(m.x,m.y,t,e);c>=0&&h<o?(r=u,i=c,o=h):f<=n&&d<o?(r=m,i=f,o=d):a/=2}const l=this.getPointAtLength(i+(i===n?-.1:.1));return{point:r,rotation:i>=n?xn(l.x,l.y,r.x,r.y):xn(r.x,r.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((r,i)=>r.concat([i.c1x,i.c1y,i.c2x,i.c2y,i.toX,i.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],r=t[e-1],i=0;for(let o=0;o<e;o+=6)i+=ca(t[o],t[o+1],n,r),n=t[o],r=t[o+1];return Math.floor(i)}expendFill(t){const e=this.polymorphPoints,n=e.length;let r=t-n;const i=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<i&&r>0;)o.push(["C",f,m,f,m,f,m]),r-=6,d++}return o}static mixPoints(t,e,n){const r=t.length,i=new Array(r);for(let o=0;o<r;o++)i[o]=we(t[o]+(e[o]-t[o])*n,6);return i}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()}}class Ht extends er{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=oi(),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=Uo(n).reduce((r,i)=>r+i,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,Qo(()=>{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 r=n.originMatrix?n.originMatrix.clone():new Ne;r.translate(-t.x+n.x,-t.y+n.y),n.originMatrix=r});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 fa)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=n.createSVGPoint(),r.x=t,r.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(r);{const i=this.getBoundingClientRect();if(i)return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height}return!1}isPointInStroke(t,e,n){if(n instanceof fa)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=n.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!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,r])=>[Ue(n),r]))):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 ca(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Ie(xn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:r}=ps(Ft(this.degree),e);this.vx=n,this.vy=r,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:r}=ps(Ft(this.degree),e);this.ax=n,this.ay=r,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,n=t.y-this.y,r=e*e+n*n,i=Math.sqrt(r),o=this.mass*t.mass/r,a=o*e/i,l=o*n/i;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=Ms(t?.gravity,0);this.vy+=e;const n=Ms(t?.friction,1);this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const n=Ms(e?.easing,.05),r=t.x-this.cX-this.x,i=t.y-this.cY-this.y;this.vx=r*n,this.vy=i*n,this.run(e)}runSpringTo(t,e){const n=Ms(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(r=>{const i=r.x-this.cX-this.x,o=r.y-this.cY-this.y,a=i*n,l=o*n;this.vx+=a,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const n=Ms(e?.springLength,100),r=Ms(e?.spring,1e-4),i=t.x-this.x,o=t.y-this.y,a=Math.sqrt(i*i+o*o);if(a<n){const l=i*r,c=o*r;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(),r=we(n.getTotalLength(),0);this.setAttr({strokeDasharray:`${r} ${r}`,strokeDashoffset:`${r}`});const i=e?.onUpdate,o=new He({frameDuration:t});o.addTween({offset:r},{offset:0},Object.assign(e||{},{onUpdate:(a,l)=>{this.setAttr("strokeDashoffset",""+we(a.offset,2)),i?.(a,l)}})),o.play()}}class Cg 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 la(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,r=t.z-this.z;return Math.sqrt(e*e+n*n+r*r)}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,r=this.z;return{x:n*t.z-r*t.y,y:r*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 bi=Cg,Zu=[1,0,0,1,0,0],Qu=[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=Zu){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=fu("number",t);return n.length===6&&n.forEach((r,i)=>{r.fullMatch&&(e.value[i]=parseFloat(r.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(Zu),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,r=this.m21,i=this.m22,o=this.m23,a=this.m31,l=this.m32,c=this.m33,u=c*i-o*l,h=-c*r+o*a,f=l*r-i*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*i)*m,this.m21=h*m,this.m22=(c*t-n*a)*m,this.m23=(-o*t+n*r)*m,this.m31=f*m,this.m32=(-l*t+e*a)*m,this.m33=(i*t-e*r)*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],r=this.value[2],i=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*i-r*h)/(S-d),y=(l*i-r*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 r=Ft(t),i=Math.cos(r),o=Math.sin(r);return this.translate(e,n),this.multiply([i,o,-o,i,0,0]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{degree:r}=this.split();return this.rotate(t-r,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:r,degreeY:i,degreeZ:o}=this.matrix3d.split();return this.rotate3d(t-r,e-i,n-o),this}scale(t,e=t,n=0,r=0){return this.translate(n,r),this.multiply([t,0,0,e,0,0]),this.translate(-n,-r),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,r=0){return this.scale(t/this.m11,e/this.m22,n,r)}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:r,scalarY:i,scalarZ:o}=this.matrix3d.split();return this.scale3d(t/r,e/i,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:r}=this.split();return this.skew(t-n,e-r)}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=Qu){this.value=Array.from(t)}static fromString(t){const e=new $e,n=fu("number",t);return n.length===16&&n.forEach((r,i)=>{r.fullMatch&&(e.value[i]=parseFloat(r.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(Qu),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:r,skewY:i,x:o,y:a}=this.split(),l=[e,i,r,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),r=Ie(qt(Math.asin(-this.m13),-1,1));let i=Ie(Math.atan2(this.m23,this.m33));Math.cos(Ft(r))===0&&(i=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:i,degreeY:r,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,r=this.m13,i=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]=i*f*S-r*m*S-i*h*k+n*m*k+r*h*_-n*f*_,t[2]=r*c*S-i*l*S+i*a*k-n*c*k-r*a*_+n*l*_,t[3]=i*l*h-r*c*h-i*a*f+n*c*f+r*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]=r*m*d-i*f*d+i*u*k-e*m*k-r*u*_+e*f*_,t[6]=i*l*d-r*c*d-i*o*k+e*c*k+r*o*_-e*l*_,t[7]=r*c*u-i*l*u+i*o*f-e*c*f-r*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]=i*h*d-n*m*d-i*u*S+e*m*S+n*u*_-e*h*_,t[10]=n*c*d-i*a*d+i*o*S-e*c*S-n*o*_+e*a*_,t[11]=i*a*u-n*c*u-i*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-r*h*d+r*u*S-e*f*S-n*u*k+e*h*k,t[14]=r*a*d-n*l*d-r*o*S+e*l*S+n*o*k-e*a*k,t[15]=n*l*u-r*a*u+r*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),r=Math.sin(e);return this.multiply(new $e([1,0,0,0,0,n,r,0,0,-r,n,0,0,0,0,1]))}rotateY(t){const e=Ft(t),n=Math.cos(e),r=Math.sin(e);return this.multiply(new $e([n,0,-r,0,0,1,0,0,r,0,n,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Ft(t),n=Math.cos(e),r=Math.sin(e);return this.multiply(new $e([n,r,0,0,-r,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,r=t.x*this.m13+t.y*this.m23+this.m43,i=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=r+this.m33,c=i+this.m34;i==0&&(i=1e-4),e/=i,n/=i,r/=i,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-r;if(u==0)return{x:e,y:n,z:r,mass:i};const h=-r/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:r,mass:i}}project(t){const e=t.z;let n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,r=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,i=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return i==0&&(i=1e-4),n/=i,r/=i,i<0&&(n-=this.m41,r-=this.m42,n*=1/i,r*=1/i,n+=this.m41,r+=this.m42),{x:n,y:r,z:e,mass:i}}bounds(t,e,n,r){const i=new bi({x:t,y:e}),o=new bi({x:t+n,y:e}),a=new bi({x:t+n,y:e+r}),l=new bi({x:t,y:e+r});({x:i.x,y:i.y,z:i.z,mass:i.mass}=this.project(i)),{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(i.x,o.x,a.x,l.x),u=Math.min(i.y,o.y,a.y,l.y),h=Math.max(i.x,o.x,a.x,l.x)-c,f=Math.max(i.y,o.y,a.y,l.y)-u;return{x:c,y:u,width:h,height:f}}}function Ku(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,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const i=[];for(let o=0,a=r.length;o<a;o++)r[o].trim()&&i.push(parseFloat(""+r[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(i[0],i[1]);break;case"translatex":t.translateX(i[0]);break;case"translatey":t.translateY(i[0]);break;case"translatez":t.translateZ(i[0]);break;case"translate3d":t.translate3d(i[0],i[1],i[2]);break;case"r":case"rotate":t.rotate(i[0],i[1]??0,i[2]??0);break;case"rotatex":t.rotateX(i[0]);break;case"rotatey":t.rotateY(i[0]);break;case"rotatez":t.rotateZ(i[0]);break;case"rotate3d":t.rotate3d(i[0],i[1],i[2]);break;case"s":case"scale":t.scale(i[0],i[1]??i[0]);break;case"scalex":t.scaleX(i[0]);break;case"scaley":t.scaleY(i[0]);break;case"scalez":t.scaleZ(i[0]);break;case"scale3d":t.scale3d(i[0],i[1],i[2]);break;case"skew":t.skew(i[0],i[1]??0);break;case"skewx":t.skewX(i[0]);break;case"skewy":t.skewY(i[0]);break;case"skewz":t.skewZ(i[0]);break;case"skew3d":t.skew3d(i[0],i[1],i[2]);break;case"m":case"matrix":t.multiply([i[0],i[1],i[2],i[3],i[4],i[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new $e(i)),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 ft{static createElementNS(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}static isActive(t){return t===document.activeElement&&(t.type||t.href)}static getElement(t){const e=t.style?t.ownerDocument:t.document||t;return{el:t,document:e,window:e.defaultView,isRootNode:/(html|body)/i.test(t.tagName)||t===document}}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,e){document.documentElement.style.setProperty(t,e)}static add3DSupport(t,e="1000px"){if(t.parentElement){const n=_n(t.parentElement,"position");pi(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}pi(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){Object.prototype.hasOwnProperty.call(n,"transform")||Object.assign(n,{transform:_n(t,"transform")||""});const r=Ku(n.transform),i={};for(const o in e){const a=e[o];switch(o){case"transform":break;case"translate":r.translate(a[0]||0,a[1]||0);break;case"translateTo":r.translateTo(a[0]||0,a[1]||0);break;case"translateX":r.translateX(a||0);break;case"translateXTo":r.translateXTo(a||0);break;case"translateY":r.translateY(a||0);break;case"translateYTo":r.translateYTo(a||0);break;case"translateZ":r.translateZ(a||0);break;case"translateZTo":r.translateZTo(a||0);break;case"translate3d":r.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":r.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?r.rotate(a||0):r.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?r.rotateTo(a||0):r.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":r.rotateX(a||0);break;case"rotateXTo":r.rotateXTo(a||0);break;case"rotateY":r.rotateY(a||0);break;case"rotateYTo":r.rotateYTo(a||0);break;case"rotateZ":r.rotateZ(a||0);break;case"rotateZTo":r.rotateZTo(a||0);break;case"rotate3d":r.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":r.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?r.scale(a||1):r.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?r.scaleTo(a||1):r.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":r.scaleX(a||1);break;case"scaleXTo":r.scaleXTo(a||1);break;case"scaleY":r.scaleY(a||1);break;case"scaleYTo":r.scaleYTo(a||1);break;case"scaleZ":r.scaleZ(a||1);break;case"scaleZTo":r.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?r.scale3d(a||1):r.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?r.scale3dTo(a||1):r.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?r.skew(a||0):r.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?r.skewTo(a||0):r.skewTo(a[0]||0,a[1]||0);break;case"skewX":r.skewX(a||0);break;case"skewXTo":r.skewXTo(a||0);break;case"skewY":r.skewY(a||0);break;case"skewYTo":r.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":r.perspective(a||0);break;default:Object.prototype.hasOwnProperty.call(n,o)||(n[o]=_n(t,o)),Object.assign(i,{[o]:`${a}`});break}}return Object.assign(i,{transform:r.toString()}),i}static attrsToCanvas(t,e){for(const n in e){const r=e[n];switch(n){case"fill":r!=="none"&&(t.fillStyle=r);break;case"stroke":r!=="none"&&(t.strokeStyle=r);break;case"stroke-width":case"strokeWidth":t.lineWidth=Number(r);break;case"stroke-linecap":case"strokeLinecap":t.lineCap=r;break;case"stroke-linejoin":case"strokeLinejoin":switch(r){case"round":case"bevel":case"miter":t.lineJoin=r;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":t.miterLimit=Number(r);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":t.lineDashOffset=Number(r);break;case"stroke-dasharray":case"strokeDasharray":typeof r=="string"&&t.setLineDash(r.split(/\s+/).map(i=>Number(i)));break;case"cursor":break;case"font":typeof r=="string"&&(t.font=r);break;case"font-size":case"fontSize":t.font+=` ${r}`;break;case"font-family":case"fontFamily":t.font+=` ${r}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(r){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(r){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=r;break;default:t.textBaseline="alphabetic";break}break}}}static fixProp(t){const e={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return e[t]?e[t]:t}static prop(t,e,n){if(n===void 0&&typeof e=="string")return t[e];{let r={};typeof e=="object"?r=e:typeof e=="string"&&n!==void 0&&(r[e]=n),Object.entries(r).forEach(([i,o])=>{const a=this.fixProp(i);t[a]=o,a=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t[this.fixProp(n.trim())]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static scriptConvert(t){const e=n=>{const i=n.ownerDocument.createElement("script");i.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)i.setAttribute(o[a].name,o[a].value);return i};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static insert(t,e,n="append"){return typeof e=="string"?t[n](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[n](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const r=this.scriptConvert(n);r!=n&&e.content.replaceChild(r,n)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static parents(t,e=[]){return!t||t.parentElement===null?e:ft.parents(t.parentElement,e.concat([t]))}static overflow(t){return _n(t,"overflow")+_n(t,"overflow-y")+_n(t,"overflow-x")}static getScrollParent(t){if(!(t instanceof HTMLElement||t instanceof SVGElement))return;const e=ft.parents(t.parentElement,[]);for(let n=0;n<e.length;n+=1)if(/(auto|scroll)/.test(ft.overflow(e[n])))return e[n];return document.scrollingElement||document.documentElement}static contains(t,e){return t.contains?t!=e&&t.contains(e):!!(t.compareDocumentPosition(e)&16)}static isInputElement(t){return t.tagName==="INPUT"||t instanceof HTMLInputElement}static isInputCheckboxElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="checkbox"}static isInputRadioElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="radio"}static isInputTextElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="text"}static isInputNumberElement(t){return ft.isInputElement(t)&&t.getAttribute("type")==="number"}static isSelectElement(t){return t instanceof HTMLSelectElement}static isTextAreaElement(t){return t instanceof HTMLTextAreaElement}static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const n=t.options;for(let r=0,i=n.length;r<i;r++)n[r].value==e?n[r].selected=!0:n[r].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={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 n;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?n=parseInt(t.substring(2),16):n=parseInt(t.substring(1),10):n=e[t],n?String.fromCharCode(n):"&"+t}static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
40
40
|
let output = "";
|
|
41
41
|
function echo(html){
|
|
42
42
|
output += html;
|
|
@@ -49,19 +49,19 @@ Component that was made reactive: `,s)),P(s,t,e,n,r,o,i,!0)}function Nd(s){retur
|
|
|
49
49
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
50
50
|
* Licensed under the MIT license */(function(s){(function(t,e,n,r){var i=["","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!==r)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+`
|
|
51
51
|
`+E+` AT
|
|
52
|
-
`;return function(){var tt=new Error("get-stack-trace"),pt=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,pt),g.apply(this,arguments)}}var k;typeof Object.assign!="function"?k=function(v){if(v===r||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!==r&&tt!==null)for(var pt in tt)tt.hasOwnProperty(pt)&&(E[pt]=tt[pt])}return E}:k=Object.assign;var S=d(function(v,E,N){for(var tt=Object.keys(E),pt=0;pt<tt.length;)(!N||N&&v[tt[pt]]===r)&&(v[tt[pt]]=E[tt[pt]]),pt++;return v},"extend","Use `assign`."),_=d(function(v,E){return S(v,E,!0)},"merge","Use `assign`.");function C(g,v,E){var N=v.prototype,tt;tt=g.prototype=Object.create(N),tt.constructor=g,tt._super=N,E&&k(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]||r,v):g}function x(g,v){return g===r?v:g}function b(g,v,E){m(R(v),function(N){g.addEventListener(N,E,!1)})}function z(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=[],pt=0;pt<g.length;){var Nt=v?g[pt][v]:g[pt];A(tt,Nt)<0&&N.push(g[pt]),tt[pt]=Nt,pt++}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),pt=0;pt<i.length;){if(E=i[pt],N=E?E+tt:v,N in g)return N;pt++}return r}var rt=1;function K(){return rt++}function W(g){var v=g.ownerDocument||g;return v.defaultView||v.parentWindow||t}var nt=/mobile|tablet|ip(ad|hone|od)|android/i,B="ontouchstart"in t,j=X(t,"PointerEvent")!==r,yt=B&&nt.test(navigator.userAgent),gt="touch",Z="pen",V="mouse",Qt="kinect",te=25,It=1,ee=2,Yt=4,G=8,Fe=1,Ye=2,Ae=4,w=8,I=16,$=Ye|Ae,U=w|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&&z(this.element,this.evEl,this.domHandler),this.evTarget&&z(this.target,this.evTarget,this.domHandler),this.evWin&&z(W(this.element),this.evWin,this.domHandler)}};function st(g){var v,E=g.options.inputClass;return E?v=E:j?v=Fa:yt?v=Ri:B?v=La:v=ke,new v(g,J)}function J(g,v,E){var N=E.pointers.length,tt=E.changedPointers.length,pt=v&It&&N-tt===0,Nt=v&(Yt|G)&&N-tt===0;E.isFirst=!!pt,E.isFinal=!!Nt,pt&&(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=St(v)),tt>1&&!E.firstMultiple?E.firstMultiple=St(v):tt===1&&(E.firstMultiple=!1);var pt=E.firstInput,Nt=E.firstMultiple,de=Nt?Nt.center:pt.center,be=v.center=Rt(N);v.timeStamp=u(),v.deltaTime=v.timeStamp-pt.timeStamp,v.angle=Te(de,be),v.distance=se(de,be),_t(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?Oi(Nt.pointers,N):1,v.rotation=Nt?$s(Nt.pointers,N):0,v.maxPointers=E.prevInput?v.pointers.length>E.prevInput.maxPointers?v.pointers.length:E.prevInput.maxPointers:v.pointers.length,vt(E,v);var is=g.element;ct(v.srcEvent.target,is)&&(is=v.srcEvent.target),v.target=is}function _t(g,v){var E=v.center,N=g.offsetDelta||{},tt=g.prevDelta||{},pt=g.prevInput||{};(v.eventType===It||pt.eventType===Yt)&&(tt=g.prevDelta={x:pt.deltaX||0,y:pt.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 vt(g,v){var E=g.lastInterval||v,N=v.timeStamp-E.timeStamp,tt,pt,Nt,de;if(v.eventType!=G&&(N>te||E.velocity===r)){var be=v.deltaX-E.deltaX,Ee=v.deltaY-E.deltaY,is=Vt(N,be,Ee);pt=is.x,Nt=is.y,tt=c(is.x)>c(is.y)?is.x:is.y,de=Ut(be,Ee),g.lastInterval=v}else tt=E.velocity,pt=E.velocityX,Nt=E.velocityY,de=E.direction;v.velocity=tt,v.velocityX=pt,v.velocityY=Nt,v.direction=de}function St(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?Ye:Ae:v<0?w: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 Te(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 $s(g,v){return Te(v[1],v[0],ot)+Te(g[1],g[0],ot)}function Oi(g,v){return se(v[0],v[1],ot)/se(g[0],g[1],ot)}var ln={mousedown:It,mousemove:ee,mouseup:Yt},Ii="mousedown",_e="mousemove mouseup";function ke(){this.evEl=Ii,this.evWin=_e,this.pressed=!1,Q.apply(this,arguments)}C(ke,Q,{handler:function(v){var E=ln[v.type];E&It&&v.button===0&&(this.pressed=!0),E&ee&&v.which!==1&&(E=Yt),this.pressed&&(E&Yt&&(this.pressed=!1),this.callback(this.manager,E,{pointers:[v],changedPointers:[v],pointerType:V,srcEvent:v}))}});var Di={pointerdown:It,pointermove:ee,pointerup:Yt,pointercancel:G,pointerout:G},S_={2:gt,3:Z,4:V,5:Qt},dh="pointerdown",ph="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(dh="MSPointerDown",ph="MSPointerMove MSPointerUp MSPointerCancel");function Fa(){this.evEl=dh,this.evWin=ph,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Fa,Q,{handler:function(v){var E=this.store,N=!1,tt=v.type.toLowerCase().replace("ms",""),pt=Di[tt],Nt=S_[v.pointerType]||v.pointerType,de=Nt==gt,be=A(E,v.pointerId,"pointerId");pt&It&&(v.button===0||de)?be<0&&(E.push(v),be=E.length-1):pt&(Yt|G)&&(N=!0),!(be<0)&&(E[be]=v,this.callback(this.manager,pt,{pointers:E,changedPointers:[v],pointerType:Nt,srcEvent:v}),N&&E.splice(be,1))}});var T_={touchstart:It,touchmove:ee,touchend:Yt,touchcancel:G},k_="touchstart",E_="touchstart touchmove touchend touchcancel";function mh(){this.evTarget=k_,this.evWin=E_,this.started=!1,Q.apply(this,arguments)}C(mh,Q,{handler:function(v){var E=T_[v.type];if(E===It&&(this.started=!0),!!this.started){var N=P_.call(this,v,E);E&(Yt|G)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:gt,srcEvent:v})}}});function P_(g,v){var E=D(g.touches),N=D(g.changedTouches);return v&(Yt|G)&&(E=L(E.concat(N),"identifier",!0)),[E,N]}var O_={touchstart:It,touchmove:ee,touchend:Yt,touchcancel:G},I_="touchstart touchmove touchend touchcancel";function Ri(){this.evTarget=I_,this.targetIds={},Q.apply(this,arguments)}C(Ri,Q,{handler:function(v){var E=O_[v.type],N=D_.call(this,v,E);N&&this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:gt,srcEvent:v})}});function D_(g,v){var E=D(g.touches),N=this.targetIds;if(v&(It|ee)&&E.length===1)return N[E[0].identifier]=!0,[E,E];var tt,pt,Nt=D(g.changedTouches),de=[],be=this.target;if(pt=E.filter(function(Ee){return ct(Ee.target,be)}),v===It)for(tt=0;tt<pt.length;)N[pt[tt].identifier]=!0,tt++;for(tt=0;tt<Nt.length;)N[Nt[tt].identifier]&&de.push(Nt[tt]),v&(Yt|G)&&delete N[Nt[tt].identifier],tt++;if(de.length)return[L(pt.concat(de),"identifier",!0),de]}var R_=2500,gh=25;function La(){Q.apply(this,arguments);var g=y(this.handler,this);this.touch=new Ri(this.manager,g),this.mouse=new ke(this.manager,g),this.primaryTouch=null,this.lastTouches=[]}C(La,Q,{handler:function(v,E,N){var tt=N.pointerType==gt,pt=N.pointerType==V;if(!(pt&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(tt)A_.call(this,E,N);else if(pt&&M_.call(this,N))return;this.callback(v,E,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function A_(g,v){g&It?(this.primaryTouch=v.changedPointers[0].identifier,yh.call(this,v)):g&(Yt|G)&&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 pt=N.indexOf(E);pt>-1&&N.splice(pt,1)};setTimeout(tt,R_)}}function M_(g){for(var v=g.srcEvent.clientX,E=g.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var tt=this.lastTouches[N],pt=Math.abs(v-tt.x),Nt=Math.abs(E-tt.y);if(pt<=gh&&Nt<=gh)return!0}return!1}var vh=X(o.style,"touchAction"),_h=vh!==r,bh="compute",xh="auto",$a="manipulation",cn="none",dr="pan-x",pr="pan-y",Ai=F_();function Va(g,v){this.manager=g,this.set(v)}Va.prototype={set:function(g){g==bh&&(g=this.compute()),_h&&this.manager.element.style&&Ai[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()))}),N_(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)&&!Ai[cn],pt=O(N,pr)&&!Ai[pr],Nt=O(N,dr)&&!Ai[dr];if(tt){var de=g.pointers.length===1,be=g.distance<2,Ee=g.deltaTime<250;if(de&&be&&Ee)return}if(!(Nt&&pt)&&(tt||pt&&E&$||Nt&&E&U))return this.preventSrc(v)},preventSrc:function(g){this.manager.session.prevented=!0,g.preventDefault()}};function N_(g){if(O(g,cn))return cn;var v=O(g,dr),E=O(g,pr);return v&&E?cn:v||E?v?dr:pr:O(g,$a)?$a:xh}function F_(){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 Mi=1,ze=2,kn=4,Vs=8,gs=Vs,mr=16,rs=32;function ys(g){this.options=k({},this.defaults,g||{}),this.id=K(),this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=Mi,this.simultaneous={},this.requireFail=[]}ys.prototype={defaults:{},set:function(g){return k(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=Ni(g,this),v[g.id]||(v[g.id]=g,g.recognizeWith(this)),this},dropRecognizeWith:function(g){return f(g,"dropRecognizeWith",this)?this:(g=Ni(g,this),delete this.simultaneous[g.id],this)},requireFailure:function(g){if(f(g,"requireFailure",this))return this;var v=this.requireFail;return g=Ni(g,this),A(v,g)===-1&&(v.push(g),g.requireFailure(this)),this},dropRequireFailure:function(g){if(f(g,"dropRequireFailure",this))return this;g=Ni(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<Vs&&N(v.options.event+wh(E)),N(v.options.event),g.additionalEvent&&N(g.additionalEvent),E>=Vs&&N(v.options.event+wh(E))},tryEmit:function(g){if(this.canEmit())return this.emit(g);this.state=rs},canEmit:function(){for(var g=0;g<this.requireFail.length;){if(!(this.requireFail[g].state&(rs|Mi)))return!1;g++}return!0},recognize:function(g){var v=k({},g);if(!p(this.options.enable,[this,v])){this.reset(),this.state=rs;return}this.state&(gs|mr|rs)&&(this.state=Mi),this.state=this.process(v),this.state&(ze|kn|Vs|mr)&&this.tryEmit(v)},process:function(g){},getTouchAction:function(){},reset:function(){}};function wh(g){return g&mr?"cancel":g&Vs?"end":g&kn?"move":g&ze?"start":""}function Ch(g){return g==I?"down":g==w?"up":g==Ye?"left":g==Ae?"right":""}function Ni(g,v){var E=v.manager;return E?E.get(g):g}function We(){ys.apply(this,arguments)}C(We,ys,{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&(ze|kn),tt=this.attrTest(g);return N&&(E&G||!tt)?v|mr:N||tt?E&Yt?v|Vs:v&ze?v|kn:ze:rs}});function Fi(){We.apply(this,arguments),this.pX=null,this.pY=null}C(Fi,We,{defaults:{event:"pan",threshold:10,pointers:1,direction:q},getTouchAction:function(){var g=this.options.direction,v=[];return g&$&&v.push(pr),g&U&&v.push(dr),v},directionTest:function(g){var v=this.options,E=!0,N=g.distance,tt=g.direction,pt=g.deltaX,Nt=g.deltaY;return tt&v.direction||(v.direction&$?(tt=pt===0?Fe:pt<0?Ye:Ae,E=pt!=this.pX,N=Math.abs(g.deltaX)):(tt=Nt===0?Fe:Nt<0?w: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&ze||!(this.state&ze)&&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 Ya(){We.apply(this,arguments)}C(Ya,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&ze)},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 za(){ys.apply(this,arguments),this._timer=null,this._input=null}C(za,ys,{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&(Yt|G)&&!tt)this.reset();else if(g.eventType&It)this.reset(),this._timer=h(function(){this.state=gs,this.tryEmit()},v.time,this);else if(g.eventType&Yt)return gs;return rs},reset:function(){clearTimeout(this._timer)},emit:function(g){this.state===gs&&(g&&g.eventType&Yt?this.manager.emit(this.options.event+"up",g):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Ba(){We.apply(this,arguments)}C(Ba,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&ze)}});function Ga(){We.apply(this,arguments)}C(Ga,We,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|U,pointers:1},getTouchAction:function(){return Fi.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&Yt},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 Li(){ys.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(Li,ys,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[$a]},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&It&&this.count===0)return this.failTimeout();if(N&&tt&&E){if(g.eventType!=Yt)return this.failTimeout();var pt=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||!pt?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=gs,this.tryEmit()},v.interval,this),ze):gs}return rs},failTimeout:function(){return this._timer=h(function(){this.state=rs},this.options.interval,this),rs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==gs&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function vs(g,v){return v=v||{},v.recognizers=x(v.recognizers,vs.defaults.preset),new Xa(g,v)}vs.VERSION="2.0.7",vs.defaults={domEvents:!1,touchAction:bh,enable:!0,inputTarget:null,inputClass:null,preset:[[Ba,{enable:!1}],[Ya,{enable:!1},["rotate"]],[Ga,{direction:$}],[Fi,{direction:$},["swipe"]],[Li],[Li,{event:"doubletap",taps:2},["tap"]],[za]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var L_=1,Sh=2;function Xa(g,v){this.options=k({},vs.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 Va(this,this.options.touchAction),Th(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)}Xa.prototype={set:function(g){return k(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?Sh:L_},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&gs)&&(tt=v.curRecognizer=null);for(var pt=0;pt<N.length;)E=N[pt],v.stopped!==Sh&&(!tt||E==tt||E.canRecognizeWith(tt))?E.recognize(g):E.reset(),!tt&&E.state&(ze|kn|Vs)&&(tt=v.curRecognizer=E),pt++}},get:function(g){if(g instanceof ys)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!==r&&v!==r){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!==r){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&&$_(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&&Th(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Th(g,v){var E=g.element;if(E.style){var N;m(g.options.cssProps,function(tt,pt){N=X(E.style,pt),v?(g.oldCssProps[N]=E.style[N],E.style[N]=tt):E.style[N]=g.oldCssProps[N]||""}),v||(g.oldCssProps={})}}function $_(g,v){var E=e.createEvent("Event");E.initEvent(g,!0,!0),E.gesture=v,v.target.dispatchEvent(E)}k(vs,{INPUT_START:It,INPUT_MOVE:ee,INPUT_END:Yt,INPUT_CANCEL:G,STATE_POSSIBLE:Mi,STATE_BEGAN:ze,STATE_CHANGED:kn,STATE_ENDED:Vs,STATE_RECOGNIZED:gs,STATE_CANCELLED:mr,STATE_FAILED:rs,DIRECTION_NONE:Fe,DIRECTION_LEFT:Ye,DIRECTION_RIGHT:Ae,DIRECTION_UP:w,DIRECTION_DOWN:I,DIRECTION_HORIZONTAL:$,DIRECTION_VERTICAL:U,DIRECTION_ALL:q,Manager:Xa,Input:Q,TouchAction:Va,TouchInput:Ri,MouseInput:ke,PointerEventInput:Fa,TouchMouseInput:La,SingleTouchInput:mh,Recognizer:ys,AttrRecognizer:We,Tap:Li,Pan:Fi,Swipe:Ga,Pinch:Ya,Rotate:Ba,Press:za,on:b,off:z,each:m,merge:_,extend:S,assign:k,inherit:C,bindFn:y,prefixed:X});var V_=typeof t<"u"?t:typeof self<"u"?self:{};V_.Hammer=vs,typeof r=="function"&&r.amd?r(function(){return vs}):s.exports?s.exports=vs:t[n]=vs})(window,document,"Hammer")})(Ju);var Sg=Ju.exports;const Tg=Xm(Sg);function ma(){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 ga(){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 kg(s){const{top:t,left:e,width:n,height:r}=s.getBoundingClientRect(),{scrollLeft:i,scrollTop:o}=ma();return{x:e+i,y:t+o,width:n,height:r}}function Eg(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=ma(),n=e-s;return n<=0?0:t/n*100}function Pg(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}=ma();return{x:s.clientX+t,y:s.clientY+e}}function es(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=Pg(s),n=kg(t||s.target);return{x:e.x-n.x,y:e.y-n.y}}class ms extends er{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 Tg(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(es(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=G=>{this.emit("mouseDown",G)},e=G=>{this.emit("mouseUp",G)},n=G=>{this.emit("mouseMove",G)},r=G=>{this.emit("mouseOver",G)},i=G=>{this.emit("mouseOut",G)},o=G=>{this.emit("mouseEnter",G)},a=G=>{this.emit("mouseLeave",G)},l=G=>{this.emit("mouseClick",G)},c=G=>{this.emit("mouseDoubleClick",G)},u=G=>{this.emit("mouseWheel",G)},h=G=>{this.emit("mouseContextMenu",G)},f=G=>{this.emit("touchStart",G)},m=G=>{this.emit("touchEnd",G)},d=G=>{this.emit("touchCancel",G)},k=G=>{this.emit("touchMove",G)},S=G=>{this.emit("pointerDown",G)},_=G=>{this.emit("pointerUp",G)},C=G=>{this.emit("pointerCancel",G)},y=G=>{this.emit("pointerMove",G)},p=G=>{this.emit("pan",G)},x=G=>{this.emit("panStart",G)},b=G=>{this.emit("panMove",G)},z=G=>{this.emit("panEnd",G)},ct=G=>{this.emit("panCancel",G)},O=G=>{this.emit("panLeft",G)},R=G=>{this.emit("panRight",G)},A=G=>{this.emit("panUp",G)},D=G=>{this.emit("panDown",G)},L=G=>{this.emit("pinch",G)},X=G=>{this.emit("press",G)},rt=G=>{this.emit("rotate",G)},K=G=>{this.emit("swipe",G)},W=G=>{this.emit("swipeLeft",G)},nt=G=>{this.emit("swipeRight",G)},B=G=>{this.emit("swipeUp",G)},j=G=>{this.emit("swipeDown",G)},yt=G=>{this.emit("tap",G)},gt=G=>{!G.target||this.container==G.target||this.container.contains(G.target)||this.emit("tapOutSide",G)},Z=G=>{this.emit("inputChange",G,this.container.files)},V=G=>{this.emit("dragstart",G)},Qt=G=>{G.dataTransfer&&(G.dataTransfer.dropEffect="copy"),this.emit("dragover",G)},te=G=>{this.emit("dragenter",G)},It=G=>{this.emit("dragend",G)},ee=G=>{G.dataTransfer,this.emit("drop",G,G.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",n,!1),this.container.addEventListener("mouseover",r,!1),this.container.addEventListener("mouseout",i,!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",k,!1),this.container.addEventListener("pointerdown",S,!1),this.container.addEventListener("pointerup",_,!1),this.container.addEventListener("pointercancel",C,!1),this.container.addEventListener("pointermove",y,!1),this.hammer.on("pan",p),this.hammer.on("panstart",x),this.hammer.on("panmove",b),this.hammer.on("panend",z),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",rt),this.hammer.on("swipe",K),this.hammer.on("swipeleft",W),this.hammer.on("swiperight",nt),this.hammer.on("swipeup",B),this.hammer.on("swipedown",j),this.hammer.on("tap",yt),document.addEventListener("pointerdown",gt,!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",It,!1),this.container.addEventListener("drop",ee,!1);const Yt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",n,!1),this.container.removeEventListener("mouseover",r,!1),this.container.removeEventListener("mouseout",i,!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",k,!1),this.container.removeEventListener("pointerdown",S,!1),this.container.removeEventListener("pointerup",_,!1),this.container.removeEventListener("pointercancel",C),this.container.removeEventListener("pointermove",y,!1),this.hammer.off("pan",p),this.hammer.off("panstart",x),this.hammer.off("panmove",b),this.hammer.off("panend",z),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",rt),this.hammer.off("swipe",K),this.hammer.off("swipeleft",W),this.hammer.off("swiperight",nt),this.hammer.off("swipeup",B),this.hammer.off("swipedown",j),this.hammer.off("tap",yt),document.removeEventListener("pointerdown",gt,!1),document.removeEventListener("touchstart",gt,!1),document.removeEventListener("mousedown",gt,!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",It,!1),this.container.removeEventListener("drop",ee,!1)};return this.addRemoves(Yt),Yt}registerTransitionEventListeners(){const t=r=>{this.emit("transitionstart",r)},e=r=>{this.emit("transitionend",r)};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=r=>{this.emit("animationstart",r)},e=r=>{this.emit("animationend",r)};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:r,height:i}=n[0].contentRect;this.width=r,this.height=i,this.emit("resize",r,i)});e.observe(this.container),t=()=>{e.unobserve(this.container)}}else{const e="orientationchange"in window?"orientationchange":"resize",n=r=>{const i=r.target.innerWidth,o=r.target.innerHeight;this.emit("resize",i,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((i,o)=>{let a=i[0];if(i.length>1){const c=i.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 r=()=>{n.unobserve(this.container)};return this.addRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(n,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullDowning",r.dStartY)},end:(n,r)=>{r.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(n,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullUping",r.dStartY)},end:(n,r)=>{r.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 r=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",o),this.on("pointerUp",i),this.on("pointerCancel",i),n=es(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},i=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",o),this.off("pointerUp",i),this.off("pointerCancel",i),n=es(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=es(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",r);const a=()=>{this.off("pointerDown",r)};return this.addRemoves(a),a}captureDragUseMouse(t){let e,n;const r=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",o,!1),document.addEventListener("mouseup",i,!1),n=es(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},i=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",o,!1),document.removeEventListener("mouseup",i,!1),n=es(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=es(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",r);const a=()=>{this.off("mouseDown",r)};return this.addRemoves(a),a}captureDragUseTouch(t){let e,n;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",o),this.on("touchEnd",i),this.on("touchCancel",i);const c=l.changedTouches[0];n=es(c,this.container);const u={...n};e=u,this.setMousePoint(u),t?.start?.(c,u)},i=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",o),this.off("touchEnd",i),this.off("touchCancel",i);const c=l.changedTouches[0];n=es(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=es(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",r);const a=()=>{this.off("touchStart",r)};return this.addRemoves(a),a}}new ms(document.documentElement,!0,[]);class ya{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"),r=document.createElement("source"),i=new MediaSource;i.addEventListener("sourceopen",()=>t(!0)),r.src=URL.createObjectURL(i),r.media="(min-width:10px)",n.append(r),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(()=>{ya.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 Og extends er{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,r=du(this.source,0);for(let i=1;i<t;i++)e=n,n=r,r=du(this.source,i),this.raw+=n,n&&this.step(n,r,e);r&&this.step(r,void 0,n),this.emit("finish")}step(t,e,n){t==`
|
|
53
|
-
`&&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+=ft.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=ft.entity2text(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 Ig(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const r=function(){const i=Math.min(t.clientWidth,s);t.dataset.width=i,t.dataset.rem=n=Math.round(100*(i/s)),t.style.fontSize=n+"px"};r(),window.rem2px=function(i){return i=parseFloat(i),i*n},window.px2rem=function(i){return i=parseFloat(i),i/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}const Ot={safeAreaTop:ft.getCSSVar("--safe-area-inset-top"),safeAreaRight:ft.getCSSVar("--safe-area-inset-right"),safeAreaBottom:ft.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:ft.getCSSVar("--safe-area-inset-left"),colorPrimary:ft.getCSSVar("--color-primary")||"#5078f0",colorRed:ft.getCSSVar("--color-red")||"#ff5050",colorOrange:ft.getCSSVar("--color-orange")||"#fa8c00",colorYellow:ft.getCSSVar("--color-yellow")||"#fadc32",colorGreen:ft.getCSSVar("--color-green")||"#00c878",colorBlue:ft.getCSSVar("--color-blue")||"#00b4fa",colorPurple:ft.getCSSVar("--color-purple")||"#6464fa",colorBlack:ft.getCSSVar("--color-black")||"#001428",colorGray00:ft.getCSSVar("--color-gray-00")||"#000000",colorGray33:ft.getCSSVar("--color-gray-33")||"#333333",colorGray66:ft.getCSSVar("--color-gray-66")||"#666666",colorGray99:ft.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:ft.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:ft.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:ft.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:ft.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:ft.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:ft.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:ft.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:ft.getCSSVar("--font-line-height")||"1.4",fontSize32:ft.getCSSVar("--font-size-32")||"32px",fontSize24:ft.getCSSVar("--font-size-24")||"24px",fontSize22:ft.getCSSVar("--font-size-22")||"22px",fontSize20:ft.getCSSVar("--font-size-20")||"20px",fontSize18:ft.getCSSVar("--font-size-18")||"18px",fontSize16:ft.getCSSVar("--font-size-16")||"16px",fontSize14:ft.getCSSVar("--font-size-14")||"14px",fontSize12:ft.getCSSVar("--font-size-12")||"12px",fontSize10:ft.getCSSVar("--font-size-10")||"10px",d4:ft.getCSSVar("--distance-4")||"4px",d8:ft.getCSSVar("--distance-8")||"8px",d12:ft.getCSSVar("--distance-12")||"12px",d16:ft.getCSSVar("--distance-16")||"16px",d20:ft.getCSSVar("--distance-20")||"20px",d32:ft.getCSSVar("--distance-32")||"32px",d40:ft.getCSSVar("--distance-40")||"40px",d44:ft.getCSSVar("--distance-44")||"44px"};class Ct{__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=va(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,r){return this.r=t,this.g=e,this.b=n,this.a=r,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 Ct(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",n="#ffffff"){if(t)return new Ct(this.r*.299+this.g*.587+this.b*.114>186?e:n);{const r=this.clone();return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,r}}lighten(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:r}=this.color;return e+=(255-e)*t,n+=(255-n)*t,r+=(255-r)*t,new Ct().setRGBA(e,n,r,this.color.a)}darken(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:r}=this.color;return e=e*(1-t),n=n*(1-t),r=r*(1-t),new Ct().setRGBA(e,n,r,this.color.a)}static gradient(t,e,n){try{const r=va(t),i=va(e);return new Ct().setRGB((i.r-r.r)*n+r.r,(i.g-r.g)*n+r.g,(i.b-r.b)*n+r.b)}catch{return new Ct(e)}}static random(){return new Ct(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:n,a:r}=this.color,i=Math.max(t,e,n),o=Math.min(t,e,n),a=i-o;let l;return t===i?l=(e-n)/a:e===i?l=2+(n-t)/a:l=4+(t-e)/a,l/=6,l<0&&(l+=1),{h:a==0?0:l*360,s:i===0?0:a/i,v:i/255,a:r}}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 Ct(s,t)}function va(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),r=qt(s.s,0,1),i=qt(s.v,0,1),o=Math.floor(n/60)%6,a=n/60-Math.floor(n/60),l=i*(1-r),c=i*(1-a*r),u=i*(1-(1-a)*r),h=[[i,u,l],[c,i,l],[l,i,u],[l,c,i],[u,l,i],[i,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 r=s.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);r?(e.r=parseInt(`${r[1]}${r[1]}`,16),e.g=parseInt(`${r[2]}${r[2]}`,16),e.b=parseInt(`${r[3]}${r[3]}`,16)):(r=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16)):(r=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16),e.a=parseInt(r[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 Dg=["#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 Ct(Fs.saveRowColor).darken(.1).toString(),Fs.borderColor=new Ct(Fs.backgroundColor).lighten(.07).toString(),Fs.inputColor=new Ct(Fs.backgroundColor).lighten(.085).toString();function th(s,t,e,n,r){const i=t/e;let o=0,a=0;switch(s){case"aspectFit":i>=1?(o=n,a=o/i,a>r&&(a=r,o=a*i)):(a=r,o=a*i,o>n&&(o=n,a=o/i));break;case"aspectFill":i>=1?(a=r,o=a*i):(o=n,a=o/i);break;case"widthFix":o=n,a=o/i;break;case"heightFix":a=r,o=a*i;break;case"scaleToFill":default:o=n,a=r;break}return{width:o,height:a}}const xi=new Map;async function Rg(s){return new Promise((t,e)=>{Ag(s,(n,r)=>n?e(n):t({width:r.width,height:r.height,aspectRatio:r.width/r.height}))})}const Ag=(s,t)=>{if(xi.has(s))return t(null,xi.get(s));const e=new Image;e.onload=function(){xi.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,xi.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class ss 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,r)=>{this.enableDrag&&(this.x+=n,this.y+=r,this.emit("draging",n,r,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 r=Math.min.apply(0,t),i=Math.min.apply(0,e),o=Math.max.apply(0,t),a=Math.max.apply(0,e);return{x:r,y:i,width:o-r,height:a-i}}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 r=n;r<e;r++){const o=t.shapes[r].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[r].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 r=new He({frameDuration:t}),i={},o={};this.shapes.forEach((a,l)=>{const c=we(a.getTotalLength(),0);i[`offset_${l}`]=c,o[`offset_${l}`]=0,a.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),r.addTween(i,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?.()}})),r.play();break}}}const wn=ss;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(r,i,o,a){switch(i){case"x":r.toX=o+e;break;case"y":r.toY=o+n;break;case"toX":e=o-r.x;break;case"toY":n=o-r.y;break}return Reflect.set(r,i,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 Hu({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),n=new Hu({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(n)}}class wi 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)}}class Mg extends Og{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=Ym(e);for(let r of n.stylesheet.rules)for(let i of r.declarations)for(let o of r.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${i.property}:${i.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let i="",o="";for(let a in this.groups[r])a=="transform"?i=this.groups[r].transform:a=="class"&&this.globalStyles["."+this.groups[r][a]]?o=this.globalStyles["."+this.groups[r][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[r][a]]?o=this.globalStyles["#"+this.groups[r][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[r][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=i:this.currentItem.transform+=" "+i,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),ba(this.currentItem.style,this.currentItem,xa)}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=[],r;switch(t){case"svg":let i="",o="";if(e.width&&e.height)i=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(i=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}i&&o&&this.items.push({type:"viewbox",width:i,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":r={},e.style&&ba(e.style,r),r.offset=r.offset||e.offset,r.color=r["stop-color"]||e["stop-color"],r.opacity=r["stop-opacity"]||e["stop-opacity"],~(r.offset+"").indexOf("%")?r.offset=parseFloat(r.offset):r.offset=parseFloat(r.offset)*100,r.offset=+r.offset.toFixed(2),this.grad.stops.push(r);break;case"linearGradient":this.grad.angle=(360+_a(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++)r=this.grad.stops[a],a&&a!=l-1?n.push(r.color+":"+r.offset):n.push(r.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++)r=this.grad.stops[a],a&&a!=l-1?n.push(r.color+":"+r.offset):n.push(r.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(let i in e){const o=e[i];if(xa.includes(i)&&(this.currentItem[i]=o),i==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:i,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:i,stops:[]})),i==="style"&&ba(o,this.currentItem,xa),i==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),i==="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])}}i==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),i==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),i==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function _a(s,t,e,n,r,i){if(typeof r>"u"||typeof i>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return _a(s,t,r,i)-_a(e,n,r,i)}function ba(s,t,e){const n=(s+"").split(";"),r=/^\s+|\s+$/g;for(let i=0,o=n.length;i<o;i++){let a=n[i].split(":"),l=a[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(r,""))}}const xa=["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 Ng{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,n){this.app=t,this.rootEl=ue.createSVGElement("svg"),ft.empty(this.app.container),ft.insert(this.app.container,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,i)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=i.dx,this.dragDy+=i.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const r of this.shapes)if(this.currentMouseInShape==r){r.emit("clicked");let i=r.parent;for(;i;)i.emit("clicked",r),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"}setSize(t,e){return bn(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 ss&&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&&(ft.remove(e.el),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof Si?e.el=this.text(e.text,e.x,e.y,mu(e.getAttrs(),(r,i)=>typeof i=="string")):(e.el=ue.createSvgPath(e.toSVGPathD(),e.id),ft.insert(this.rootEl,e.el))),e.followMouse&&(!ai(e.x,this.app.mousePoint.x,5)||!ai(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 r=this.dragDx,i=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||i){if(e.x+=r,e.y+=i,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",r,i)}}else e.isDragging=!1;e instanceof Si&&(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,mu(e.getAttrs(),(r,i)=>typeof i=="string")),this.attr(e,"d",n),!this.currentMouseInShape){const r=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=r,r&&(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&&ft.remove(e.el),delete e.el,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&ft.remove(t.el),delete t.el}),ft.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const r=t.el||t;return r instanceof SVGElement?e===void 0&&n===void 0?bn(r):typeof e=="string"&&n===void 0?bn(r,Ue(e))||"":(typeof e=="object"?bn(r,e):typeof e=="string"&&n!==void 0&&bn(r,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 r=ue.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return ft.insert(this.rootEl,r),r}ellipse(t,e,n,r){return this.path(new sh({x:t,y:e,rx:n,ry:r}))}ellipseEl(t,e,n,r){const i=ue.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(r)});return ft.insert(this.rootEl,i),i}rect(t,e,n,r){return this.path(new ye({x:t,y:e,width:n,height:r}))}rectEl(t,e,n,r){const i=ue.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(r)});return ft.insert(this.rootEl,i),i}image(t,e,n,r,i){}text(t,e,n,r){const i=ue.createSVGElement("text",{x:String(e),y:String(n)});return ft.html(i,t),this.attr(i,Object.assign({"alignment-baseline":"middle"},r)),ft.insert(this.rootEl,i),i}textWithTspan(t,e,n,r){const i=r?.["line-height"]||"1.2em",o=ue.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
|
|
54
|
-
`).forEach((a,l)=>{if(a.trim()){const c=ue.createSVGElement("tspan",{x:String(e),dy:l>0?i:"0"});ft.html(c,a),ft.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),ft.insert(this.rootEl,o),o}}class Fg extends wn{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new Mg(t.svg).parse();for(let n=0,r=e.length;n<r;n++){const i=e[n];if(i.type=="viewbox"&&i.width&&i.height){if(this.svgWidth=parseFloat(i.width),this.svgHeight=parseFloat(i.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(i.type!="path"||!ue.isSVGPath(i.path))continue;const o={};for(const u in i)u==="type"||u==="path"||u==="transform"||(o[u]=i[u]);const a=ue.absolutizeSVGPath(ue.parseSVGPath(i.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=Ku(i.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 la(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 i=Math.atan2(n,e),o={x:0,y:0},a=ts(-i,e,n),l=ts(-i,this.vx,this.vy),c=ts(-i,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(i,o.x,o.y),d=ts(i,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 k=ts(i,l.x,l.y),S=ts(i,c.x,c.y);this.vx=k.x,this.vy=k.y,t.vx=S.x,t.vy=S.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,n=t.wall.x,r=t.wall.y,i=t.wall.x+t.wall.width,o=t.wall.y+t.wall.height;this.x+this.radius>i?(this.x=i-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<r&&(this.y=r+this.radius,this.vy*=e)}}class eh 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,r=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",n,r]);for(let i=0;i<e-1;i++){const o=(this.points[i].x+this.points[i+1].x)/2,a=(this.points[i].y+this.points[i+1].y)/2;t.push(["Q",this.points[i].x,this.points[i].y,o,a])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,n,r])}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,r=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(n,r);for(let i=0;i<e-1;i++){const o=(this.points[i].x+this.points[i+1].x)/2,a=(this.points[i].y+this.points[i+1].y)/2;t.quadraticCurveTo(this.points[i].x,this.points[i].y,o,a)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,n,r)}}isContainPoint(t,e){const n=this.points.length;let r=!1;const i=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)<i)return!0;m>t&&(r=!r)}}return r}[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,r,i,o,a,l){const c=new rn({x:t,y:e,c1x:n,c1y:r,c2x:i,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 sh 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 Ci 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 wa 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 Lg 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 $g 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 Vg 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,r=this.r*Math.cos(Ft(n)),i=this.r*Math.sin(Ft(n));t.push(["l",r,i])}return t}}class Yg 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 zg 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 Bg extends wn{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,r=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}),i=60+Math.random()*40,o=new he({...t,x:this.x,y:this.y-i,diffYInGroup:-i,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,r,o])}}class Si 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,r=ft.measureText(this.text,e,n);this.width=r.width,this.height=r.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Gg extends wn{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 Si({...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(){Qo(()=>{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 nh extends ss{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 Xg({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 Si({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 Gg({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:r}=ps(Ft(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+n,this.p1.y=this.y+r;const{dx:i,dy:o}=ps(Ft(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,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 Xg 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}=ps(Ft(this.startDegree),this.radius),{dx:n,dy:r}=ps(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,r-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=ca(this.x,this.y,t,e),r=Ie(xn(this.x,this.y,t,e));return n<=this.radius&&r>=this.startDegree&&r<=this.endDegree}}class jg extends ss{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(){Qo(()=>{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 rh extends wn{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,n=t?.max||100,r=t?.step||1,i=_u(e,n,r);this.value=i(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||Ot.colorGrayF5,f=t?.handleColor||Ot.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=i((this.handle.x-this.x)/a*(n-e)+e),this.emit("change",this.value)})}}class Cn extends wn{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 Ca 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}=ps(Ft(this.startDegree),this.radius),{dx:n,dy:r}=ps(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,r-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Ft(this.startDegree),Ft(this.endDegree),!1)}}let ih=class extends wn{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,n=t?.endDegree||180,r=t?.extendDegree||15,i=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 Ca({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:r,lineWidth:i,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new Ca({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:r,lineWidth:i}),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+r*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(r=>{r!=n&&(r.x+=t,r.y+=e)})})}frameUpdate(t,e){const n=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),r=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const i=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+n,-r,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:i})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let i=0;i<this.indicatorLineCount;i++){const o=i/(this.indicatorLineCount-1)<=this.percent;this.lines[i].setAttr({stroke:o&&e?e.createLinearGradient(0,0,this.lines[i].toX-this.lines[i].x,this.lines[i].toY-this.lines[i].y,{0:this.startColor,1:this.endColor}):o?this.startColor:this.bgColor})}}};class Ug extends ss{fettis=[];constructor(t,e,n){super();const{shape:r,x:i,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:m,ticks:d,colors:k,scalar:S,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:Dg,scalar:1,flat:!1},n||{}),C=Ft(l),y=Ft(c);let p=a;for(;p--;){const x=k[p%k.length],b=new r({x:t*i,y:e*o,width:10,height:10,scalar:S,attrs:{fill:x},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:-C+(.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:S,flat:_,color:De(x)})}}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,r=e.shape.x+e.random*e.tiltCos,i=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-r)*.1,e.shape.scalarY=Math.abs(a-i)*.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,r=e-1;n<r;n++)for(let i=n+1;i<e;i++)this.shapes[n].checkCollision(this.shapes[i])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,n)=>{e.run();for(let r=n+1;r<t;r++)e.checkCollision(this.shapes[r]),e.gravitateTo(this.shapes[r])})}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(r=>r.id!==n.id).forEach(r=>{const i=xn(n.x,n.y,r.x,r.y);n.runSpringTo({x:r.x-Math.cos(i)*e,y:r.y-Math.sin(i)*e},t)})})}springMass(t,e){const n=this.shapes.length,r=[];return this.shapes.forEach((i,o)=>{i.run(e),i.x>t.x+t.width?i.x=t.x:i.x<t.x&&(i.x=t.x+t.width),i.y>t.y+t.height?i.y=t.y:i.y<t.y&&(i.y=t.y+t.height);for(let a=o+1;a<n;a++)r.push([i.x,i.y,this.shapes[a].x,this.shapes[a].y,i.springMassTo(this.shapes[a],e)])}),r}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let r=0;r<t;r++){const i=this.shapes[r].initPathD();this.shapes[r].frameStart();const o=this.shapes[r+1].initPathD();this.shapes[r+1].frameStart();const a=Math.max(i.polymorphPoints.length,o.polymorphPoints.length);e[r]=Me.getPathInterpolator(i.expendFill(a),o.expendFill(a))}const n=new Ht({d:e[0](0)});return r=>{const i=we(t*r,6),o=Math.min(Math.floor(i),t-1),a=we(i-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",Ct.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",Ct.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 ss?(l=a,l.sortPathD()):(l=new ss,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 r=[];n.forEach((a,l)=>{a.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const i=[];r.forEach(a=>{i.push(new Re(a).polymorph())});const o=new ss;return i.forEach(a=>{o.addShape(a(0))}),a=>(i.forEach(l=>{l(a)}),o)}polymorphTween(t=6e3,e){const n=this.shapes.findIndex(a=>a instanceof ss)>=0?this.polymorphGroup():this.polymorph(),r=n(0),i=e?.onUpdate,o=new He({frameDuration:t});o.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(a,l)=>{n(a.t),i?.(a,l),e?.draw?.(r)}})),o.play()}static generatePointsShape(t,e,n,r){const i=[];for(let o=0;o<r;o++){const a=o/r*2*Math.PI,{dx:l,dy:c}=ps(a,n);i.push({x:t+l,y:e+c})}return new eh({points:i})}static generateRosettaShape(t,e,n,r,i){if(i==0)throw new Error("no dividing by zero, please");const o=[],a=360/i;for(let l=0;l<i;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 da({x:t,y:e,rx:n,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),o.push(new da({x:u,y:h,rx:n,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Ht({d:Me.fromLines(o)})}}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 fa(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,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let r=n.parent;for(;r;)r.emit("clicked",n),r=r.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 ss&&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(let e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),ft.attrsToCanvas(this.ctx,e.getAttrs()),e.followMouse&&(!ai(e.x,this.app.mousePoint.x,5)||!ai(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 r=this.dragDx,i=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||i){if(e.x+=r,e.y+=i,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",r,i)}}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 r=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=r,r&&(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,r=e?.brushDensity??50,i=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=De(i);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<r;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())}})}}}class Hg{map;constructor(t,e=120.619585,n=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),r)}}const Wg=lt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("span",{class:"icon",style:Y(["color: "+e.color])},[dt(Lt(xm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),G_="",mt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,r]of t)e[n]=r;return e},on=mt(Wg,[["__scopeId","data-v-8789b4ce"]]),qg={class:"loading-11",ref:"loading11"},Zg={class:"container container-1"},Qg={class:"container container-2"},Kg={class:"container container-3"},Jg=lt({__name:"Loading11",props:{color:{default:Ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(F(),H("div",qg,[P("div",{class:"loading-11-inner",style:Y({width:t.width,height:t.width})},[P("div",Zg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",Qg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",Kg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)])],4)],512))}}),X_="",Sa=mt(Jg,[["__scopeId","data-v-f95fac77"]]),t0={key:0,class:"loading"},e0=lt({customOptions:{Loading11:Sa},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,r=e,i=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??Ot.colorPrimary,a.value=n.bgColor??Ot.colorGrayFF,l.value=n.fontColor??Ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Ot.colorPrimary,a.value=n.bgColor??Ot.colorPrimary,l.value=n.fontColor??Ot.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 k=()=>{n.disabled||(d=!0,o.value=De(c.value).lighten(.05).toString(),a.value=De(u.value).lighten(.05).toString())},S=()=>{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?k():S()},150),r("yz-click"),r("click"),n.asyncClick&&(_.value=!0,n.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:i}),(p,x)=>(F(),H("div",{ref_key:"el",ref:i,class:"button",style:Y([`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:k,onMouseleave:S,onClick:x[0]||(x[0]=(...b)=>Lt(y)&&Lt(y)(...b))},[P("label",{class:"label truncate",style:Y({padding:"0 "+p.padding,cursor:m.value})},[_.value?(F(),H("div",t0,[dt(Sa,{color:l.value},null,8,["color"])])):Bt("",!0),kt(p.$slots,"default",{},()=>[p.icon&&p.iconPosition==="left"?(F(),zt(on,{key:0,icon:p.icon,color:l.value,style:Y({marginRight:Lt(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0),P("span",{style:Y({cursor:m.value})},wt(p.label),5),p.icon&&p.iconPosition==="right"?(F(),zt(on,{key:1,icon:p.icon,color:l.value,style:Y({marginLeft:Lt(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0)],!0)],4)],36))}}),j_="",ve=mt(e0,[["__scopeId","data-v-b3e1b144"]]),s0=["onClick","value"],n0={class:"option-inner"},r0=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;Ks(()=>{nn(`
|
|
52
|
+
`;return function(){var tt=new Error("get-stack-trace"),pt=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,pt),g.apply(this,arguments)}}var S;typeof Object.assign!="function"?S=function(v){if(v===r||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!==r&&tt!==null)for(var pt in tt)tt.hasOwnProperty(pt)&&(E[pt]=tt[pt])}return E}:S=Object.assign;var k=d(function(v,E,N){for(var tt=Object.keys(E),pt=0;pt<tt.length;)(!N||N&&v[tt[pt]]===r)&&(v[tt[pt]]=E[tt[pt]]),pt++;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]||r,v):g}function w(g,v){return g===r?v:g}function b(g,v,E){m(R(v),function(N){g.addEventListener(N,E,!1)})}function z(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=[],pt=0;pt<g.length;){var Nt=v?g[pt][v]:g[pt];A(tt,Nt)<0&&N.push(g[pt]),tt[pt]=Nt,pt++}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),pt=0;pt<i.length;){if(E=i[pt],N=E?E+tt:v,N in g)return N;pt++}return r}var rt=1;function K(){return rt++}function W(g){var v=g.ownerDocument||g;return v.defaultView||v.parentWindow||t}var nt=/mobile|tablet|ip(ad|hone|od)|android/i,B="ontouchstart"in t,j=X(t,"PointerEvent")!==r,yt=B&&nt.test(navigator.userAgent),gt="touch",Z="pen",V="mouse",Qt="kinect",te=25,It=1,ee=2,Yt=4,G=8,Fe=1,Ye=2,Ae=4,C=8,I=16,$=Ye|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&&z(this.element,this.evEl,this.domHandler),this.evTarget&&z(this.target,this.evTarget,this.domHandler),this.evWin&&z(W(this.element),this.evWin,this.domHandler)}};function st(g){var v,E=g.options.inputClass;return E?v=E:j?v=Fa:yt?v=Ri:B?v=La:v=ke,new v(g,J)}function J(g,v,E){var N=E.pointers.length,tt=E.changedPointers.length,pt=v&It&&N-tt===0,Nt=v&(Yt|G)&&N-tt===0;E.isFirst=!!pt,E.isFinal=!!Nt,pt&&(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=St(v)),tt>1&&!E.firstMultiple?E.firstMultiple=St(v):tt===1&&(E.firstMultiple=!1);var pt=E.firstInput,Nt=E.firstMultiple,de=Nt?Nt.center:pt.center,be=v.center=Rt(N);v.timeStamp=u(),v.deltaTime=v.timeStamp-pt.timeStamp,v.angle=Te(de,be),v.distance=se(de,be),_t(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?Oi(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,vt(E,v);var is=g.element;ct(v.srcEvent.target,is)&&(is=v.srcEvent.target),v.target=is}function _t(g,v){var E=v.center,N=g.offsetDelta||{},tt=g.prevDelta||{},pt=g.prevInput||{};(v.eventType===It||pt.eventType===Yt)&&(tt=g.prevDelta={x:pt.deltaX||0,y:pt.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 vt(g,v){var E=g.lastInterval||v,N=v.timeStamp-E.timeStamp,tt,pt,Nt,de;if(v.eventType!=G&&(N>te||E.velocity===r)){var be=v.deltaX-E.deltaX,Ee=v.deltaY-E.deltaY,is=Vt(N,be,Ee);pt=is.x,Nt=is.y,tt=c(is.x)>c(is.y)?is.x:is.y,de=Ut(be,Ee),g.lastInterval=v}else tt=E.velocity,pt=E.velocityX,Nt=E.velocityY,de=E.direction;v.velocity=tt,v.velocityX=pt,v.velocityY=Nt,v.direction=de}function St(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?Ye: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 Te(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 Te(v[1],v[0],ot)+Te(g[1],g[0],ot)}function Oi(g,v){return se(v[0],v[1],ot)/se(g[0],g[1],ot)}var ln={mousedown:It,mousemove:ee,mouseup:Yt},Ii="mousedown",_e="mousemove mouseup";function ke(){this.evEl=Ii,this.evWin=_e,this.pressed=!1,Q.apply(this,arguments)}x(ke,Q,{handler:function(v){var E=ln[v.type];E&It&&v.button===0&&(this.pressed=!0),E&ee&&v.which!==1&&(E=Yt),this.pressed&&(E&Yt&&(this.pressed=!1),this.callback(this.manager,E,{pointers:[v],changedPointers:[v],pointerType:V,srcEvent:v}))}});var Di={pointerdown:It,pointermove:ee,pointerup:Yt,pointercancel:G,pointerout:G},S_={2:gt,3:Z,4:V,5:Qt},dh="pointerdown",ph="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(dh="MSPointerDown",ph="MSPointerMove MSPointerUp MSPointerCancel");function Fa(){this.evEl=dh,this.evWin=ph,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}x(Fa,Q,{handler:function(v){var E=this.store,N=!1,tt=v.type.toLowerCase().replace("ms",""),pt=Di[tt],Nt=S_[v.pointerType]||v.pointerType,de=Nt==gt,be=A(E,v.pointerId,"pointerId");pt&It&&(v.button===0||de)?be<0&&(E.push(v),be=E.length-1):pt&(Yt|G)&&(N=!0),!(be<0)&&(E[be]=v,this.callback(this.manager,pt,{pointers:E,changedPointers:[v],pointerType:Nt,srcEvent:v}),N&&E.splice(be,1))}});var T_={touchstart:It,touchmove:ee,touchend:Yt,touchcancel:G},k_="touchstart",E_="touchstart touchmove touchend touchcancel";function mh(){this.evTarget=k_,this.evWin=E_,this.started=!1,Q.apply(this,arguments)}x(mh,Q,{handler:function(v){var E=T_[v.type];if(E===It&&(this.started=!0),!!this.started){var N=P_.call(this,v,E);E&(Yt|G)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:gt,srcEvent:v})}}});function P_(g,v){var E=D(g.touches),N=D(g.changedTouches);return v&(Yt|G)&&(E=L(E.concat(N),"identifier",!0)),[E,N]}var O_={touchstart:It,touchmove:ee,touchend:Yt,touchcancel:G},I_="touchstart touchmove touchend touchcancel";function Ri(){this.evTarget=I_,this.targetIds={},Q.apply(this,arguments)}x(Ri,Q,{handler:function(v){var E=O_[v.type],N=D_.call(this,v,E);N&&this.callback(this.manager,E,{pointers:N[0],changedPointers:N[1],pointerType:gt,srcEvent:v})}});function D_(g,v){var E=D(g.touches),N=this.targetIds;if(v&(It|ee)&&E.length===1)return N[E[0].identifier]=!0,[E,E];var tt,pt,Nt=D(g.changedTouches),de=[],be=this.target;if(pt=E.filter(function(Ee){return ct(Ee.target,be)}),v===It)for(tt=0;tt<pt.length;)N[pt[tt].identifier]=!0,tt++;for(tt=0;tt<Nt.length;)N[Nt[tt].identifier]&&de.push(Nt[tt]),v&(Yt|G)&&delete N[Nt[tt].identifier],tt++;if(de.length)return[L(pt.concat(de),"identifier",!0),de]}var R_=2500,gh=25;function La(){Q.apply(this,arguments);var g=y(this.handler,this);this.touch=new Ri(this.manager,g),this.mouse=new ke(this.manager,g),this.primaryTouch=null,this.lastTouches=[]}x(La,Q,{handler:function(v,E,N){var tt=N.pointerType==gt,pt=N.pointerType==V;if(!(pt&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(tt)A_.call(this,E,N);else if(pt&&M_.call(this,N))return;this.callback(v,E,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function A_(g,v){g&It?(this.primaryTouch=v.changedPointers[0].identifier,yh.call(this,v)):g&(Yt|G)&&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 pt=N.indexOf(E);pt>-1&&N.splice(pt,1)};setTimeout(tt,R_)}}function M_(g){for(var v=g.srcEvent.clientX,E=g.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var tt=this.lastTouches[N],pt=Math.abs(v-tt.x),Nt=Math.abs(E-tt.y);if(pt<=gh&&Nt<=gh)return!0}return!1}var vh=X(o.style,"touchAction"),_h=vh!==r,bh="compute",xh="auto",$a="manipulation",cn="none",dr="pan-x",pr="pan-y",Ai=F_();function Va(g,v){this.manager=g,this.set(v)}Va.prototype={set:function(g){g==bh&&(g=this.compute()),_h&&this.manager.element.style&&Ai[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()))}),N_(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)&&!Ai[cn],pt=O(N,pr)&&!Ai[pr],Nt=O(N,dr)&&!Ai[dr];if(tt){var de=g.pointers.length===1,be=g.distance<2,Ee=g.deltaTime<250;if(de&&be&&Ee)return}if(!(Nt&&pt)&&(tt||pt&&E&$||Nt&&E&U))return this.preventSrc(v)},preventSrc:function(g){this.manager.session.prevented=!0,g.preventDefault()}};function N_(g){if(O(g,cn))return cn;var v=O(g,dr),E=O(g,pr);return v&&E?cn:v||E?v?dr:pr:O(g,$a)?$a:xh}function F_(){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 Mi=1,ze=2,kn=4,Ys=8,gs=Ys,mr=16,rs=32;function ys(g){this.options=S({},this.defaults,g||{}),this.id=K(),this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Mi,this.simultaneous={},this.requireFail=[]}ys.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=Ni(g,this),v[g.id]||(v[g.id]=g,g.recognizeWith(this)),this},dropRecognizeWith:function(g){return f(g,"dropRecognizeWith",this)?this:(g=Ni(g,this),delete this.simultaneous[g.id],this)},requireFailure:function(g){if(f(g,"requireFailure",this))return this;var v=this.requireFail;return g=Ni(g,this),A(v,g)===-1&&(v.push(g),g.requireFailure(this)),this},dropRequireFailure:function(g){if(f(g,"dropRequireFailure",this))return this;g=Ni(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<Ys&&N(v.options.event+wh(E)),N(v.options.event),g.additionalEvent&&N(g.additionalEvent),E>=Ys&&N(v.options.event+wh(E))},tryEmit:function(g){if(this.canEmit())return this.emit(g);this.state=rs},canEmit:function(){for(var g=0;g<this.requireFail.length;){if(!(this.requireFail[g].state&(rs|Mi)))return!1;g++}return!0},recognize:function(g){var v=S({},g);if(!p(this.options.enable,[this,v])){this.reset(),this.state=rs;return}this.state&(gs|mr|rs)&&(this.state=Mi),this.state=this.process(v),this.state&(ze|kn|Ys|mr)&&this.tryEmit(v)},process:function(g){},getTouchAction:function(){},reset:function(){}};function wh(g){return g&mr?"cancel":g&Ys?"end":g&kn?"move":g&ze?"start":""}function Ch(g){return g==I?"down":g==C?"up":g==Ye?"left":g==Ae?"right":""}function Ni(g,v){var E=v.manager;return E?E.get(g):g}function We(){ys.apply(this,arguments)}x(We,ys,{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&(ze|kn),tt=this.attrTest(g);return N&&(E&G||!tt)?v|mr:N||tt?E&Yt?v|Ys:v&ze?v|kn:ze:rs}});function Fi(){We.apply(this,arguments),this.pX=null,this.pY=null}x(Fi,We,{defaults:{event:"pan",threshold:10,pointers:1,direction:q},getTouchAction:function(){var g=this.options.direction,v=[];return g&$&&v.push(pr),g&U&&v.push(dr),v},directionTest:function(g){var v=this.options,E=!0,N=g.distance,tt=g.direction,pt=g.deltaX,Nt=g.deltaY;return tt&v.direction||(v.direction&$?(tt=pt===0?Fe:pt<0?Ye:Ae,E=pt!=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&ze||!(this.state&ze)&&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 Ya(){We.apply(this,arguments)}x(Ya,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&ze)},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 za(){ys.apply(this,arguments),this._timer=null,this._input=null}x(za,ys,{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&(Yt|G)&&!tt)this.reset();else if(g.eventType&It)this.reset(),this._timer=h(function(){this.state=gs,this.tryEmit()},v.time,this);else if(g.eventType&Yt)return gs;return rs},reset:function(){clearTimeout(this._timer)},emit:function(g){this.state===gs&&(g&&g.eventType&Yt?this.manager.emit(this.options.event+"up",g):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Ba(){We.apply(this,arguments)}x(Ba,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&ze)}});function Ga(){We.apply(this,arguments)}x(Ga,We,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|U,pointers:1},getTouchAction:function(){return Fi.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&Yt},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 Li(){ys.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}x(Li,ys,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[$a]},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&It&&this.count===0)return this.failTimeout();if(N&&tt&&E){if(g.eventType!=Yt)return this.failTimeout();var pt=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||!pt?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=gs,this.tryEmit()},v.interval,this),ze):gs}return rs},failTimeout:function(){return this._timer=h(function(){this.state=rs},this.options.interval,this),rs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==gs&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function vs(g,v){return v=v||{},v.recognizers=w(v.recognizers,vs.defaults.preset),new Xa(g,v)}vs.VERSION="2.0.7",vs.defaults={domEvents:!1,touchAction:bh,enable:!0,inputTarget:null,inputClass:null,preset:[[Ba,{enable:!1}],[Ya,{enable:!1},["rotate"]],[Ga,{direction:$}],[Fi,{direction:$},["swipe"]],[Li],[Li,{event:"doubletap",taps:2},["tap"]],[za]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var L_=1,Sh=2;function Xa(g,v){this.options=S({},vs.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 Va(this,this.options.touchAction),Th(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)}Xa.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?Sh:L_},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&gs)&&(tt=v.curRecognizer=null);for(var pt=0;pt<N.length;)E=N[pt],v.stopped!==Sh&&(!tt||E==tt||E.canRecognizeWith(tt))?E.recognize(g):E.reset(),!tt&&E.state&(ze|kn|Ys)&&(tt=v.curRecognizer=E),pt++}},get:function(g){if(g instanceof ys)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!==r&&v!==r){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!==r){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&&$_(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&&Th(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Th(g,v){var E=g.element;if(E.style){var N;m(g.options.cssProps,function(tt,pt){N=X(E.style,pt),v?(g.oldCssProps[N]=E.style[N],E.style[N]=tt):E.style[N]=g.oldCssProps[N]||""}),v||(g.oldCssProps={})}}function $_(g,v){var E=e.createEvent("Event");E.initEvent(g,!0,!0),E.gesture=v,v.target.dispatchEvent(E)}S(vs,{INPUT_START:It,INPUT_MOVE:ee,INPUT_END:Yt,INPUT_CANCEL:G,STATE_POSSIBLE:Mi,STATE_BEGAN:ze,STATE_CHANGED:kn,STATE_ENDED:Ys,STATE_RECOGNIZED:gs,STATE_CANCELLED:mr,STATE_FAILED:rs,DIRECTION_NONE:Fe,DIRECTION_LEFT:Ye,DIRECTION_RIGHT:Ae,DIRECTION_UP:C,DIRECTION_DOWN:I,DIRECTION_HORIZONTAL:$,DIRECTION_VERTICAL:U,DIRECTION_ALL:q,Manager:Xa,Input:Q,TouchAction:Va,TouchInput:Ri,MouseInput:ke,PointerEventInput:Fa,TouchMouseInput:La,SingleTouchInput:mh,Recognizer:ys,AttrRecognizer:We,Tap:Li,Pan:Fi,Swipe:Ga,Pinch:Ya,Rotate:Ba,Press:za,on:b,off:z,each:m,merge:_,extend:k,assign:S,inherit:x,bindFn:y,prefixed:X});var V_=typeof t<"u"?t:typeof self<"u"?self:{};V_.Hammer=vs,typeof r=="function"&&r.amd?r(function(){return vs}):s.exports?s.exports=vs:t[n]=vs})(window,document,"Hammer")})(Ju);var Sg=Ju.exports;const Tg=Xm(Sg);function ma(){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 ga(){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 kg(s){const{top:t,left:e,width:n,height:r}=s.getBoundingClientRect(),{scrollLeft:i,scrollTop:o}=ma();return{x:e+i,y:t+o,width:n,height:r}}function Eg(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=ma(),n=e-s;return n<=0?0:t/n*100}function Pg(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}=ma();return{x:s.clientX+t,y:s.clientY+e}}function es(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=Pg(s),n=kg(t||s.target);return{x:e.x-n.x,y:e.y-n.y}}class ms extends er{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 Tg(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(es(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=G=>{this.emit("mouseDown",G)},e=G=>{this.emit("mouseUp",G)},n=G=>{this.emit("mouseMove",G)},r=G=>{this.emit("mouseOver",G)},i=G=>{this.emit("mouseOut",G)},o=G=>{this.emit("mouseEnter",G)},a=G=>{this.emit("mouseLeave",G)},l=G=>{this.emit("mouseClick",G)},c=G=>{this.emit("mouseDoubleClick",G)},u=G=>{this.emit("mouseWheel",G)},h=G=>{this.emit("mouseContextMenu",G)},f=G=>{this.emit("touchStart",G)},m=G=>{this.emit("touchEnd",G)},d=G=>{this.emit("touchCancel",G)},S=G=>{this.emit("touchMove",G)},k=G=>{this.emit("pointerDown",G)},_=G=>{this.emit("pointerUp",G)},x=G=>{this.emit("pointerCancel",G)},y=G=>{this.emit("pointerMove",G)},p=G=>{this.emit("pan",G)},w=G=>{this.emit("panStart",G)},b=G=>{this.emit("panMove",G)},z=G=>{this.emit("panEnd",G)},ct=G=>{this.emit("panCancel",G)},O=G=>{this.emit("panLeft",G)},R=G=>{this.emit("panRight",G)},A=G=>{this.emit("panUp",G)},D=G=>{this.emit("panDown",G)},L=G=>{this.emit("pinch",G)},X=G=>{this.emit("press",G)},rt=G=>{this.emit("rotate",G)},K=G=>{this.emit("swipe",G)},W=G=>{this.emit("swipeLeft",G)},nt=G=>{this.emit("swipeRight",G)},B=G=>{this.emit("swipeUp",G)},j=G=>{this.emit("swipeDown",G)},yt=G=>{this.emit("tap",G)},gt=G=>{!G.target||this.container==G.target||this.container.contains(G.target)||this.emit("tapOutSide",G)},Z=G=>{this.emit("inputChange",G,this.container.files)},V=G=>{this.emit("dragstart",G)},Qt=G=>{G.dataTransfer&&(G.dataTransfer.dropEffect="copy"),this.emit("dragover",G)},te=G=>{this.emit("dragenter",G)},It=G=>{this.emit("dragend",G)},ee=G=>{G.dataTransfer,this.emit("drop",G,G.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",n,!1),this.container.addEventListener("mouseover",r,!1),this.container.addEventListener("mouseout",i,!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",z),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",rt),this.hammer.on("swipe",K),this.hammer.on("swipeleft",W),this.hammer.on("swiperight",nt),this.hammer.on("swipeup",B),this.hammer.on("swipedown",j),this.hammer.on("tap",yt),document.addEventListener("pointerdown",gt,!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",It,!1),this.container.addEventListener("drop",ee,!1);const Yt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",n,!1),this.container.removeEventListener("mouseover",r,!1),this.container.removeEventListener("mouseout",i,!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",z),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",rt),this.hammer.off("swipe",K),this.hammer.off("swipeleft",W),this.hammer.off("swiperight",nt),this.hammer.off("swipeup",B),this.hammer.off("swipedown",j),this.hammer.off("tap",yt),document.removeEventListener("pointerdown",gt,!1),document.removeEventListener("touchstart",gt,!1),document.removeEventListener("mousedown",gt,!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",It,!1),this.container.removeEventListener("drop",ee,!1)};return this.addRemoves(Yt),Yt}registerTransitionEventListeners(){const t=r=>{this.emit("transitionstart",r)},e=r=>{this.emit("transitionend",r)};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=r=>{this.emit("animationstart",r)},e=r=>{this.emit("animationend",r)};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:r,height:i}=n[0].contentRect;this.width=r,this.height=i,this.emit("resize",r,i)});e.observe(this.container),t=()=>{e.unobserve(this.container)}}else{const e="orientationchange"in window?"orientationchange":"resize",n=r=>{const i=r.target.innerWidth,o=r.target.innerHeight;this.emit("resize",i,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((i,o)=>{let a=i[0];if(i.length>1){const c=i.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 r=()=>{n.unobserve(this.container)};return this.addRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(n,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullDowning",r.dStartY)},end:(n,r)=>{r.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(n,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullUping",r.dStartY)},end:(n,r)=>{r.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 r=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",o),this.on("pointerUp",i),this.on("pointerCancel",i),n=es(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},i=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",o),this.off("pointerUp",i),this.off("pointerCancel",i),n=es(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=es(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",r);const a=()=>{this.off("pointerDown",r)};return this.addRemoves(a),a}captureDragUseMouse(t){let e,n;const r=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",o,!1),document.addEventListener("mouseup",i,!1),n=es(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},i=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",o,!1),document.removeEventListener("mouseup",i,!1),n=es(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=es(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",r);const a=()=>{this.off("mouseDown",r)};return this.addRemoves(a),a}captureDragUseTouch(t){let e,n;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",o),this.on("touchEnd",i),this.on("touchCancel",i);const c=l.changedTouches[0];n=es(c,this.container);const u={...n};e=u,this.setMousePoint(u),t?.start?.(c,u)},i=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",o),this.off("touchEnd",i),this.off("touchCancel",i);const c=l.changedTouches[0];n=es(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=es(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",r);const a=()=>{this.off("touchStart",r)};return this.addRemoves(a),a}}new ms(document.documentElement,!0,[]);class ya{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"),r=document.createElement("source"),i=new MediaSource;i.addEventListener("sourceopen",()=>t(!0)),r.src=URL.createObjectURL(i),r.media="(min-width:10px)",n.append(r),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(()=>{ya.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 Og extends er{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,r=du(this.source,0);for(let i=1;i<t;i++)e=n,n=r,r=du(this.source,i),this.raw+=n,n&&this.step(n,r,e);r&&this.step(r,void 0,n),this.emit("finish")}step(t,e,n){t==`
|
|
53
|
+
`&&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+=ft.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=ft.entity2text(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 Ig(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const r=function(){const i=Math.min(t.clientWidth,s);t.dataset.width=i,t.dataset.rem=n=Math.round(100*(i/s)),t.style.fontSize=n+"px"};r(),window.rem2px=function(i){return i=parseFloat(i),i*n},window.px2rem=function(i){return i=parseFloat(i),i/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}const Ot={safeAreaTop:ft.getCSSVar("--safe-area-inset-top"),safeAreaRight:ft.getCSSVar("--safe-area-inset-right"),safeAreaBottom:ft.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:ft.getCSSVar("--safe-area-inset-left"),colorPrimary:ft.getCSSVar("--color-primary")||"#5078f0",colorRed:ft.getCSSVar("--color-red")||"#ff5050",colorOrange:ft.getCSSVar("--color-orange")||"#fa8c00",colorYellow:ft.getCSSVar("--color-yellow")||"#fadc32",colorGreen:ft.getCSSVar("--color-green")||"#00c878",colorBlue:ft.getCSSVar("--color-blue")||"#00b4fa",colorPurple:ft.getCSSVar("--color-purple")||"#6464fa",colorBlack:ft.getCSSVar("--color-black")||"#001428",colorGray00:ft.getCSSVar("--color-gray-00")||"#000000",colorGray33:ft.getCSSVar("--color-gray-33")||"#333333",colorGray66:ft.getCSSVar("--color-gray-66")||"#666666",colorGray99:ft.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:ft.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:ft.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:ft.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:ft.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:ft.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:ft.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:ft.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:ft.getCSSVar("--font-line-height")||"1.4",fontSize32:ft.getCSSVar("--font-size-32")||"32px",fontSize24:ft.getCSSVar("--font-size-24")||"24px",fontSize22:ft.getCSSVar("--font-size-22")||"22px",fontSize20:ft.getCSSVar("--font-size-20")||"20px",fontSize18:ft.getCSSVar("--font-size-18")||"18px",fontSize16:ft.getCSSVar("--font-size-16")||"16px",fontSize14:ft.getCSSVar("--font-size-14")||"14px",fontSize12:ft.getCSSVar("--font-size-12")||"12px",fontSize10:ft.getCSSVar("--font-size-10")||"10px",d4:ft.getCSSVar("--distance-4")||"4px",d8:ft.getCSSVar("--distance-8")||"8px",d12:ft.getCSSVar("--distance-12")||"12px",d16:ft.getCSSVar("--distance-16")||"16px",d20:ft.getCSSVar("--distance-20")||"20px",d32:ft.getCSSVar("--distance-32")||"32px",d40:ft.getCSSVar("--distance-40")||"40px",d44:ft.getCSSVar("--distance-44")||"44px"};class Ct{__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=va(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,r){return this.r=t,this.g=e,this.b=n,this.a=r,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 Ct(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",n="#ffffff"){if(t)return new Ct(this.r*.299+this.g*.587+this.b*.114>186?e:n);{const r=this.clone();return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,r}}lighten(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:r}=this.color;return e+=(255-e)*t,n+=(255-n)*t,r+=(255-r)*t,new Ct().setRGBA(e,n,r,this.color.a)}darken(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:r}=this.color;return e=e*(1-t),n=n*(1-t),r=r*(1-t),new Ct().setRGBA(e,n,r,this.color.a)}static gradient(t,e,n){try{const r=va(t),i=va(e);return new Ct().setRGB((i.r-r.r)*n+r.r,(i.g-r.g)*n+r.g,(i.b-r.b)*n+r.b)}catch{return new Ct(e)}}static random(){return new Ct(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:n,a:r}=this.color,i=Math.max(t,e,n),o=Math.min(t,e,n),a=i-o;let l;return t===i?l=(e-n)/a:e===i?l=2+(n-t)/a:l=4+(t-e)/a,l/=6,l<0&&(l+=1),{h:a==0?0:l*360,s:i===0?0:a/i,v:i/255,a:r}}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 Ct(s,t)}function va(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),r=qt(s.s,0,1),i=qt(s.v,0,1),o=Math.floor(n/60)%6,a=n/60-Math.floor(n/60),l=i*(1-r),c=i*(1-a*r),u=i*(1-(1-a)*r),h=[[i,u,l],[c,i,l],[l,i,u],[l,c,i],[u,l,i],[i,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 r=s.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);r?(e.r=parseInt(`${r[1]}${r[1]}`,16),e.g=parseInt(`${r[2]}${r[2]}`,16),e.b=parseInt(`${r[3]}${r[3]}`,16)):(r=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16)):(r=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16),e.a=parseInt(r[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 Dg=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],Ls={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};Ls.buttonColor=new Ct(Ls.saveRowColor).darken(.1).toString(),Ls.borderColor=new Ct(Ls.backgroundColor).lighten(.07).toString(),Ls.inputColor=new Ct(Ls.backgroundColor).lighten(.085).toString();function th(s,t,e,n,r){const i=t/e;let o=0,a=0;switch(s){case"aspectFit":i>=1?(o=n,a=o/i,a>r&&(a=r,o=a*i)):(a=r,o=a*i,o>n&&(o=n,a=o/i));break;case"aspectFill":i>=1?(a=r,o=a*i):(o=n,a=o/i);break;case"widthFix":o=n,a=o/i;break;case"heightFix":a=r,o=a*i;break;case"scaleToFill":default:o=n,a=r;break}return{width:o,height:a}}const xi=new Map;async function Rg(s){return new Promise((t,e)=>{Ag(s,(n,r)=>n?e(n):t({width:r.width,height:r.height,aspectRatio:r.width/r.height}))})}const Ag=(s,t)=>{if(xi.has(s))return t(null,xi.get(s));const e=new Image;e.onload=function(){xi.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,xi.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class ss 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,r)=>{this.enableDrag&&(this.x+=n,this.y+=r,this.emit("draging",n,r,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 r=Math.min.apply(0,t),i=Math.min.apply(0,e),o=Math.max.apply(0,t),a=Math.max.apply(0,e);return{x:r,y:i,width:o-r,height:a-i}}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 r=n;r<e;r++){const o=t.shapes[r].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[r].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 r=new He({frameDuration:t}),i={},o={};this.shapes.forEach((a,l)=>{const c=we(a.getTotalLength(),0);i[`offset_${l}`]=c,o[`offset_${l}`]=0,a.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),r.addTween(i,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?.()}})),r.play();break}}}const wn=ss;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(r,i,o,a){switch(i){case"x":r.toX=o+e;break;case"y":r.toY=o+n;break;case"toX":e=o-r.x;break;case"toY":n=o-r.y;break}return Reflect.set(r,i,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 Hu({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),n=new Hu({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(n)}}class wi 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)}}class Mg extends Og{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=Ym(e);for(let r of n.stylesheet.rules)for(let i of r.declarations)for(let o of r.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${i.property}:${i.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let i="",o="";for(let a in this.groups[r])a=="transform"?i=this.groups[r].transform:a=="class"&&this.globalStyles["."+this.groups[r][a]]?o=this.globalStyles["."+this.groups[r][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[r][a]]?o=this.globalStyles["#"+this.groups[r][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[r][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=i:this.currentItem.transform+=" "+i,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),ba(this.currentItem.style,this.currentItem,xa)}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=[],r;switch(t){case"svg":let i="",o="";if(e.width&&e.height)i=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(i=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}i&&o&&this.items.push({type:"viewbox",width:i,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":r={},e.style&&ba(e.style,r),r.offset=r.offset||e.offset,r.color=r["stop-color"]||e["stop-color"],r.opacity=r["stop-opacity"]||e["stop-opacity"],~(r.offset+"").indexOf("%")?r.offset=parseFloat(r.offset):r.offset=parseFloat(r.offset)*100,r.offset=+r.offset.toFixed(2),this.grad.stops.push(r);break;case"linearGradient":this.grad.angle=(360+_a(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++)r=this.grad.stops[a],a&&a!=l-1?n.push(r.color+":"+r.offset):n.push(r.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++)r=this.grad.stops[a],a&&a!=l-1?n.push(r.color+":"+r.offset):n.push(r.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(let i in e){const o=e[i];if(xa.includes(i)&&(this.currentItem[i]=o),i==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:i,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:i,stops:[]})),i==="style"&&ba(o,this.currentItem,xa),i==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),i==="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])}}i==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),i==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),i==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function _a(s,t,e,n,r,i){if(typeof r>"u"||typeof i>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return _a(s,t,r,i)-_a(e,n,r,i)}function ba(s,t,e){const n=(s+"").split(";"),r=/^\s+|\s+$/g;for(let i=0,o=n.length;i<o;i++){let a=n[i].split(":"),l=a[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(r,""))}}const xa=["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 Ng{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,n){this.app=t,this.rootEl=ue.createSVGElement("svg"),ft.empty(this.app.container),ft.insert(this.app.container,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,i)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=i.dx,this.dragDy+=i.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const r of this.shapes)if(this.currentMouseInShape==r){r.emit("clicked");let i=r.parent;for(;i;)i.emit("clicked",r),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"}setSize(t,e){return bn(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 ss&&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&&(ft.remove(e.el),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof Si?e.el=this.text(e.text,e.x,e.y,mu(e.getAttrs(),(r,i)=>typeof i=="string")):(e.el=ue.createSvgPath(e.toSVGPathD(),e.id),ft.insert(this.rootEl,e.el))),e.followMouse&&(!ai(e.x,this.app.mousePoint.x,5)||!ai(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 r=this.dragDx,i=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||i){if(e.x+=r,e.y+=i,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",r,i)}}else e.isDragging=!1;e instanceof Si&&(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,mu(e.getAttrs(),(r,i)=>typeof i=="string")),this.attr(e,"d",n),!this.currentMouseInShape){const r=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=r,r&&(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&&ft.remove(e.el),delete e.el,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&ft.remove(t.el),delete t.el}),ft.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const r=t.el||t;return r instanceof SVGElement?e===void 0&&n===void 0?bn(r):typeof e=="string"&&n===void 0?bn(r,Ue(e))||"":(typeof e=="object"?bn(r,e):typeof e=="string"&&n!==void 0&&bn(r,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 r=ue.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return ft.insert(this.rootEl,r),r}ellipse(t,e,n,r){return this.path(new sh({x:t,y:e,rx:n,ry:r}))}ellipseEl(t,e,n,r){const i=ue.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(r)});return ft.insert(this.rootEl,i),i}rect(t,e,n,r){return this.path(new ye({x:t,y:e,width:n,height:r}))}rectEl(t,e,n,r){const i=ue.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(r)});return ft.insert(this.rootEl,i),i}image(t,e,n,r,i){}text(t,e,n,r){const i=ue.createSVGElement("text",{x:String(e),y:String(n)});return ft.html(i,t),this.attr(i,Object.assign({"alignment-baseline":"middle"},r)),ft.insert(this.rootEl,i),i}textWithTspan(t,e,n,r){const i=r?.["line-height"]||"1.2em",o=ue.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
|
|
54
|
+
`).forEach((a,l)=>{if(a.trim()){const c=ue.createSVGElement("tspan",{x:String(e),dy:l>0?i:"0"});ft.html(c,a),ft.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),ft.insert(this.rootEl,o),o}}class Fg extends wn{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new Mg(t.svg).parse();for(let n=0,r=e.length;n<r;n++){const i=e[n];if(i.type=="viewbox"&&i.width&&i.height){if(this.svgWidth=parseFloat(i.width),this.svgHeight=parseFloat(i.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(i.type!="path"||!ue.isSVGPath(i.path))continue;const o={};for(const u in i)u==="type"||u==="path"||u==="transform"||(o[u]=i[u]);const a=ue.absolutizeSVGPath(ue.parseSVGPath(i.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=Ku(i.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 la(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 i=Math.atan2(n,e),o={x:0,y:0},a=ts(-i,e,n),l=ts(-i,this.vx,this.vy),c=ts(-i,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(i,o.x,o.y),d=ts(i,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(i,l.x,l.y),k=ts(i,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,r=t.wall.y,i=t.wall.x+t.wall.width,o=t.wall.y+t.wall.height;this.x+this.radius>i?(this.x=i-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<r&&(this.y=r+this.radius,this.vy*=e)}}class eh 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,r=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",n,r]);for(let i=0;i<e-1;i++){const o=(this.points[i].x+this.points[i+1].x)/2,a=(this.points[i].y+this.points[i+1].y)/2;t.push(["Q",this.points[i].x,this.points[i].y,o,a])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,n,r])}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,r=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(n,r);for(let i=0;i<e-1;i++){const o=(this.points[i].x+this.points[i+1].x)/2,a=(this.points[i].y+this.points[i+1].y)/2;t.quadraticCurveTo(this.points[i].x,this.points[i].y,o,a)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,n,r)}}isContainPoint(t,e){const n=this.points.length;let r=!1;const i=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)<i)return!0;m>t&&(r=!r)}}return r}[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,r,i,o,a,l){const c=new rn({x:t,y:e,c1x:n,c1y:r,c2x:i,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 sh 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 Ci 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 wa 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 Lg 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 $g 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 Vg 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,r=this.r*Math.cos(Ft(n)),i=this.r*Math.sin(Ft(n));t.push(["l",r,i])}return t}}class Yg 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 zg 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 Bg extends wn{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,r=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}),i=60+Math.random()*40,o=new he({...t,x:this.x,y:this.y-i,diffYInGroup:-i,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,r,o])}}class Si 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,r=ft.measureText(this.text,e,n);this.width=r.width,this.height=r.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Gg extends wn{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 Si({...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(){Qo(()=>{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 nh extends ss{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 Xg({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 Si({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 Gg({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:r}=ps(Ft(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+n,this.p1.y=this.y+r;const{dx:i,dy:o}=ps(Ft(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,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 Xg 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}=ps(Ft(this.startDegree),this.radius),{dx:n,dy:r}=ps(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,r-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=ca(this.x,this.y,t,e),r=Ie(xn(this.x,this.y,t,e));return n<=this.radius&&r>=this.startDegree&&r<=this.endDegree}}class jg extends ss{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(){Qo(()=>{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 rh extends wn{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,n=t?.max||100,r=t?.step||1,i=_u(e,n,r);this.value=i(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||Ot.colorGrayF5,f=t?.handleColor||Ot.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=i((this.handle.x-this.x)/a*(n-e)+e),this.emit("change",this.value)})}}class Cn extends wn{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 Ca 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}=ps(Ft(this.startDegree),this.radius),{dx:n,dy:r}=ps(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,r-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Ft(this.startDegree),Ft(this.endDegree),!1)}}let ih=class extends wn{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,n=t?.endDegree||180,r=t?.extendDegree||15,i=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 Ca({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:r,lineWidth:i,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new Ca({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:r,lineWidth:i}),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+r*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(r=>{r!=n&&(r.x+=t,r.y+=e)})})}frameUpdate(t,e){const n=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),r=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const i=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+n,-r,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:i})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let i=0;i<this.indicatorLineCount;i++){const o=i/(this.indicatorLineCount-1)<=this.percent;this.lines[i].setAttr({stroke:o&&e?e.createLinearGradient(0,0,this.lines[i].toX-this.lines[i].x,this.lines[i].toY-this.lines[i].y,{0:this.startColor,1:this.endColor}):o?this.startColor:this.bgColor})}}};class Ug extends ss{fettis=[];constructor(t,e,n){super();const{shape:r,x:i,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:Dg,scalar:1,flat:!1},n||{}),x=Ft(l),y=Ft(c);let p=a;for(;p--;){const w=S[p%S.length],b=new r({x:t*i,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,r=e.shape.x+e.random*e.tiltCos,i=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-r)*.1,e.shape.scalarY=Math.abs(a-i)*.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,r=e-1;n<r;n++)for(let i=n+1;i<e;i++)this.shapes[n].checkCollision(this.shapes[i])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,n)=>{e.run();for(let r=n+1;r<t;r++)e.checkCollision(this.shapes[r]),e.gravitateTo(this.shapes[r])})}springChain(t){this.shapes.forEach((e,n)=>{n>0&&e.runSpringTo(this.shapes[n-1],t)})}springConnect(t){const e=Ms(t?.springLength,100);this.shapes.forEach(n=>{n.isDragging||this.shapes.filter(r=>r.id!==n.id).forEach(r=>{const i=xn(n.x,n.y,r.x,r.y);n.runSpringTo({x:r.x-Math.cos(i)*e,y:r.y-Math.sin(i)*e},t)})})}springMass(t,e){const n=this.shapes.length,r=[];return this.shapes.forEach((i,o)=>{i.run(e),i.x>t.x+t.width?i.x=t.x:i.x<t.x&&(i.x=t.x+t.width),i.y>t.y+t.height?i.y=t.y:i.y<t.y&&(i.y=t.y+t.height);for(let a=o+1;a<n;a++)r.push([i.x,i.y,this.shapes[a].x,this.shapes[a].y,i.springMassTo(this.shapes[a],e)])}),r}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let r=0;r<t;r++){const i=this.shapes[r].initPathD();this.shapes[r].frameStart();const o=this.shapes[r+1].initPathD();this.shapes[r+1].frameStart();const a=Math.max(i.polymorphPoints.length,o.polymorphPoints.length);e[r]=Me.getPathInterpolator(i.expendFill(a),o.expendFill(a))}const n=new Ht({d:e[0](0)});return r=>{const i=we(t*r,6),o=Math.min(Math.floor(i),t-1),a=we(i-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",Ct.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",Ct.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 ss?(l=a,l.sortPathD()):(l=new ss,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 r=[];n.forEach((a,l)=>{a.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const i=[];r.forEach(a=>{i.push(new Re(a).polymorph())});const o=new ss;return i.forEach(a=>{o.addShape(a(0))}),a=>(i.forEach(l=>{l(a)}),o)}polymorphTween(t=6e3,e){const n=this.shapes.findIndex(a=>a instanceof ss)>=0?this.polymorphGroup():this.polymorph(),r=n(0),i=e?.onUpdate,o=new He({frameDuration:t});o.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(a,l)=>{n(a.t),i?.(a,l),e?.draw?.(r)}})),o.play()}static generatePointsShape(t,e,n,r){const i=[];for(let o=0;o<r;o++){const a=o/r*2*Math.PI,{dx:l,dy:c}=ps(a,n);i.push({x:t+l,y:e+c})}return new eh({points:i})}static generateRosettaShape(t,e,n,r,i){if(i==0)throw new Error("no dividing by zero, please");const o=[],a=360/i;for(let l=0;l<i;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 da({x:t,y:e,rx:n,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),o.push(new da({x:u,y:h,rx:n,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Ht({d:Me.fromLines(o)})}}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 fa(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,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let r=n.parent;for(;r;)r.emit("clicked",n),r=r.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 ss&&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(let e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),ft.attrsToCanvas(this.ctx,e.getAttrs()),e.followMouse&&(!ai(e.x,this.app.mousePoint.x,5)||!ai(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 r=this.dragDx,i=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||i){if(e.x+=r,e.y+=i,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",r,i)}}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 r=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=r,r&&(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,r=e?.brushDensity??50,i=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=De(i);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<r;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())}})}}}class Hg{map;constructor(t,e=120.619585,n=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),r)}}const Wg=lt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("span",{class:"icon",style:Y(["color: "+e.color])},[dt(Lt(xm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),G_="",mt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,r]of t)e[n]=r;return e},on=mt(Wg,[["__scopeId","data-v-8789b4ce"]]),qg={class:"loading-11",ref:"loading11"},Zg={class:"container container-1"},Qg={class:"container container-2"},Kg={class:"container container-3"},Jg=lt({__name:"Loading11",props:{color:{default:Ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(F(),H("div",qg,[P("div",{class:"loading-11-inner",style:Y({width:t.width,height:t.width})},[P("div",Zg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",Qg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",Kg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)])],4)],512))}}),X_="",Sa=mt(Jg,[["__scopeId","data-v-f95fac77"]]),t0={key:0,class:"loading"},e0=lt({customOptions:{Loading11:Sa},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,r=e,i=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??Ot.colorPrimary,a.value=n.bgColor??Ot.colorGrayFF,l.value=n.fontColor??Ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Ot.colorPrimary,a.value=n.bgColor??Ot.colorPrimary,l.value=n.fontColor??Ot.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),r("yz-click"),r("click"),n.asyncClick&&(_.value=!0,n.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:i}),(p,w)=>(F(),H("div",{ref_key:"el",ref:i,class:"button",style:Y([`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:Y({padding:"0 "+p.padding,cursor:m.value})},[_.value?(F(),H("div",t0,[dt(Sa,{color:l.value},null,8,["color"])])):Bt("",!0),kt(p.$slots,"default",{},()=>[p.icon&&p.iconPosition==="left"?(F(),zt(on,{key:0,icon:p.icon,color:l.value,style:Y({marginRight:Lt(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0),P("span",{style:Y({cursor:m.value})},wt(p.label),5),p.icon&&p.iconPosition==="right"?(F(),zt(on,{key:1,icon:p.icon,color:l.value,style:Y({marginLeft:Lt(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0)],!0)],4)],36))}}),j_="",ve=mt(e0,[["__scopeId","data-v-b3e1b144"]]),s0=["onClick","value"],n0={class:"option-inner"},r0=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;Ps(()=>{nn(`
|
|
55
55
|
:root {
|
|
56
56
|
--select-option-bg-color: ${Ot.colorGrayFF};
|
|
57
57
|
--select-option-bg-color-hover: ${Ot.colorGrayF5};
|
|
58
58
|
}
|
|
59
|
-
`)});const r=M(!1),i=M(e.initIndex);Mt(i,function(){n("change",i.value,e.options[i.value])});function o(){r.value=!r.value}function a(l){i.value=l,r.value=!1}return(l,c)=>(F(),H("div",{class:"select",style:Y(["font-size:"+l.fontSize])},[P("div",{onClick:o},[kt(l.$slots,"button",{selectedIndex:i.value},()=>[dt(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),
|
|
59
|
+
`)});const r=M(!1),i=M(e.initIndex);Mt(i,function(){n("change",i.value,e.options[i.value])});function o(){r.value=!r.value}function a(l){i.value=l,r.value=!1}return(l,c)=>(F(),H("div",{class:"select",style:Y(["font-size:"+l.fontSize])},[P("div",{onClick:o},[kt(l.$slots,"button",{selectedIndex:i.value},()=>[dt(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[i.value],style:{width:"100%"}},null,8,["label"])],!0)]),Qs(P("div",{class:"options",style:Y({border:"1px solid "+Lt(Ot).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:Y({borderTop:(h==0?"0":"1px")+" solid "+Lt(Ot).colorGrayCC})},[P("div",n0,[kt(l.$slots,"default",{item:u,index:h},()=>[P("span",null,wt(u),1),h==i.value?(F(),zt(on,{key:0,icon:"mingcute:check-fill",class:"icon"})):Bt("",!0)],!0)])],12,s0))),128))],4),[[As,r.value]])],4))}}),U_="",i0=mt(r0,[["__scopeId","data-v-4ae1205c"]]),o0=["width","height"],a0=["fill"],l0=lt({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Ot.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,a0)],8,o0))}}),H_="",ar=mt(l0,[["__scopeId","data-v-b1f2ae20"]]),c0={class:"button-default"},u0={class:"truncate"},h0=["onClick","value"],f0=lt({customOptions:{SVGDown:ar},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:Ot.colorGrayFF},hoverColor:{default:Ot.colorGrayF5},selectedColor:{default:Ot.colorPrimary},fontColor:{default:Ot.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;Ps(()=>{nn(`
|
|
60
60
|
:root {
|
|
61
61
|
--select-option-bg-color: ${e.bgColor};
|
|
62
62
|
--select-option-bg-color-hover: ${e.hoverColor};
|
|
63
63
|
}
|
|
64
|
-
`)});const r=M(!1),i=M(e.initIndex);Mt(i,function(){n("change",i.value,e.options[i.value])});function o(){r.value=!r.value}function a(c){i.value=c,r.value=!1}const l=M("rotate(-180deg)");return Vl(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),H("div",{class:"select-absolute",style:Y({fontSize:e.fontSize,backgroundColor:e.bgColor})},[P("div",{class:"select-absolute-button",onClick:o},[kt(c.$slots,"button",{selectedIndex:i.value},()=>[P("div",c0,[P("div",u0,wt(c.options[i.value]),1),dt(ar,{class:"icon-down",width:"20px",style:Y({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),P("div",{class:"options",style:Y({maxHeight:r.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${r.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},[kt(c.$slots,"default",{item:h,index:f},()=>[P("div",{class:"option-default",style:Y({color:i.value==f?e.selectedColor:e.fontColor})},wt(h),5)],!0)],8,h0))),128))],4)],4))}}),W_="",d0=mt(f0,[["__scopeId","data-v-a06226ed"]]),p0=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),r=Je(e.height),i=Je(e.padding),o=r.number-i.number*2+r.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:Y(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[P("span",{class:"round",style:Y(["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))}}),q_="",m0=mt(p0,[["__scopeId","data-v-2ef84ee0"]]),g0=["stroke","fill"],y0=["stroke","fill"],v0=["stroke"],_0=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,r=e;let i=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:i.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 i.value?n.colorBackground:n.colorForeground}},h=()=>{o.value||(m(),r("change",i.value))},f=C=>{C!==i.value&&(i.value=C)},m=()=>{i.value=!i.value};return t({setValue:f,toggleValue:m,getValue:()=>i.value,enable:()=>{o.value=!1},disable:()=>{o.value=!0},setLabel:C=>{a.value=C}}),(C,y)=>(F(),H("div",{class:re(["boolean-box",Lt(o)?"disabled":""]),onClick:h},[kt(C.$slots,"default",{selected:Lt(i),disabled:Lt(o),label:Lt(a)},()=>[(F(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Y(["width:"+n.boxWidth])},[n.isRounded?Bt("",!0):(F(),H("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,g0)),n.isRounded?(F(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,y0)):Bt("",!0),Lt(i)?(F(),H("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,v0)):Bt("",!0)],4)),C.label?(F(),H("span",{key:0,style:Y(["font-size:"+n.fontSize,"margin-left:"+n.labelPadding])},wt(C.label),5)):Bt("",!0)],!0)],2))}}),Z_="",lr=mt(_0,[["__scopeId","data-v-3df94794"]]),b0=lt({customOptions:{BooleanBox:lr},__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,r=M([]),i=(l,c)=>{l&&(r.value[c]=l)};let o=M(e.initIndex);const a=(l,c)=>{o.value!==l?(r.value[o.value].toggleValue(),c&&(o.value=l,n("change",e.options[o.value]))):c||r.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:Y(["margin-left:"+(h>0?e.itemPadding:0)])},[dt(lr,{ref_for:!0,ref:f=>i(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))}}),Q_="",Ta=mt(b0,[["__scopeId","data-v-308d559c"]]),x0=lt({customOptions:{BooleanBox:lr},__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 r=Jt(e.initIndexs??[]);const i=(o,a)=>{const l=r.findIndex(u=>u===o);let c=!1;l>=0&&!a?(r.splice(l,1),c=!0):l<0&&a&&(r.push(o),c=!0),c&&n("change",r.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:Y(["margin-left:"+(c>0?e.itemPadding:0)])},[dt(lr,{selected:Lt(r).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=>i(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),K_="",Ti=mt(x0,[["__scopeId","data-v-4c28fda3"]]),w0=["width","height"],C0=["fill"],S0=["fill"],T0=["fill"],k0=lt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Ot.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,C0),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,S0),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,T0)],8,w0))}}),J_="",ah=mt(k0,[["__scopeId","data-v-41294f60"]]),E0={class:"input"},P0={class:"ellipsis"},O0={class:"input-wrap"},I0=["type","required","value"],D0={key:0,style:{paddingLeft:"0.5em"}},R0={key:1},A0=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:{},value:{}},emits:["focus","yz-focus","blur","yz-blur","input","yz-input"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=n.placeholder.split(""),o=n.duration/i.length,a=M(!1),l=M(""),c=M(n.value||"");function u(){a.value=!0,r("focus"),r("yz-focus")}function h(){a.value=!1,r("blur"),r("yz-blur"),m()}function f(d){c.value=d.target.value,m()}function m(){if(c.value&&n.validator){const d=n.validator(c.value);if(!d.valid){l.value=d.errors[0];return}}l.value="",c.value&&(r("input",c.value),r("yz-input",c.value))}return le(()=>{}),t({}),(d,k)=>(F(),H("div",E0,[l.value?(F(),H("div",{key:0,class:"error-text",style:Y({color:n.errorColor})},[dt(ah,{class:"icon"}),P("div",P0,wt(l.value),1)],4)):Bt("",!0),P("div",O0,[P("input",{class:re(["input-raw",a.value||c.value?"focus":""]),type:n.type,required:n.required,autocomplete:"off",style:Y({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value||n.placeholderType=="normal"?n.borderColor:"transparent",transition:n.duration+"ms"}),value:c.value,onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,I0),P("div",{class:"placeholder",style:Y({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderType=="normal"?"":n.duration+"ms",transform:n.placeholderType=="normal"?"":a.value||c.value?"translateY(-100%)":"none"})},[!l.value&&n.placeholderType=="normal"&&!a.value&&!c.value?(F(),H("div",D0,wt(n.placeholder),1)):Bt("",!0),!l.value&&n.placeholderType=="jump"?(F(),H("div",R0,wt(n.placeholder),1)):Bt("",!0),!l.value&&n.placeholderType=="jump-each"?(F(!0),H($t,{key:2},ge(Lt(i),(S,_)=>(F(),H("span",{key:_,style:Y({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*_}ms`,transform:a.value||c.value?`translateX(${100*_}%) translateY(-100%)`:`translateX(${100*_}%)`}),class:"single"},wt(S),5))),128)):Bt("",!0)],4),P("div",{class:"background",style:Y({transition:n.duration+"ms",backgroundColor:n.placeholderType=="normal"||a.value||c.value?"transparent":n.borderColor,height:n.placeholderType=="normal"||a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)])]))}}),tb="",M0=mt(A0,[["__scopeId","data-v-7cda60d7"]]),N0=["max","min","step","value","autofocus"],F0={key:0,class:"label"},L0=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,r=e,i=M(n.defaultValue),o=()=>we((i.value-n.min)/(n.max-n.min),4)*100,a=M(o());function l(h){i.value=we(h.target.value,2),a.value=o(),r("change",i.value)}const c=`
|
|
64
|
+
`)});const r=M(!1),i=M(e.initIndex);Mt(i,function(){n("change",i.value,e.options[i.value])});function o(){r.value=!r.value}function a(c){i.value=c,r.value=!1}const l=M("rotate(-180deg)");return Vl(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),H("div",{class:"select-absolute",style:Y({fontSize:e.fontSize,backgroundColor:e.bgColor})},[P("div",{class:"select-absolute-button",onClick:o},[kt(c.$slots,"button",{selectedIndex:i.value},()=>[P("div",c0,[P("div",u0,wt(c.options[i.value]),1),dt(ar,{class:"icon-down",width:"20px",style:Y({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),P("div",{class:"options",style:Y({maxHeight:r.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${r.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},[kt(c.$slots,"default",{item:h,index:f},()=>[P("div",{class:"option-default",style:Y({color:i.value==f?e.selectedColor:e.fontColor})},wt(h),5)],!0)],8,h0))),128))],4)],4))}}),W_="",d0=mt(f0,[["__scopeId","data-v-a06226ed"]]),p0=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),r=Je(e.height),i=Je(e.padding),o=r.number-i.number*2+r.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:Y(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[P("span",{class:"round",style:Y(["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))}}),q_="",m0=mt(p0,[["__scopeId","data-v-2ef84ee0"]]),g0=["stroke","fill"],y0=["stroke","fill"],v0=["stroke"],_0=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,r=e;let i=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:i.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 i.value?n.colorBackground:n.colorForeground}},h=()=>{o.value||(m(),r("change",i.value))},f=x=>{x!==i.value&&(i.value=x)},m=()=>{i.value=!i.value};return t({setValue:f,toggleValue:m,getValue:()=>i.value,enable:()=>{o.value=!1},disable:()=>{o.value=!0},setLabel:x=>{a.value=x}}),(x,y)=>(F(),H("div",{class:re(["boolean-box",Lt(o)?"disabled":""]),onClick:h},[kt(x.$slots,"default",{selected:Lt(i),disabled:Lt(o),label:Lt(a)},()=>[(F(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Y(["width:"+n.boxWidth])},[n.isRounded?Bt("",!0):(F(),H("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,g0)),n.isRounded?(F(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,y0)):Bt("",!0),Lt(i)?(F(),H("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,v0)):Bt("",!0)],4)),x.label?(F(),H("span",{key:0,style:Y(["font-size:"+n.fontSize,"margin-left:"+n.labelPadding])},wt(x.label),5)):Bt("",!0)],!0)],2))}}),Z_="",lr=mt(_0,[["__scopeId","data-v-3df94794"]]),b0=lt({customOptions:{BooleanBox:lr},__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,r=M([]),i=(l,c)=>{l&&(r.value[c]=l)};let o=M(e.initIndex);const a=(l,c)=>{o.value!==l?(r.value[o.value].toggleValue(),c&&(o.value=l,n("change",e.options[o.value]))):c||r.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:Y(["margin-left:"+(h>0?e.itemPadding:0)])},[dt(lr,{ref_for:!0,ref:f=>i(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))}}),Q_="",Ta=mt(b0,[["__scopeId","data-v-308d559c"]]),x0=lt({customOptions:{BooleanBox:lr},__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 r=Jt(e.initIndexs??[]);const i=(o,a)=>{const l=r.findIndex(u=>u===o);let c=!1;l>=0&&!a?(r.splice(l,1),c=!0):l<0&&a&&(r.push(o),c=!0),c&&n("change",r.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:Y(["margin-left:"+(c>0?e.itemPadding:0)])},[dt(lr,{selected:Lt(r).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=>i(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),K_="",Ti=mt(x0,[["__scopeId","data-v-4c28fda3"]]),w0=["width","height"],C0=["fill"],S0=["fill"],T0=["fill"],k0=lt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Ot.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,C0),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,S0),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,T0)],8,w0))}}),J_="",ah=mt(k0,[["__scopeId","data-v-41294f60"]]),E0={class:"input"},P0={class:"ellipsis"},O0={class:"input-wrap"},I0=["type","required"],D0={key:0,style:{paddingLeft:"0.5em"}},R0={key:1},A0=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,r=e,i=n.placeholder.split(""),o=n.duration/i.length,a=M(),l=M(!1),c=M(""),u=M(n.defaultValue||"");function h(){l.value=!0,r("focus"),r("yz-focus")}function f(){l.value=!1,r("blur"),r("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&&(r("input",u.value),r("yz-input",u.value))}return Ps(()=>{n.defaultValue&&(a.value.value=n.defaultValue)}),le(()=>{}),t({}),(S,k)=>(F(),H("div",E0,[c.value?(F(),H("div",{key:0,class:"error-text",style:Y({color:n.errorColor})},[dt(ah,{class:"icon"}),P("div",P0,wt(c.value),1)],4)):Bt("",!0),P("div",O0,[P("input",{ref_key:"inputEl",ref:a,class:re(["input-raw",l.value||u.value?"focus":""]),type:n.type,required:n.required,autocomplete:"off",style:Y({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,I0),P("div",{class:"placeholder",style:Y({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",D0,wt(n.placeholder),1)):Bt("",!0),!c.value&&n.placeholderType=="jump"?(F(),H("div",R0,wt(n.placeholder),1)):Bt("",!0),!c.value&&n.placeholderType=="jump-each"?(F(!0),H($t,{key:2},ge(Lt(i),(_,x)=>(F(),H("span",{key:x,style:Y({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"},wt(_),5))),128)):Bt("",!0)],4),P("div",{class:"background",style:Y({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)])]))}}),tb="",M0=mt(A0,[["__scopeId","data-v-4ef89231"]]),N0=["max","min","step","value","autofocus"],F0={key:0,class:"label"},L0=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,r=e,i=M(n.defaultValue),o=()=>we((i.value-n.min)/(n.max-n.min),4)*100,a=M(o());function l(h){i.value=we(h.target.value,2),a.value=o(),r("change",i.value)}const c=`
|
|
65
65
|
:root {
|
|
66
66
|
--input-range-color: ${n.color};
|
|
67
67
|
--input-range-thumb-size: ${n.handleSize};
|
|
@@ -72,14 +72,14 @@ Component that was made reactive: `,s)),P(s,t,e,n,r,o,i,!0)}function Nd(s){retur
|
|
|
72
72
|
--input-range-thumb-size: ${n.handleSize};
|
|
73
73
|
--input-range-track-size: ${n.barHeight};
|
|
74
74
|
}
|
|
75
|
-
`,u=M();return Mt(u,()=>{u.value&&nn(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:i.value,autofocus:n.autofocus,onInput:l,style:Y({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${a.value}%, ${n.barColor} ${a.value}%, ${n.barColor})`})},null,44,N0),kt(h.$slots,"default",{value:i.value},()=>[h.showValue?(F(),H("label",F0,wt(i.value)+wt(n.unit),1)):Bt("",!0)],!0)],512))}}),eb=""
|
|
75
|
+
`,u=M();return Mt(u,()=>{u.value&&nn(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:i.value,autofocus:n.autofocus,onInput:l,style:Y({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${a.value}%, ${n.barColor} ${a.value}%, ${n.barColor})`})},null,44,N0),kt(h.$slots,"default",{value:i.value},()=>[h.showValue?(F(),H("label",F0,wt(i.value)+wt(n.unit),1)):Bt("",!0)],!0)],512))}}),eb="",$s=mt(L0,[["__scopeId","data-v-cab67db2"]]),$0=["width","height"],V0=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,r=e,i=M(),o=M(),a=M(0),l=M(0);let c;Mt(i,()=>{i.value&&(c=new ms(i.value,!1),c.on("resize",(S,k)=>{const _=ga();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 ms(o.value,!1),u.on("resize",(S,k)=>{r("resize",S,k),h=new oh(u,n.enableCustomContext),f?.(h),r("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:i},[P("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:Y({backgroundColor:n.bgColor})},null,12,$0)],512))}}),sb="",ns=mt(V0,[["__scopeId","data-v-1fc03287"]]),Y0={class:"input-range-canvas"},z0={key:0,class:"label"},B0=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,r=e,i=M(n.defaultValue),o=m=>{i.value=m,r("change",m)},a=Je(n.handleSize,20).number/2,l=Je(n.barHeight,4).number;let c;const u=()=>{c=new rh({x:0,y:a-l/2,min:n.min,max:n.max,step:n.step,defaultValue:i.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:Y({height:n.handleSize})},[dt(ns,{ref_key:"canvasRef",ref:f},null,512)],4),kt(m.$slots,"default",{value:i.value},()=>[m.showValue?(F(),H("div",z0,wt(i.value)+wt(n.unit),1)):Bt("",!0)],!0)]))}}),nb="",G0=mt(B0,[["__scopeId","data-v-6f53631b"]]),Et=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,r=e;let i="start";const o=()=>{i="start",r("start")},a=()=>{i="end",r("end")},l=()=>{i=="start"?a():o()},c=()=>{i=="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[_]};`;nn(`
|
|
76
76
|
:root {
|
|
77
|
-
${
|
|
77
|
+
${k}
|
|
78
78
|
}
|
|
79
79
|
:host {
|
|
80
|
-
${
|
|
80
|
+
${k}
|
|
81
81
|
}
|
|
82
|
-
`,m.value)}h=new ms(m.value,!1),h.on("resize",(S,_)=>{r("resize",S,_,m.value.getBoundingClientRect()),f?.(h),u||(u=!0,n.effectTriggerTiming!=="manual"&&o(),r("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&&Gu(ft.getInnerText(m.value)).then(()=>{}).catch(S=>{})}),h.start()}});const d=()=>new Promise(S=>{if(h)return S(h);f=S}),k=()=>d().then(()=>m.value.getBoundingClientRect());return le(()=>{h?.destroy()}),t({getElement:()=>m.value,getApp:d,getSize:k,getStatus:()=>i,startEffect:o,endEffect:a,nextEffect:l,repeatEffect:c}),(S,_)=>(F(),H("div",{class:re(["container",[n.type]]),ref_key:"containerRef",ref:m,style:Y({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[kt(S.$slots,"default")],6))}}),X0={class:"input-range-box"},j0={key:0,class:"label"},U0=lt({customOptions:{Container:Et},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,r=e,i=M(n.defaultValue),o=()=>we(_u(n.min,n.max,n.step)(i.value),2),a=()=>we((i.value-n.min)/(n.max-n.min),4)*100;i.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 k=await u.value.getSize();i.value=we(Pm(d,k.left,k.right,n.min,n.max),2),i.value=o(),l.value=a(),r("change",i.value)};f.captureDrag({start:d=>{m(d.clientX)},move:d=>{m(d.clientX)}})}return le(()=>{}),t({}),(f,m)=>(F(),H("div",X0,[P("div",{class:"box",style:Y({height:n.barHeight,cursor:"ew-resize"})},[dt(Et,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:h},{default:Pt(()=>[P("div",{class:"background",style:Y({backgroundColor:n.bgColor,width:"100%",height:"100%"})},null,4),P("div",{class:"foreground",style:Y({backgroundColor:n.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),kt(f.$slots,"default",{value:i.value},()=>[f.showValue?(F(),H("label",j0,wt(i.value)+wt(n.unit),1)):Bt("",!0)],!0)]))}}),rb="",H0=mt(U0,[["__scopeId","data-v-ae6ae9c6"]]),cr=lt({customOptions:{Container:Et},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,r=e,i=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":i.overflow="visible";break;default:i.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(),k=M(),S=z=>{i.perspective=n.perspective,z.on("animationstart",ct=>{r("cssanimationstart",ct.animationName)}),z.on("animationend",ct=>{r("cssanimationend",ct.animationName)})};function _(){k.value.style.animation="none",k.value.offsetHeight,k.value.style.animation=null}const C=()=>{o.animation="none"},y=()=>{_(),o.animation=`${l}ms ${c} ${u}ms ${h} ${f} ${n.fillMode} ${n.playState} ${a}`};return t({trigger:z=>{z&&(a=z,m()),d.value.startEffect(),f="normal",d.value.endEffect()},triggerReverse:z=>{z&&(a=z,m()),d.value.startEffect(),f="reverse",d.value.endEffect()},clear:()=>{o.animation="none"}}),(z,ct)=>(F(),zt(Et,{class:"css-animation",ref_key:"containerRef",ref:d,type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,style:Y(i),onReady:S,onStart:C,onEnd:y},{default:Pt(()=>[P("div",{class:"css-animation-inner",ref_key:"animationRef",ref:k,style:Y({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[kt(z.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),ib="",W0={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},q0=lt({customOptions:{CSSAnimation:cr},__name:"Status",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const n=s;let r="";switch(n.status){case"wait":r="#d9d9d9";break;case"success":r="#52c41a";break;case"error":r="#ff4d4f";break;case"processing":default:r="#1677ff";break}return n.color&&(r=n.color),t({}),(i,o)=>(F(),H("div",W0,[i.status==="processing"?(F(),zt(cr,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:Pt(()=>[P("div",{style:Y({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Lt(r)})},null,4)]),_:1})):Bt("",!0),P("div",{style:Y({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Lt(r)})},null,4)]))}}),Z0=lt({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(),o=M(!1);function a(){o.value=!0}function l(){o.value=!1}function c(h){h.preventDefault()}function u(h){h.preventDefault(),r("yz-drop",h.dataTransfer.files),l()}return le(()=>{}),t({}),(h,f)=>(F(),H("div",{class:re(["input-file-drop",[o.value?"over":""]]),ref_key:"zone",ref:i,onDragenter:a,onDragleave:l,onDragover:c,onDrop:u},[kt(h.$slots,"default",{},()=>[Kt(wt(n.placeholder),1)],!0)],34))}}),ob="",Q0=mt(Z0,[["__scopeId","data-v-b0f06804"]]),K0=["width","height"],J0=["fill"],ty=lt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Ot.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,J0)],8,K0))}}),ab="",ka=mt(ty,[["__scopeId","data-v-4747d4a7"]]),ey=lt({customOptions:{SVGDelete:ka},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Ot.colorGrayFF},deleteColor:{default:Ot.colorRed},fontColor:{default:Ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(!1),o=()=>{r("delete"),i.value=!1};let a;const l=M();return Mt(l,()=>{l.value&&(a=new ms(l.value),a.on("panLeft",()=>{i.value=!0}),a.on("panRight",()=>{i.value=!1}),a.on("tapOutSide",()=>{i.value=!1}))}),le(()=>{a?.destroy()}),t({}),(c,u)=>(F(),H("div",{class:"parent",ref_key:"item",ref:l,style:Y({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[P("div",{class:"content",style:Y({transition:"all ease-in "+n.transtionDuration,transform:i.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[kt(c.$slots,"default",{},void 0,!0)],4),P("div",{class:"delete",onClick:o,style:Y({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:i.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[dt(ka,{color:n.fontColor},null,8,["color"])],4)],4))}}),lb="",sy=mt(ey,[["__scopeId","data-v-244215c2"]]),ny=lt({customOptions:{Container:Et,SVGDown:ar},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,r=e,i=(h,f)=>{r("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?r("open"):r("close")}const u=M(0);return Vl(()=>{u.value=l.value?0:-90}),t({}),(h,f)=>(F(),zt(Et,{onResize:i},{default:Pt(()=>[P("div",{class:"accordion",style:Y({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[P("div",{class:"accordion-title",onClick:c,style:Y({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}`})},[kt(h.$slots,"title",{},()=>[Kt("title")],!0),dt(ar,{class:"arrow",style:Y({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:Y({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[kt(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),cb="",ry=mt(ny,[["__scopeId","data-v-6c9d636f"]]),iy=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,r=M(0);function i(o){r.value=Math.min(Math.max(0,o),100)}return t({goto:i}),(o,a)=>(F(),H("div",{class:"bar",style:Y({border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[P("div",{class:"bar-inner",style:Y({width:r.value+"%",backgroundColor:n.progressColor})},wt(n.showText?r.value+"%":""),5)],4))}}),ub="",ur=mt(iy,[["__scopeId","data-v-d986b312"]]),oy=["width","height"],ay=["src","type"],ly={class:"video-progress-bar"},cy=lt({customOptions:{ProgressBar:ur},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,r=e;let i;function o(h){if(i){i.resume();return}i=new He({frameDuration:this.duration*1e3}),i.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{r("start"),l.value?.goto(0)},onUpdate:f=>{l.value?.goto(f.x)},onComplete:()=>{r("complete"),i=null}}),i.play()}const a=M(),l=M();Mt(a,()=>{a.value&&(a.value.addEventListener("play",o),n.autoplay&&ya.tryAutoPlayOrAutoPlayAfterClick(a.value))}),le(()=>{a.value?.removeEventListener(o)});function c(){a.value?.play()}function u(){a.value?.pause(),i?.pause()}return t({play:c,pause:u}),(h,f)=>(F(),H("div",{class:"video",style:Y({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,ay)],8,oy),P("div",ly,[dt(ur,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),hb="",uy=mt(cy,[["__scopeId","data-v-5f48bfae"]]),Sn=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,r=M(),i=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=i,document.body.style.overflow=o):r.value&&(n.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(a,l)=>n.visible?(F(),H("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:Y([`background-color: ${n.color}`,`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[kt(a.$slots,"default")],4)):Bt("",!0)}}),hy=P("div",null,null,-1),Ve=lt({customOptions:{Overlay:Sn,Container:Et},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,r=e,i=new He({frameDuration:n.dur}),o=Jt({backgroundColor:n.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),a=M("full");Mt(()=>[n.directionFrom,n.popValue],()=>{i.clear();const k=n.popValue?n.popValue:n.popPercent,S=n.popValue?"px":"%";switch(n.directionFrom){case"left":o.height="100%",o.width=`${k}${S}`,o.top="0",o.bottom="0",delete o.right,i.addTween({left:k},{left:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.left=`-${_.left}${S}`},onComplete:u});break;case"right":o.height="100%",o.width=`${k}${S}`,o.top="0",o.bottom="0",delete o.left,i.addTween({right:k},{right:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.right=`-${_.right}${S}`},onComplete:u});break;case"top":o.width="100%",o.height=`${k}${S}`,o.left="0",o.right="0",delete o.bottom,i.addTween({top:k},{top:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.top=`-${_.top}${S}`},onComplete:u});break;case"bottom":o.width="100%",o.height=`${k}${S}`,o.left="0",o.right="0",delete o.top,i.addTween({bottom:k},{bottom:0},{easeFunction:ut.Quadratic.Out,onUpdate(_){o.bottom=`-${_.bottom}${S}`},onComplete:u});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,i.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=(k,S,_)=>{r("resize",k,S,_)};let c="open";function u(){c=="open"?r("open"):(h.value=!1,r("close"))}const h=M(!1);function f(){h.value=!0,c="open",i.play()}function m(){switch(c="close",n.directionFrom){case"absolute":u();break;default:i.reverse();break}}function d(k){const S=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";k.target&&Bu(k.target,S)&&(n.closeWhenClickOverlay&&m(),r("clickOverlay"))}return t({open:f,close:m}),(k,S)=>(F(),zt(Sn,{visible:h.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:Pt(()=>[P("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:d},[dt(Et,{class:"pop-content",type:a.value,style:Y(o),onResize:l},{default:Pt(()=>[kt(k.$slots,"default",{},()=>[hy])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),fy=lt({...{},name:"Image",customOptions:{Container:Et,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,r=e,i=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),k=M(0);Rg(n.src).then(D=>{d.value=D.width,k.value=D.height,x()});const S=M(0),_=M(0),C=(D,L)=>{S.value=D,_.value=L,x()},y=M(0),p=M(0);function x(){if(!S.value||!_.value||!d.value||!k.value)return;const D=th(n.mode,d.value,k.value,S.value,_.value);y.value=D.width,p.value=D.height;const{width:L,height:X}=ga(),rt=th("aspectFit",d.value,k.value,L,X);f.value=rt.width,m.value=rt.height,u.value=(L-f.value)/2,h.value=(X-m.value)/2}const b=(D,L,X)=>{r("settled",X.x,X.y,X.width,X.height)};let z=!1;const ct=M(),O=M();async function R(){if(!n.openImageDetailWhenClick)return;const D=await ct.value.getSize();i.clear(),i.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(){z&&O.value.close(),z=!z}}),z||(O.value.open(),i.play())}function A(){z&&i.reverse()}return t({}),(D,L)=>(F(),zt(Et,{class:"image",type:"full",style:Y({backgroundColor:n.bgColor}),onResize:C,onClick:R},{default:Pt(()=>[dt(Et,{class:"image-inner",ref_key:"imageRef",ref:ct,type:"shrink",style:Y({width:y.value+"px",height:p.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${y.value}px ${p.value}px`}),onResize:b},null,8,["style"]),dt(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:Pt(()=>[P("div",{class:"image-pop",style:Y({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"]))}}),db="",Ea=mt(fy,[["__scopeId","data-v-48bcfc9f"]]),Pa=lt({customOptions:{Container:Et,CSSAnimation:cr},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,r=e,i=M(),o=Jt({}),a=()=>{r("ready",b,z)},l=()=>{k()},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,k=()=>{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:()=>{r(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:()=>{r(m?"pageCloseEnd":"pageOpenEnd")}})})};Mt(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{h=n.effect,k()},{immediate:!0});const S=()=>{r(m?"pageCloseStart":"pageOpenStart")},_=()=>{r(m?"pageCloseEnd":"pageOpenEnd")},C=()=>{f(()=>{c.value.trigger(u)},()=>{d.play()})},y=()=>{f(()=>{c.value.triggerReverse(u)},()=>{d.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function x(){f(()=>{p()},()=>{c.value?.clear()})}const b=ct=>{ct&&(h=ct,k()),m=!1,x(),i.value.startEffect()},z=ct=>{ct&&(h=ct,k()),m=!0,x(),i.value.endEffect()};return t({open:b,close:z,clear:p,getElement:()=>i.value.getElement()}),(ct,O)=>(F(),zt(Et,{class:"page",ref_key:"pageRef",ref:i,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onResize:l,onStart:C,onEnd:y},{default:Pt(()=>[dt(cr,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:S,onCssanimationend:_},{default:Pt(()=>[P("div",{class:"page-inner",style:Y({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[kt(ct.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),ki=lt({customOptions:{Page:Pa,Container:Et},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,r=e;let i=-1,o=-1,a;const l=[];let c=[],u=[],h=[];function f(Z){return Z>=0&&Z<c.length}function m(){return o>i}function d(Z,V,Qt){switch(Z){case i:return m()?V:Qt;case o:return m()?Qt:V;default:return"static"}}function k(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 S(Z,V=600,Qt=600){switch(Z){case i:return V;case o:return Qt;default:return n.duration}}function _(Z,V){switch(Z){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return S(V,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return S(V,700,600);case"scaleSmall":return S(V,700,500);case"scaleLarge":return S(V,500,700);case"scaleToLargePrevScaleToSmall":return S(V,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return S(V,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return S(V,800,600);default:return n.duration}}let C=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 i:C=m()?"ease-in-out":"ease";break;case o:default:C=m()?"ease":"ease-in-out"}return y(V);default:return C=n.timingFunction,n.easeFunction}}function x(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 x(V,500);case"scaleSmall":case"scaleLarge":return x(V,300);case"scaleToLargePrevScaleToSmall":return x(V,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return x(V,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return x(V,180);default:return n.delay}}let z=2,ct=2;const O=()=>{z=2,ct=2},R=()=>{z=2,ct=3},A=()=>{z=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(i)&&i==Z&&(h[i].style.zIndex=`${z}`,h[i].style.visibility="visible"),f(o)&&o==Z&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible")}function L(Z){R(),Z==i&&(h[i].style.zIndex=`${z}`,h[i].style.visibility="hidden"),Z==o&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",i,o,c.length),i=o)}const X=M();function rt(Z=0,V=!1){if(!X.value)return;let Qt=0;Mc(hs("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((te,It)=>{const ee=k(n.effect,It);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:i==It?"visible":"hidden",zIndex:V?"1":"0"}},te.pageKey?{key:te.pageKey}:{}),hs(Pa,{effect:ee,duration:_(n.effect,It),easeFunction:p(n.effect,It),timingFunction:C,delay:b(n.effect,It),onReady:(Yt,G)=>{u[It]={open:Yt,close:G},++Qt==Z&&(a?.(),r("renderComplete"))},onPageOpenStart:()=>{D(It)},onPageOpenEnd:()=>{L(It)},onPageCloseStart:()=>{D(It)},onPageCloseEnd:()=>{L(It)}},{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,()=>{rt()});function K(Z=[]){c=[...Z],c.forEach(V=>{V.pageKey=V.pageKey||oi()}),a=()=>{i=-1,gt(0)},rt(c.length,!0)}function W(Z){Z.pageKey=Z.pageKey||oi(),c.push(Z),a=()=>{gt(c.length-1)},rt(1,c.length==1)}function nt(){c.length<=1||gt(c.length-2,()=>{c.splice(c.length-1,1),i=c.length-1,rt()})}function B(){gt(i+1)}function j(){gt(i-1)}const yt=new Zo(1);function gt(Z,V){yt.addTask(()=>new Promise(Qt=>{const te=()=>{V?.(),Qt()};if(!f(Z)){te();return}if(o=Z,o==i){te();return}l.push(te),rt(),r("routeChangeStart",i,o,c.length),m()?(f(i)&&u[i].open(),f(o)&&u[o].open()):(f(i)&&u[i].close(),f(o)&&u[o].close())}))}return t({reset:K,push:W,pop:nt,forward:B,back:j,goto:gt,currentPageIndex:()=>i,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))}}),dy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},py=lt({customOptions:{Image:Ea,Container:Et,Routes:ki},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const n=s,r=M(0);function i(f,m){r.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(Ea,{mode:"aspectFit",src:m,openImageDetailWhenClick:!1})})))},l=M();function c(){l.value?.open()}function u(){l.value?.close()}const h=f=>{f.target&&Bu(f.target,"image")&&u()};return t({open:c,close:u}),(f,m)=>(F(),zt(Ve,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:Pt(()=>[n.urls.length>1?(F(),H("div",dy,wt(r.value+1)+" / "+wt(n.urls.length),1)):Bt("",!0),dt(Et,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:Pt(()=>[dt(ki,{ref_key:"routesRef",ref:o,effect:n.effect,onRouteChangeEnd:i},null,8,["effect"])]),_:1})]),_:1},512))}}),pb="",my={class:"page"},gy={class:"header"},yy={class:"main"},vy={class:"main-scroll"},_y={class:"footer"},by=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return Ig(s.designWidth),t({}),(r,i)=>(F(),H("div",my,[P("header",gy,[kt(r.$slots,"header",{},void 0,!0)]),P("div",yy,[P("div",vy,[kt(r.$slots,"main",{},void 0,!0)])]),P("footer",_y,[kt(r.$slots,"footer",{},void 0,!0)])]))}}),mb="",xy=mt(by,[["__scopeId","data-v-3904d6b5"]]),wy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,r=Jt({}),i=Jt({});function o(){switch(gu(r),gu(i),n.type){case"table":r.display="table",i.display="table-cell",i.verticalAlign="middle",i.textAlign="center";break;case"transform":i.position="absolute",i.top="50%",i.left="50%",i.transform="translate(-50%, -50%)";break;case"grid":r.display="grid",r.justifyContent="center",r.alignItems="center";break;case"flex":default:r.display="flex",i.margin="auto"}}return o(),le(()=>{}),t({}),(a,l)=>(F(),H("div",{class:"layout-center",style:Y(r)},[P("div",{style:Y(i)},[kt(a.$slots,"default",{},void 0,!0)],4)],4))}}),gb="",Cy=mt(wy,[["__scopeId","data-v-37646611"]]),Sy=P("div",{style:{"background-color":"#ffffff"}},"...",-1),Oa=lt({customOptions:{Pop:Ve,Button:ve,Container:Et},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 r(){n.value.open()}function i(){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=ga(),k=o.value.getBoundingClientRect();a.value=Math.max(e.gap,Math.min(k.x+k.width+e.gap,d.width-f-e.gap)),l.value=Math.max(e.gap,Math.min(k.y,d.height-m-e.gap))};return t({open:r,close:i}),(f,m)=>(F(),H($t,null,[P("div",{ref_key:"popoverButtonRef",ref:o,class:"popover-button",style:{display:"inline-block"},onClick:r},[kt(f.$slots,"button",{},()=>[dt(ve,null,{default:Pt(()=>[Kt("popover")]),_:1})])],512),dt(Ve,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:Pt(()=>[P("div",{style:Y({position:"absolute",left:a.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[dt(Et,{type:"shrink",onResize:h},{default:Pt(()=>[kt(f.$slots,"panel",{},()=>[Sy])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),Ty={class:"dialog-parent"},ky={key:0,class:"title"},Ey={key:0,class:"title-inner truncate"},Py={class:"custom-content"},Oy={class:"custom-content-default"},Iy={key:1,class:"btns"},Dy=lt({customOptions:{Overlay:Sn,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,r=e,i=M(),o=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,f,m;const d=()=>{r("open")},k=()=>{h?.(),r("close")};function S(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,i.value.open()}function _(){i.value.close()}function C(){_(),f?.(),r("cancel")}function y(){_(),m?.(),r("confirm")}return t({open:S,close:_}),(p,x)=>(F(),zt(Ve,{ref_key:"popRef",ref:i,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:n.overlayBgColor,onOpen:d,onClose:k},{default:Pt(()=>[P("div",Ty,[P("div",{class:"dialog",style:Y({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(F(),H("div",ky,[o.value?(F(),H("div",Ey,wt(o.value),1)):Bt("",!0),l.value?(F(),H("div",{key:1,class:"close",onClick:_},[dt(on,{icon:"ic:baseline-close",color:Lt(Ot).colorGrayCC},null,8,["color"])])):Bt("",!0)])):Bt("",!0),P("div",Py,[kt(p.$slots,"default",{},()=>[P("div",Oy,wt(a.value),1)],!0)]),c.value||u.value?(F(),H("div",Iy,[c.value?(F(),zt(ve,{key:0,onClick:C,class:"btn",bgColor:Lt(Ot).colorGrayE6,borderColor:Lt(Ot).colorGrayE6,fontColor:Lt(Ot).colorGray33,borderRadius:"0"},{default:Pt(()=>[Kt(wt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Bt("",!0),u.value?(F(),zt(ve,{key:1,onClick:y,class:"btn",borderRadius:"0"},{default:Pt(()=>[Kt(wt(u.value),1)]),_:1})):Bt("",!0)])):Bt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),yb="",hr=mt(Dy,[["__scopeId","data-v-f9df8635"]]),Ry={class:"loading-8"},Ay={viewBox:"25 25 50 50"},My=lt({__name:"Loading8",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("div",Ry,[(F(),H("svg",Ay,[P("circle",{cx:"50",cy:"50",r:"20",style:Y(["stroke: "+t.color])},null,4)]))]))}}),vb="",Ia=mt(My,[["__scopeId","data-v-e5e3cf4c"]]),Ny={class:"loading"},Fy={class:"icon"},Ly={style:{width:"8em"}},$y={key:0,class:"content"},Vy=lt({customOptions:{Overlay:Sn,Pop:Ve,Dialog:hr,Loading8:Ia},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,r=e,i=M(),o=M(""),a=()=>{r("open")},l=()=>{r("close")};function c(h){o.value=h||"",i.value.open()}function u(){i.value.close()}return t({open:c,close:u}),(h,f)=>(F(),zt(hr,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,onOpen:a,onClose:l},{default:Pt(()=>[P("div",Ny,[P("div",Fy,[kt(h.$slots,"default",{},()=>[P("div",Ly,[dt(Ia)])],!0)]),o.value?(F(),H("div",$y,wt(o.value),1)):Bt("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),_b="",Yy=mt(Vy,[["__scopeId","data-v-e707960a"]]),zy={class:"toast"},By={class:"content"},Gy=lt({customOptions:{Overlay:Sn,Pop:Ve,Dialog:hr},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,r=e,i=M(),o=M(""),a=()=>{r("open")},l=()=>{r("close")};function c(h,f=1500){o.value=h,i.value.open(),setTimeout(()=>{u()},f)}function u(){i.value.close()}return t({open:c,close:u}),(h,f)=>(F(),zt(hr,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:a,onClose:l},{default:Pt(()=>[P("div",zy,[P("div",By,wt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),bb="",Xy=mt(Gy,[["__scopeId","data-v-7a82fa25"]]),jy={class:"tab"},Uy=lt({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(F(),H("div",jy,[kt(e.$slots,"default",{},void 0,!0)]))}}),xb="",Hy=mt(Uy,[["__scopeId","data-v-6589e7fa"]]),Wy={class:"tabs"},qy=["onClick"],Zy={class:"content"},Qy=lt({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(n.initIndex),o=Jt([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),f=[],m=id(),d=m.default&&m.default();d&&(tr(o,d),_(i.value));const k=(y,p)=>{if(y){if(f.push({index:p,el:y}),f.length<o.length)return;h.value=f}};Mt([a,h],()=>{S()});function S(){if(a.value&&h.value.length){const y=a.value.getBoundingClientRect(),p=h.value[i.value].el.getBoundingClientRect();l.value=p.x-y.x,c.value=p.y-y.y+p.height-2,u.value=p.width}}function _(y){i.value=y,r("changedIndex",y),S(),C.value.goto(y)}const C=M();return Mt(C,()=>{C.value&&C.value.reset(n.pages,()=>{C.value.goto(n.initIndex)})}),t({}),(y,p)=>(F(),H("div",Wy,[P("div",{class:"header",ref_key:"headerRef",ref:a},[(F(!0),H($t,null,ge(n.labels,(x,b)=>(F(),H("div",{key:x,class:re(b==i.value?"active":""),onClick:z=>_(b)},[P("div",{ref_for:!0,ref:z=>k(z,b)},wt(x),513)],10,qy))),128)),P("div",{class:"indicator",style:Y({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),P("div",Zy,[dt(ki,{ref_key:"routesRef",ref:C},null,512)])]))}}),wb="",Ky=mt(Qy,[["__scopeId","data-v-cb33ca53"]]),Jy=["width","height"],t1=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 r=()=>{};const i=M();return Mt(i,()=>{if(!i.value)return;const o=new ms(i.value),a=new oh(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),r=()=>{ue.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>r()}),(o,a)=>(F(),H("canvas",{ref_key:"panelRef",ref:i,width:n.canvasWidth,height:n.canvasHeight,style:Y([`border: 1px solid ${o.borderColor}`])},null,12,Jy))}}),e1={class:"page-vertical-scroll-progress-bar"},s1=lt({customOptions:{ProgressBar:ur},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,r=e,i=M(),o=qm();return o.on(()=>{const a=Eg();r("progress",a),i.value?.goto(a)}),le(()=>{o.remove()}),t({}),(a,l)=>(F(),H("div",e1,[dt(ur,{ref_key:"bar",ref:i,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"])]))}}),Cb="",n1=mt(s1,[["__scopeId","data-v-3ea8cc5c"]]),r1=["fill"],i1=["fill"],o1=lt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:Y(["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,r1),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,i1)],4))}}),Sb="",Da=mt(o1,[["__scopeId","data-v-987aed3d"]]),Ra=s=>(Ln("data-v-85491020"),s=s(),$n(),s),a1=[Ra(()=>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)),Ra(()=>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)),Ra(()=>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))],l1=lt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:Y(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},a1,4))}}),Pb="",Ei=mt(l1,[["__scopeId","data-v-85491020"]]),c1=["data-number"],u1=["data-number","data-unactive"],h1=["data-number"],f1=["data-number","data-unactive"],d1=lt({customOptions:{Pop:Ve,SVGCleanUp:Ei,Container:Et},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=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],()=>{tr(a,n.initPlates),l()},{immediate:!0});const c=M(0),u=(y,p)=>{c.value=p},h=()=>{i.value.open(),r("open")},f=()=>{i.value.close(),r("close")},m=()=>{a.pop(),l(),r("plates",a)},d=y=>{if(y.target.dataset.unactive||"")return;let x=y.target.dataset.number;x&&(a.push(x),l(),r("plates",a))};t({open:h,close:f});const k=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],S=["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"],C=["港","澳","学","警","使","领","挂","应","急"];return(y,p)=>(F(),zt(Ve,{ref_key:"popRef",ref:i,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:Pt(()=>[dt(Et,{class:"popup-plate",style:Y({paddingBottom:Lt(Ot).safeAreaBottom}),onResize:u},{default:Pt(()=>[P("div",null,[P("div",{onClick:f},"关闭")]),P("div",{class:re(["step",o.value==0?"":"hide"])},[(F(),H($t,null,ge(k,x=>P("div",{key:x,class:"popitem",onClick:d,"data-number":x},wt(x),9,c1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[dt(Ei,{width:"16px"})])],2),P("div",{class:re(["step",o.value!=0?"":"hide"])},[(F(),H($t,null,ge(S,x=>P("div",{key:x,class:re(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":x,"data-unactive":o.value!=2?"unactive":""},wt(x),11,u1)),64)),(F(),H($t,null,ge(_,x=>P("div",{key:x,class:"popitem",onClick:d,"data-number":x},wt(x),9,h1)),64)),(F(),H($t,null,ge(C,x=>P("div",{key:x,class:re(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":x,"data-unactive":o.value!=2?"unactive":""},wt(x),11,f1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[dt(Ei,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),Ob="",lh=mt(d1,[["__scopeId","data-v-7865d42e"]]),p1=document.getElementById("teleport")||document.documentElement;function m1(s){{const t=hs(lh,s);return Mc(t,p1),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Pi=s=>(Ln("data-v-7f69a9fe"),s=s(),$n(),s),g1=Pi(()=>P("div",{class:"title"},"车牌颜色",-1)),y1={class:"plate-types"},v1=["onClick"],_1=Pi(()=>P("div",{class:"title"},"车牌号码",-1)),b1={class:"plate-numbers"},x1=Pi(()=>P("div",{class:"dot"},"·",-1)),w1=["onClick"],C1=Pi(()=>P("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),S1=lt({customOptions:{SVGCheck:Da},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=[{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(){m1({initPlates:a,completePlateLength:i[o.value].completePlateLength,onPlates:f=>{tr(a,f),l.value=a.length,a.length===i[o.value].completePlateLength&&r("complete",i[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=i[f].completePlateLength&&a.length<i[f].completePlateLength?(l.value=a.length,c(),r("clear")):tr(a,a.slice(0,i[f].completePlateLength)),i[f].completePlateLength===a.length&&r("complete",i[o.value].name,a.join(""))},h=f=>{tr(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),r("clear")};return t({}),(f,m)=>(F(),H("div",To(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[g1,P("div",y1,[(F(),H($t,null,ge(i,(d,k)=>P("div",{key:k,class:re(k==o.value?"checked":""),onClick:S=>u(k)},[P("div",{style:Y(d.style)},null,4),P("div",null,wt(d.name),1),P("div",null,[dt(Da,{color:"#ffffff",width:"0.14rem"})])],10,v1)),64))]),_1,P("div",b1,[P("div",{onClick:m[0]||(m[0]=d=>h(0)),class:re(l.value==0?"current":"")},wt(a[0]),3),P("div",{onClick:m[1]||(m[1]=d=>h(1)),class:re(l.value==1?"current":"")},wt(a[1]),3),x1,(F(!0),H($t,null,ge(i[o.value].completePlateLength-2,d=>(F(),H("div",{key:d,class:re(d+1==l.value?"current":""),onClick:k=>h(d+1)},wt(a[d+1]),11,w1))),128))]),C1],16))}}),Ib="",T1=mt(S1,[["__scopeId","data-v-7f69a9fe"]]),k1={class:"parent"},E1=lt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,r=[{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 i(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=r.filter(m=>m.name===h);return f.length?f[0]:o("未知")}const a=i(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",k1,[P("div",{class:re(["leading",n.displayType]),style:Y(l.value.style)},wt(l.value.name),7),P("div",{class:"text",style:Y({color:Lt(c),"font-size":Lt(u)})},wt(Lt(a)),5)]))}}),Db="",P1=mt(E1,[["__scopeId","data-v-11a104c3"]]),O1={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},I1=P("div",{style:{width:"100%",height:"100%",background:`linear-gradient(
|
|
82
|
+
`,m.value)}h=new ms(m.value,!1),h.on("resize",(k,_)=>{r("resize",k,_,m.value.getBoundingClientRect()),f?.(h),u||(u=!0,n.effectTriggerTiming!=="manual"&&o(),r("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&&Gu(ft.getInnerText(m.value)).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:()=>i,startEffect:o,endEffect:a,nextEffect:l,repeatEffect:c}),(k,_)=>(F(),H("div",{class:re(["container",[n.type]]),ref_key:"containerRef",ref:m,style:Y({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[kt(k.$slots,"default")],6))}}),X0={class:"input-range-box"},j0={key:0,class:"label"},U0=lt({customOptions:{Container:Et},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:Ls.inputColor},barColor:{default:Ls.numberColor},barHeight:{default:"20px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(n.defaultValue),o=()=>we(_u(n.min,n.max,n.step)(i.value),2),a=()=>we((i.value-n.min)/(n.max-n.min),4)*100;i.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();i.value=we(Pm(d,S.left,S.right,n.min,n.max),2),i.value=o(),l.value=a(),r("change",i.value)};f.captureDrag({start:d=>{m(d.clientX)},move:d=>{m(d.clientX)}})}return le(()=>{}),t({}),(f,m)=>(F(),H("div",X0,[P("div",{class:"box",style:Y({height:n.barHeight,cursor:"ew-resize"})},[dt(Et,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:h},{default:Pt(()=>[P("div",{class:"background",style:Y({backgroundColor:n.bgColor,width:"100%",height:"100%"})},null,4),P("div",{class:"foreground",style:Y({backgroundColor:n.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),kt(f.$slots,"default",{value:i.value},()=>[f.showValue?(F(),H("label",j0,wt(i.value)+wt(n.unit),1)):Bt("",!0)],!0)]))}}),rb="",H0=mt(U0,[["__scopeId","data-v-ae6ae9c6"]]),cr=lt({customOptions:{Container:Et},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,r=e,i=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":i.overflow="visible";break;default:i.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=z=>{i.perspective=n.perspective,z.on("animationstart",ct=>{r("cssanimationstart",ct.animationName)}),z.on("animationend",ct=>{r("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:z=>{z&&(a=z,m()),d.value.startEffect(),f="normal",d.value.endEffect()},triggerReverse:z=>{z&&(a=z,m()),d.value.startEffect(),f="reverse",d.value.endEffect()},clear:()=>{o.animation="none"}}),(z,ct)=>(F(),zt(Et,{class:"css-animation",ref_key:"containerRef",ref:d,type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,style:Y(i),onReady:k,onStart:x,onEnd:y},{default:Pt(()=>[P("div",{class:"css-animation-inner",ref_key:"animationRef",ref:S,style:Y({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[kt(z.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),ib="",W0={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},q0=lt({customOptions:{CSSAnimation:cr},__name:"Status",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const n=s;let r="";switch(n.status){case"wait":r="#d9d9d9";break;case"success":r="#52c41a";break;case"error":r="#ff4d4f";break;case"processing":default:r="#1677ff";break}return n.color&&(r=n.color),t({}),(i,o)=>(F(),H("div",W0,[i.status==="processing"?(F(),zt(cr,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:Pt(()=>[P("div",{style:Y({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Lt(r)})},null,4)]),_:1})):Bt("",!0),P("div",{style:Y({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Lt(r)})},null,4)]))}}),Z0=lt({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(),o=M(!1);function a(){o.value=!0}function l(){o.value=!1}function c(h){h.preventDefault()}function u(h){h.preventDefault(),r("yz-drop",h.dataTransfer.files),l()}return le(()=>{}),t({}),(h,f)=>(F(),H("div",{class:re(["input-file-drop",[o.value?"over":""]]),ref_key:"zone",ref:i,onDragenter:a,onDragleave:l,onDragover:c,onDrop:u},[kt(h.$slots,"default",{},()=>[Kt(wt(n.placeholder),1)],!0)],34))}}),ob="",Q0=mt(Z0,[["__scopeId","data-v-b0f06804"]]),K0=["width","height"],J0=["fill"],ty=lt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Ot.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,J0)],8,K0))}}),ab="",ka=mt(ty,[["__scopeId","data-v-4747d4a7"]]),ey=lt({customOptions:{SVGDelete:ka},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Ot.colorGrayFF},deleteColor:{default:Ot.colorRed},fontColor:{default:Ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(!1),o=()=>{r("delete"),i.value=!1};let a;const l=M();return Mt(l,()=>{l.value&&(a=new ms(l.value),a.on("panLeft",()=>{i.value=!0}),a.on("panRight",()=>{i.value=!1}),a.on("tapOutSide",()=>{i.value=!1}))}),le(()=>{a?.destroy()}),t({}),(c,u)=>(F(),H("div",{class:"parent",ref_key:"item",ref:l,style:Y({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[P("div",{class:"content",style:Y({transition:"all ease-in "+n.transtionDuration,transform:i.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[kt(c.$slots,"default",{},void 0,!0)],4),P("div",{class:"delete",onClick:o,style:Y({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:i.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[dt(ka,{color:n.fontColor},null,8,["color"])],4)],4))}}),lb="",sy=mt(ey,[["__scopeId","data-v-244215c2"]]),ny=lt({customOptions:{Container:Et,SVGDown:ar},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,r=e,i=(h,f)=>{r("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?r("open"):r("close")}const u=M(0);return Vl(()=>{u.value=l.value?0:-90}),t({}),(h,f)=>(F(),zt(Et,{onResize:i},{default:Pt(()=>[P("div",{class:"accordion",style:Y({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[P("div",{class:"accordion-title",onClick:c,style:Y({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}`})},[kt(h.$slots,"title",{},()=>[Kt("title")],!0),dt(ar,{class:"arrow",style:Y({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:Y({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[kt(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),cb="",ry=mt(ny,[["__scopeId","data-v-6c9d636f"]]),iy=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,r=M(0);function i(o){r.value=Math.min(Math.max(0,o),100)}return t({goto:i}),(o,a)=>(F(),H("div",{class:"bar",style:Y({border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[P("div",{class:"bar-inner",style:Y({width:r.value+"%",backgroundColor:n.progressColor})},wt(n.showText?r.value+"%":""),5)],4))}}),ub="",ur=mt(iy,[["__scopeId","data-v-d986b312"]]),oy=["width","height"],ay=["src","type"],ly={class:"video-progress-bar"},cy=lt({customOptions:{ProgressBar:ur},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,r=e;let i;function o(h){if(i){i.resume();return}i=new He({frameDuration:this.duration*1e3}),i.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{r("start"),l.value?.goto(0)},onUpdate:f=>{l.value?.goto(f.x)},onComplete:()=>{r("complete"),i=null}}),i.play()}const a=M(),l=M();Mt(a,()=>{a.value&&(a.value.addEventListener("play",o),n.autoplay&&ya.tryAutoPlayOrAutoPlayAfterClick(a.value))}),le(()=>{a.value?.removeEventListener(o)});function c(){a.value?.play()}function u(){a.value?.pause(),i?.pause()}return t({play:c,pause:u}),(h,f)=>(F(),H("div",{class:"video",style:Y({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,ay)],8,oy),P("div",ly,[dt(ur,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),hb="",uy=mt(cy,[["__scopeId","data-v-5f48bfae"]]),Sn=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,r=M(),i=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=i,document.body.style.overflow=o):r.value&&(n.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(a,l)=>n.visible?(F(),H("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:Y([`background-color: ${n.color}`,`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[kt(a.$slots,"default")],4)):Bt("",!0)}}),hy=P("div",null,null,-1),Ve=lt({customOptions:{Overlay:Sn,Container:Et},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,r=e,i=new He({frameDuration:n.dur}),o=Jt({backgroundColor:n.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),a=M("full");Mt(()=>[n.directionFrom,n.popValue],()=>{i.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,i.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,i.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,i.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,i.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,i.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,_)=>{r("resize",S,k,_)};let c="open";function u(){c=="open"?r("open"):(h.value=!1,r("close"))}const h=M(!1);function f(){h.value=!0,c="open",i.play()}function m(){switch(c="close",n.directionFrom){case"absolute":u();break;default:i.reverse();break}}function d(S){const k=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";S.target&&Bu(S.target,k)&&(n.closeWhenClickOverlay&&m(),r("clickOverlay"))}return t({open:f,close:m}),(S,k)=>(F(),zt(Sn,{visible:h.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:Pt(()=>[P("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:d},[dt(Et,{class:"pop-content",type:a.value,style:Y(o),onResize:l},{default:Pt(()=>[kt(S.$slots,"default",{},()=>[hy])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),fy=lt({...{},name:"Image",customOptions:{Container:Et,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,r=e,i=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);Rg(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=th(n.mode,d.value,S.value,k.value,_.value);y.value=D.width,p.value=D.height;const{width:L,height:X}=ga(),rt=th("aspectFit",d.value,S.value,L,X);f.value=rt.width,m.value=rt.height,u.value=(L-f.value)/2,h.value=(X-m.value)/2}const b=(D,L,X)=>{r("settled",X.x,X.y,X.width,X.height)};let z=!1;const ct=M(),O=M();async function R(){if(!n.openImageDetailWhenClick)return;const D=await ct.value.getSize();i.clear(),i.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(){z&&O.value.close(),z=!z}}),z||(O.value.open(),i.play())}function A(){z&&i.reverse()}return t({}),(D,L)=>(F(),zt(Et,{class:"image",type:"full",style:Y({backgroundColor:n.bgColor}),onResize:x,onClick:R},{default:Pt(()=>[dt(Et,{class:"image-inner",ref_key:"imageRef",ref:ct,type:"shrink",style:Y({width:y.value+"px",height:p.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${y.value}px ${p.value}px`}),onResize:b},null,8,["style"]),dt(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:Pt(()=>[P("div",{class:"image-pop",style:Y({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"]))}}),db="",Ea=mt(fy,[["__scopeId","data-v-48bcfc9f"]]),Pa=lt({customOptions:{Container:Et,CSSAnimation:cr},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,r=e,i=M(),o=Jt({}),a=()=>{r("ready",b,z)},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:()=>{r(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:()=>{r(m?"pageCloseEnd":"pageOpenEnd")}})})};Mt(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{h=n.effect,S()},{immediate:!0});const k=()=>{r(m?"pageCloseStart":"pageOpenStart")},_=()=>{r(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(),i.value.startEffect()},z=ct=>{ct&&(h=ct,S()),m=!0,w(),i.value.endEffect()};return t({open:b,close:z,clear:p,getElement:()=>i.value.getElement()}),(ct,O)=>(F(),zt(Et,{class:"page",ref_key:"pageRef",ref:i,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onResize:l,onStart:x,onEnd:y},{default:Pt(()=>[dt(cr,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:k,onCssanimationend:_},{default:Pt(()=>[P("div",{class:"page-inner",style:Y({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[kt(ct.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),ki=lt({customOptions:{Page:Pa,Container:Et},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,r=e;let i=-1,o=-1,a;const l=[];let c=[],u=[],h=[];function f(Z){return Z>=0&&Z<c.length}function m(){return o>i}function d(Z,V,Qt){switch(Z){case i: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 i: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 i: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 z=2,ct=2;const O=()=>{z=2,ct=2},R=()=>{z=2,ct=3},A=()=>{z=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(i)&&i==Z&&(h[i].style.zIndex=`${z}`,h[i].style.visibility="visible"),f(o)&&o==Z&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible")}function L(Z){R(),Z==i&&(h[i].style.zIndex=`${z}`,h[i].style.visibility="hidden"),Z==o&&(h[o].style.zIndex=`${ct}`,h[o].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",i,o,c.length),i=o)}const X=M();function rt(Z=0,V=!1){if(!X.value)return;let Qt=0;Mc(hs("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((te,It)=>{const ee=S(n.effect,It);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:i==It?"visible":"hidden",zIndex:V?"1":"0"}},te.pageKey?{key:te.pageKey}:{}),hs(Pa,{effect:ee,duration:_(n.effect,It),easeFunction:p(n.effect,It),timingFunction:x,delay:b(n.effect,It),onReady:(Yt,G)=>{u[It]={open:Yt,close:G},++Qt==Z&&(a?.(),r("renderComplete"))},onPageOpenStart:()=>{D(It)},onPageOpenEnd:()=>{L(It)},onPageCloseStart:()=>{D(It)},onPageCloseEnd:()=>{L(It)}},{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,()=>{rt()});function K(Z=[]){c=[...Z],c.forEach(V=>{V.pageKey=V.pageKey||oi()}),a=()=>{i=-1,gt(0)},rt(c.length,!0)}function W(Z){Z.pageKey=Z.pageKey||oi(),c.push(Z),a=()=>{gt(c.length-1)},rt(1,c.length==1)}function nt(){c.length<=1||gt(c.length-2,()=>{c.splice(c.length-1,1),i=c.length-1,rt()})}function B(){gt(i+1)}function j(){gt(i-1)}const yt=new Zo(1);function gt(Z,V){yt.addTask(()=>new Promise(Qt=>{const te=()=>{V?.(),Qt()};if(!f(Z)){te();return}if(o=Z,o==i){te();return}l.push(te),rt(),r("routeChangeStart",i,o,c.length),m()?(f(i)&&u[i].open(),f(o)&&u[o].open()):(f(i)&&u[i].close(),f(o)&&u[o].close())}))}return t({reset:K,push:W,pop:nt,forward:B,back:j,goto:gt,currentPageIndex:()=>i,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))}}),dy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},py=lt({customOptions:{Image:Ea,Container:Et,Routes:ki},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const n=s,r=M(0);function i(f,m){r.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(Ea,{mode:"aspectFit",src:m,openImageDetailWhenClick:!1})})))},l=M();function c(){l.value?.open()}function u(){l.value?.close()}const h=f=>{f.target&&Bu(f.target,"image")&&u()};return t({open:c,close:u}),(f,m)=>(F(),zt(Ve,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:Pt(()=>[n.urls.length>1?(F(),H("div",dy,wt(r.value+1)+" / "+wt(n.urls.length),1)):Bt("",!0),dt(Et,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:Pt(()=>[dt(ki,{ref_key:"routesRef",ref:o,effect:n.effect,onRouteChangeEnd:i},null,8,["effect"])]),_:1})]),_:1},512))}}),pb="",my={class:"page"},gy={class:"header"},yy={class:"main"},vy={class:"main-scroll"},_y={class:"footer"},by=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return Ig(s.designWidth),t({}),(r,i)=>(F(),H("div",my,[P("header",gy,[kt(r.$slots,"header",{},void 0,!0)]),P("div",yy,[P("div",vy,[kt(r.$slots,"main",{},void 0,!0)])]),P("footer",_y,[kt(r.$slots,"footer",{},void 0,!0)])]))}}),mb="",xy=mt(by,[["__scopeId","data-v-3904d6b5"]]),wy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,r=Jt({}),i=Jt({});function o(){switch(gu(r),gu(i),n.type){case"table":r.display="table",i.display="table-cell",i.verticalAlign="middle",i.textAlign="center";break;case"transform":i.position="absolute",i.top="50%",i.left="50%",i.transform="translate(-50%, -50%)";break;case"grid":r.display="grid",r.justifyContent="center",r.alignItems="center";break;case"flex":default:r.display="flex",i.margin="auto"}}return o(),le(()=>{}),t({}),(a,l)=>(F(),H("div",{class:"layout-center",style:Y(r)},[P("div",{style:Y(i)},[kt(a.$slots,"default",{},void 0,!0)],4)],4))}}),gb="",Cy=mt(wy,[["__scopeId","data-v-37646611"]]),Sy=P("div",{style:{"background-color":"#ffffff"}},"...",-1),Oa=lt({customOptions:{Pop:Ve,Button:ve,Container:Et},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 r(){n.value.open()}function i(){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=ga(),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:r,close:i}),(f,m)=>(F(),H($t,null,[P("div",{ref_key:"popoverButtonRef",ref:o,class:"popover-button",style:{display:"inline-block"},onClick:r},[kt(f.$slots,"button",{},()=>[dt(ve,null,{default:Pt(()=>[Kt("popover")]),_:1})])],512),dt(Ve,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:Pt(()=>[P("div",{style:Y({position:"absolute",left:a.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[dt(Et,{type:"shrink",onResize:h},{default:Pt(()=>[kt(f.$slots,"panel",{},()=>[Sy])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),Ty={class:"dialog-parent"},ky={key:0,class:"title"},Ey={key:0,class:"title-inner truncate"},Py={class:"custom-content"},Oy={class:"custom-content-default"},Iy={key:1,class:"btns"},Dy=lt({customOptions:{Overlay:Sn,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,r=e,i=M(),o=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,f,m;const d=()=>{r("open")},S=()=>{h?.(),r("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,i.value.open()}function _(){i.value.close()}function x(){_(),f?.(),r("cancel")}function y(){_(),m?.(),r("confirm")}return t({open:k,close:_}),(p,w)=>(F(),zt(Ve,{ref_key:"popRef",ref:i,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:n.overlayBgColor,onOpen:d,onClose:S},{default:Pt(()=>[P("div",Ty,[P("div",{class:"dialog",style:Y({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(F(),H("div",ky,[o.value?(F(),H("div",Ey,wt(o.value),1)):Bt("",!0),l.value?(F(),H("div",{key:1,class:"close",onClick:_},[dt(on,{icon:"ic:baseline-close",color:Lt(Ot).colorGrayCC},null,8,["color"])])):Bt("",!0)])):Bt("",!0),P("div",Py,[kt(p.$slots,"default",{},()=>[P("div",Oy,wt(a.value),1)],!0)]),c.value||u.value?(F(),H("div",Iy,[c.value?(F(),zt(ve,{key:0,onClick:x,class:"btn",bgColor:Lt(Ot).colorGrayE6,borderColor:Lt(Ot).colorGrayE6,fontColor:Lt(Ot).colorGray33,borderRadius:"0"},{default:Pt(()=>[Kt(wt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Bt("",!0),u.value?(F(),zt(ve,{key:1,onClick:y,class:"btn",borderRadius:"0"},{default:Pt(()=>[Kt(wt(u.value),1)]),_:1})):Bt("",!0)])):Bt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),yb="",hr=mt(Dy,[["__scopeId","data-v-f9df8635"]]),Ry={class:"loading-8"},Ay={viewBox:"25 25 50 50"},My=lt({__name:"Loading8",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("div",Ry,[(F(),H("svg",Ay,[P("circle",{cx:"50",cy:"50",r:"20",style:Y(["stroke: "+t.color])},null,4)]))]))}}),vb="",Ia=mt(My,[["__scopeId","data-v-e5e3cf4c"]]),Ny={class:"loading"},Fy={class:"icon"},Ly={style:{width:"8em"}},$y={key:0,class:"content"},Vy=lt({customOptions:{Overlay:Sn,Pop:Ve,Dialog:hr,Loading8:Ia},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,r=e,i=M(),o=M(""),a=()=>{r("open")},l=()=>{r("close")};function c(h){o.value=h||"",i.value.open()}function u(){i.value.close()}return t({open:c,close:u}),(h,f)=>(F(),zt(hr,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,onOpen:a,onClose:l},{default:Pt(()=>[P("div",Ny,[P("div",Fy,[kt(h.$slots,"default",{},()=>[P("div",Ly,[dt(Ia)])],!0)]),o.value?(F(),H("div",$y,wt(o.value),1)):Bt("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),_b="",Yy=mt(Vy,[["__scopeId","data-v-e707960a"]]),zy={class:"toast"},By={class:"content"},Gy=lt({customOptions:{Overlay:Sn,Pop:Ve,Dialog:hr},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,r=e,i=M(),o=M(""),a=()=>{r("open")},l=()=>{r("close")};function c(h,f=1500){o.value=h,i.value.open(),setTimeout(()=>{u()},f)}function u(){i.value.close()}return t({open:c,close:u}),(h,f)=>(F(),zt(hr,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:a,onClose:l},{default:Pt(()=>[P("div",zy,[P("div",By,wt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),bb="",Xy=mt(Gy,[["__scopeId","data-v-7a82fa25"]]),jy={class:"tab"},Uy=lt({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(F(),H("div",jy,[kt(e.$slots,"default",{},void 0,!0)]))}}),xb="",Hy=mt(Uy,[["__scopeId","data-v-6589e7fa"]]),Wy={class:"tabs"},qy=["onClick"],Zy={class:"content"},Qy=lt({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(n.initIndex),o=Jt([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),f=[],m=id(),d=m.default&&m.default();d&&(tr(o,d),_(i.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[i.value].el.getBoundingClientRect();l.value=p.x-y.x,c.value=p.y-y.y+p.height-2,u.value=p.width}}function _(y){i.value=y,r("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",Wy,[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:re(b==i.value?"active":""),onClick:z=>_(b)},[P("div",{ref_for:!0,ref:z=>S(z,b)},wt(w),513)],10,qy))),128)),P("div",{class:"indicator",style:Y({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),P("div",Zy,[dt(ki,{ref_key:"routesRef",ref:x},null,512)])]))}}),wb="",Ky=mt(Qy,[["__scopeId","data-v-cb33ca53"]]),Jy=["width","height"],t1=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 r=()=>{};const i=M();return Mt(i,()=>{if(!i.value)return;const o=new ms(i.value),a=new oh(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),r=()=>{ue.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>r()}),(o,a)=>(F(),H("canvas",{ref_key:"panelRef",ref:i,width:n.canvasWidth,height:n.canvasHeight,style:Y([`border: 1px solid ${o.borderColor}`])},null,12,Jy))}}),e1={class:"page-vertical-scroll-progress-bar"},s1=lt({customOptions:{ProgressBar:ur},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,r=e,i=M(),o=qm();return o.on(()=>{const a=Eg();r("progress",a),i.value?.goto(a)}),le(()=>{o.remove()}),t({}),(a,l)=>(F(),H("div",e1,[dt(ur,{ref_key:"bar",ref:i,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"])]))}}),Cb="",n1=mt(s1,[["__scopeId","data-v-3ea8cc5c"]]),r1=["fill"],i1=["fill"],o1=lt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:Y(["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,r1),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,i1)],4))}}),Sb="",Da=mt(o1,[["__scopeId","data-v-987aed3d"]]),Ra=s=>(Ln("data-v-85491020"),s=s(),$n(),s),a1=[Ra(()=>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)),Ra(()=>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)),Ra(()=>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))],l1=lt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:Y(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},a1,4))}}),Pb="",Ei=mt(l1,[["__scopeId","data-v-85491020"]]),c1=["data-number"],u1=["data-number","data-unactive"],h1=["data-number"],f1=["data-number","data-unactive"],d1=lt({customOptions:{Pop:Ve,SVGCleanUp:Ei,Container:Et},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=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],()=>{tr(a,n.initPlates),l()},{immediate:!0});const c=M(0),u=(y,p)=>{c.value=p},h=()=>{i.value.open(),r("open")},f=()=>{i.value.close(),r("close")},m=()=>{a.pop(),l(),r("plates",a)},d=y=>{if(y.target.dataset.unactive||"")return;let w=y.target.dataset.number;w&&(a.push(w),l(),r("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(),zt(Ve,{ref_key:"popRef",ref:i,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:Pt(()=>[dt(Et,{class:"popup-plate",style:Y({paddingBottom:Lt(Ot).safeAreaBottom}),onResize:u},{default:Pt(()=>[P("div",null,[P("div",{onClick:f},"关闭")]),P("div",{class:re(["step",o.value==0?"":"hide"])},[(F(),H($t,null,ge(S,w=>P("div",{key:w,class:"popitem",onClick:d,"data-number":w},wt(w),9,c1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[dt(Ei,{width:"16px"})])],2),P("div",{class:re(["step",o.value!=0?"":"hide"])},[(F(),H($t,null,ge(k,w=>P("div",{key:w,class:re(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":w,"data-unactive":o.value!=2?"unactive":""},wt(w),11,u1)),64)),(F(),H($t,null,ge(_,w=>P("div",{key:w,class:"popitem",onClick:d,"data-number":w},wt(w),9,h1)),64)),(F(),H($t,null,ge(x,w=>P("div",{key:w,class:re(["popitem",o.value!=2?"unactive":""]),onClick:d,"data-number":w,"data-unactive":o.value!=2?"unactive":""},wt(w),11,f1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[dt(Ei,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),Ob="",lh=mt(d1,[["__scopeId","data-v-7865d42e"]]),p1=document.getElementById("teleport")||document.documentElement;function m1(s){{const t=hs(lh,s);return Mc(t,p1),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Pi=s=>(Ln("data-v-7f69a9fe"),s=s(),$n(),s),g1=Pi(()=>P("div",{class:"title"},"车牌颜色",-1)),y1={class:"plate-types"},v1=["onClick"],_1=Pi(()=>P("div",{class:"title"},"车牌号码",-1)),b1={class:"plate-numbers"},x1=Pi(()=>P("div",{class:"dot"},"·",-1)),w1=["onClick"],C1=Pi(()=>P("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),S1=lt({customOptions:{SVGCheck:Da},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=[{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(){m1({initPlates:a,completePlateLength:i[o.value].completePlateLength,onPlates:f=>{tr(a,f),l.value=a.length,a.length===i[o.value].completePlateLength&&r("complete",i[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=i[f].completePlateLength&&a.length<i[f].completePlateLength?(l.value=a.length,c(),r("clear")):tr(a,a.slice(0,i[f].completePlateLength)),i[f].completePlateLength===a.length&&r("complete",i[o.value].name,a.join(""))},h=f=>{tr(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),r("clear")};return t({}),(f,m)=>(F(),H("div",To(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[g1,P("div",y1,[(F(),H($t,null,ge(i,(d,S)=>P("div",{key:S,class:re(S==o.value?"checked":""),onClick:k=>u(S)},[P("div",{style:Y(d.style)},null,4),P("div",null,wt(d.name),1),P("div",null,[dt(Da,{color:"#ffffff",width:"0.14rem"})])],10,v1)),64))]),_1,P("div",b1,[P("div",{onClick:m[0]||(m[0]=d=>h(0)),class:re(l.value==0?"current":"")},wt(a[0]),3),P("div",{onClick:m[1]||(m[1]=d=>h(1)),class:re(l.value==1?"current":"")},wt(a[1]),3),x1,(F(!0),H($t,null,ge(i[o.value].completePlateLength-2,d=>(F(),H("div",{key:d,class:re(d+1==l.value?"current":""),onClick:S=>h(d+1)},wt(a[d+1]),11,w1))),128))]),C1],16))}}),Ib="",T1=mt(S1,[["__scopeId","data-v-7f69a9fe"]]),k1={class:"parent"},E1=lt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,r=[{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 i(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=r.filter(m=>m.name===h);return f.length?f[0]:o("未知")}const a=i(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",k1,[P("div",{class:re(["leading",n.displayType]),style:Y(l.value.style)},wt(l.value.name),7),P("div",{class:"text",style:Y({color:Lt(c),"font-size":Lt(u)})},wt(Lt(a)),5)]))}}),Db="",P1=mt(E1,[["__scopeId","data-v-11a104c3"]]),O1={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},I1=P("div",{style:{width:"100%",height:"100%",background:`linear-gradient(
|
|
83
83
|
to bottom,
|
|
84
84
|
rgba(0, 0, 0, 0) 0%,
|
|
85
85
|
rgb(0, 0, 0) 100%
|
|
@@ -92,11 +92,11 @@ Component that was made reactive: `,s)),P(s,t,e,n,r,o,i,!0)}function Nd(s){retur
|
|
|
92
92
|
rgb(0, 255, 0) 67%,
|
|
93
93
|
rgb(255, 255, 0) 84%,
|
|
94
94
|
rgb(255, 0, 0) 100%
|
|
95
|
-
)`,"box-sizing":"border-box"}},R1=lt({customOptions:{Popover:Oa,Container:Et},__name:"ColorPicker",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(),o=new Ct(n.color),a=new Ct(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
|
|
95
|
+
)`,"box-sizing":"border-box"}},R1=lt({customOptions:{Popover:Oa,Container:Et},__name:"ColorPicker",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=M(),o=new Ct(n.color),a=new Ct(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:()=>{r("change",l.value),i.value.close(),Gu(l.value).then(()=>{})}})};return t({setColor:S}),(x,y)=>(F(),zt(Oa,{ref_key:"popover",ref:i,closeWhenClickOverlay:!1},{button:Pt(()=>[kt(x.$slots,"default",{},()=>[P("span",{style:Y([{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}])},wt(l.value),5)])]),panel:Pt(()=>[P("div",O1,[P("div",{class:"saturation-field",style:Y([{position:"relative",width:"100px",height:"100px",display:"inline-block",cursor:"pointer","box-sizing":"border-box"},{background:`linear-gradient(
|
|
96
96
|
to right,
|
|
97
97
|
rgb(255, 255, 255) 0%,
|
|
98
98
|
${u.value} 100%
|
|
99
|
-
)`}])},[dt(Et,{type:"full",onReady:_},{default:Pt(()=>[I1,P("div",{class:"field-knob",style:Y([{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",D1,[dt(Et,{type:"full",onReady:S},{default:Pt(()=>[P("div",{class:"hue-knob",style:Y([{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))}}),Rb="",A1={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",ta&&this.$el.appendChild(s),s.data="about:blank",ta||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&&(!ta&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},M1={class:"resize-observer",tabindex:"-1"};function N1(s,t,e,n,r,i){return F(),H("div",M1)}const F1=mt(A1,[["render",N1],["__scopeId","data-v-d5987ae1"]]),L1=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,r=M(n.mapWidth),i=M(n.mapHeight);let o;const a=M();return Mt(a,()=>{a.value&&(o=new ms(a.value,!1),o.on("resize",(l,c)=>{r.value=l+"px",i.value=c+"px"}),o.start())}),Ks(()=>{Qm(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Hg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),le(()=>{o.destroy()}),t({}),(l,c)=>(F(),H("div",To({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[kt(l.$slots,"default",{width:r.value,height:i.value},void 0,!0)],16))}}),Ab="",$1=mt(L1,[["__scopeId","data-v-e3445186"]]);var fr=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 r=(performance||Date).now(),i=r,o=0,a=e(new fr.Panel("FPS","#0ff","#002")),l=e(new fr.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new fr.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){r=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-r,200),u>i+1e3&&(a.update(o*1e3/(u-i),100),i=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:t,setMode:n}};fr.Panel=function(s,t,e){var n=1/0,r=0,i=Math.round,o=i(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,k=document.createElement("canvas");k.width=a,k.height=l,k.style.cssText="width:80px;height:48px";var S=k.getContext("2d");return S.font="bold "+9*o+"px Helvetica,Arial,sans-serif",S.textBaseline="top",S.fillStyle=e,S.fillRect(0,0,a,l),S.fillStyle=t,S.fillText(s,c,u),S.fillRect(h,f,m,d),S.fillStyle=e,S.globalAlpha=.9,S.fillRect(h,f,m,d),{dom:k,update:function(_,C){n=Math.min(n,_),r=Math.max(r,_),S.fillStyle=e,S.globalAlpha=1,S.fillRect(0,0,a,f),S.fillStyle=t,S.fillText(i(_)+" "+s+" ("+i(n)+"-"+i(r)+")",c,u),S.drawImage(k,h+o,f,m-o,d,h,f,m-o,d),S.fillRect(h+m-o,f,o,d),S.fillStyle=e,S.globalAlpha=.9,S.fillRect(h+m-o,f,o,i((1-_/C)*d))}}};const V1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=M();return Ks(()=>{const n=new fr;n.domElement.style.margin="1em",e.value.appendChild(n.domElement),Zt(()=>(n.update(),!0))}),t({}),(n,r)=>(F(),H("div",{ref_key:"containerRef",ref:e},null,512))}}),Y1={class:"ease-graph"},z1=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,r=e,i=M();let o;Mt(i,()=>{i.value&&i.value.getCanvas().then(u=>{o=u,r("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,r("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:bt.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:()=>{r("onCompleted",n.easeName),a=!1}}),m.play()},c=()=>{r("onSelected",n.easeName,n.easeFunction)};return le(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(F(),H("div",Y1,[P("div",null,"缓动:"+wt(u.easeName),1),P("div",null,[P("div",null,[dt(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Pt(()=>[Kt(" 开始 ")]),_:1})]),P("div",null,[dt(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Pt(()=>[Kt(" 选择 ")]),_:1},8,["stylePattern"])])]),P("div",{style:Y({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[dt(ns,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),Nb="",Aa=mt(z1,[["__scopeId","data-v-e8afe7ba"]]),B1=2e3,G1=lt({customOptions:{EaseGraphDisplay:Aa},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:bt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:bt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:bt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:bt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:bt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:bt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:bt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:bt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:bt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:bt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:bt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:bt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:bt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:bt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:bt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:bt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:bt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:bt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:bt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:bt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:bt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:bt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:bt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:bt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:bt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:bt.Easing.Back.In},{easeName:"BackOut",easeFunction:bt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:bt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:bt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:bt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:bt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:bt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:bt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:bt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:bt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:bt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:bt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:bt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:bt.Easing.swing},{easeName:"causeSeizures",easeFunction:bt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,r=e,i={};function o(f,m){f&&(i[m]={el:f})}const a=new Zo(10);function l(f){a.addTask(()=>(i[f].el.start(),new Promise(m=>{i[f].resolve=m})))}function c(f){i[f].resolve?.()}const u=M("Linear");function h(f,m){u.value=f,r("selectedEaseFunction",f,m)}return h("Linear",bt.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(),zt(Aa,{key:0,easeName:d.easeName,easeFunction:d.easeFunction,easeDuration:B1,isSelected:u.value==d.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:k=>o(k,d.easeName)},null,8,["easeName","easeFunction","isSelected"])):Bt("",!0)]))),128))]))}}),Fb="",X1=mt(G1,[["__scopeId","data-v-fa7ba01d"]]),j1={class:"interpolation-graph"},ch=1/6,uh=5/6,U1=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,r=e,i=M();let o;Mt(i,()=>{i.value&&i.value.getCanvas().then(k=>{o=k,r("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,r("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 k=0;k<c.length;k++)o.ctx.fillRect(c[k]-2,u[k]-2,4,4);const S=new He({frameDuration:n.interpolationDuration});S.addTween({x:a,y:l,old:{x:a,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:bt.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:()=>{}}),S.addTween({x:a,y:l,old:{x:a,y:l}},{x:h,y:f},{frames:1,delay:0,easeFunction:bt.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:()=>{r("onCompleted",n.interpolationName),m=!1}}),S.play()};return le(()=>{o.app.off("showInParent",d)}),t({start:d}),(k,S)=>(F(),H("div",j1,[P("div",null,[Kt(" 插值:"+wt(k.interpolationName)+" ",1),dt(ve,{stylePattern:"outline",height:"32px",onClick:d},{default:Pt(()=>[Kt(" 开始 ")]),_:1})]),P("div",{style:Y({width:k.canvasWidth+"px",height:k.canvasHeight+"px"})},[dt(ns,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),Lb="",Ma=mt(U1,[["__scopeId","data-v-17bd4dde"]]),H1=2e3,W1=lt({customOptions:{InterpolationGraphDisplay:Ma},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:bt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:bt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:bt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,r={};function i(c,u){c&&(r[u]={el:c})}const o=new Zo(1);function a(c){o.addTask(()=>(r[c].el.start(),new Promise(u=>{r[c].resolve=u})))}function l(c){r[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"},[dt(Ma,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:H1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>i(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),$b="",q1=mt(W1,[["__scopeId","data-v-6e8312e3"]]),Z1=lt({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,r=e;let i,o,a;const l=M();Mt(l,()=>{i||!l.value||(i=new ms(l.value,!1),i.on("resize",(u,h)=>{r("resize",u,h),o=new Ng(i),a?.(o),r("ready",o)}),i.start())});function c(){return new Promise(u=>{if(o)return u(o);a=u})}return le(()=>{i?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(F(),H("div",{class:"svg",ref_key:"svgRef",ref:l,style:Y({backgroundColor:n.bgColor})},null,4))}}),Vb="",hh=mt(Z1,[["__scopeId","data-v-132e642b"]]),Q1='<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>',K1={class:"btns"},J1={class:"btns"},tv={class:"btns sub-btns"},ev={class:"btns sub-btns"},sv={style:{width:"100%"}},nv={style:{width:"100%"}},rv={style:{height:"400px"}},iv={style:{height:"400px"}},ov=lt({customOptions:{Button:ve,InputRange:Ls,SVG:hh,Canvas:ns},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:bt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=M();let r=0,i=0;Mt(n,()=>{n.value&&n.value.getSVG().then(O=>{r=O.app.width,i=O.app.height,O.app.on("resize",(R,A)=>{r=R,i=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":z();break}}const m=new Fg({svg:Q1,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"}),k=+d.getTotalLength().toFixed(0),S=M(k),_=M(Math.floor(k/2));function C(O){S.value=O,d.setAttr("strokeDasharray",`${S.value} ${S.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 Cn({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Ct.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,r-100),D=jt(0,i-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 rt=L.intersection(X),K=new Wt({x:0,y:0,radius:10,attrs:{fill:Ct.random().toString()}});rt&&(K.x=rt.x,K.y=rt.y);const W=new Ci({x:jt(0,r),y:jt(0,i),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new ye({x:jt(0,r),y:jt(0,i),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Lg({x:jt(0,r),y:jt(0,i),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),j=new $g({x:jt(0,r),y:jt(0,i),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),yt=new Vg({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),gt=new wa({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new Yg({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new zg({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),Qt=new Bg({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Ct.random().toString(),fill:"none"},enableDrag:!0}),te=new jg({x:jt(0,r),y:jt(0,i),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),It=new Cn({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),ee=new rh({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ee.on("change",Ae=>{console.log(`slider change: ${Ae}`)});const Yt=new Ca({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ct.random().toString(),enableDrag:!0}),G=new ih({x:jt(0,r),y:jt(0,i),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),Fe=new sh({x:jt(0,r),y:jt(0,i),rx:50,ry:10,enableDrag:!0,attrs:{fill:Ct.random().toString()}}),Ye=[O,R,L,X,K,W,nt,B,j,yt,gt,Z,V,Qt,te,It,ee,Yt,G,Fe];n.value.getSVG().then(Ae=>{o.value.getCanvas().then(w=>{Ae.clear(),h=Zt(()=>(Ae.path(Ye),w.ctx.clearRect(),w.draw(Ye),!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 Ci({scalar:.5,followMouse:!0,attrs:{fill:Ct.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:Ct.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:Ct.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:Ct.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 rt=0;rt<15;rt++){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:Ct.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 rt=Math.random()*25+5,K=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:rt,attrs:{fill:Ct.random().toString()}});K.mass=rt,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:Ct.random().toString()}});A.mass=1e4;const D=new Wt({x:O.app.width*.5+200,y:O.app.height*.5,radius:10,attrs:{fill:Ct.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,B=new Wt({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:nt,attrs:{fill:Ct.random().toString()}});B.vx=Math.random()*6-3,B.vy=Math.random()*6-3,B.mass=nt,A.push(B)}const L=new Re(A),X=new ye({x:0,y:0,width:R.app.width,height:R.app.height}),rt=new Ct("#666666");let K=[];O.clear(),h=Zt(()=>(O.delete(K),K=[],L.springMass(X,{spring:5e-4}).forEach(([W,nt,B,j,yt])=>{yt>0&&K.push(new he({x:W,y:nt,toX:B,toY:j,attrs:{strokeWidth:"1",stroke:rt.setAlpha(yt).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:Ct.random().toString()}}),D=new Wt({x:0,y:0,radius:5,attrs:{fill:Ct.random().toString()}});let L=[m,A,D],X,rt;m.on("clicked",j=>{rt&&O.delete(rt),X&&X.restore(),X=j,j.save(),j.setAttr({fill:"pink",stroke:"green"}),L=[m,A,D];const yt=j.getBoundingClientRect();yt&&(rt=new ye(yt),rt.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),L.push(rt))});let K=0,W=m.shapes[K].getTotalLength(),nt=0;const B=.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:yt}=m.shapes[K].interpolate(nt);A.x=j,A.y=yt;let{x:gt,y:Z}=m.shapes[K].getPointAtLength(nt*W);return D.x=gt,D.y=Z,O.path(L),R.draw(L),nt+=B,!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 Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new Cn({width:50,height:10,attrs:{stroke:"#666666"}}),L=new Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new Cn({width:50,height:10,attrs:{stroke:"#666666"}});let rt=0,K=0;function W(){K+=.2,A.x+=rt,A.y+=K,L.x+=rt,L.y+=K}const nt=-Math.PI/2;function B(Z,V,Qt){const te=Math.sin(Qt)*45+90,It=Math.sin(Qt+nt)*45+45,ee=V.getPin();Z.degree=te,V.degree=Z.degree+It,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,rt-=Z.vx,K-=Z.vy}}function yt(){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 gt=0;O.clear(),h=Zt(()=>(R.ctx.clearRect(),gt+=.06,W(),B(A,D,gt),B(L,X,gt+Math.PI),j(D),j(X),yt(),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:Ct.random().toString()},enableDrag:!0})}const R=.2,A=[];function D(){const X=O(r);return A.push(X),X}let L=D();n.value.getSVG().then(X=>{o.value.getCanvas().then(rt=>{X.clear(),h=Zt(()=>(rt.ctx.clearRect(),X.isMouseDown||rt.isMouseDown?(X.path(A),rt.draw(A)):(L&&L.run({gravity:R}),L&&L.y+L.height>=rt.ctx.canvas.height&&(L.y=rt.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),rt.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:Ct.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 rt=0;rt<3;rt++)X.push(new Wt({x:D,y:L,radius:20,attrs:{fill:Ct.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(),rt=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),B=new Wt({x:0,y:0}),j=new Re([K,...rt]),yt=new Re([B,...nt]);D.clear(),h=Zt(()=>(L.ctx.clearRect(),K.x=D.app.mousePoint.x,K.y=D.app.mousePoint.y,j.springChain(A),rt.forEach((gt,Z)=>{if(Z===0)X[Z].x=D.app.mousePoint.x,X[Z].y=D.app.mousePoint.y,X[Z].toX=gt.x,X[Z].toY=gt.y;else{const V=rt[Z-1];X[Z].x=V.x,X[Z].y=V.y,X[Z].toX=gt.x,X[Z].toY=gt.y}}),D.path(X),D.path(rt),B.x=L.app.mousePoint.x,B.y=L.app.mousePoint.y,yt.springChain(A),nt.forEach((gt,Z)=>{if(Z===0)W[Z].x=L.app.mousePoint.x,W[Z].y=L.app.mousePoint.y,W[Z].toX=gt.x,W[Z].toY=gt.y;else{const V=nt[Z-1];W[Z].x=V.x,W[Z].y=V.y,W[Z].toX=gt.x,W[Z].toY=gt.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:Ct.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,rt)=>{A[rt].x=L.x,A[rt].y=L.y,A[rt].toX=X.x,A[rt].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:Ct.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 wi({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 wi({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 wi({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}),rt=new wi({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),rt.cx=X.cx=R.app.mousePoint.x,rt.cy=X.cy=R.app.mousePoint.y,R.draw([X,rt]),!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,rt)=>new ye({x:X.x,y:X.y,width:6,height:6,attrs:{fill:rt==0?"#ff0000":rt==A.length-1?"#00ff00":"#666666"}})),L=new eh({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 nh({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),R=new nh({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:`${S.value} ${S.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:Ct.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:Ct.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 Ci({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 wa({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(rt=>{o.value.getCanvas().then(K=>{rt.clear(),X.polymorphTween(6e3,{draw:W=>{rt.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 Ci({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 wa({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:rt=>{L.path(rt),X.ctx.clearRect(),X.draw(rt)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!n.value||!o.value)&&(h?.(),pi(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:rt=>{const K=A.trailPath(L,rt.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 Ug(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))})}))}}],x=[{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 z(){b||(b=new ms(a.value));const O=50,R=0,A=0,D=0,L=b.width-O,X=b.height-O,rt=b.height-O,K=b.width/2-O/2,W=b.height/2-O/2,nt={},B={};switch(u.value){case"translateTo":Object.assign(nt,{translateTo:[R,A]}),Object.assign(B,{translateTo:[L,X]});break;case"translateXTo":Object.assign(nt,{translateXTo:R}),Object.assign(B,{translateXTo:L});break;case"translateYTo":Object.assign(nt,{translateYTo:A}),Object.assign(B,{translateYTo:X});break;case"translateZTo":Object.assign(nt,{translateTo:[K,W],translateZTo:D}),Object.assign(B,{translateTo:[K,W],translateZTo:rt});break;case"translate3dTo":Object.assign(nt,{translate3dTo:[K-50,W-50,D]}),Object.assign(B,{translate3dTo:[K+50,W+50,rt]});break;case"rotateTo":Object.assign(nt,{translateTo:[K,W],rotateTo:0}),Object.assign(B,{translateTo:[K,W],rotateTo:360});break;case"rotateXTo":Object.assign(nt,{translateTo:[K,W],rotateXTo:0}),Object.assign(B,{translateTo:[K,W],rotateXTo:180});break;case"rotateYTo":Object.assign(nt,{translateTo:[K,W],rotateYTo:0}),Object.assign(B,{translateTo:[K,W],rotateYTo:180});break;case"rotateZTo":Object.assign(nt,{translateTo:[K,W],rotateZTo:0}),Object.assign(B,{translateTo:[K,W],rotateZTo:360});break;case"rotate3dTo":Object.assign(nt,{translateTo:[K,W],rotate3dTo:[0,0,0]}),Object.assign(B,{translateTo:[K,W],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(nt,{translateTo:[K,W],scaleTo:1}),Object.assign(B,{translateTo:[K,W],scaleTo:3});break;case"scaleXTo":Object.assign(nt,{translateTo:[K,W],scaleXTo:1}),Object.assign(B,{translateTo:[K,W],scaleXTo:3});break;case"scaleYTo":Object.assign(nt,{translateTo:[K,W],scaleYTo:1}),Object.assign(B,{translateTo:[K,W],scaleYTo:3});break;case"scaleZTo":Object.assign(nt,{translateTo:[K,W],scaleZTo:1}),Object.assign(B,{translateTo:[K,W],scaleZTo:3});break;case"scale3dTo":Object.assign(nt,{translateTo:[K,W],scale3dTo:[1,1,1]}),Object.assign(B,{translateTo:[K,W],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(nt,{translateTo:[K,W],skewTo:0}),Object.assign(B,{translateTo:[K,W],skewTo:30});break;case"skewXTo":Object.assign(nt,{translateTo:[K,W],skewXTo:0}),Object.assign(B,{translateTo:[K,W],skewXTo:30});break;case"skewYTo":Object.assign(nt,{translateTo:[K,W],skewYTo:0}),Object.assign(B,{translateTo:[K,W],skewYTo:30});break;case"perspective":Object.assign(nt,{translateTo:[K,W],perspective:0}),Object.assign(B,{translateTo:[K,W],perspective:1e3});break}const j=new He({frameDuration:2e3});j.addTween(nt,B,{easeFunction:e.easeFunction,onUpdate:yt=>{pi(l.value,ft.convertAttrs(l.value,yt))}}),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",K1,[dt(ve,{asyncClick:ct},{default:Pt(()=>[Kt(" downloadFromCanvasToSVG ")]),_:1})]),P("div",J1,[(F(),H($t,null,ge(p,A=>dt(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:c.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Kt(wt(A.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Zs(P("div",null," 当前缓动函数:"+wt(e.easeName),513),[[Rs,c.value=="AnimateToTweenCSS"]]),Zs(P("div",tv,[(F(),H($t,null,ge(x,A=>dt(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:u.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Kt(wt(A.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Rs,c.value=="AnimateToTweenCSS"]]),Zs(P("div",ev,[P("div",sv,[P("div",null,"stroke-dasharray: "+wt(S.value)+","+wt(S.value),1),dt(Ls,{max:988,defaultValue:S.value,onChange:C},null,8,["defaultValue"])]),P("div",nv,[P("div",null,"stroke-dashoffset: "+wt(_.value),1),dt(Ls,{max:988,defaultValue:_.value,onChange:y},null,8,["defaultValue"])])],512),[[Rs,c.value=="StrokeDash"]]),Zs(P("div",rv,[dt(hh,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[Rs,c.value!=="AnimateToTweenCSS"]]),Zs(P("div",iv,[dt(ns,{ref_key:"canvasRef",ref:o,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Rs,c.value!=="AnimateToTweenCSS"]]),Zs(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="",av=mt(ov,[["__scopeId","data-v-e3c0aed4"]]),lv={class:"svg"},cv=[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)],uv=lt({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(F(),H("svg",lv,cv))}}),Bb="",Na=mt(uv,[["__scopeId","data-v-7ee5c19e"]]),hv={class:"loading-1"},fv=lt({__name:"Loading1",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(F(),H("div",hv,[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})]))}}),Gb="",dv=mt(fv,[["__scopeId","data-v-48b10c9a"]]),pv={class:"loading-2"},mv=lt({__name:"Loading2",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(F(),H("div",pv,[P("div",{class:"dot1",style:e}),P("div",{class:"dot2",style:e})]))}}),Xb="",gv=mt(mv,[["__scopeId","data-v-79f9930f"]]),yv=lt({__name:"Loading3",props:{fromColor:{default:Ot.colorPrimary},toColor:{default:Ot.colorRed}},setup(s){const t=s,e=`
|
|
99
|
+
)`}])},[dt(Et,{type:"full",onReady:_},{default:Pt(()=>[I1,P("div",{class:"field-knob",style:Y([{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",D1,[dt(Et,{type:"full",onReady:k},{default:Pt(()=>[P("div",{class:"hue-knob",style:Y([{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))}}),Rb="",A1={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",ta&&this.$el.appendChild(s),s.data="about:blank",ta||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&&(!ta&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},M1={class:"resize-observer",tabindex:"-1"};function N1(s,t,e,n,r,i){return F(),H("div",M1)}const F1=mt(A1,[["render",N1],["__scopeId","data-v-d5987ae1"]]),L1=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,r=M(n.mapWidth),i=M(n.mapHeight);let o;const a=M();return Mt(a,()=>{a.value&&(o=new ms(a.value,!1),o.on("resize",(l,c)=>{r.value=l+"px",i.value=c+"px"}),o.start())}),Ps(()=>{Qm(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Hg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),le(()=>{o.destroy()}),t({}),(l,c)=>(F(),H("div",To({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[kt(l.$slots,"default",{width:r.value,height:i.value},void 0,!0)],16))}}),Ab="",$1=mt(L1,[["__scopeId","data-v-e3445186"]]);var fr=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 r=(performance||Date).now(),i=r,o=0,a=e(new fr.Panel("FPS","#0ff","#002")),l=e(new fr.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new fr.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){r=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-r,200),u>i+1e3&&(a.update(o*1e3/(u-i),100),i=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:t,setMode:n}};fr.Panel=function(s,t,e){var n=1/0,r=0,i=Math.round,o=i(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,_),r=Math.max(r,_),k.fillStyle=e,k.globalAlpha=1,k.fillRect(0,0,a,f),k.fillStyle=t,k.fillText(i(_)+" "+s+" ("+i(n)+"-"+i(r)+")",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,i((1-_/x)*d))}}};const V1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=M();return Ps(()=>{const n=new fr;n.domElement.style.margin="1em",e.value.appendChild(n.domElement),Zt(()=>(n.update(),!0))}),t({}),(n,r)=>(F(),H("div",{ref_key:"containerRef",ref:e},null,512))}}),Y1={class:"ease-graph"},z1=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,r=e,i=M();let o;Mt(i,()=>{i.value&&i.value.getCanvas().then(u=>{o=u,r("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,r("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:bt.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:()=>{r("onCompleted",n.easeName),a=!1}}),m.play()},c=()=>{r("onSelected",n.easeName,n.easeFunction)};return le(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(F(),H("div",Y1,[P("div",null,"缓动:"+wt(u.easeName),1),P("div",null,[P("div",null,[dt(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Pt(()=>[Kt(" 开始 ")]),_:1})]),P("div",null,[dt(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Pt(()=>[Kt(" 选择 ")]),_:1},8,["stylePattern"])])]),P("div",{style:Y({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[dt(ns,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),Nb="",Aa=mt(z1,[["__scopeId","data-v-e8afe7ba"]]),B1=2e3,G1=lt({customOptions:{EaseGraphDisplay:Aa},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:bt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:bt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:bt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:bt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:bt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:bt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:bt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:bt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:bt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:bt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:bt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:bt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:bt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:bt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:bt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:bt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:bt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:bt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:bt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:bt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:bt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:bt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:bt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:bt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:bt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:bt.Easing.Back.In},{easeName:"BackOut",easeFunction:bt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:bt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:bt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:bt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:bt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:bt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:bt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:bt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:bt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:bt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:bt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:bt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:bt.Easing.swing},{easeName:"causeSeizures",easeFunction:bt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,r=e,i={};function o(f,m){f&&(i[m]={el:f})}const a=new Zo(10);function l(f){a.addTask(()=>(i[f].el.start(),new Promise(m=>{i[f].resolve=m})))}function c(f){i[f].resolve?.()}const u=M("Linear");function h(f,m){u.value=f,r("selectedEaseFunction",f,m)}return h("Linear",bt.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(),zt(Aa,{key:0,easeName:d.easeName,easeFunction:d.easeFunction,easeDuration:B1,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"])):Bt("",!0)]))),128))]))}}),Fb="",X1=mt(G1,[["__scopeId","data-v-fa7ba01d"]]),j1={class:"interpolation-graph"},ch=1/6,uh=5/6,U1=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,r=e,i=M();let o;Mt(i,()=>{i.value&&i.value.getCanvas().then(S=>{o=S,r("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,r("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:bt.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:bt.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:()=>{r("onCompleted",n.interpolationName),m=!1}}),k.play()};return le(()=>{o.app.off("showInParent",d)}),t({start:d}),(S,k)=>(F(),H("div",j1,[P("div",null,[Kt(" 插值:"+wt(S.interpolationName)+" ",1),dt(ve,{stylePattern:"outline",height:"32px",onClick:d},{default:Pt(()=>[Kt(" 开始 ")]),_:1})]),P("div",{style:Y({width:S.canvasWidth+"px",height:S.canvasHeight+"px"})},[dt(ns,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),Lb="",Ma=mt(U1,[["__scopeId","data-v-17bd4dde"]]),H1=2e3,W1=lt({customOptions:{InterpolationGraphDisplay:Ma},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:bt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:bt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:bt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,r={};function i(c,u){c&&(r[u]={el:c})}const o=new Zo(1);function a(c){o.addTask(()=>(r[c].el.start(),new Promise(u=>{r[c].resolve=u})))}function l(c){r[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"},[dt(Ma,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:H1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>i(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),$b="",q1=mt(W1,[["__scopeId","data-v-6e8312e3"]]),Z1=lt({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,r=e;let i,o,a;const l=M();Mt(l,()=>{i||!l.value||(i=new ms(l.value,!1),i.on("resize",(u,h)=>{r("resize",u,h),o=new Ng(i),a?.(o),r("ready",o)}),i.start())});function c(){return new Promise(u=>{if(o)return u(o);a=u})}return le(()=>{i?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(F(),H("div",{class:"svg",ref_key:"svgRef",ref:l,style:Y({backgroundColor:n.bgColor})},null,4))}}),Vb="",hh=mt(Z1,[["__scopeId","data-v-132e642b"]]),Q1='<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>',K1={class:"btns"},J1={class:"btns"},tv={class:"btns sub-btns"},ev={class:"btns sub-btns"},sv={style:{width:"100%"}},nv={style:{width:"100%"}},rv={style:{height:"400px"}},iv={style:{height:"400px"}},ov=lt({customOptions:{Button:ve,InputRange:$s,SVG:hh,Canvas:ns},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:bt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=M();let r=0,i=0;Mt(n,()=>{n.value&&n.value.getSVG().then(O=>{r=O.app.width,i=O.app.height,O.app.on("resize",(R,A)=>{r=R,i=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":z();break}}const m=new Fg({svg:Q1,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 Cn({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Ct.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,r-100),D=jt(0,i-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 rt=L.intersection(X),K=new Wt({x:0,y:0,radius:10,attrs:{fill:Ct.random().toString()}});rt&&(K.x=rt.x,K.y=rt.y);const W=new Ci({x:jt(0,r),y:jt(0,i),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new ye({x:jt(0,r),y:jt(0,i),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Lg({x:jt(0,r),y:jt(0,i),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),j=new $g({x:jt(0,r),y:jt(0,i),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),yt=new Vg({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),gt=new wa({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new Yg({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new zg({x:jt(0,r),y:jt(0,i),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),Qt=new Bg({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Ct.random().toString(),fill:"none"},enableDrag:!0}),te=new jg({x:jt(0,r),y:jt(0,i),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),It=new Cn({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),ee=new rh({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ee.on("change",Ae=>{console.log(`slider change: ${Ae}`)});const Yt=new Ca({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ct.random().toString(),enableDrag:!0}),G=new ih({x:jt(0,r),y:jt(0,i),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),Fe=new sh({x:jt(0,r),y:jt(0,i),rx:50,ry:10,enableDrag:!0,attrs:{fill:Ct.random().toString()}}),Ye=[O,R,L,X,K,W,nt,B,j,yt,gt,Z,V,Qt,te,It,ee,Yt,G,Fe];n.value.getSVG().then(Ae=>{o.value.getCanvas().then(C=>{Ae.clear(),h=Zt(()=>(Ae.path(Ye),C.ctx.clearRect(),C.draw(Ye),!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 Ci({scalar:.5,followMouse:!0,attrs:{fill:Ct.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:Ct.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:Ct.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:Ct.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 rt=0;rt<15;rt++){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:Ct.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 rt=Math.random()*25+5,K=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:rt,attrs:{fill:Ct.random().toString()}});K.mass=rt,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:Ct.random().toString()}});A.mass=1e4;const D=new Wt({x:O.app.width*.5+200,y:O.app.height*.5,radius:10,attrs:{fill:Ct.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,B=new Wt({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:nt,attrs:{fill:Ct.random().toString()}});B.vx=Math.random()*6-3,B.vy=Math.random()*6-3,B.mass=nt,A.push(B)}const L=new Re(A),X=new ye({x:0,y:0,width:R.app.width,height:R.app.height}),rt=new Ct("#666666");let K=[];O.clear(),h=Zt(()=>(O.delete(K),K=[],L.springMass(X,{spring:5e-4}).forEach(([W,nt,B,j,yt])=>{yt>0&&K.push(new he({x:W,y:nt,toX:B,toY:j,attrs:{strokeWidth:"1",stroke:rt.setAlpha(yt).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:Ct.random().toString()}}),D=new Wt({x:0,y:0,radius:5,attrs:{fill:Ct.random().toString()}});let L=[m,A,D],X,rt;m.on("clicked",j=>{rt&&O.delete(rt),X&&X.restore(),X=j,j.save(),j.setAttr({fill:"pink",stroke:"green"}),L=[m,A,D];const yt=j.getBoundingClientRect();yt&&(rt=new ye(yt),rt.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),L.push(rt))});let K=0,W=m.shapes[K].getTotalLength(),nt=0;const B=.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:yt}=m.shapes[K].interpolate(nt);A.x=j,A.y=yt;let{x:gt,y:Z}=m.shapes[K].getPointAtLength(nt*W);return D.x=gt,D.y=Z,O.path(L),R.draw(L),nt+=B,!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 Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new Cn({width:50,height:10,attrs:{stroke:"#666666"}}),L=new Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new Cn({width:50,height:10,attrs:{stroke:"#666666"}});let rt=0,K=0;function W(){K+=.2,A.x+=rt,A.y+=K,L.x+=rt,L.y+=K}const nt=-Math.PI/2;function B(Z,V,Qt){const te=Math.sin(Qt)*45+90,It=Math.sin(Qt+nt)*45+45,ee=V.getPin();Z.degree=te,V.degree=Z.degree+It,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,rt-=Z.vx,K-=Z.vy}}function yt(){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 gt=0;O.clear(),h=Zt(()=>(R.ctx.clearRect(),gt+=.06,W(),B(A,D,gt),B(L,X,gt+Math.PI),j(D),j(X),yt(),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:Ct.random().toString()},enableDrag:!0})}const R=.2,A=[];function D(){const X=O(r);return A.push(X),X}let L=D();n.value.getSVG().then(X=>{o.value.getCanvas().then(rt=>{X.clear(),h=Zt(()=>(rt.ctx.clearRect(),X.isMouseDown||rt.isMouseDown?(X.path(A),rt.draw(A)):(L&&L.run({gravity:R}),L&&L.y+L.height>=rt.ctx.canvas.height&&(L.y=rt.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),rt.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:Ct.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 rt=0;rt<3;rt++)X.push(new Wt({x:D,y:L,radius:20,attrs:{fill:Ct.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(),rt=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),B=new Wt({x:0,y:0}),j=new Re([K,...rt]),yt=new Re([B,...nt]);D.clear(),h=Zt(()=>(L.ctx.clearRect(),K.x=D.app.mousePoint.x,K.y=D.app.mousePoint.y,j.springChain(A),rt.forEach((gt,Z)=>{if(Z===0)X[Z].x=D.app.mousePoint.x,X[Z].y=D.app.mousePoint.y,X[Z].toX=gt.x,X[Z].toY=gt.y;else{const V=rt[Z-1];X[Z].x=V.x,X[Z].y=V.y,X[Z].toX=gt.x,X[Z].toY=gt.y}}),D.path(X),D.path(rt),B.x=L.app.mousePoint.x,B.y=L.app.mousePoint.y,yt.springChain(A),nt.forEach((gt,Z)=>{if(Z===0)W[Z].x=L.app.mousePoint.x,W[Z].y=L.app.mousePoint.y,W[Z].toX=gt.x,W[Z].toY=gt.y;else{const V=nt[Z-1];W[Z].x=V.x,W[Z].y=V.y,W[Z].toX=gt.x,W[Z].toY=gt.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:Ct.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,rt)=>{A[rt].x=L.x,A[rt].y=L.y,A[rt].toX=X.x,A[rt].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:Ct.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 wi({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 wi({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 wi({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}),rt=new wi({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),rt.cx=X.cx=R.app.mousePoint.x,rt.cy=X.cy=R.app.mousePoint.y,R.draw([X,rt]),!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,rt)=>new ye({x:X.x,y:X.y,width:6,height:6,attrs:{fill:rt==0?"#ff0000":rt==A.length-1?"#00ff00":"#666666"}})),L=new eh({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 nh({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),R=new nh({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:Ct.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:Ct.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 Ci({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 wa({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(rt=>{o.value.getCanvas().then(K=>{rt.clear(),X.polymorphTween(6e3,{draw:W=>{rt.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 Ci({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 wa({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:rt=>{L.path(rt),X.ctx.clearRect(),X.draw(rt)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!n.value||!o.value)&&(h?.(),pi(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:rt=>{const K=A.trailPath(L,rt.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 Ug(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 z(){b||(b=new ms(a.value));const O=50,R=0,A=0,D=0,L=b.width-O,X=b.height-O,rt=b.height-O,K=b.width/2-O/2,W=b.height/2-O/2,nt={},B={};switch(u.value){case"translateTo":Object.assign(nt,{translateTo:[R,A]}),Object.assign(B,{translateTo:[L,X]});break;case"translateXTo":Object.assign(nt,{translateXTo:R}),Object.assign(B,{translateXTo:L});break;case"translateYTo":Object.assign(nt,{translateYTo:A}),Object.assign(B,{translateYTo:X});break;case"translateZTo":Object.assign(nt,{translateTo:[K,W],translateZTo:D}),Object.assign(B,{translateTo:[K,W],translateZTo:rt});break;case"translate3dTo":Object.assign(nt,{translate3dTo:[K-50,W-50,D]}),Object.assign(B,{translate3dTo:[K+50,W+50,rt]});break;case"rotateTo":Object.assign(nt,{translateTo:[K,W],rotateTo:0}),Object.assign(B,{translateTo:[K,W],rotateTo:360});break;case"rotateXTo":Object.assign(nt,{translateTo:[K,W],rotateXTo:0}),Object.assign(B,{translateTo:[K,W],rotateXTo:180});break;case"rotateYTo":Object.assign(nt,{translateTo:[K,W],rotateYTo:0}),Object.assign(B,{translateTo:[K,W],rotateYTo:180});break;case"rotateZTo":Object.assign(nt,{translateTo:[K,W],rotateZTo:0}),Object.assign(B,{translateTo:[K,W],rotateZTo:360});break;case"rotate3dTo":Object.assign(nt,{translateTo:[K,W],rotate3dTo:[0,0,0]}),Object.assign(B,{translateTo:[K,W],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(nt,{translateTo:[K,W],scaleTo:1}),Object.assign(B,{translateTo:[K,W],scaleTo:3});break;case"scaleXTo":Object.assign(nt,{translateTo:[K,W],scaleXTo:1}),Object.assign(B,{translateTo:[K,W],scaleXTo:3});break;case"scaleYTo":Object.assign(nt,{translateTo:[K,W],scaleYTo:1}),Object.assign(B,{translateTo:[K,W],scaleYTo:3});break;case"scaleZTo":Object.assign(nt,{translateTo:[K,W],scaleZTo:1}),Object.assign(B,{translateTo:[K,W],scaleZTo:3});break;case"scale3dTo":Object.assign(nt,{translateTo:[K,W],scale3dTo:[1,1,1]}),Object.assign(B,{translateTo:[K,W],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(nt,{translateTo:[K,W],skewTo:0}),Object.assign(B,{translateTo:[K,W],skewTo:30});break;case"skewXTo":Object.assign(nt,{translateTo:[K,W],skewXTo:0}),Object.assign(B,{translateTo:[K,W],skewXTo:30});break;case"skewYTo":Object.assign(nt,{translateTo:[K,W],skewYTo:0}),Object.assign(B,{translateTo:[K,W],skewYTo:30});break;case"perspective":Object.assign(nt,{translateTo:[K,W],perspective:0}),Object.assign(B,{translateTo:[K,W],perspective:1e3});break}const j=new He({frameDuration:2e3});j.addTween(nt,B,{easeFunction:e.easeFunction,onUpdate:yt=>{pi(l.value,ft.convertAttrs(l.value,yt))}}),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",K1,[dt(ve,{asyncClick:ct},{default:Pt(()=>[Kt(" downloadFromCanvasToSVG ")]),_:1})]),P("div",J1,[(F(),H($t,null,ge(p,A=>dt(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:c.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Kt(wt(A.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Qs(P("div",null," 当前缓动函数:"+wt(e.easeName),513),[[As,c.value=="AnimateToTweenCSS"]]),Qs(P("div",tv,[(F(),H($t,null,ge(w,A=>dt(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:u.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Kt(wt(A.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[As,c.value=="AnimateToTweenCSS"]]),Qs(P("div",ev,[P("div",sv,[P("div",null,"stroke-dasharray: "+wt(k.value)+","+wt(k.value),1),dt($s,{max:988,defaultValue:k.value,onChange:x},null,8,["defaultValue"])]),P("div",nv,[P("div",null,"stroke-dashoffset: "+wt(_.value),1),dt($s,{max:988,defaultValue:_.value,onChange:y},null,8,["defaultValue"])])],512),[[As,c.value=="StrokeDash"]]),Qs(P("div",rv,[dt(hh,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[As,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",iv,[dt(ns,{ref_key:"canvasRef",ref:o,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[As,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),[[As,c.value=="AnimateToTweenCSS"]])],64))}}),Yb="",av=mt(ov,[["__scopeId","data-v-e3c0aed4"]]),lv={class:"svg"},cv=[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)],uv=lt({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(F(),H("svg",lv,cv))}}),Bb="",Na=mt(uv,[["__scopeId","data-v-7ee5c19e"]]),hv={class:"loading-1"},fv=lt({__name:"Loading1",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(F(),H("div",hv,[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})]))}}),Gb="",dv=mt(fv,[["__scopeId","data-v-48b10c9a"]]),pv={class:"loading-2"},mv=lt({__name:"Loading2",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(F(),H("div",pv,[P("div",{class:"dot1",style:e}),P("div",{class:"dot2",style:e})]))}}),Xb="",gv=mt(mv,[["__scopeId","data-v-79f9930f"]]),yv=lt({__name:"Loading3",props:{fromColor:{default:Ot.colorPrimary},toColor:{default:Ot.colorRed}},setup(s){const t=s,e=`
|
|
100
100
|
@keyframes snake {
|
|
101
101
|
0% {
|
|
102
102
|
opacity: 0.3;
|
|
@@ -115,21 +115,21 @@ Component that was made reactive: `,s)),P(s,t,e,n,r,o,i,!0)}function Nd(s){retur
|
|
|
115
115
|
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
`,n={backgroundColor:t.fromColor,width:"20%"},r=M();return Mt(r,()=>{r.value&&nn(e,r.value)}),
|
|
118
|
+
`,n={backgroundColor:t.fromColor,width:"20%"},r=M();return Mt(r,()=>{r.value&&nn(e,r.value)}),Ps(()=>{}),le(()=>{}),(i,o)=>(F(),H("div",{class:"loading-3",ref_key:"loading3",ref:r},[P("div",{class:"dot",style:Y({...n,left:"0"})},null,4),P("div",{class:"dot",style:Y({...n,left:"20%"})},null,4),P("div",{class:"dot",style:Y({...n,left:"40%"})},null,4),P("div",{class:"dot",style:Y({...n,left:"60%"})},null,4),P("div",{class:"dot",style:Y({...n,left:"80%"})},null,4)],512))}}),jb="",vv=mt(yv,[["__scopeId","data-v-e36b6371"]]),_v={class:"loading-4"},bv=lt({__name:"Loading4",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(F(),H("div",_v,[P("div",{class:"rect",style:e})]))}}),Ub="",xv=mt(bv,[["__scopeId","data-v-9028c8cf"]]),wv={class:"loading-5"},Cv=lt({__name:"Loading5",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(F(),H("div",wv,[P("div",{class:"cube1",style:e}),P("div",{class:"cube2",style:e})]))}}),Hb="",Sv=mt(Cv,[["__scopeId","data-v-6f68ee6f"]]),Tv={class:"loading-6"},kv=lt({__name:"Loading6",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(F(),H("div",Tv,[P("div",{style:e}),P("div",{style:e}),P("div",{style:e})]))}}),Wb="",Ev=mt(kv,[["__scopeId","data-v-e397194b"]]),Pv=[(s=>(Ln("data-v-835e0130"),s=s(),$n(),s))(()=>P("div",null,null,-1))],Ov=lt({__name:"Loading7",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s,e=`
|
|
119
119
|
:root {
|
|
120
120
|
--loading-7-bg-color: ${t.color}
|
|
121
121
|
}
|
|
122
122
|
:host {
|
|
123
123
|
--loading-7-bg-color: ${t.color}
|
|
124
124
|
}
|
|
125
|
-
`,n=M();return Mt(n,()=>{n.value&&nn(e,n.value)}),
|
|
125
|
+
`,n=M();return Mt(n,()=>{n.value&&nn(e,n.value)}),Ps(()=>{}),le(()=>{}),(r,i)=>(F(),H("div",{class:"loading-7",ref_key:"loading7",ref:n},Pv,512))}}),Qb="",Iv=mt(Ov,[["__scopeId","data-v-835e0130"]]),Dv={class:"loading-9"},Rv=lt({__name:"Loading9",props:{color:{default:Ot.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,r)=>(F(),H("div",Dv,[P("div",{style:e})]))}}),Kb="",Av=mt(Rv,[["__scopeId","data-v-a563aaa4"]]),Mv={class:"loading-10"},Nv={viewBox:"0 0 50 50"},Fv=lt({__name:"Loading10",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("div",Mv,[(F(),H("svg",Nv,[P("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:Y(["stroke: rgba(0,0,0,0.1)"])},null,4),P("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:Y(["fill: "+t.color])},null,4)]))]))}}),Jb="",Lv=mt(Fv,[["__scopeId","data-v-361d898a"]]),$v={class:"face front"},Vv={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,r=e,i=M(!1),o=()=>{i.value=!i.value,r("click",i.value)};return t({}),(a,l)=>(F(),H("div",{class:"card-flip-scene",style:Y({perspective:n.perspective})},[P("div",{class:re(["card",[n.type,{flip:i.value}]]),style:Y({transition:`transform ${n.dur}ms`}),onClick:o},[P("div",$v,[kt(a.$slots,"front",{},()=>[Kt("front")],!0)]),P("div",Vv,[kt(a.$slots,"back",{},()=>[Kt("back")],!0)])],6)],4))}}),tx="",zv=mt(Yv,[["__scopeId","data-v-e37e840a"]]),Bv=lt({customOptions:{RadioGroup:Ta,CheckboxGroup:Ti,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,r=M(Math.floor(n.width/2)),i=`
|
|
126
126
|
:root {
|
|
127
127
|
--spin-cube-z: -${r.value}px;
|
|
128
128
|
}
|
|
129
129
|
:host {
|
|
130
130
|
--spin-cube-z: -${r.value}px;
|
|
131
131
|
}
|
|
132
|
-
`,o=M();Mt(o,()=>{o.value&&nn(i,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(-${r.value}px)`,d=M(m),k=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}},S=M(!1),_=p=>{p.length?S.value=!0:S.value=!1},C=M("visible"),y=p=>{p.length?C.value="visible":C.value="hidden"};return t({}),(p,x)=>(F(),H("div",{ref_key:"container",ref:o},[P("div",{class:"cube-scene",style:Y({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[P("div",{class:re(["cube",{spinning:S.value}]),style:Y({transformStyle:"preserve-3d",transform:d.value,transition:`transform ${n.dur}ms`})},[P("div",{class:"face front",style:Y({transform:`rotateY(0deg) translateZ(${r.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"front",{},()=>[Kt("front")],!0)],4),P("div",{class:"face back",style:Y({transform:`rotateY(180deg) translateZ(${r.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"back",{},()=>[Kt("back")],!0)],4),P("div",{class:"face right",style:Y({transform:`rotateY(90deg) translateZ(${r.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"right",{},()=>[Kt("right")],!0)],4),P("div",{class:"face left",style:Y({transform:`rotateY(-90deg) translateZ(${r.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"left",{},()=>[Kt("left")],!0)],4),P("div",{class:"face top",style:Y({transform:`rotateX(90deg) translateZ(${r.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"top",{},()=>[Kt("top")],!0)],4),P("div",{class:"face bottom",style:Y({transform:`rotateX(-90deg) translateZ(${r.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"bottom",{},()=>[Kt("bottom")],!0)],4)],6)],4),P("div",null,[dt(Ta,{options:["front","right","back","left","top","bottom"],onChange:k})]),P("div",null,[dt(Ti,{options:["Backface visible"],onChange:y})]),P("div",null,[dt(Ti,{options:["spin cube"],onChange:_})]),P("div",null,[Kt(" perspective: "),dt(Ls,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),P("div",null,[Kt(" perspective-origin x: "),dt(Ls,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),P("div",null,[Kt(" perspective-origin y: "),dt(Ls,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),ex="",Gv=mt(Bv,[["__scopeId","data-v-fde3e89a"]]),Xv=s=>(Ln("data-v-b4857d19"),s=s(),$n(),s),jv={class:"ring-indicator"},Uv={class:"ring-text"},Hv=Xv(()=>P("span",null,"%",-1)),Wv=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 r=Jm(()=>{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),i=M(0),o=M(0),a=(c,u)=>{i.value=c,o.value=u},l=M();return Mt(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new ih({width:i.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(r()),c.draw(u),!0))})}),t({}),(c,u)=>(F(),H("div",jv,[dt(ns,{ref_key:"canvasRef",ref:l,onResize:a},null,512),P("div",Uv,[P("span",null,wt(Lt(n)),1),Hv])]))}}),sx="",qv=mt(Wv,[["__scopeId","data-v-b4857d19"]]),fh=s=>(Ln("data-v-8e39fba1"),s=s(),$n(),s),Zv=[fh(()=>P("div",{class:"left"},null,-1)),fh(()=>P("div",{class:"right"},null,-1))],Qv={key:0},Kv={key:1},an=10,Tn=4,Jv=lt({customOptions:{Container:Et},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),r=(i,o)=>{n.value=Math.floor(Math.min(i,o))};return t({}),(i,o)=>(F(),zt(Et,{onResize:r,type:"full"},{default:Pt(()=>[P("div",{class:"ring",style:Y({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:Y({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-an-Tn}px, #000 ${n.value/2-an-Tn}px)`})},Zv,4),P("div",{class:"ring-content",style:Y({top:an+Tn+"px",left:an+Tn+"px",width:n.value-(an+Tn)*2+"px",height:n.value-(an+Tn)*2+"px"})},[e.text?(F(),H("div",Qv,wt(e.text),1)):Bt("",!0),e.secondText?(F(),H("div",Kv,wt(e.secondText),1)):Bt("",!0)],4)],4)]),_:1}))}}),ix="",ox="",t_=mt(Jv,[["__scopeId","data-v-8e39fba1"]]),e_=lt({customOptions:{Container:Et},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(),r=M(40),i=M(20),o=M(20),a=(_,C)=>{r.value=Math.floor(_/(6+1)),i.value=Math.floor(C),o.value=Math.max(12,i.value)},l=()=>{e.initStart&&k(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 k=_=>{_&&(Mm(Am(_),m),m.forEach((C,y)=>{h[y]=C,f[y]=C})),u(),d=0,S(ce(),0,!1),c=Km((C,y,p)=>{S(C,y,p)},1e3)},S=(_,C,y)=>{if(y)d=C;else{if(d>0){m.forEach((x,b)=>{h[b]=x,f[b]=x});const p=d+1;e.creaseType=="increase"?(Wo(h,p),Wo(f,p+1)):(qo(h,p),qo(f,p+1)),d=0}else e.creaseType=="increase"?Wo(f,1):qo(f,1);ea(()=>{f.forEach((p,x)=>{h[x]=p})},e.dur)}};return t({start:k,pause:u}),(_,C)=>(F(),zt(Et,{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:Pt(()=>[P("div",{class:"clock-flipper",style:Y({fontSize:o.value+"px",lineHeight:i.value+"px"})},[(F(!0),H($t,null,ge(h,(y,p)=>(F(),H($t,{key:p},[P("div",{class:re(["flip",[e.flipDirection,f[p]!=y?"go":""]]),style:Y({width:r.value+"px"})},[P("div",{class:re(["front digital",[`flipper_${p}`,`number_${y}`]])},null,2),P("div",{class:re(["back digital",[`number_${f[p]}`]])},null,2)],6),p==1||p==3?(F(),H("div",{key:0,class:"gap",style:Y({fontSize:Math.floor(o.value*.6)+"px",lineHeight:0})}," : ",4)):Bt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),ax="",lx="",s_=mt(e_,[["__scopeId","data-v-8d77ae6d"]]),n_=lt({customOptions:{Container:Et},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,r)=>(F(),zt(Et,null,{default:Pt(()=>[P("div",{style:Y({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},wt(e.text),5)]),_:1}))}}),r_={class:"slide"},i_=lt({customOptions:{Container:Et},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({}),r=()=>{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}},i=()=>{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(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:i,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-before",style:Y({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),P("div",r_,[kt(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),cx="",o_=mt(i_,[["__scopeId","data-v-4b23f270"]]),a_={class:"slide-corner"},l_=lt({customOptions:{Container:Et},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 r=1,i=r*2;const o=(c,u)=>{r=Math.ceil(Math.max(c,u)/Math.min(c,u)),i=r*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(${i}, ${i}, ${i})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${i}, ${i}, ${i})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${i}, ${i}, ${i})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${i}, ${i}, ${i})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${i}, ${i}, ${i})`;break}};return t({}),(c,u)=>(F(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:l,onResize:o,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-corner-before",style:Y({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Lt(r)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),P("div",a_,[kt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ux="",c_=mt(l_,[["__scopeId","data-v-e47546e1"]]),u_={class:"line-single"},h_=lt({customOptions:{Container:Et},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 r=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},i=Jt({});switch(e.location){case"underline":i.bottom="0";break;case"overline":i.top="0";break;case"through":i.top="50%";break}const o=()=>{switch(e.direction){case"right":i.transformOrigin="bottom right",i.transform="scaleX(0)";break;case"left":i.transformOrigin="bottom left",i.transform="scaleX(0)";break;case"fromCenter":i.transformOrigin="center",i.transform="scaleX(0)";break}},a=()=>{switch(e.direction){case"right":i.transformOrigin="bottom left",i.transform="scaleX(1)";break;case"left":i.transformOrigin="bottom right",i.transform="scaleX(1)";break;case"fromCenter":i.transformOrigin="center",i.transform="scaleX(1)";break}};return t({}),(l,c)=>(F(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:r},{default:Pt(()=>[P("div",{class:"line-single-before",style:Y({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...i})},null,4),P("div",u_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),hx="",f_=mt(h_,[["__scopeId","data-v-8b261cbf"]]),d_={class:"line-double"},p_=lt({customOptions:{Container:Et},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 r=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},i=Jt({}),o=Jt({}),a=Jt({});switch(e.location){case"horizontal":i.width="100%",i.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":i.width=e.lineHeight+"px",i.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",i.transformOrigin="center right",i.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",i.transformOrigin="center bottom",i.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",i.transformOrigin="center left",i.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",i.transformOrigin="center top",i.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",i.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",i.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",i.transformOrigin="center",i.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",i.transformOrigin="center",i.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",i.transformOrigin="center left",i.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",i.transformOrigin="center top",i.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",i.transformOrigin="center right",i.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",i.transformOrigin="center bottom",i.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",i.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",i.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",i.transformOrigin="center",i.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",i.transformOrigin="center",i.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(F(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:r},{default:Pt(()=>[P("div",{class:"line-double-before",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...i,...o})},null,4),P("div",d_,[kt(u.$slots,"default",{},void 0,!0)]),P("div",{class:"line-double-after",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...i,...a})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),fx="",m_=mt(p_,[["__scopeId","data-v-ac519c85"]]),g_=lt({customOptions:{Container:Et},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"}),r=()=>{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}},i=()=>{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(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:i},{default:Pt(()=>[P("div",{class:"float",style:Y({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[kt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),dx="",y_=mt(g_,[["__scopeId","data-v-2cdf6499"]]),v_={class:"circle"},__=lt({customOptions:{Container:Et},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(),r=Jt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),i=(l,c)=>{r.width=r.height=Math.ceil(Math.max(l,c))+"px",n.value?.repeatEffect?.()},o=()=>{const l=De(e.color,.2).toString();r.boxShadow=`
|
|
132
|
+
`,o=M();Mt(o,()=>{o.value&&nn(i,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(-${r.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:Y({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[P("div",{class:re(["cube",{spinning:k.value}]),style:Y({transformStyle:"preserve-3d",transform:d.value,transition:`transform ${n.dur}ms`})},[P("div",{class:"face front",style:Y({transform:`rotateY(0deg) translateZ(${r.value}px)`,backfaceVisibility:x.value})},[kt(p.$slots,"front",{},()=>[Kt("front")],!0)],4),P("div",{class:"face back",style:Y({transform:`rotateY(180deg) translateZ(${r.value}px)`,backfaceVisibility:x.value})},[kt(p.$slots,"back",{},()=>[Kt("back")],!0)],4),P("div",{class:"face right",style:Y({transform:`rotateY(90deg) translateZ(${r.value}px)`,backfaceVisibility:x.value})},[kt(p.$slots,"right",{},()=>[Kt("right")],!0)],4),P("div",{class:"face left",style:Y({transform:`rotateY(-90deg) translateZ(${r.value}px)`,backfaceVisibility:x.value})},[kt(p.$slots,"left",{},()=>[Kt("left")],!0)],4),P("div",{class:"face top",style:Y({transform:`rotateX(90deg) translateZ(${r.value}px)`,backfaceVisibility:x.value})},[kt(p.$slots,"top",{},()=>[Kt("top")],!0)],4),P("div",{class:"face bottom",style:Y({transform:`rotateX(-90deg) translateZ(${r.value}px)`,backfaceVisibility:x.value})},[kt(p.$slots,"bottom",{},()=>[Kt("bottom")],!0)],4)],6)],4),P("div",null,[dt(Ta,{options:["front","right","back","left","top","bottom"],onChange:S})]),P("div",null,[dt(Ti,{options:["Backface visible"],onChange:y})]),P("div",null,[dt(Ti,{options:["spin cube"],onChange:_})]),P("div",null,[Kt(" perspective: "),dt($s,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),P("div",null,[Kt(" perspective-origin x: "),dt($s,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),P("div",null,[Kt(" perspective-origin y: "),dt($s,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),ex="",Gv=mt(Bv,[["__scopeId","data-v-fde3e89a"]]),Xv=s=>(Ln("data-v-b4857d19"),s=s(),$n(),s),jv={class:"ring-indicator"},Uv={class:"ring-text"},Hv=Xv(()=>P("span",null,"%",-1)),Wv=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 r=Jm(()=>{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),i=M(0),o=M(0),a=(c,u)=>{i.value=c,o.value=u},l=M();return Mt(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new ih({width:i.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(r()),c.draw(u),!0))})}),t({}),(c,u)=>(F(),H("div",jv,[dt(ns,{ref_key:"canvasRef",ref:l,onResize:a},null,512),P("div",Uv,[P("span",null,wt(Lt(n)),1),Hv])]))}}),sx="",qv=mt(Wv,[["__scopeId","data-v-b4857d19"]]),fh=s=>(Ln("data-v-8e39fba1"),s=s(),$n(),s),Zv=[fh(()=>P("div",{class:"left"},null,-1)),fh(()=>P("div",{class:"right"},null,-1))],Qv={key:0},Kv={key:1},an=10,Tn=4,Jv=lt({customOptions:{Container:Et},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),r=(i,o)=>{n.value=Math.floor(Math.min(i,o))};return t({}),(i,o)=>(F(),zt(Et,{onResize:r,type:"full"},{default:Pt(()=>[P("div",{class:"ring",style:Y({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:Y({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-an-Tn}px, #000 ${n.value/2-an-Tn}px)`})},Zv,4),P("div",{class:"ring-content",style:Y({top:an+Tn+"px",left:an+Tn+"px",width:n.value-(an+Tn)*2+"px",height:n.value-(an+Tn)*2+"px"})},[e.text?(F(),H("div",Qv,wt(e.text),1)):Bt("",!0),e.secondText?(F(),H("div",Kv,wt(e.secondText),1)):Bt("",!0)],4)],4)]),_:1}))}}),ix="",ox="",t_=mt(Jv,[["__scopeId","data-v-8e39fba1"]]),e_=lt({customOptions:{Container:Et},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(),r=M(40),i=M(20),o=M(20),a=(_,x)=>{r.value=Math.floor(_/(6+1)),i.value=Math.floor(x),o.value=Math.max(12,i.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=Km((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"?(Wo(h,p),Wo(f,p+1)):(qo(h,p),qo(f,p+1)),d=0}else e.creaseType=="increase"?Wo(f,1):qo(f,1);ea(()=>{f.forEach((p,w)=>{h[w]=p})},e.dur)}};return t({start:S,pause:u}),(_,x)=>(F(),zt(Et,{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:Pt(()=>[P("div",{class:"clock-flipper",style:Y({fontSize:o.value+"px",lineHeight:i.value+"px"})},[(F(!0),H($t,null,ge(h,(y,p)=>(F(),H($t,{key:p},[P("div",{class:re(["flip",[e.flipDirection,f[p]!=y?"go":""]]),style:Y({width:r.value+"px"})},[P("div",{class:re(["front digital",[`flipper_${p}`,`number_${y}`]])},null,2),P("div",{class:re(["back digital",[`number_${f[p]}`]])},null,2)],6),p==1||p==3?(F(),H("div",{key:0,class:"gap",style:Y({fontSize:Math.floor(o.value*.6)+"px",lineHeight:0})}," : ",4)):Bt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),ax="",lx="",s_=mt(e_,[["__scopeId","data-v-8d77ae6d"]]),n_=lt({customOptions:{Container:Et},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,r)=>(F(),zt(Et,null,{default:Pt(()=>[P("div",{style:Y({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},wt(e.text),5)]),_:1}))}}),r_={class:"slide"},i_=lt({customOptions:{Container:Et},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({}),r=()=>{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}},i=()=>{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(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:i,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-before",style:Y({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),P("div",r_,[kt(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),cx="",o_=mt(i_,[["__scopeId","data-v-4b23f270"]]),a_={class:"slide-corner"},l_=lt({customOptions:{Container:Et},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 r=1,i=r*2;const o=(c,u)=>{r=Math.ceil(Math.max(c,u)/Math.min(c,u)),i=r*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(${i}, ${i}, ${i})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${i}, ${i}, ${i})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${i}, ${i}, ${i})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${i}, ${i}, ${i})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${i}, ${i}, ${i})`;break}};return t({}),(c,u)=>(F(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:l,onResize:o,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-corner-before",style:Y({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Lt(r)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),P("div",a_,[kt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ux="",c_=mt(l_,[["__scopeId","data-v-e47546e1"]]),u_={class:"line-single"},h_=lt({customOptions:{Container:Et},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 r=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},i=Jt({});switch(e.location){case"underline":i.bottom="0";break;case"overline":i.top="0";break;case"through":i.top="50%";break}const o=()=>{switch(e.direction){case"right":i.transformOrigin="bottom right",i.transform="scaleX(0)";break;case"left":i.transformOrigin="bottom left",i.transform="scaleX(0)";break;case"fromCenter":i.transformOrigin="center",i.transform="scaleX(0)";break}},a=()=>{switch(e.direction){case"right":i.transformOrigin="bottom left",i.transform="scaleX(1)";break;case"left":i.transformOrigin="bottom right",i.transform="scaleX(1)";break;case"fromCenter":i.transformOrigin="center",i.transform="scaleX(1)";break}};return t({}),(l,c)=>(F(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:r},{default:Pt(()=>[P("div",{class:"line-single-before",style:Y({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...i})},null,4),P("div",u_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),hx="",f_=mt(h_,[["__scopeId","data-v-8b261cbf"]]),d_={class:"line-double"},p_=lt({customOptions:{Container:Et},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 r=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},i=Jt({}),o=Jt({}),a=Jt({});switch(e.location){case"horizontal":i.width="100%",i.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":i.width=e.lineHeight+"px",i.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",i.transformOrigin="center right",i.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",i.transformOrigin="center bottom",i.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",i.transformOrigin="center left",i.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",i.transformOrigin="center top",i.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",i.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",i.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",i.transformOrigin="center",i.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",i.transformOrigin="center",i.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",i.transformOrigin="center left",i.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",i.transformOrigin="center top",i.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",i.transformOrigin="center right",i.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",i.transformOrigin="center bottom",i.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",i.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",i.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",i.transformOrigin="center",i.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",i.transformOrigin="center",i.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(F(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:r},{default:Pt(()=>[P("div",{class:"line-double-before",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...i,...o})},null,4),P("div",d_,[kt(u.$slots,"default",{},void 0,!0)]),P("div",{class:"line-double-after",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Lt(n)}ms ease-in-out`,...i,...a})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),fx="",m_=mt(p_,[["__scopeId","data-v-ac519c85"]]),g_=lt({customOptions:{Container:Et},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"}),r=()=>{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}},i=()=>{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(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:i},{default:Pt(()=>[P("div",{class:"float",style:Y({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[kt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),dx="",y_=mt(g_,[["__scopeId","data-v-2cdf6499"]]),v_={class:"circle"},__=lt({customOptions:{Container:Et},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(),r=Jt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),i=(l,c)=>{r.width=r.height=Math.ceil(Math.max(l,c))+"px",n.value?.repeatEffect?.()},o=()=>{const l=De(e.color,.2).toString();r.boxShadow=`
|
|
133
133
|
inset ${r.width} 0 0 ${l},
|
|
134
134
|
inset 0 ${r.width} 0 ${l},
|
|
135
135
|
inset -${r.width} 0 0 ${l},
|
|
@@ -139,5 +139,5 @@ Component that was made reactive: `,s)),P(s,t,e,n,r,o,i,!0)}function Nd(s){retur
|
|
|
139
139
|
inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
|
|
140
140
|
inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
|
|
141
141
|
inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
|
|
142
|
-
`};return t({}),(l,c)=>(F(),zt(Et,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:i},{default:Pt(()=>[P("div",{class:"circle-before",style:Y(r)},null,4),P("div",v_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),px="",b_=mt(__,[["__scopeId","data-v-0976c0d5"]]),x_=lt({customOptions:{Container:Et},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),r=()=>{n.value=!0},i=()=>{n.value=!1};return t({}),(o,a)=>(F(),zt(Et,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:i},{default:Pt(()=>[n.value?(F(),H("div",{key:0,class:"text",style:Y({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()})},wt(e.text),5)):Bt("",!0),P("div",{class:"inner",style:Y(n.value?{border:`${o.borderWidth}px solid ${o.borderColor}`,borderRadius:`${o.borderRadius}px`}:{})},[kt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),mx="",w_=mt(x_,[["__scopeId","data-v-e9c63701"]]),C_=lt({customOptions:{Container:Et,SVGMaskNapkin:Na},inheritAttrs:!0,__name:"ImageMask",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,n=M(0),r=M(0),i=(o,a)=>{n.value=o,r.value=a};return t({}),(o,a)=>(F(),H("div",{style:Y({width:`${n.value}px`,height:`${r.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[kt(o.$slots,"mask",{},()=>[dt(Na)]),dt(Et,{type:"shrink",onResize:i},{default:Pt(()=>[kt(o.$slots,"default")]),_:3})],4))}});return at.Accordion=ry,at.BooleanBox=lr,at.BorderFocusText=w_,at.Button=ve,at.CSSAnimation=cr,at.CardFlip=zv,at.CheckboxGroup=Ti,at.Circle=b_,at.ClockFlipper=s_,at.ColorPicker=R1,at.Container=Et,at.Cube=Gv,at.Dialog=hr,at.DialogLoading=Yy,at.DialogToast=Xy,at.EaseGraphDisplay=Aa,at.EaseGroupGraphDisplay=X1,at.FPSStats=V1,at.Float=y_,at.HandWritePanel=t1,at.Icon=on,at.Image=Ea,at.ImageMask=C_,at.ImageView=py,at.Input=M0,at.InputFileDrop=Q0,at.InputRange
|
|
142
|
+
`};return t({}),(l,c)=>(F(),zt(Et,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:i},{default:Pt(()=>[P("div",{class:"circle-before",style:Y(r)},null,4),P("div",v_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),px="",b_=mt(__,[["__scopeId","data-v-0976c0d5"]]),x_=lt({customOptions:{Container:Et},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),r=()=>{n.value=!0},i=()=>{n.value=!1};return t({}),(o,a)=>(F(),zt(Et,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:i},{default:Pt(()=>[n.value?(F(),H("div",{key:0,class:"text",style:Y({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()})},wt(e.text),5)):Bt("",!0),P("div",{class:"inner",style:Y(n.value?{border:`${o.borderWidth}px solid ${o.borderColor}`,borderRadius:`${o.borderRadius}px`}:{})},[kt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),mx="",w_=mt(x_,[["__scopeId","data-v-e9c63701"]]),C_=lt({customOptions:{Container:Et,SVGMaskNapkin:Na},inheritAttrs:!0,__name:"ImageMask",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,n=M(0),r=M(0),i=(o,a)=>{n.value=o,r.value=a};return t({}),(o,a)=>(F(),H("div",{style:Y({width:`${n.value}px`,height:`${r.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[kt(o.$slots,"mask",{},()=>[dt(Na)]),dt(Et,{type:"shrink",onResize:i},{default:Pt(()=>[kt(o.$slots,"default")]),_:3})],4))}});return at.Accordion=ry,at.BooleanBox=lr,at.BorderFocusText=w_,at.Button=ve,at.CSSAnimation=cr,at.CardFlip=zv,at.CheckboxGroup=Ti,at.Circle=b_,at.ClockFlipper=s_,at.ColorPicker=R1,at.Container=Et,at.Cube=Gv,at.Dialog=hr,at.DialogLoading=Yy,at.DialogToast=Xy,at.EaseGraphDisplay=Aa,at.EaseGroupGraphDisplay=X1,at.FPSStats=V1,at.Float=y_,at.HandWritePanel=t1,at.Icon=on,at.Image=Ea,at.ImageMask=C_,at.ImageView=py,at.Input=M0,at.InputFileDrop=Q0,at.InputRange=$s,at.InputRangeBox=H0,at.InputRangeCanvas=G0,at.InterpolationGraphDisplay=Ma,at.InterpolationGroupGraphDisplay=q1,at.LayoutCenter=Cy,at.LayoutMobile=xy,at.LineDouble=m_,at.LineSingle=f_,at.Loading1=dv,at.Loading10=Lv,at.Loading11=Sa,at.Loading2=gv,at.Loading3=vv,at.Loading4=xv,at.Loading5=Sv,at.Loading6=Ev,at.Loading7=Iv,at.Loading8=Ia,at.Loading9=Av,at.MapTianditu=$1,at.Overlay=Sn,at.Page=Pa,at.PageVerticalScrollProgressBar=n1,at.PlateDisplay=P1,at.PlateKeyboard=lh,at.PlateMobile=T1,at.Pop=Ve,at.Popover=Oa,at.ProgressBar=ur,at.RadioGroup=Ta,at.ResizeObserver=F1,at.RingIndicator=qv,at.RingText=t_,at.Routes=ki,at.SVGAndCanvas=av,at.SVGCheck=Da,at.SVGCleanUp=Ei,at.SVGDelete=ka,at.SVGDown=ar,at.SVGMaskNapkin=Na,at.Select=i0,at.SelectAbsolute=d0,at.Slide=o_,at.SlideCorner=c_,at.SlideLeftItem=sy,at.Status=q0,at.Switch=m0,at.Tab=Hy,at.Tabs=Ky,at.TextBackgroundClip=n_,at.Video=uy,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"}),at}({});
|
|
143
143
|
//# sourceMappingURL=zyzgroup_core_vue.iife.js.map
|