@zyzgroup/core-vue 0.0.36 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ce/yz_custom_element.iife.js +81 -81
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +741 -653
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +82 -82
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +20 -20
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +425 -337
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +20 -20
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/components/PlateDisplay.ce.vue.d.ts +5 -5
- package/types/components/PlateDisplay.vue.d.ts +5 -5
|
@@ -2,27 +2,27 @@ var YZCustomElement=function(he){"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 bs(s,t){const e=new Set(s.split(","));return t?o=>e.has(o.toLowerCase()):o=>e.has(o)}const Wt={}.NODE_ENV!=="production"?Object.freeze({}):{},_s={}.NODE_ENV!=="production"?Object.freeze([]):[],de=()=>{},Hd=()=>!1,Bs=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Tr=s=>s.startsWith("onUpdate:"),ie=Object.assign,Qn=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Wd=Object.prototype.hasOwnProperty,zt=(s,t)=>Wd.call(s,t),
|
|
5
|
+
**/function bs(s,t){const e=new Set(s.split(","));return t?o=>e.has(o.toLowerCase()):o=>e.has(o)}const Wt={}.NODE_ENV!=="production"?Object.freeze({}):{},_s={}.NODE_ENV!=="production"?Object.freeze([]):[],de=()=>{},Hd=()=>!1,Bs=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Tr=s=>s.startsWith("onUpdate:"),ie=Object.assign,Qn=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Wd=Object.prototype.hasOwnProperty,zt=(s,t)=>Wd.call(s,t),Pt=Array.isArray,Zo=s=>Sr(s)==="[object Map]",pl=s=>Sr(s)==="[object Set]",Ft=s=>typeof s=="function",ce=s=>typeof s=="string",xs=s=>typeof s=="symbol",Ht=s=>s!==null&&typeof s=="object",Kn=s=>(Ht(s)||Ft(s))&&Ft(s.then)&&Ft(s.catch),ml=Object.prototype.toString,Sr=s=>ml.call(s),Jn=s=>Sr(s).slice(8,-1),gl=s=>Sr(s)==="[object Object]",ta=s=>ce(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Ys=bs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zd=bs("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Er=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},qd=/-(\w)/g,mo=Er(s=>s.replace(qd,(t,e)=>e?e.toUpperCase():"")),Qd=/\B([A-Z])/g,Xe=Er(s=>s.replace(Qd,"-$1").toLowerCase()),Pr=Er(s=>s.charAt(0).toUpperCase()+s.slice(1)),qo=Er(s=>s?`on${Pr(s)}`:""),Eo=(s,t)=>!Object.is(s,t),Vs=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},Or=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},Kd=s=>{const t=parseFloat(s);return isNaN(t)?s:t},yl=s=>{const t=ce(s)?Number(s):NaN;return isNaN(t)?s:t};let vl;const ea=()=>vl||(vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function A(s){if(Pt(s)){const t={};for(let e=0;e<s.length;e++){const o=s[e],r=ce(o)?of(o):A(o);if(r)for(const n in r)t[n]=r[n]}return t}else if(ce(s)||Ht(s))return s}const Jd=/;(?![^(]*\))/g,tf=/:([^]+)/,ef=/\/\*[^]*?\*\//g;function of(s){const t={};return s.replace(ef,"").split(Jd).forEach(e=>{if(e){const o=e.split(tf);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function te(s){let t="";if(ce(s))t=s;else if(Pt(s))for(let e=0;e<s.length;e++){const o=te(s[e]);o&&(t+=o+" ")}else if(Ht(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const sf=bs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function bl(s){return!!s||s===""}const yt=s=>ce(s)?s:s==null?"":Pt(s)||Ht(s)&&(s.toString===ml||!Ft(s.toString))?JSON.stringify(s,_l,2):String(s),_l=(s,t)=>t&&t.__v_isRef?_l(s,t.value):Zo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[o,r],n)=>(e[oa(o,n)+" =>"]=r,e),{})}:pl(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>oa(e))}:xs(t)?oa(t):Ht(t)&&!Pt(t)&&!gl(t)?String(t):t,oa=(s,t="")=>{var e;return xs(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 Po(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let qe;class rf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qe,!t&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=qe;try{return qe=this,t()}finally{qe=e}}else({}).NODE_ENV!=="production"&&Po("cannot run an inactive effect scope.")}on(){qe=this}off(){qe=this.parent}stop(t){if(this._active){let e,o;for(e=0,o=this.effects.length;e<o;e++)this.effects[e].stop();for(e=0,o=this.cleanups.length;e<o;e++)this.cleanups[e]();if(this.scopes)for(e=0,o=this.scopes.length;e<o;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 nf(s,t=qe){t&&t.active&&t.effects.push(s)}function af(){return qe}let Qo;class sa{constructor(t,e,o,r){this.fn=t,this.trigger=e,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,nf(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Io();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(lf(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ro()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Oo,e=Qo;try{return Oo=!0,Qo=this,this._runnings++,xl(this),this.fn()}finally{wl(this),this._runnings--,Qo=e,Oo=t}}stop(){var t;this.active&&(xl(this),wl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function lf(s){return s.value}function xl(s){s._trackId++,s._depsLength=0}function wl(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)kl(s.deps[t],s);s.deps.length=s._depsLength}}function kl(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Oo=!0,ra=0;const Cl=[];function Io(){Cl.push(Oo),Oo=!1}function Ro(){const s=Cl.pop();Oo=s===void 0?!0:s}function na(){ra++}function aa(){for(ra--;!ra&&ia.length;)ia.shift()()}function Tl(s,t,e){var o;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const r=s.deps[s._depsLength];r!==t?(r&&kl(r,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((o=s.onTrack)==null||o.call(s,ie({effect:s},e)))}}const ia=[];function Sl(s,t,e){var o;na();for(const r of s.keys()){let n;r._dirtyLevel<t&&(n??(n=s.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(n??(n=s.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((o=r.onTrigger)==null||o.call(r,ie({effect:r},e))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&ia.push(r.scheduler)))}aa()}const El=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},la=new WeakMap,Ko=Symbol({}.NODE_ENV!=="production"?"iterate":""),ca=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ke(s,t,e){if(Oo&&Qo){let o=la.get(s);o||la.set(s,o=new Map);let r=o.get(e);r||o.set(e,r=El(()=>o.delete(e))),Tl(Qo,r,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function oo(s,t,e,o,r,n){const a=la.get(s);if(!a)return;let i=[];if(t==="clear")i=[...a.values()];else if(e==="length"&&Et(s)){const l=Number(o);a.forEach((c,u)=>{(u==="length"||!xs(u)&&u>=l)&&i.push(c)})}else switch(e!==void 0&&i.push(a.get(e)),t){case"add":Et(s)?ta(e)&&i.push(a.get("length")):(i.push(a.get(Ko)),Zo(s)&&i.push(a.get(ca)));break;case"delete":Et(s)||(i.push(a.get(Ko)),Zo(s)&&i.push(a.get(ca)));break;case"set":Zo(s)&&i.push(a.get(Ko));break}na();for(const l of i)l&&Sl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:o,oldValue:r,oldTarget:n}:void 0);aa()}const cf=bs("__proto__,__v_isRef,__isVue"),Pl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(xs)),Ol=uf();function uf(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const o=Dt(this);for(let n=0,a=this.length;n<a;n++)ke(o,"get",n+"");const r=o[t](...e);return r===-1||r===!1?o[t](...e.map(Dt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){Io(),na();const o=Dt(this)[t].apply(this,e);return aa(),Ro(),o}}),s}function hf(s){const t=Dt(this);return ke(t,"has",s),t.hasOwnProperty(s)}class Il{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,o){const r=this._isReadonly,n=this._isShallow;if(e==="__v_isReactive")return!r;if(e==="__v_isReadonly")return r;if(e==="__v_isShallow")return n;if(e==="__v_raw")return o===(r?n?Yl:Bl:n?zl:Nl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=Et(t);if(!r){if(a&&zt(Ol,e))return Reflect.get(Ol,e,o);if(e==="hasOwnProperty")return hf}const i=Reflect.get(t,e,o);return(xs(e)?Pl.has(e):cf(e))||(r||ke(t,"get",e),n)?i:Ce(i)?a&&ta(e)?i:i.value:Ht(i)?r?Vl(i):Zt(i):i}}class Rl extends Il{constructor(t=!1){super(!1,t)}set(t,e,o,r){let n=t[e];if(!this._isShallow){const l=$o(n);if(!ts(o)&&!$o(o)&&(n=Dt(n),o=Dt(o)),!Et(t)&&Ce(n)&&!Ce(o))return l?!1:(n.value=o,!0)}const a=Et(t)&&ta(e)?Number(e)<t.length:zt(t,e),i=Reflect.set(t,e,o,r);return t===Dt(r)&&(a?Eo(o,n)&&oo(t,"set",e,o,n):oo(t,"add",e,o)),i}deleteProperty(t,e){const o=zt(t,e),r=t[e],n=Reflect.deleteProperty(t,e);return n&&o&&oo(t,"delete",e,void 0,r),n}has(t,e){const o=Reflect.has(t,e);return(!xs(e)||!Pl.has(e))&&ke(t,"has",e),o}ownKeys(t){return ke(t,"iterate",Et(t)?"length":Ko),Reflect.ownKeys(t)}}class Fl extends Il{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Po(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Po(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const df=new Rl,ff=new Fl,pf=new Rl(!0),mf=new Fl(!0),ua=s=>s,Ir=s=>Reflect.getPrototypeOf(s);function Rr(s,t,e=!1,o=!1){s=s.__v_raw;const r=Dt(s),n=Dt(t);e||(Eo(t,n)&&ke(r,"get",t),ke(r,"get",n));const{has:a}=Ir(r),i=o?ua:e?da:Xs;if(a.call(r,t))return i(s.get(t));if(a.call(r,n))return i(s.get(n));s!==r&&s.get(t)}function Fr(s,t=!1){const e=this.__v_raw,o=Dt(e),r=Dt(s);return t||(Eo(s,r)&&ke(o,"has",s),ke(o,"has",r)),s===r?e.has(s):e.has(s)||e.has(r)}function $r(s,t=!1){return s=s.__v_raw,!t&&ke(Dt(s),"iterate",Ko),Reflect.get(s,"size",s)}function $l(s){s=Dt(s);const t=Dt(this);return Ir(t).has.call(t,s)||(t.add(s),oo(t,"add",s,s)),this}function Dl(s,t){t=Dt(t);const e=Dt(this),{has:o,get:r}=Ir(e);let n=o.call(e,s);n?{}.NODE_ENV!=="production"&&Al(e,o,s):(s=Dt(s),n=o.call(e,s));const a=r.call(e,s);return e.set(s,t),n?Eo(t,a)&&oo(e,"set",s,t,a):oo(e,"add",s,t),this}function Ll(s){const t=Dt(this),{has:e,get:o}=Ir(t);let r=e.call(t,s);r?{}.NODE_ENV!=="production"&&Al(t,e,s):(s=Dt(s),r=e.call(t,s));const n=o?o.call(t,s):void 0,a=t.delete(s);return r&&oo(t,"delete",s,void 0,n),a}function Ml(){const s=Dt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Zo(s)?new Map(s):new Set(s):void 0,o=s.clear();return t&&oo(s,"clear",void 0,void 0,e),o}function Dr(s,t){return function(o,r){const n=this,a=n.__v_raw,i=Dt(a),l=t?ua:s?da:Xs;return!s&&ke(i,"iterate",Ko),a.forEach((c,u)=>o.call(r,l(c),l(u),n))}}function Lr(s,t,e){return function(...o){const r=this.__v_raw,n=Dt(r),a=Zo(n),i=s==="entries"||s===Symbol.iterator&&a,l=s==="keys"&&a,c=r[s](...o),u=e?ua:t?da:Xs;return!t&&ke(n,"iterate",l?ca:Ko),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:i?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Fo(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Po(`${Pr(s)} operation ${e}failed: target is readonly.`,Dt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function gf(){const s={get(n){return Rr(this,n)},get size(){return $r(this)},has:Fr,add:$l,set:Dl,delete:Ll,clear:Ml,forEach:Dr(!1,!1)},t={get(n){return Rr(this,n,!1,!0)},get size(){return $r(this)},has:Fr,add:$l,set:Dl,delete:Ll,clear:Ml,forEach:Dr(!1,!0)},e={get(n){return Rr(this,n,!0)},get size(){return $r(this,!0)},has(n){return Fr.call(this,n,!0)},add:Fo("add"),set:Fo("set"),delete:Fo("delete"),clear:Fo("clear"),forEach:Dr(!0,!1)},o={get(n){return Rr(this,n,!0,!0)},get size(){return $r(this,!0)},has(n){return Fr.call(this,n,!0)},add:Fo("add"),set:Fo("set"),delete:Fo("delete"),clear:Fo("clear"),forEach:Dr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=Lr(n,!1,!1),e[n]=Lr(n,!0,!1),t[n]=Lr(n,!1,!0),o[n]=Lr(n,!0,!0)}),[s,e,t,o]}const[yf,vf,bf,_f]=gf();function Mr(s,t){const e=t?s?_f:bf:s?vf:yf;return(o,r,n)=>r==="__v_isReactive"?!s:r==="__v_isReadonly"?s:r==="__v_raw"?o:Reflect.get(zt(e,r)&&r in o?e:o,r,n)}const xf={get:Mr(!1,!1)},wf={get:Mr(!1,!0)},kf={get:Mr(!0,!1)},Cf={get:Mr(!0,!0)};function Al(s,t,e){const o=Dt(e);if(o!==e&&t.call(s,o)){const r=Jn(s);Po(`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 Nl=new WeakMap,zl=new WeakMap,Bl=new WeakMap,Yl=new WeakMap;function Tf(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sf(s){return s.__v_skip||!Object.isExtensible(s)?0:Tf(Jn(s))}function Zt(s){return $o(s)?s:Ar(s,!1,df,xf,Nl)}function Ef(s){return Ar(s,!1,pf,wf,zl)}function Vl(s){return Ar(s,!0,ff,kf,Bl)}function ws(s){return Ar(s,!0,mf,Cf,Yl)}function Ar(s,t,e,o,r){if(!Ht(s))return{}.NODE_ENV!=="production"&&Po(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const n=r.get(s);if(n)return n;const a=Sf(s);if(a===0)return s;const i=new Proxy(s,a===2?o:e);return r.set(s,i),i}function Jo(s){return $o(s)?Jo(s.__v_raw):!!(s&&s.__v_isReactive)}function $o(s){return!!(s&&s.__v_isReadonly)}function ts(s){return!!(s&&s.__v_isShallow)}function ha(s){return Jo(s)||$o(s)}function Dt(s){const t=s&&s.__v_raw;return t?Dt(t):s}function Xl(s){return Object.isExtensible(s)&&Or(s,"__v_skip",!0),s}const Xs=s=>Ht(s)?Zt(s):s,da=s=>Ht(s)?Vl(s):s,Pf="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 Gl{constructor(t,e,o,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new sa(()=>t(this._value),()=>Nr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=Dt(this);return(!t._cacheable||t.effect.dirty)&&Eo(t._value,t._value=t.effect.run())&&Nr(t,4),Ul(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Po(Pf,`
|
|
9
|
+
**/function Po(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let qe;class rf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qe,!t&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=qe;try{return qe=this,t()}finally{qe=e}}else({}).NODE_ENV!=="production"&&Po("cannot run an inactive effect scope.")}on(){qe=this}off(){qe=this.parent}stop(t){if(this._active){let e,o;for(e=0,o=this.effects.length;e<o;e++)this.effects[e].stop();for(e=0,o=this.cleanups.length;e<o;e++)this.cleanups[e]();if(this.scopes)for(e=0,o=this.scopes.length;e<o;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 nf(s,t=qe){t&&t.active&&t.effects.push(s)}function af(){return qe}let Qo;class sa{constructor(t,e,o,r){this.fn=t,this.trigger=e,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,nf(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Io();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(lf(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ro()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Oo,e=Qo;try{return Oo=!0,Qo=this,this._runnings++,xl(this),this.fn()}finally{wl(this),this._runnings--,Qo=e,Oo=t}}stop(){var t;this.active&&(xl(this),wl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function lf(s){return s.value}function xl(s){s._trackId++,s._depsLength=0}function wl(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)kl(s.deps[t],s);s.deps.length=s._depsLength}}function kl(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Oo=!0,ra=0;const Cl=[];function Io(){Cl.push(Oo),Oo=!1}function Ro(){const s=Cl.pop();Oo=s===void 0?!0:s}function na(){ra++}function aa(){for(ra--;!ra&&ia.length;)ia.shift()()}function Tl(s,t,e){var o;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const r=s.deps[s._depsLength];r!==t?(r&&kl(r,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((o=s.onTrack)==null||o.call(s,ie({effect:s},e)))}}const ia=[];function Sl(s,t,e){var o;na();for(const r of s.keys()){let n;r._dirtyLevel<t&&(n??(n=s.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(n??(n=s.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((o=r.onTrigger)==null||o.call(r,ie({effect:r},e))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&ia.push(r.scheduler)))}aa()}const El=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},la=new WeakMap,Ko=Symbol({}.NODE_ENV!=="production"?"iterate":""),ca=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function ke(s,t,e){if(Oo&&Qo){let o=la.get(s);o||la.set(s,o=new Map);let r=o.get(e);r||o.set(e,r=El(()=>o.delete(e))),Tl(Qo,r,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function oo(s,t,e,o,r,n){const a=la.get(s);if(!a)return;let i=[];if(t==="clear")i=[...a.values()];else if(e==="length"&&Pt(s)){const l=Number(o);a.forEach((c,u)=>{(u==="length"||!xs(u)&&u>=l)&&i.push(c)})}else switch(e!==void 0&&i.push(a.get(e)),t){case"add":Pt(s)?ta(e)&&i.push(a.get("length")):(i.push(a.get(Ko)),Zo(s)&&i.push(a.get(ca)));break;case"delete":Pt(s)||(i.push(a.get(Ko)),Zo(s)&&i.push(a.get(ca)));break;case"set":Zo(s)&&i.push(a.get(Ko));break}na();for(const l of i)l&&Sl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:o,oldValue:r,oldTarget:n}:void 0);aa()}const cf=bs("__proto__,__v_isRef,__isVue"),Pl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(xs)),Ol=uf();function uf(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const o=Dt(this);for(let n=0,a=this.length;n<a;n++)ke(o,"get",n+"");const r=o[t](...e);return r===-1||r===!1?o[t](...e.map(Dt)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){Io(),na();const o=Dt(this)[t].apply(this,e);return aa(),Ro(),o}}),s}function hf(s){const t=Dt(this);return ke(t,"has",s),t.hasOwnProperty(s)}class Il{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,o){const r=this._isReadonly,n=this._isShallow;if(e==="__v_isReactive")return!r;if(e==="__v_isReadonly")return r;if(e==="__v_isShallow")return n;if(e==="__v_raw")return o===(r?n?Yl:Bl:n?zl:Nl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=Pt(t);if(!r){if(a&&zt(Ol,e))return Reflect.get(Ol,e,o);if(e==="hasOwnProperty")return hf}const i=Reflect.get(t,e,o);return(xs(e)?Pl.has(e):cf(e))||(r||ke(t,"get",e),n)?i:Ce(i)?a&&ta(e)?i:i.value:Ht(i)?r?Vl(i):Zt(i):i}}class Rl extends Il{constructor(t=!1){super(!1,t)}set(t,e,o,r){let n=t[e];if(!this._isShallow){const l=$o(n);if(!ts(o)&&!$o(o)&&(n=Dt(n),o=Dt(o)),!Pt(t)&&Ce(n)&&!Ce(o))return l?!1:(n.value=o,!0)}const a=Pt(t)&&ta(e)?Number(e)<t.length:zt(t,e),i=Reflect.set(t,e,o,r);return t===Dt(r)&&(a?Eo(o,n)&&oo(t,"set",e,o,n):oo(t,"add",e,o)),i}deleteProperty(t,e){const o=zt(t,e),r=t[e],n=Reflect.deleteProperty(t,e);return n&&o&&oo(t,"delete",e,void 0,r),n}has(t,e){const o=Reflect.has(t,e);return(!xs(e)||!Pl.has(e))&&ke(t,"has",e),o}ownKeys(t){return ke(t,"iterate",Pt(t)?"length":Ko),Reflect.ownKeys(t)}}class Fl extends Il{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Po(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Po(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const df=new Rl,ff=new Fl,pf=new Rl(!0),mf=new Fl(!0),ua=s=>s,Ir=s=>Reflect.getPrototypeOf(s);function Rr(s,t,e=!1,o=!1){s=s.__v_raw;const r=Dt(s),n=Dt(t);e||(Eo(t,n)&&ke(r,"get",t),ke(r,"get",n));const{has:a}=Ir(r),i=o?ua:e?da:Xs;if(a.call(r,t))return i(s.get(t));if(a.call(r,n))return i(s.get(n));s!==r&&s.get(t)}function Fr(s,t=!1){const e=this.__v_raw,o=Dt(e),r=Dt(s);return t||(Eo(s,r)&&ke(o,"has",s),ke(o,"has",r)),s===r?e.has(s):e.has(s)||e.has(r)}function $r(s,t=!1){return s=s.__v_raw,!t&&ke(Dt(s),"iterate",Ko),Reflect.get(s,"size",s)}function $l(s){s=Dt(s);const t=Dt(this);return Ir(t).has.call(t,s)||(t.add(s),oo(t,"add",s,s)),this}function Dl(s,t){t=Dt(t);const e=Dt(this),{has:o,get:r}=Ir(e);let n=o.call(e,s);n?{}.NODE_ENV!=="production"&&Al(e,o,s):(s=Dt(s),n=o.call(e,s));const a=r.call(e,s);return e.set(s,t),n?Eo(t,a)&&oo(e,"set",s,t,a):oo(e,"add",s,t),this}function Ll(s){const t=Dt(this),{has:e,get:o}=Ir(t);let r=e.call(t,s);r?{}.NODE_ENV!=="production"&&Al(t,e,s):(s=Dt(s),r=e.call(t,s));const n=o?o.call(t,s):void 0,a=t.delete(s);return r&&oo(t,"delete",s,void 0,n),a}function Ml(){const s=Dt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Zo(s)?new Map(s):new Set(s):void 0,o=s.clear();return t&&oo(s,"clear",void 0,void 0,e),o}function Dr(s,t){return function(o,r){const n=this,a=n.__v_raw,i=Dt(a),l=t?ua:s?da:Xs;return!s&&ke(i,"iterate",Ko),a.forEach((c,u)=>o.call(r,l(c),l(u),n))}}function Lr(s,t,e){return function(...o){const r=this.__v_raw,n=Dt(r),a=Zo(n),i=s==="entries"||s===Symbol.iterator&&a,l=s==="keys"&&a,c=r[s](...o),u=e?ua:t?da:Xs;return!t&&ke(n,"iterate",l?ca:Ko),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:i?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Fo(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Po(`${Pr(s)} operation ${e}failed: target is readonly.`,Dt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function gf(){const s={get(n){return Rr(this,n)},get size(){return $r(this)},has:Fr,add:$l,set:Dl,delete:Ll,clear:Ml,forEach:Dr(!1,!1)},t={get(n){return Rr(this,n,!1,!0)},get size(){return $r(this)},has:Fr,add:$l,set:Dl,delete:Ll,clear:Ml,forEach:Dr(!1,!0)},e={get(n){return Rr(this,n,!0)},get size(){return $r(this,!0)},has(n){return Fr.call(this,n,!0)},add:Fo("add"),set:Fo("set"),delete:Fo("delete"),clear:Fo("clear"),forEach:Dr(!0,!1)},o={get(n){return Rr(this,n,!0,!0)},get size(){return $r(this,!0)},has(n){return Fr.call(this,n,!0)},add:Fo("add"),set:Fo("set"),delete:Fo("delete"),clear:Fo("clear"),forEach:Dr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=Lr(n,!1,!1),e[n]=Lr(n,!0,!1),t[n]=Lr(n,!1,!0),o[n]=Lr(n,!0,!0)}),[s,e,t,o]}const[yf,vf,bf,_f]=gf();function Mr(s,t){const e=t?s?_f:bf:s?vf:yf;return(o,r,n)=>r==="__v_isReactive"?!s:r==="__v_isReadonly"?s:r==="__v_raw"?o:Reflect.get(zt(e,r)&&r in o?e:o,r,n)}const xf={get:Mr(!1,!1)},wf={get:Mr(!1,!0)},kf={get:Mr(!0,!1)},Cf={get:Mr(!0,!0)};function Al(s,t,e){const o=Dt(e);if(o!==e&&t.call(s,o)){const r=Jn(s);Po(`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 Nl=new WeakMap,zl=new WeakMap,Bl=new WeakMap,Yl=new WeakMap;function Tf(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sf(s){return s.__v_skip||!Object.isExtensible(s)?0:Tf(Jn(s))}function Zt(s){return $o(s)?s:Ar(s,!1,df,xf,Nl)}function Ef(s){return Ar(s,!1,pf,wf,zl)}function Vl(s){return Ar(s,!0,ff,kf,Bl)}function ws(s){return Ar(s,!0,mf,Cf,Yl)}function Ar(s,t,e,o,r){if(!Ht(s))return{}.NODE_ENV!=="production"&&Po(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const n=r.get(s);if(n)return n;const a=Sf(s);if(a===0)return s;const i=new Proxy(s,a===2?o:e);return r.set(s,i),i}function Jo(s){return $o(s)?Jo(s.__v_raw):!!(s&&s.__v_isReactive)}function $o(s){return!!(s&&s.__v_isReadonly)}function ts(s){return!!(s&&s.__v_isShallow)}function ha(s){return Jo(s)||$o(s)}function Dt(s){const t=s&&s.__v_raw;return t?Dt(t):s}function Xl(s){return Object.isExtensible(s)&&Or(s,"__v_skip",!0),s}const Xs=s=>Ht(s)?Zt(s):s,da=s=>Ht(s)?Vl(s):s,Pf="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 Gl{constructor(t,e,o,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new sa(()=>t(this._value),()=>Nr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=Dt(this);return(!t._cacheable||t.effect.dirty)&&Eo(t._value,t._value=t.effect.run())&&Nr(t,4),Ul(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Po(Pf,`
|
|
10
10
|
|
|
11
|
-
getter: `,this.getter),Nr(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Of(s,t,e=!1){let o,r;const n=
|
|
11
|
+
getter: `,this.getter),Nr(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Of(s,t,e=!1){let o,r;const n=Ft(s);n?(o=s,r={}.NODE_ENV!=="production"?()=>{Po("Write operation failed: computed value is readonly")}:de):(o=s.get,r=s.set);const a=new Gl(o,r,n||!r,e);return{}.NODE_ENV!=="production"&&t&&!e&&(a.effect.onTrack=t.onTrack,a.effect.onTrigger=t.onTrigger),a}function Ul(s){var t;Oo&&Qo&&(s=Dt(s),Tl(Qo,(t=s.dep)!=null?t:s.dep=El(()=>s.dep=void 0,s instanceof Gl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Nr(s,t=4,e){s=Dt(s);const o=s.dep;o&&Sl(o,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function Ce(s){return!!(s&&s.__v_isRef===!0)}function I(s){return If(s,!1)}function If(s,t){return Ce(s)?s:new Rf(s,t)}class Rf{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:Xs(t)}get value(){return Ul(this),this._value}set value(t){const e=this.__v_isShallow||ts(t)||$o(t);t=e?t:Dt(t),Eo(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Xs(t),Nr(this,4,t))}}function Et(s){return Ce(s)?s.value:s}const Ff={get:(s,t,e)=>Et(Reflect.get(s,t,e)),set:(s,t,e,o)=>{const r=s[t];return Ce(r)&&!Ce(e)?(r.value=e,!0):Reflect.set(s,t,e,o)}};function jl(s){return Jo(s)?s:new Proxy(s,Ff)}/**
|
|
12
12
|
* @vue/runtime-core v3.4.21
|
|
13
13
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
14
|
* @license MIT
|
|
15
15
|
**/const es=[];function zr(s){es.push(s)}function Br(){es.pop()}function ut(s,...t){Io();const e=es.length?es[es.length-1].component:null,o=e&&e.appContext.config.warnHandler,r=$f();if(o)go(o,e,11,[s+t.map(n=>{var a,i;return(i=(a=n.toString)==null?void 0:a.call(n))!=null?i:JSON.stringify(n)}).join(""),e&&e.proxy,r.map(({vnode:n})=>`at <${sn(e,n.type)}>`).join(`
|
|
16
16
|
`),r]);else{const n=[`[Vue warn]: ${s}`,...t];r.length&&n.push(`
|
|
17
17
|
`,...Df(r)),console.warn(...n)}Ro()}function $f(){let s=es[es.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 o=s.component&&s.component.parent;s=o&&o.vnode}return t}function Df(s){const t=[];return s.forEach((e,o)=>{t.push(...o===0?[]:[`
|
|
18
|
-
`],...Lf(e))}),t}function Lf({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",o=s.component?s.component.parent==null:!1,r=` at <${sn(s.component,s.type,o)}`,n=">"+e;return s.props?[r,...Mf(s.props),n]:[r+n]}function Mf(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(o=>{t.push(...Hl(o,s[o]))}),e.length>3&&t.push(" ..."),t}function Hl(s,t,e){return ce(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:Ce(t)?(t=Hl(s,Dt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Rt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Dt(t),e?t:[`${s}=`,t])}const fa={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 go(s,t,e,o){try{return o?s(...o):s()}catch(r){Gs(r,t,e)}}function Qe(s,t,e,o){if(Rt(s)){const n=go(s,t,e,o);return n&&Kn(n)&&n.catch(a=>{Gs(a,t,e)}),n}const r=[];for(let n=0;n<s.length;n++)r.push(Qe(s[n],t,e,o));return r}function Gs(s,t,e,o=!0){const r=t?t.vnode:null;if(t){let n=t.parent;const a=t.proxy,i={}.NODE_ENV!=="production"?fa[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;n;){const c=n.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,a,i)===!1)return}n=n.parent}const l=t.appContext.config.errorHandler;if(l){go(l,null,10,[s,a,i]);return}}Af(s,e,r,o)}function Af(s,t,e,o=!0){if({}.NODE_ENV!=="production"){const r=fa[t];if(e&&zr(e),ut(`Unhandled error${r?` during execution of ${r}`:""}`),e&&Br(),o)throw s;console.error(s)}else console.error(s)}let Us=!1,pa=!1;const Pe=[];let so=0;const ks=[];let yo=null,Do=0;const Wl=Promise.resolve();let ma=null;const Nf=100;function Zl(s){const t=ma||Wl;return s?t.then(this?s.bind(this):s):t}function zf(s){let t=so+1,e=Pe.length;for(;t<e;){const o=t+e>>>1,r=Pe[o],n=js(r);n<s||n===s&&r.pre?t=o+1:e=o}return t}function Yr(s){(!Pe.length||!Pe.includes(s,Us&&s.allowRecurse?so+1:so))&&(s.id==null?Pe.push(s):Pe.splice(zf(s.id),0,s),ql())}function ql(){!Us&&!pa&&(pa=!0,ma=Wl.then(tc))}function Bf(s){const t=Pe.indexOf(s);t>so&&Pe.splice(t,1)}function Ql(s){Et(s)?ks.push(...s):(!yo||!yo.includes(s,s.allowRecurse?Do+1:Do))&&ks.push(s),ql()}function Kl(s,t,e=Us?so+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Pe.length;e++){const o=Pe[e];if(o&&o.pre){if(s&&o.id!==s.uid||{}.NODE_ENV!=="production"&&ga(t,o))continue;Pe.splice(e,1),e--,o()}}}function Jl(s){if(ks.length){const t=[...new Set(ks)].sort((e,o)=>js(e)-js(o));if(ks.length=0,yo){yo.push(...t);return}for(yo=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Do=0;Do<yo.length;Do++)({}).NODE_ENV!=="production"&&ga(s,yo[Do])||yo[Do]();yo=null,Do=0}}const js=s=>s.id==null?1/0:s.id,Yf=(s,t)=>{const e=js(s)-js(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function tc(s){pa=!1,Us=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Pe.sort(Yf);const t={}.NODE_ENV!=="production"?e=>ga(s,e):de;try{for(so=0;so<Pe.length;so++){const e=Pe[so];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;go(e,null,14)}}}finally{so=0,Pe.length=0,Jl(s),Us=!1,ma=null,(Pe.length||ks.length)&&tc(s)}}function ga(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>Nf){const o=t.ownerInstance,r=o&&Hc(o.type);return Gs(`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 os=!1;const Cs=new Set;({}).NODE_ENV!=="production"&&(ea().__VUE_HMR_RUNTIME__={createRecord:ya(ec),rerender:ya(Gf),reload:ya(Uf)});const ss=new Map;function Vf(s){const t=s.type.__hmrId;let e=ss.get(t);e||(ec(t,s.type),e=ss.get(t)),e.instances.add(s)}function Xf(s){ss.get(s.type.__hmrId).instances.delete(s)}function ec(s,t){return ss.has(s)?!1:(ss.set(s,{initialDef:Hs(t),instances:new Set}),!0)}function Hs(s){return Wc(s)?s.__vccOpts:s}function Gf(s,t){const e=ss.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(o=>{t&&(o.render=t,Hs(o.type).render=t),o.renderCache=[],os=!0,o.effect.dirty=!0,o.update(),os=!1}))}function Uf(s,t){const e=ss.get(s);if(!e)return;t=Hs(t),oc(e.initialDef,t);const o=[...e.instances];for(const r of o){const n=Hs(r.type);Cs.has(n)||(n!==e.initialDef&&oc(n,t),Cs.add(n)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(Cs.add(n),r.ceReload(t.styles),Cs.delete(n)):r.parent?(r.parent.effect.dirty=!0,Yr(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.")}Ql(()=>{for(const r of o)Cs.delete(Hs(r.type))})}function oc(s,t){ie(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function ya(s){return(t,e)=>{try{return s(t,e)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ro,Ws=[],va=!1;function Zs(s,...t){ro?ro.emit(s,...t):va||Ws.push({event:s,args:t})}function sc(s,t){var e,o;ro=s,ro?(ro.enabled=!0,Ws.forEach(({event:r,args:n})=>ro.emit(r,...n)),Ws=[]):typeof window<"u"&&window.HTMLElement&&!((o=(e=window.navigator)==null?void 0:e.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{sc(n,t)}),setTimeout(()=>{ro||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,va=!0,Ws=[])},3e3)):(va=!0,Ws=[])}function jf(s,t){Zs("app:init",s,t,{Fragment:Xt,Text:tr,Comment:Ne,Static:er})}function Hf(s){Zs("app:unmount",s)}const Wf=ba("component:added"),rc=ba("component:updated"),Zf=ba("component:removed"),qf=s=>{ro&&typeof ro.cleanupBuffer=="function"&&!ro.cleanupBuffer(s)&&Zf(s)};function ba(s){return t=>{Zs(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Qf=nc("perf:start"),Kf=nc("perf:end");function nc(s){return(t,e,o)=>{Zs(s,t.appContext.app,t.uid,t,e,o)}}function Jf(s,t,e){Zs("component:emit",s.appContext.app,s,t,e)}function tp(s,t,...e){if(s.isUnmounted)return;const o=s.vnode.props||Wt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(qo(t)in h))&&ut(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${qo(t)}" prop.`);else{const f=u[t];Rt(f)&&(f(...e)||ut(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=e;const n=t.startsWith("update:"),a=n&&t.slice(7);if(a&&a in o){const u=`${a==="modelValue"?"model":a}Modifiers`,{number:h,trim:f}=o[u]||Wt;f&&(r=e.map(p=>ce(p)?p.trim():p)),h&&(r=e.map(Kd))}if({}.NODE_ENV!=="production"&&Jf(s,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&o[qo(u)]&&ut(`Event "${u}" is emitted in component ${sn(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 "${Xe(t)}" instead of "${t}".`)}let i,l=o[i=qo(t)]||o[i=qo(mo(t))];!l&&n&&(l=o[i=qo(Xe(t))]),l&&Qe(l,s,6,r);const c=o[i+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[i])return;s.emitted[i]=!0,Qe(c,s,6,r)}}function ac(s,t,e=!1){const o=t.emitsCache,r=o.get(s);if(r!==void 0)return r;const n=s.emits;let a={},i=!1;if(!Rt(s)){const l=c=>{const u=ac(c,t,!0);u&&(i=!0,ie(a,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!n&&!i?(Ht(s)&&o.set(s,null),null):(Et(n)?n.forEach(l=>a[l]=null):ie(a,n),Ht(s)&&o.set(s,a),a)}function Vr(s,t){return!s||!Bs(t)?!1:(t=t.slice(2).replace(/Once$/,""),zt(s,t[0].toLowerCase()+t.slice(1))||zt(s,Xe(t))||zt(s,t))}let fe=null,Xr=null;function Gr(s){const t=fe;return fe=s,Xr=s&&s.type.__scopeId||null,t}function Ts(s){Xr=s}function Ss(){Xr=null}function bt(s,t=fe,e){if(!t||s._n)return s;const o=(...r)=>{o._d&&Dc(-1);const n=Gr(t);let a;try{a=s(...r)}finally{Gr(n),o._d&&Dc(1)}return{}.NODE_ENV!=="production"&&rc(t),a};return o._n=!0,o._c=!0,o._d=!0,o}let _a=!1;function Ur(){_a=!0}function xa(s){const{type:t,vnode:e,proxy:o,withProxy:r,props:n,propsOptions:[a],slots:i,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:p,ctx:d,inheritAttrs:b}=s;let _,v;const w=Gr(s);({}).NODE_ENV!=="production"&&(_a=!1);try{if(e.shapeFlag&4){const k=r||o,C={}.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(k,{get(z,tt,R){return ut(`Property '${String(tt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(z,tt,R)}}):k;_=Je(u.call(C,k,h,n,p,f,d)),v=l}else{const k=t;({}).NODE_ENV!=="production"&&l===n&&Ur(),_=Je(k.length>1?k(n,{}.NODE_ENV!=="production"?{get attrs(){return Ur(),l},slots:i,emit:c}:{attrs:l,slots:i,emit:c}):k(n,null)),v=t.props?l:ep(l)}}catch(k){or.length=0,Gs(k,s,1),_=lt(Ne)}let g=_,m;if({}.NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&([g,m]=ic(_)),v&&b!==!1){const k=Object.keys(v),{shapeFlag:C}=g;if(k.length){if(C&7)a&&k.some(Tr)&&(v=op(v,a)),g=Ao(g,v);else if({}.NODE_ENV!=="production"&&!_a&&g.type!==Ne){const z=Object.keys(l),tt=[],R=[];for(let D=0,M=z.length;D<M;D++){const $=z[D];Bs($)?Tr($)||tt.push($[2].toLowerCase()+$.slice(3)):R.push($)}R.length&&ut(`Extraneous non-props attributes (${R.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),tt.length&&ut(`Extraneous non-emits event listeners (${tt.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"&&!lc(g)&&ut("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=Ao(g),g.dirs=g.dirs?g.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!lc(g)&&ut("Component inside <Transition> renders non-element root node that cannot be animated."),g.transition=e.transition),{}.NODE_ENV!=="production"&&m?m(g):_=g,Gr(w),_}const ic=s=>{const t=s.children,e=s.dynamicChildren,o=wa(t,!1);if(o){if({}.NODE_ENV!=="production"&&o.patchFlag>0&&o.patchFlag&2048)return ic(o)}else return[s,void 0];const r=t.indexOf(o),n=e?e.indexOf(o):-1,a=i=>{t[r]=i,e&&(n>-1?e[n]=i:i.patchFlag>0&&(s.dynamicChildren=[...e,i]))};return[Je(o),a]};function wa(s,t=!0){let e;for(let o=0;o<s.length;o++){const r=s[o];if(Es(r)){if(r.type!==Ne||r.children==="v-if"){if(e)return;if(e=r,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return wa(e.children)}}else return}return e}const ep=s=>{let t;for(const e in s)(e==="class"||e==="style"||Bs(e))&&((t||(t={}))[e]=s[e]);return t},op=(s,t)=>{const e={};for(const o in s)(!Tr(o)||!(o.slice(9)in t))&&(e[o]=s[o]);return e},lc=s=>s.shapeFlag&7||s.type===Ne;function sp(s,t,e){const{props:o,children:r,component:n}=s,{props:a,children:i,patchFlag:l}=t,c=n.emitsOptions;if({}.NODE_ENV!=="production"&&(r||i)&&os||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return o?cc(o,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(a[f]!==o[f]&&!Vr(c,f))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:o===a?!1:o?a?cc(o,a,c):!0:!!a;return!1}function cc(s,t,e){const o=Object.keys(t);if(o.length!==Object.keys(s).length)return!0;for(let r=0;r<o.length;r++){const n=o[r];if(t[n]!==s[n]&&!Vr(e,n))return!0}return!1}function rp({vnode:s,parent:t},e){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===s&&(o.el=s.el),o===s)(s=t.vnode).el=e,t=t.parent;else break}}const np=Symbol.for("v-ndc"),ap=s=>s.__isSuspense;function ip(s,t){t&&t.pendingBranch?Et(s)?t.effects.push(...s):t.effects.push(s):Ql(s)}const lp=Symbol.for("v-scx"),cp=()=>{{const s=Zr(lp);return s||{}.NODE_ENV!=="production"&&ut("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function uc(s,t){return ka(s,null,t)}const jr={};function St(s,t,e){return{}.NODE_ENV!=="production"&&!Rt(t)&&ut("`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."),ka(s,t,e)}function ka(s,t,{immediate:e,deep:o,flush:r,once:n,onTrack:a,onTrigger:i}=Wt){if(t&&n){const z=t;t=(...tt)=>{z(...tt),C()}}({}).NODE_ENV!=="production"&&o!==void 0&&typeof o=="number"&&ut('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&&ut('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&ut('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&ut('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=z=>{ut("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=_e,u=z=>o===!0?z:rs(z,o===!1?1:void 0);let h,f=!1,p=!1;if(Ce(s)?(h=()=>s.value,f=ts(s)):Jo(s)?(h=()=>u(s),f=!0):Et(s)?(p=!0,f=s.some(z=>Jo(z)||ts(z)),h=()=>s.map(z=>{if(Ce(z))return z.value;if(Jo(z))return u(z);if(Rt(z))return go(z,c,2);({}).NODE_ENV!=="production"&&l(z)})):Rt(s)?t?h=()=>go(s,c,2):h=()=>(d&&d(),Qe(s,c,3,[b])):(h=de,{}.NODE_ENV!=="production"&&l(s)),t&&o){const z=h;h=()=>rs(z())}let d,b=z=>{d=m.onStop=()=>{go(z,c,4),d=m.onStop=void 0}},_;if(en)if(b=de,t?e&&Qe(t,c,3,[h(),p?[]:void 0,b]):h(),r==="sync"){const z=cp();_=z.__watcherHandles||(z.__watcherHandles=[])}else return de;let v=p?new Array(s.length).fill(jr):jr;const w=()=>{if(!(!m.active||!m.dirty))if(t){const z=m.run();(o||f||(p?z.some((tt,R)=>Eo(tt,v[R])):Eo(z,v)))&&(d&&d(),Qe(t,c,3,[z,v===jr?void 0:p&&v[0]===jr?[]:v,b]),v=z)}else m.run()};w.allowRecurse=!!t;let g;r==="sync"?g=w:r==="post"?g=()=>Ae(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),g=()=>Yr(w));const m=new sa(h,de,g),k=af(),C=()=>{m.stop(),k&&Qn(k.effects,m)};return{}.NODE_ENV!=="production"&&(m.onTrack=a,m.onTrigger=i),t?e?w():v=m.run():r==="post"?Ae(m.run.bind(m),c&&c.suspense):m.run(),_&&_.push(C),C}function up(s,t,e){const o=this.proxy,r=ce(s)?s.includes(".")?hc(o,s):()=>o[s]:s.bind(o,o);let n;Rt(t)?n=t:(n=t.handler,e=t);const a=nr(this),i=ka(r,n.bind(o),e);return a(),i}function hc(s,t){const e=t.split(".");return()=>{let o=s;for(let r=0;r<e.length&&o;r++)o=o[e[r]];return o}}function rs(s,t,e=0,o){if(!Ht(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(o=o||new Set,o.has(s))return s;if(o.add(s),Ce(s))rs(s.value,t,e,o);else if(Et(s))for(let r=0;r<s.length;r++)rs(s[r],t,e,o);else if(pl(s)||Zo(s))s.forEach(r=>{rs(r,t,e,o)});else if(gl(s))for(const r in s)rs(s[r],t,e,o);return s}function dc(s){Zd(s)&&ut("Do not use built-in directive ids as custom directive id: "+s)}function ns(s,t){if(fe===null)return{}.NODE_ENV!=="production"&&ut("withDirectives can only be used inside render functions."),s;const e=on(fe)||fe.proxy,o=s.dirs||(s.dirs=[]);for(let r=0;r<t.length;r++){let[n,a,i,l=Wt]=t[r];n&&(Rt(n)&&(n={mounted:n,updated:n}),n.deep&&rs(a),o.push({dir:n,instance:e,value:a,oldValue:void 0,arg:i,modifiers:l}))}return s}function as(s,t,e,o){const r=s.dirs,n=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];n&&(i.oldValue=n[a].value);let l=i.dir[o];l&&(Io(),Qe(l,e,8,[s.el,i,s,t]),Ro())}}/*! #__NO_SIDE_EFFECTS__ */function Q(s,t){return Rt(s)?(()=>ie({name:s.name},t,{setup:s}))():s}const qs=s=>!!s.type.__asyncLoader,Ca=s=>s.type.__isKeepAlive;function hp(s,t){fc(s,"a",t)}function dp(s,t){fc(s,"da",t)}function fc(s,t,e=_e){const o=s.__wdc||(s.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return s()});if(Hr(t,o,e),e){let r=e.parent;for(;r&&r.parent;)Ca(r.parent.vnode)&&fp(o,t,e,r),r=r.parent}}function fp(s,t,e,o){const r=Hr(t,s,o,!0);te(()=>{Qn(o[t],r)},e)}function Hr(s,t,e=_e,o=!1){if(e){const r=e[s]||(e[s]=[]),n=t.__weh||(t.__weh=(...a)=>{if(e.isUnmounted)return;Io();const i=nr(e),l=Qe(t,e,s,a);return i(),Ro(),l});return o?r.unshift(n):r.push(n),n}else if({}.NODE_ENV!=="production"){const r=qo(fa[s].replace(/ hook$/,""));ut(`${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 vo=s=>(t,e=_e)=>(!en||s==="sp")&&Hr(s,(...o)=>t(...o),e),pp=vo("bm"),Lo=vo("m"),mp=vo("bu"),gp=vo("u"),yp=vo("bum"),te=vo("um"),vp=vo("sp"),bp=vo("rtg"),_p=vo("rtc");function xp(s,t=_e){Hr("ec",s,t)}function ye(s,t,e,o){let r;const n=e&&e[o];if(Et(s)||ce(s)){r=new Array(s.length);for(let a=0,i=s.length;a<i;a++)r[a]=t(s[a],a,void 0,n&&n[a])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&ut(`The v-for range expect an integer value but got ${s}.`),r=new Array(s);for(let a=0;a<s;a++)r[a]=t(a+1,a,void 0,n&&n[a])}else if(Ht(s))if(s[Symbol.iterator])r=Array.from(s,(a,i)=>t(a,i,void 0,n&&n[i]));else{const a=Object.keys(s);r=new Array(a.length);for(let i=0,l=a.length;i<l;i++){const c=a[i];r[i]=t(s[c],c,i,n&&n[i])}}else r=[];return e&&(e[o]=r),r}function kt(s,t,e={},o,r){if(fe.isCE||fe.parent&&qs(fe.parent)&&fe.parent.isCE)return t!=="default"&&(e.name=t),lt("slot",e,o&&o());let n=s[t];({}).NODE_ENV!=="production"&&n&&n.length>1&&(ut("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."),n=()=>[]),n&&n._c&&(n._d=!1),L();const a=n&&pc(n(e)),i=Mt(Xt,{key:e.key||a&&a.key||`_${t}`},a||(o?o():[]),a&&s._===1?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),n&&n._c&&(n._d=!0),i}function pc(s){return s.some(t=>Es(t)?!(t.type===Ne||t.type===Xt&&!pc(t.children)):!0)?s:null}const Ta=s=>s?Vc(s)?on(s)||s.proxy:Ta(s.parent):null,is=ie(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?ws(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?ws(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?ws(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?ws(s.refs):s.refs,$parent:s=>Ta(s.parent),$root:s=>Ta(s.root),$emit:s=>s.emit,$options:s=>Oa(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Yr(s.update)}),$nextTick:s=>s.n||(s.n=Zl.bind(s.proxy)),$watch:s=>up.bind(s)}),Sa=s=>s==="_"||s==="$",Ea=(s,t)=>s!==Wt&&!s.__isScriptSetup&&zt(s,t),mc={get({_:s},t){const{ctx:e,setupState:o,data:r,props:n,accessCache:a,type:i,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return r[t];case 4:return e[t];case 3:return n[t]}else{if(Ea(o,t))return a[t]=1,o[t];if(r!==Wt&&zt(r,t))return a[t]=2,r[t];if((c=s.propsOptions[0])&&zt(c,t))return a[t]=3,n[t];if(e!==Wt&&zt(e,t))return a[t]=4,e[t];Pa&&(a[t]=0)}}const u=is[t];let h,f;if(u)return t==="$attrs"?(ke(s,"get",t),{}.NODE_ENV!=="production"&&Ur()):{}.NODE_ENV!=="production"&&t==="$slots"&&ke(s,"get",t),u(s);if((h=i.__cssModules)&&(h=h[t]))return h;if(e!==Wt&&zt(e,t))return a[t]=4,e[t];if(f=l.config.globalProperties,zt(f,t))return f[t];({}).NODE_ENV!=="production"&&fe&&(!ce(t)||t.indexOf("__v")!==0)&&(r!==Wt&&Sa(t[0])&&zt(r,t)?ut(`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===fe&&ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:o,setupState:r,ctx:n}=s;return Ea(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&zt(r,t)?(ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==Wt&&zt(o,t)?(o[t]=e,!0):zt(s.props,t)?({}.NODE_ENV!=="production"&&ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&ut(`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(n,t,{enumerable:!0,configurable:!0,value:e}):n[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:o,appContext:r,propsOptions:n}},a){let i;return!!e[a]||s!==Wt&&zt(s,a)||Ea(t,a)||(i=n[0])&&zt(i,a)||zt(o,a)||zt(is,a)||zt(r.config.globalProperties,a)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:zt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(mc.ownKeys=s=>(ut("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 wp(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(is).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>is[e](s),set:de})}),t}function kp(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.props[o],set:de})})}function Cp(s){const{ctx:t,setupState:e}=s;Object.keys(Dt(e)).forEach(o=>{if(!e.__isScriptSetup){if(Sa(o[0])){ut(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e[o],set:de})}})}function Tp(){return Sp().slots}function Sp(){const s=Bc();return{}.NODE_ENV!=="production"&&!s&&ut("useContext() called without active instance."),s.setupContext||(s.setupContext=jc(s))}function gc(s){return Et(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Ep(){const s=Object.create(null);return(t,e)=>{s[e]?ut(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let Pa=!0;function Pp(s){const t=Oa(s),e=s.proxy,o=s.ctx;Pa=!1,t.beforeCreate&&yc(t.beforeCreate,s,"bc");const{data:r,computed:n,methods:a,watch:i,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:p,updated:d,activated:b,deactivated:_,beforeDestroy:v,beforeUnmount:w,destroyed:g,unmounted:m,render:k,renderTracked:C,renderTriggered:z,errorCaptured:tt,serverPrefetch:R,expose:D,inheritAttrs:M,components:$,directives:N,filters:G}=t,st={}.NODE_ENV!=="production"?Ep():null;if({}.NODE_ENV!=="production"){const[q]=s.propsOptions;if(q)for(const nt in q)st("Props",nt)}if(c&&Op(c,o,st),a)for(const q in a){const nt=a[q];Rt(nt)?({}.NODE_ENV!=="production"?Object.defineProperty(o,q,{value:nt.bind(e),configurable:!0,enumerable:!0,writable:!0}):o[q]=nt.bind(e),{}.NODE_ENV!=="production"&&st("Methods",q)):{}.NODE_ENV!=="production"&&ut(`Method "${q}" has type "${typeof nt}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Rt(r)&&ut("The data option must be a function. Plain object usage is no longer supported.");const q=r.call(e,e);if({}.NODE_ENV!=="production"&&Kn(q)&&ut("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ht(q))({}).NODE_ENV!=="production"&&ut("data() should return an object.");else if(s.data=Zt(q),{}.NODE_ENV!=="production")for(const nt in q)st("Data",nt),Sa(nt[0])||Object.defineProperty(o,nt,{configurable:!0,enumerable:!0,get:()=>q[nt],set:de})}if(Pa=!0,n)for(const q in n){const nt=n[q],U=Rt(nt)?nt.bind(e,e):Rt(nt.get)?nt.get.bind(e,e):de;({}).NODE_ENV!=="production"&&U===de&&ut(`Computed property "${q}" has no getter.`);const H=!Rt(nt)&&Rt(nt.set)?nt.set.bind(e):{}.NODE_ENV!=="production"?()=>{ut(`Write operation failed: computed property "${q}" is readonly.`)}:de,gt=dm({get:U,set:H});Object.defineProperty(o,q,{enumerable:!0,configurable:!0,get:()=>gt.value,set:ft=>gt.value=ft}),{}.NODE_ENV!=="production"&&st("Computed",q)}if(i)for(const q in i)vc(i[q],o,e,q);if(l){const q=Rt(l)?l.call(e):l;Reflect.ownKeys(q).forEach(nt=>{Lp(nt,q[nt])})}u&&yc(u,s,"c");function K(q,nt){Et(nt)?nt.forEach(U=>q(U.bind(e))):nt&&q(nt.bind(e))}if(K(pp,h),K(Lo,f),K(mp,p),K(gp,d),K(hp,b),K(dp,_),K(xp,tt),K(_p,C),K(bp,z),K(yp,w),K(te,m),K(vp,R),Et(D))if(D.length){const q=s.exposed||(s.exposed={});D.forEach(nt=>{Object.defineProperty(q,nt,{get:()=>e[nt],set:U=>e[nt]=U})})}else s.exposed||(s.exposed={});k&&s.render===de&&(s.render=k),M!=null&&(s.inheritAttrs=M),$&&(s.components=$),N&&(s.directives=N)}function Op(s,t,e=de){Et(s)&&(s=Ia(s));for(const o in s){const r=s[o];let n;Ht(r)?"default"in r?n=Zr(r.from||o,r.default,!0):n=Zr(r.from||o):n=Zr(r),Ce(n)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[o]=n,{}.NODE_ENV!=="production"&&e("Inject",o)}}function yc(s,t,e){Qe(Et(s)?s.map(o=>o.bind(t.proxy)):s.bind(t.proxy),t,e)}function vc(s,t,e,o){const r=o.includes(".")?hc(e,o):()=>e[o];if(ce(s)){const n=t[s];Rt(n)?St(r,n):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${s}"`,n)}else if(Rt(s))St(r,s.bind(e));else if(Ht(s))if(Et(s))s.forEach(n=>vc(n,t,e,o));else{const n=Rt(s.handler)?s.handler.bind(e):t[s.handler];Rt(n)?St(r,n,s):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${s.handler}"`,n)}else({}).NODE_ENV!=="production"&&ut(`Invalid watch option: "${o}"`,s)}function Oa(s){const t=s.type,{mixins:e,extends:o}=t,{mixins:r,optionsCache:n,config:{optionMergeStrategies:a}}=s.appContext,i=n.get(t);let l;return i?l=i:!r.length&&!e&&!o?l=t:(l={},r.length&&r.forEach(c=>Wr(l,c,a,!0)),Wr(l,t,a)),Ht(t)&&n.set(t,l),l}function Wr(s,t,e,o=!1){const{mixins:r,extends:n}=t;n&&Wr(s,n,e,!0),r&&r.forEach(a=>Wr(s,a,e,!0));for(const a in t)if(o&&a==="expose")({}).NODE_ENV!=="production"&&ut('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const i=Ip[a]||e&&e[a];s[a]=i?i(s[a],t[a]):t[a]}return s}const Ip={data:bc,props:_c,emits:_c,methods:Qs,computed:Qs,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Qs,directives:Qs,watch:Fp,provide:bc,inject:Rp};function bc(s,t){return t?s?function(){return ie(Rt(s)?s.call(this,this):s,Rt(t)?t.call(this,this):t)}:t:s}function Rp(s,t){return Qs(Ia(s),Ia(t))}function Ia(s){if(Et(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Re(s,t){return s?[...new Set([].concat(s,t))]:t}function Qs(s,t){return s?ie(Object.create(null),s,t):t}function _c(s,t){return s?Et(s)&&Et(t)?[...new Set([...s,...t])]:ie(Object.create(null),gc(s),gc(t??{})):t}function Fp(s,t){if(!s)return t;if(!t)return s;const e=ie(Object.create(null),s);for(const o in t)e[o]=Re(s[o],t[o]);return e}function xc(){return{app:null,config:{isNativeTag:Hd,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 $p=0;function Dp(s,t){return function(o,r=null){Rt(o)||(o=ie({},o)),r!=null&&!Ht(r)&&({}.NODE_ENV!=="production"&&ut("root props passed to app.mount() must be an object."),r=null);const n=xc(),a=new WeakSet;let i=!1;const l=n.app={_uid:$p++,_component:o,_props:r,_container:null,_context:n,_instance:null,version:Zc,get config(){return n.config},set config(c){({}).NODE_ENV!=="production"&&ut("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return a.has(c)?{}.NODE_ENV!=="production"&&ut("Plugin has already been applied to target app."):c&&Rt(c.install)?(a.add(c),c.install(l,...u)):Rt(c)?(a.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&ut('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return n.mixins.includes(c)?{}.NODE_ENV!=="production"&&ut("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):n.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&za(c,n.config),u?({}.NODE_ENV!=="production"&&n.components[c]&&ut(`Component "${c}" has already been registered in target app.`),n.components[c]=u,l):n.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&dc(c),u?({}.NODE_ENV!=="production"&&n.directives[c]&&ut(`Directive "${c}" has already been registered in target app.`),n.directives[c]=u,l):n.directives[c]},mount(c,u,h){if(i)({}).NODE_ENV!=="production"&&ut("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__&&ut("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=lt(o,r);return f.appContext=n,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(n.reload=()=>{s(Ao(f),c,h)}),u&&t?t(f,c):s(f,c,h),i=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,jf(l,Zc)),on(f.component)||f.component.proxy}},unmount(){i?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Hf(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&ut("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in n.provides&&ut(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),n.provides[c]=u,l},runWithContext(c){const u=Ks;Ks=l;try{return c()}finally{Ks=u}}};return l}}let Ks=null;function Lp(s,t){if(!_e)({}).NODE_ENV!=="production"&&ut("provide() can only be used inside setup().");else{let e=_e.provides;const o=_e.parent&&_e.parent.provides;o===e&&(e=_e.provides=Object.create(o)),e[s]=t}}function Zr(s,t,e=!1){const o=_e||fe;if(o||Ks){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Ks._context.provides;if(r&&s in r)return r[s];if(arguments.length>1)return e&&Rt(t)?t.call(o&&o.proxy):t;({}).NODE_ENV!=="production"&&ut(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&ut("inject() can only be used inside setup() or functional components.")}function Mp(s,t,e,o=!1){const r={},n={};Or(n,Kr,1),s.propsDefaults=Object.create(null),wc(s,t,r,n);for(const a in s.propsOptions[0])a in r||(r[a]=void 0);({}).NODE_ENV!=="production"&&Ec(t||{},r,s),e?s.props=o?r:Ef(r):s.type.props?s.props=r:s.props=n,s.attrs=n}function Ap(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function Np(s,t,e,o){const{props:r,attrs:n,vnode:{patchFlag:a}}=s,i=Dt(r),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Ap(s))&&(o||a>0)&&!(a&16)){if(a&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Vr(s.emitsOptions,f))continue;const p=t[f];if(l)if(zt(n,f))p!==n[f]&&(n[f]=p,c=!0);else{const d=mo(f);r[d]=Ra(l,i,d,p,s,!1)}else p!==n[f]&&(n[f]=p,c=!0)}}}else{wc(s,t,r,n)&&(c=!0);let u;for(const h in i)(!t||!zt(t,h)&&((u=Xe(h))===h||!zt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(r[h]=Ra(l,i,h,void 0,s,!0)):delete r[h]);if(n!==i)for(const h in n)(!t||!zt(t,h))&&(delete n[h],c=!0)}c&&oo(s,"set","$attrs"),{}.NODE_ENV!=="production"&&Ec(t||{},r,s)}function wc(s,t,e,o){const[r,n]=s.propsOptions;let a=!1,i;if(t)for(let l in t){if(Ys(l))continue;const c=t[l];let u;r&&zt(r,u=mo(l))?!n||!n.includes(u)?e[u]=c:(i||(i={}))[u]=c:Vr(s.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,a=!0)}if(n){const l=Dt(e),c=i||Wt;for(let u=0;u<n.length;u++){const h=n[u];e[h]=Ra(r,l,h,c[h],s,!zt(c,h))}}return a}function Ra(s,t,e,o,r,n){const a=s[e];if(a!=null){const i=zt(a,"default");if(i&&o===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Rt(l)){const{propsDefaults:c}=r;if(e in c)o=c[e];else{const u=nr(r);o=c[e]=l.call(null,t),u()}}else o=l}a[0]&&(n&&!i?o=!1:a[1]&&(o===""||o===Xe(e))&&(o=!0))}return o}function kc(s,t,e=!1){const o=t.propsCache,r=o.get(s);if(r)return r;const n=s.props,a={},i=[];let l=!1;if(!Rt(s)){const u=h=>{l=!0;const[f,p]=kc(h,t,!0);ie(a,f),p&&i.push(...p)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!n&&!l)return Ht(s)&&o.set(s,_s),_s;if(Et(n))for(let u=0;u<n.length;u++){({}).NODE_ENV!=="production"&&!ce(n[u])&&ut("props must be strings when using array syntax.",n[u]);const h=mo(n[u]);Cc(h)&&(a[h]=Wt)}else if(n){({}).NODE_ENV!=="production"&&!Ht(n)&&ut("invalid props options",n);for(const u in n){const h=mo(u);if(Cc(h)){const f=n[u],p=a[h]=Et(f)||Rt(f)?{type:f}:ie({},f);if(p){const d=Sc(Boolean,p.type),b=Sc(String,p.type);p[0]=d>-1,p[1]=b<0||d<b,(d>-1||zt(p,"default"))&&i.push(h)}}}}const c=[a,i];return Ht(s)&&o.set(s,c),c}function Cc(s){return s[0]!=="$"&&!Ys(s)?!0:({}.NODE_ENV!=="production"&&ut(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Fa(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Tc(s,t){return Fa(s)===Fa(t)}function Sc(s,t){return Et(t)?t.findIndex(e=>Tc(e,s)):Rt(t)&&Tc(t,s)?0:-1}function Ec(s,t,e){const o=Dt(t),r=e.propsOptions[0];for(const n in r){let a=r[n];a!=null&&zp(n,o[n],a,{}.NODE_ENV!=="production"?ws(o):o,!zt(s,n)&&!zt(s,Xe(n)))}}function zp(s,t,e,o,r){const{type:n,required:a,validator:i,skipCheck:l}=e;if(a&&r){ut('Missing required prop: "'+s+'"');return}if(!(t==null&&!a)){if(n!=null&&n!==!0&&!l){let c=!1;const u=Et(n)?n:[n],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:p,expectedType:d}=Yp(t,u[f]);h.push(d||""),c=p}if(!c){ut(Vp(s,t,h));return}}i&&!i(t,o)&&ut('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Bp=bs("String,Number,Boolean,Function,Symbol,BigInt");function Yp(s,t){let e;const o=Fa(t);if(Bp(o)){const r=typeof s;e=r===o.toLowerCase(),!e&&r==="object"&&(e=s instanceof t)}else o==="Object"?e=Ht(s):o==="Array"?e=Et(s):o==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:o}}function Vp(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 o=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(Pr).join(" | ")}`;const r=e[0],n=Jn(t),a=Pc(t,r),i=Pc(t,n);return e.length===1&&Oc(r)&&!Xp(r,n)&&(o+=` with value ${a}`),o+=`, got ${n} `,Oc(n)&&(o+=`with value ${i}.`),o}function Pc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function Oc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Xp(...s){return s.some(t=>t.toLowerCase()==="boolean")}const Ic=s=>s[0]==="_"||s==="$stable",$a=s=>Et(s)?s.map(Je):[Je(s)],Gp=(s,t,e)=>{if(t._n)return t;const o=bt((...r)=>({}.NODE_ENV!=="production"&&_e&&(!e||e.root===_e.root)&&ut(`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.`),$a(t(...r))),e);return o._c=!1,o},Rc=(s,t,e)=>{const o=s._ctx;for(const r in s){if(Ic(r))continue;const n=s[r];if(Rt(n))t[r]=Gp(r,n,o);else if(n!=null){({}).NODE_ENV!=="production"&&ut(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const a=$a(n);t[r]=()=>a}}},Fc=(s,t)=>{({}).NODE_ENV!=="production"&&!Ca(s.vnode)&&ut("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=$a(t);s.slots.default=()=>e},Up=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=Dt(t),Or(t,"_",e)):Rc(t,s.slots={})}else s.slots={},t&&Fc(s,t);Or(s.slots,Kr,1)},jp=(s,t,e)=>{const{vnode:o,slots:r}=s;let n=!0,a=Wt;if(o.shapeFlag&32){const i=t._;i?{}.NODE_ENV!=="production"&&os?(ie(r,t),oo(s,"set","$slots")):e&&i===1?n=!1:(ie(r,t),!e&&i===1&&delete r._):(n=!t.$stable,Rc(t,r)),a=t}else t&&(Fc(s,t),a={default:1});if(n)for(const i in r)!Ic(i)&&a[i]==null&&delete r[i]};function Da(s,t,e,o,r=!1){if(Et(s)){s.forEach((f,p)=>Da(f,t&&(Et(t)?t[p]:t),e,o,r));return}if(qs(o)&&!r)return;const n=o.shapeFlag&4?on(o.component)||o.component.proxy:o.el,a=r?null:n,{i,r:l}=s;if({}.NODE_ENV!=="production"&&!i){ut("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=i.refs===Wt?i.refs={}:i.refs,h=i.setupState;if(c!=null&&c!==l&&(ce(c)?(u[c]=null,zt(h,c)&&(h[c]=null)):Ce(c)&&(c.value=null)),Rt(l))go(l,i,12,[a,u]);else{const f=ce(l),p=Ce(l);if(f||p){const d=()=>{if(s.f){const b=f?zt(h,l)?h[l]:u[l]:l.value;r?Et(b)&&Qn(b,n):Et(b)?b.includes(n)||b.push(n):f?(u[l]=[n],zt(h,l)&&(h[l]=u[l])):(l.value=[n],s.k&&(u[s.k]=l.value))}else f?(u[l]=a,zt(h,l)&&(h[l]=a)):p?(l.value=a,s.k&&(u[s.k]=a)):{}.NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)};a?(d.id=-1,Ae(d,e)):d()}else({}).NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)}}let Js,Mo;function bo(s,t){s.appContext.config.performance&&qr()&&Mo.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Qf(s,t,qr()?Mo.now():Date.now())}function _o(s,t){if(s.appContext.config.performance&&qr()){const e=`vue-${t}-${s.uid}`,o=e+":end";Mo.mark(o),Mo.measure(`<${sn(s,s.type)}> ${t}`,e,o),Mo.clearMarks(e),Mo.clearMarks(o)}({}).NODE_ENV!=="production"&&Kf(s,t,qr()?Mo.now():Date.now())}function qr(){return Js!==void 0||(typeof window<"u"&&window.performance?(Js=!0,Mo=window.performance):Js=!1),Js}function Hp(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
18
|
+
`],...Lf(e))}),t}function Lf({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",o=s.component?s.component.parent==null:!1,r=` at <${sn(s.component,s.type,o)}`,n=">"+e;return s.props?[r,...Mf(s.props),n]:[r+n]}function Mf(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(o=>{t.push(...Hl(o,s[o]))}),e.length>3&&t.push(" ..."),t}function Hl(s,t,e){return ce(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:Ce(t)?(t=Hl(s,Dt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Ft(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Dt(t),e?t:[`${s}=`,t])}const fa={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 go(s,t,e,o){try{return o?s(...o):s()}catch(r){Gs(r,t,e)}}function Qe(s,t,e,o){if(Ft(s)){const n=go(s,t,e,o);return n&&Kn(n)&&n.catch(a=>{Gs(a,t,e)}),n}const r=[];for(let n=0;n<s.length;n++)r.push(Qe(s[n],t,e,o));return r}function Gs(s,t,e,o=!0){const r=t?t.vnode:null;if(t){let n=t.parent;const a=t.proxy,i={}.NODE_ENV!=="production"?fa[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;n;){const c=n.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,a,i)===!1)return}n=n.parent}const l=t.appContext.config.errorHandler;if(l){go(l,null,10,[s,a,i]);return}}Af(s,e,r,o)}function Af(s,t,e,o=!0){if({}.NODE_ENV!=="production"){const r=fa[t];if(e&&zr(e),ut(`Unhandled error${r?` during execution of ${r}`:""}`),e&&Br(),o)throw s;console.error(s)}else console.error(s)}let Us=!1,pa=!1;const Pe=[];let so=0;const ks=[];let yo=null,Do=0;const Wl=Promise.resolve();let ma=null;const Nf=100;function Zl(s){const t=ma||Wl;return s?t.then(this?s.bind(this):s):t}function zf(s){let t=so+1,e=Pe.length;for(;t<e;){const o=t+e>>>1,r=Pe[o],n=js(r);n<s||n===s&&r.pre?t=o+1:e=o}return t}function Yr(s){(!Pe.length||!Pe.includes(s,Us&&s.allowRecurse?so+1:so))&&(s.id==null?Pe.push(s):Pe.splice(zf(s.id),0,s),ql())}function ql(){!Us&&!pa&&(pa=!0,ma=Wl.then(tc))}function Bf(s){const t=Pe.indexOf(s);t>so&&Pe.splice(t,1)}function Ql(s){Pt(s)?ks.push(...s):(!yo||!yo.includes(s,s.allowRecurse?Do+1:Do))&&ks.push(s),ql()}function Kl(s,t,e=Us?so+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Pe.length;e++){const o=Pe[e];if(o&&o.pre){if(s&&o.id!==s.uid||{}.NODE_ENV!=="production"&&ga(t,o))continue;Pe.splice(e,1),e--,o()}}}function Jl(s){if(ks.length){const t=[...new Set(ks)].sort((e,o)=>js(e)-js(o));if(ks.length=0,yo){yo.push(...t);return}for(yo=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Do=0;Do<yo.length;Do++)({}).NODE_ENV!=="production"&&ga(s,yo[Do])||yo[Do]();yo=null,Do=0}}const js=s=>s.id==null?1/0:s.id,Yf=(s,t)=>{const e=js(s)-js(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function tc(s){pa=!1,Us=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Pe.sort(Yf);const t={}.NODE_ENV!=="production"?e=>ga(s,e):de;try{for(so=0;so<Pe.length;so++){const e=Pe[so];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;go(e,null,14)}}}finally{so=0,Pe.length=0,Jl(s),Us=!1,ma=null,(Pe.length||ks.length)&&tc(s)}}function ga(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>Nf){const o=t.ownerInstance,r=o&&Hc(o.type);return Gs(`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 os=!1;const Cs=new Set;({}).NODE_ENV!=="production"&&(ea().__VUE_HMR_RUNTIME__={createRecord:ya(ec),rerender:ya(Gf),reload:ya(Uf)});const ss=new Map;function Vf(s){const t=s.type.__hmrId;let e=ss.get(t);e||(ec(t,s.type),e=ss.get(t)),e.instances.add(s)}function Xf(s){ss.get(s.type.__hmrId).instances.delete(s)}function ec(s,t){return ss.has(s)?!1:(ss.set(s,{initialDef:Hs(t),instances:new Set}),!0)}function Hs(s){return Wc(s)?s.__vccOpts:s}function Gf(s,t){const e=ss.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(o=>{t&&(o.render=t,Hs(o.type).render=t),o.renderCache=[],os=!0,o.effect.dirty=!0,o.update(),os=!1}))}function Uf(s,t){const e=ss.get(s);if(!e)return;t=Hs(t),oc(e.initialDef,t);const o=[...e.instances];for(const r of o){const n=Hs(r.type);Cs.has(n)||(n!==e.initialDef&&oc(n,t),Cs.add(n)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(Cs.add(n),r.ceReload(t.styles),Cs.delete(n)):r.parent?(r.parent.effect.dirty=!0,Yr(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.")}Ql(()=>{for(const r of o)Cs.delete(Hs(r.type))})}function oc(s,t){ie(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function ya(s){return(t,e)=>{try{return s(t,e)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ro,Ws=[],va=!1;function Zs(s,...t){ro?ro.emit(s,...t):va||Ws.push({event:s,args:t})}function sc(s,t){var e,o;ro=s,ro?(ro.enabled=!0,Ws.forEach(({event:r,args:n})=>ro.emit(r,...n)),Ws=[]):typeof window<"u"&&window.HTMLElement&&!((o=(e=window.navigator)==null?void 0:e.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{sc(n,t)}),setTimeout(()=>{ro||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,va=!0,Ws=[])},3e3)):(va=!0,Ws=[])}function jf(s,t){Zs("app:init",s,t,{Fragment:Xt,Text:tr,Comment:Ne,Static:er})}function Hf(s){Zs("app:unmount",s)}const Wf=ba("component:added"),rc=ba("component:updated"),Zf=ba("component:removed"),qf=s=>{ro&&typeof ro.cleanupBuffer=="function"&&!ro.cleanupBuffer(s)&&Zf(s)};function ba(s){return t=>{Zs(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Qf=nc("perf:start"),Kf=nc("perf:end");function nc(s){return(t,e,o)=>{Zs(s,t.appContext.app,t.uid,t,e,o)}}function Jf(s,t,e){Zs("component:emit",s.appContext.app,s,t,e)}function tp(s,t,...e){if(s.isUnmounted)return;const o=s.vnode.props||Wt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(qo(t)in h))&&ut(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${qo(t)}" prop.`);else{const f=u[t];Ft(f)&&(f(...e)||ut(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=e;const n=t.startsWith("update:"),a=n&&t.slice(7);if(a&&a in o){const u=`${a==="modelValue"?"model":a}Modifiers`,{number:h,trim:f}=o[u]||Wt;f&&(r=e.map(p=>ce(p)?p.trim():p)),h&&(r=e.map(Kd))}if({}.NODE_ENV!=="production"&&Jf(s,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&o[qo(u)]&&ut(`Event "${u}" is emitted in component ${sn(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 "${Xe(t)}" instead of "${t}".`)}let i,l=o[i=qo(t)]||o[i=qo(mo(t))];!l&&n&&(l=o[i=qo(Xe(t))]),l&&Qe(l,s,6,r);const c=o[i+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[i])return;s.emitted[i]=!0,Qe(c,s,6,r)}}function ac(s,t,e=!1){const o=t.emitsCache,r=o.get(s);if(r!==void 0)return r;const n=s.emits;let a={},i=!1;if(!Ft(s)){const l=c=>{const u=ac(c,t,!0);u&&(i=!0,ie(a,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!n&&!i?(Ht(s)&&o.set(s,null),null):(Pt(n)?n.forEach(l=>a[l]=null):ie(a,n),Ht(s)&&o.set(s,a),a)}function Vr(s,t){return!s||!Bs(t)?!1:(t=t.slice(2).replace(/Once$/,""),zt(s,t[0].toLowerCase()+t.slice(1))||zt(s,Xe(t))||zt(s,t))}let fe=null,Xr=null;function Gr(s){const t=fe;return fe=s,Xr=s&&s.type.__scopeId||null,t}function Ts(s){Xr=s}function Ss(){Xr=null}function bt(s,t=fe,e){if(!t||s._n)return s;const o=(...r)=>{o._d&&Dc(-1);const n=Gr(t);let a;try{a=s(...r)}finally{Gr(n),o._d&&Dc(1)}return{}.NODE_ENV!=="production"&&rc(t),a};return o._n=!0,o._c=!0,o._d=!0,o}let _a=!1;function Ur(){_a=!0}function xa(s){const{type:t,vnode:e,proxy:o,withProxy:r,props:n,propsOptions:[a],slots:i,attrs:l,emit:c,render:u,renderCache:h,data:f,setupState:p,ctx:d,inheritAttrs:b}=s;let _,v;const w=Gr(s);({}).NODE_ENV!=="production"&&(_a=!1);try{if(e.shapeFlag&4){const k=r||o,C={}.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(k,{get(z,tt,R){return ut(`Property '${String(tt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(z,tt,R)}}):k;_=Je(u.call(C,k,h,n,p,f,d)),v=l}else{const k=t;({}).NODE_ENV!=="production"&&l===n&&Ur(),_=Je(k.length>1?k(n,{}.NODE_ENV!=="production"?{get attrs(){return Ur(),l},slots:i,emit:c}:{attrs:l,slots:i,emit:c}):k(n,null)),v=t.props?l:ep(l)}}catch(k){or.length=0,Gs(k,s,1),_=lt(Ne)}let g=_,m;if({}.NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&([g,m]=ic(_)),v&&b!==!1){const k=Object.keys(v),{shapeFlag:C}=g;if(k.length){if(C&7)a&&k.some(Tr)&&(v=op(v,a)),g=Ao(g,v);else if({}.NODE_ENV!=="production"&&!_a&&g.type!==Ne){const z=Object.keys(l),tt=[],R=[];for(let D=0,M=z.length;D<M;D++){const $=z[D];Bs($)?Tr($)||tt.push($[2].toLowerCase()+$.slice(3)):R.push($)}R.length&&ut(`Extraneous non-props attributes (${R.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),tt.length&&ut(`Extraneous non-emits event listeners (${tt.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"&&!lc(g)&&ut("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=Ao(g),g.dirs=g.dirs?g.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!lc(g)&&ut("Component inside <Transition> renders non-element root node that cannot be animated."),g.transition=e.transition),{}.NODE_ENV!=="production"&&m?m(g):_=g,Gr(w),_}const ic=s=>{const t=s.children,e=s.dynamicChildren,o=wa(t,!1);if(o){if({}.NODE_ENV!=="production"&&o.patchFlag>0&&o.patchFlag&2048)return ic(o)}else return[s,void 0];const r=t.indexOf(o),n=e?e.indexOf(o):-1,a=i=>{t[r]=i,e&&(n>-1?e[n]=i:i.patchFlag>0&&(s.dynamicChildren=[...e,i]))};return[Je(o),a]};function wa(s,t=!0){let e;for(let o=0;o<s.length;o++){const r=s[o];if(Es(r)){if(r.type!==Ne||r.children==="v-if"){if(e)return;if(e=r,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return wa(e.children)}}else return}return e}const ep=s=>{let t;for(const e in s)(e==="class"||e==="style"||Bs(e))&&((t||(t={}))[e]=s[e]);return t},op=(s,t)=>{const e={};for(const o in s)(!Tr(o)||!(o.slice(9)in t))&&(e[o]=s[o]);return e},lc=s=>s.shapeFlag&7||s.type===Ne;function sp(s,t,e){const{props:o,children:r,component:n}=s,{props:a,children:i,patchFlag:l}=t,c=n.emitsOptions;if({}.NODE_ENV!=="production"&&(r||i)&&os||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return o?cc(o,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(a[f]!==o[f]&&!Vr(c,f))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:o===a?!1:o?a?cc(o,a,c):!0:!!a;return!1}function cc(s,t,e){const o=Object.keys(t);if(o.length!==Object.keys(s).length)return!0;for(let r=0;r<o.length;r++){const n=o[r];if(t[n]!==s[n]&&!Vr(e,n))return!0}return!1}function rp({vnode:s,parent:t},e){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===s&&(o.el=s.el),o===s)(s=t.vnode).el=e,t=t.parent;else break}}const np=Symbol.for("v-ndc"),ap=s=>s.__isSuspense;function ip(s,t){t&&t.pendingBranch?Pt(s)?t.effects.push(...s):t.effects.push(s):Ql(s)}const lp=Symbol.for("v-scx"),cp=()=>{{const s=Zr(lp);return s||{}.NODE_ENV!=="production"&&ut("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function uc(s,t){return ka(s,null,t)}const jr={};function St(s,t,e){return{}.NODE_ENV!=="production"&&!Ft(t)&&ut("`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."),ka(s,t,e)}function ka(s,t,{immediate:e,deep:o,flush:r,once:n,onTrack:a,onTrigger:i}=Wt){if(t&&n){const z=t;t=(...tt)=>{z(...tt),C()}}({}).NODE_ENV!=="production"&&o!==void 0&&typeof o=="number"&&ut('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&&ut('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&ut('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&ut('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=z=>{ut("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=_e,u=z=>o===!0?z:rs(z,o===!1?1:void 0);let h,f=!1,p=!1;if(Ce(s)?(h=()=>s.value,f=ts(s)):Jo(s)?(h=()=>u(s),f=!0):Pt(s)?(p=!0,f=s.some(z=>Jo(z)||ts(z)),h=()=>s.map(z=>{if(Ce(z))return z.value;if(Jo(z))return u(z);if(Ft(z))return go(z,c,2);({}).NODE_ENV!=="production"&&l(z)})):Ft(s)?t?h=()=>go(s,c,2):h=()=>(d&&d(),Qe(s,c,3,[b])):(h=de,{}.NODE_ENV!=="production"&&l(s)),t&&o){const z=h;h=()=>rs(z())}let d,b=z=>{d=m.onStop=()=>{go(z,c,4),d=m.onStop=void 0}},_;if(en)if(b=de,t?e&&Qe(t,c,3,[h(),p?[]:void 0,b]):h(),r==="sync"){const z=cp();_=z.__watcherHandles||(z.__watcherHandles=[])}else return de;let v=p?new Array(s.length).fill(jr):jr;const w=()=>{if(!(!m.active||!m.dirty))if(t){const z=m.run();(o||f||(p?z.some((tt,R)=>Eo(tt,v[R])):Eo(z,v)))&&(d&&d(),Qe(t,c,3,[z,v===jr?void 0:p&&v[0]===jr?[]:v,b]),v=z)}else m.run()};w.allowRecurse=!!t;let g;r==="sync"?g=w:r==="post"?g=()=>Ae(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),g=()=>Yr(w));const m=new sa(h,de,g),k=af(),C=()=>{m.stop(),k&&Qn(k.effects,m)};return{}.NODE_ENV!=="production"&&(m.onTrack=a,m.onTrigger=i),t?e?w():v=m.run():r==="post"?Ae(m.run.bind(m),c&&c.suspense):m.run(),_&&_.push(C),C}function up(s,t,e){const o=this.proxy,r=ce(s)?s.includes(".")?hc(o,s):()=>o[s]:s.bind(o,o);let n;Ft(t)?n=t:(n=t.handler,e=t);const a=nr(this),i=ka(r,n.bind(o),e);return a(),i}function hc(s,t){const e=t.split(".");return()=>{let o=s;for(let r=0;r<e.length&&o;r++)o=o[e[r]];return o}}function rs(s,t,e=0,o){if(!Ht(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(o=o||new Set,o.has(s))return s;if(o.add(s),Ce(s))rs(s.value,t,e,o);else if(Pt(s))for(let r=0;r<s.length;r++)rs(s[r],t,e,o);else if(pl(s)||Zo(s))s.forEach(r=>{rs(r,t,e,o)});else if(gl(s))for(const r in s)rs(s[r],t,e,o);return s}function dc(s){Zd(s)&&ut("Do not use built-in directive ids as custom directive id: "+s)}function ns(s,t){if(fe===null)return{}.NODE_ENV!=="production"&&ut("withDirectives can only be used inside render functions."),s;const e=on(fe)||fe.proxy,o=s.dirs||(s.dirs=[]);for(let r=0;r<t.length;r++){let[n,a,i,l=Wt]=t[r];n&&(Ft(n)&&(n={mounted:n,updated:n}),n.deep&&rs(a),o.push({dir:n,instance:e,value:a,oldValue:void 0,arg:i,modifiers:l}))}return s}function as(s,t,e,o){const r=s.dirs,n=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];n&&(i.oldValue=n[a].value);let l=i.dir[o];l&&(Io(),Qe(l,e,8,[s.el,i,s,t]),Ro())}}/*! #__NO_SIDE_EFFECTS__ */function Q(s,t){return Ft(s)?(()=>ie({name:s.name},t,{setup:s}))():s}const qs=s=>!!s.type.__asyncLoader,Ca=s=>s.type.__isKeepAlive;function hp(s,t){fc(s,"a",t)}function dp(s,t){fc(s,"da",t)}function fc(s,t,e=_e){const o=s.__wdc||(s.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return s()});if(Hr(t,o,e),e){let r=e.parent;for(;r&&r.parent;)Ca(r.parent.vnode)&&fp(o,t,e,r),r=r.parent}}function fp(s,t,e,o){const r=Hr(t,s,o,!0);ee(()=>{Qn(o[t],r)},e)}function Hr(s,t,e=_e,o=!1){if(e){const r=e[s]||(e[s]=[]),n=t.__weh||(t.__weh=(...a)=>{if(e.isUnmounted)return;Io();const i=nr(e),l=Qe(t,e,s,a);return i(),Ro(),l});return o?r.unshift(n):r.push(n),n}else if({}.NODE_ENV!=="production"){const r=qo(fa[s].replace(/ hook$/,""));ut(`${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 vo=s=>(t,e=_e)=>(!en||s==="sp")&&Hr(s,(...o)=>t(...o),e),pp=vo("bm"),Lo=vo("m"),mp=vo("bu"),gp=vo("u"),yp=vo("bum"),ee=vo("um"),vp=vo("sp"),bp=vo("rtg"),_p=vo("rtc");function xp(s,t=_e){Hr("ec",s,t)}function ye(s,t,e,o){let r;const n=e&&e[o];if(Pt(s)||ce(s)){r=new Array(s.length);for(let a=0,i=s.length;a<i;a++)r[a]=t(s[a],a,void 0,n&&n[a])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&ut(`The v-for range expect an integer value but got ${s}.`),r=new Array(s);for(let a=0;a<s;a++)r[a]=t(a+1,a,void 0,n&&n[a])}else if(Ht(s))if(s[Symbol.iterator])r=Array.from(s,(a,i)=>t(a,i,void 0,n&&n[i]));else{const a=Object.keys(s);r=new Array(a.length);for(let i=0,l=a.length;i<l;i++){const c=a[i];r[i]=t(s[c],c,i,n&&n[i])}}else r=[];return e&&(e[o]=r),r}function kt(s,t,e={},o,r){if(fe.isCE||fe.parent&&qs(fe.parent)&&fe.parent.isCE)return t!=="default"&&(e.name=t),lt("slot",e,o&&o());let n=s[t];({}).NODE_ENV!=="production"&&n&&n.length>1&&(ut("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."),n=()=>[]),n&&n._c&&(n._d=!1),L();const a=n&&pc(n(e)),i=Mt(Xt,{key:e.key||a&&a.key||`_${t}`},a||(o?o():[]),a&&s._===1?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),n&&n._c&&(n._d=!0),i}function pc(s){return s.some(t=>Es(t)?!(t.type===Ne||t.type===Xt&&!pc(t.children)):!0)?s:null}const Ta=s=>s?Vc(s)?on(s)||s.proxy:Ta(s.parent):null,is=ie(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?ws(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?ws(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?ws(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?ws(s.refs):s.refs,$parent:s=>Ta(s.parent),$root:s=>Ta(s.root),$emit:s=>s.emit,$options:s=>Oa(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Yr(s.update)}),$nextTick:s=>s.n||(s.n=Zl.bind(s.proxy)),$watch:s=>up.bind(s)}),Sa=s=>s==="_"||s==="$",Ea=(s,t)=>s!==Wt&&!s.__isScriptSetup&&zt(s,t),mc={get({_:s},t){const{ctx:e,setupState:o,data:r,props:n,accessCache:a,type:i,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return r[t];case 4:return e[t];case 3:return n[t]}else{if(Ea(o,t))return a[t]=1,o[t];if(r!==Wt&&zt(r,t))return a[t]=2,r[t];if((c=s.propsOptions[0])&&zt(c,t))return a[t]=3,n[t];if(e!==Wt&&zt(e,t))return a[t]=4,e[t];Pa&&(a[t]=0)}}const u=is[t];let h,f;if(u)return t==="$attrs"?(ke(s,"get",t),{}.NODE_ENV!=="production"&&Ur()):{}.NODE_ENV!=="production"&&t==="$slots"&&ke(s,"get",t),u(s);if((h=i.__cssModules)&&(h=h[t]))return h;if(e!==Wt&&zt(e,t))return a[t]=4,e[t];if(f=l.config.globalProperties,zt(f,t))return f[t];({}).NODE_ENV!=="production"&&fe&&(!ce(t)||t.indexOf("__v")!==0)&&(r!==Wt&&Sa(t[0])&&zt(r,t)?ut(`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===fe&&ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:o,setupState:r,ctx:n}=s;return Ea(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&zt(r,t)?(ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==Wt&&zt(o,t)?(o[t]=e,!0):zt(s.props,t)?({}.NODE_ENV!=="production"&&ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&ut(`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(n,t,{enumerable:!0,configurable:!0,value:e}):n[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:o,appContext:r,propsOptions:n}},a){let i;return!!e[a]||s!==Wt&&zt(s,a)||Ea(t,a)||(i=n[0])&&zt(i,a)||zt(o,a)||zt(is,a)||zt(r.config.globalProperties,a)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:zt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(mc.ownKeys=s=>(ut("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 wp(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(is).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>is[e](s),set:de})}),t}function kp(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.props[o],set:de})})}function Cp(s){const{ctx:t,setupState:e}=s;Object.keys(Dt(e)).forEach(o=>{if(!e.__isScriptSetup){if(Sa(o[0])){ut(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e[o],set:de})}})}function Tp(){return Sp().slots}function Sp(){const s=Bc();return{}.NODE_ENV!=="production"&&!s&&ut("useContext() called without active instance."),s.setupContext||(s.setupContext=jc(s))}function gc(s){return Pt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Ep(){const s=Object.create(null);return(t,e)=>{s[e]?ut(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let Pa=!0;function Pp(s){const t=Oa(s),e=s.proxy,o=s.ctx;Pa=!1,t.beforeCreate&&yc(t.beforeCreate,s,"bc");const{data:r,computed:n,methods:a,watch:i,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:p,updated:d,activated:b,deactivated:_,beforeDestroy:v,beforeUnmount:w,destroyed:g,unmounted:m,render:k,renderTracked:C,renderTriggered:z,errorCaptured:tt,serverPrefetch:R,expose:D,inheritAttrs:M,components:$,directives:N,filters:G}=t,st={}.NODE_ENV!=="production"?Ep():null;if({}.NODE_ENV!=="production"){const[q]=s.propsOptions;if(q)for(const nt in q)st("Props",nt)}if(c&&Op(c,o,st),a)for(const q in a){const nt=a[q];Ft(nt)?({}.NODE_ENV!=="production"?Object.defineProperty(o,q,{value:nt.bind(e),configurable:!0,enumerable:!0,writable:!0}):o[q]=nt.bind(e),{}.NODE_ENV!=="production"&&st("Methods",q)):{}.NODE_ENV!=="production"&&ut(`Method "${q}" has type "${typeof nt}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Ft(r)&&ut("The data option must be a function. Plain object usage is no longer supported.");const q=r.call(e,e);if({}.NODE_ENV!=="production"&&Kn(q)&&ut("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ht(q))({}).NODE_ENV!=="production"&&ut("data() should return an object.");else if(s.data=Zt(q),{}.NODE_ENV!=="production")for(const nt in q)st("Data",nt),Sa(nt[0])||Object.defineProperty(o,nt,{configurable:!0,enumerable:!0,get:()=>q[nt],set:de})}if(Pa=!0,n)for(const q in n){const nt=n[q],U=Ft(nt)?nt.bind(e,e):Ft(nt.get)?nt.get.bind(e,e):de;({}).NODE_ENV!=="production"&&U===de&&ut(`Computed property "${q}" has no getter.`);const H=!Ft(nt)&&Ft(nt.set)?nt.set.bind(e):{}.NODE_ENV!=="production"?()=>{ut(`Write operation failed: computed property "${q}" is readonly.`)}:de,gt=dm({get:U,set:H});Object.defineProperty(o,q,{enumerable:!0,configurable:!0,get:()=>gt.value,set:ft=>gt.value=ft}),{}.NODE_ENV!=="production"&&st("Computed",q)}if(i)for(const q in i)vc(i[q],o,e,q);if(l){const q=Ft(l)?l.call(e):l;Reflect.ownKeys(q).forEach(nt=>{Lp(nt,q[nt])})}u&&yc(u,s,"c");function K(q,nt){Pt(nt)?nt.forEach(U=>q(U.bind(e))):nt&&q(nt.bind(e))}if(K(pp,h),K(Lo,f),K(mp,p),K(gp,d),K(hp,b),K(dp,_),K(xp,tt),K(_p,C),K(bp,z),K(yp,w),K(ee,m),K(vp,R),Pt(D))if(D.length){const q=s.exposed||(s.exposed={});D.forEach(nt=>{Object.defineProperty(q,nt,{get:()=>e[nt],set:U=>e[nt]=U})})}else s.exposed||(s.exposed={});k&&s.render===de&&(s.render=k),M!=null&&(s.inheritAttrs=M),$&&(s.components=$),N&&(s.directives=N)}function Op(s,t,e=de){Pt(s)&&(s=Ia(s));for(const o in s){const r=s[o];let n;Ht(r)?"default"in r?n=Zr(r.from||o,r.default,!0):n=Zr(r.from||o):n=Zr(r),Ce(n)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[o]=n,{}.NODE_ENV!=="production"&&e("Inject",o)}}function yc(s,t,e){Qe(Pt(s)?s.map(o=>o.bind(t.proxy)):s.bind(t.proxy),t,e)}function vc(s,t,e,o){const r=o.includes(".")?hc(e,o):()=>e[o];if(ce(s)){const n=t[s];Ft(n)?St(r,n):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${s}"`,n)}else if(Ft(s))St(r,s.bind(e));else if(Ht(s))if(Pt(s))s.forEach(n=>vc(n,t,e,o));else{const n=Ft(s.handler)?s.handler.bind(e):t[s.handler];Ft(n)?St(r,n,s):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${s.handler}"`,n)}else({}).NODE_ENV!=="production"&&ut(`Invalid watch option: "${o}"`,s)}function Oa(s){const t=s.type,{mixins:e,extends:o}=t,{mixins:r,optionsCache:n,config:{optionMergeStrategies:a}}=s.appContext,i=n.get(t);let l;return i?l=i:!r.length&&!e&&!o?l=t:(l={},r.length&&r.forEach(c=>Wr(l,c,a,!0)),Wr(l,t,a)),Ht(t)&&n.set(t,l),l}function Wr(s,t,e,o=!1){const{mixins:r,extends:n}=t;n&&Wr(s,n,e,!0),r&&r.forEach(a=>Wr(s,a,e,!0));for(const a in t)if(o&&a==="expose")({}).NODE_ENV!=="production"&&ut('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const i=Ip[a]||e&&e[a];s[a]=i?i(s[a],t[a]):t[a]}return s}const Ip={data:bc,props:_c,emits:_c,methods:Qs,computed:Qs,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:Qs,directives:Qs,watch:Fp,provide:bc,inject:Rp};function bc(s,t){return t?s?function(){return ie(Ft(s)?s.call(this,this):s,Ft(t)?t.call(this,this):t)}:t:s}function Rp(s,t){return Qs(Ia(s),Ia(t))}function Ia(s){if(Pt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Re(s,t){return s?[...new Set([].concat(s,t))]:t}function Qs(s,t){return s?ie(Object.create(null),s,t):t}function _c(s,t){return s?Pt(s)&&Pt(t)?[...new Set([...s,...t])]:ie(Object.create(null),gc(s),gc(t??{})):t}function Fp(s,t){if(!s)return t;if(!t)return s;const e=ie(Object.create(null),s);for(const o in t)e[o]=Re(s[o],t[o]);return e}function xc(){return{app:null,config:{isNativeTag:Hd,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 $p=0;function Dp(s,t){return function(o,r=null){Ft(o)||(o=ie({},o)),r!=null&&!Ht(r)&&({}.NODE_ENV!=="production"&&ut("root props passed to app.mount() must be an object."),r=null);const n=xc(),a=new WeakSet;let i=!1;const l=n.app={_uid:$p++,_component:o,_props:r,_container:null,_context:n,_instance:null,version:Zc,get config(){return n.config},set config(c){({}).NODE_ENV!=="production"&&ut("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return a.has(c)?{}.NODE_ENV!=="production"&&ut("Plugin has already been applied to target app."):c&&Ft(c.install)?(a.add(c),c.install(l,...u)):Ft(c)?(a.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&ut('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return n.mixins.includes(c)?{}.NODE_ENV!=="production"&&ut("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):n.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&za(c,n.config),u?({}.NODE_ENV!=="production"&&n.components[c]&&ut(`Component "${c}" has already been registered in target app.`),n.components[c]=u,l):n.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&dc(c),u?({}.NODE_ENV!=="production"&&n.directives[c]&&ut(`Directive "${c}" has already been registered in target app.`),n.directives[c]=u,l):n.directives[c]},mount(c,u,h){if(i)({}).NODE_ENV!=="production"&&ut("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__&&ut("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=lt(o,r);return f.appContext=n,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(n.reload=()=>{s(Ao(f),c,h)}),u&&t?t(f,c):s(f,c,h),i=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,jf(l,Zc)),on(f.component)||f.component.proxy}},unmount(){i?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Hf(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&ut("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in n.provides&&ut(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),n.provides[c]=u,l},runWithContext(c){const u=Ks;Ks=l;try{return c()}finally{Ks=u}}};return l}}let Ks=null;function Lp(s,t){if(!_e)({}).NODE_ENV!=="production"&&ut("provide() can only be used inside setup().");else{let e=_e.provides;const o=_e.parent&&_e.parent.provides;o===e&&(e=_e.provides=Object.create(o)),e[s]=t}}function Zr(s,t,e=!1){const o=_e||fe;if(o||Ks){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Ks._context.provides;if(r&&s in r)return r[s];if(arguments.length>1)return e&&Ft(t)?t.call(o&&o.proxy):t;({}).NODE_ENV!=="production"&&ut(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&ut("inject() can only be used inside setup() or functional components.")}function Mp(s,t,e,o=!1){const r={},n={};Or(n,Kr,1),s.propsDefaults=Object.create(null),wc(s,t,r,n);for(const a in s.propsOptions[0])a in r||(r[a]=void 0);({}).NODE_ENV!=="production"&&Ec(t||{},r,s),e?s.props=o?r:Ef(r):s.type.props?s.props=r:s.props=n,s.attrs=n}function Ap(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function Np(s,t,e,o){const{props:r,attrs:n,vnode:{patchFlag:a}}=s,i=Dt(r),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Ap(s))&&(o||a>0)&&!(a&16)){if(a&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(Vr(s.emitsOptions,f))continue;const p=t[f];if(l)if(zt(n,f))p!==n[f]&&(n[f]=p,c=!0);else{const d=mo(f);r[d]=Ra(l,i,d,p,s,!1)}else p!==n[f]&&(n[f]=p,c=!0)}}}else{wc(s,t,r,n)&&(c=!0);let u;for(const h in i)(!t||!zt(t,h)&&((u=Xe(h))===h||!zt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(r[h]=Ra(l,i,h,void 0,s,!0)):delete r[h]);if(n!==i)for(const h in n)(!t||!zt(t,h))&&(delete n[h],c=!0)}c&&oo(s,"set","$attrs"),{}.NODE_ENV!=="production"&&Ec(t||{},r,s)}function wc(s,t,e,o){const[r,n]=s.propsOptions;let a=!1,i;if(t)for(let l in t){if(Ys(l))continue;const c=t[l];let u;r&&zt(r,u=mo(l))?!n||!n.includes(u)?e[u]=c:(i||(i={}))[u]=c:Vr(s.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,a=!0)}if(n){const l=Dt(e),c=i||Wt;for(let u=0;u<n.length;u++){const h=n[u];e[h]=Ra(r,l,h,c[h],s,!zt(c,h))}}return a}function Ra(s,t,e,o,r,n){const a=s[e];if(a!=null){const i=zt(a,"default");if(i&&o===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ft(l)){const{propsDefaults:c}=r;if(e in c)o=c[e];else{const u=nr(r);o=c[e]=l.call(null,t),u()}}else o=l}a[0]&&(n&&!i?o=!1:a[1]&&(o===""||o===Xe(e))&&(o=!0))}return o}function kc(s,t,e=!1){const o=t.propsCache,r=o.get(s);if(r)return r;const n=s.props,a={},i=[];let l=!1;if(!Ft(s)){const u=h=>{l=!0;const[f,p]=kc(h,t,!0);ie(a,f),p&&i.push(...p)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!n&&!l)return Ht(s)&&o.set(s,_s),_s;if(Pt(n))for(let u=0;u<n.length;u++){({}).NODE_ENV!=="production"&&!ce(n[u])&&ut("props must be strings when using array syntax.",n[u]);const h=mo(n[u]);Cc(h)&&(a[h]=Wt)}else if(n){({}).NODE_ENV!=="production"&&!Ht(n)&&ut("invalid props options",n);for(const u in n){const h=mo(u);if(Cc(h)){const f=n[u],p=a[h]=Pt(f)||Ft(f)?{type:f}:ie({},f);if(p){const d=Sc(Boolean,p.type),b=Sc(String,p.type);p[0]=d>-1,p[1]=b<0||d<b,(d>-1||zt(p,"default"))&&i.push(h)}}}}const c=[a,i];return Ht(s)&&o.set(s,c),c}function Cc(s){return s[0]!=="$"&&!Ys(s)?!0:({}.NODE_ENV!=="production"&&ut(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Fa(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Tc(s,t){return Fa(s)===Fa(t)}function Sc(s,t){return Pt(t)?t.findIndex(e=>Tc(e,s)):Ft(t)&&Tc(t,s)?0:-1}function Ec(s,t,e){const o=Dt(t),r=e.propsOptions[0];for(const n in r){let a=r[n];a!=null&&zp(n,o[n],a,{}.NODE_ENV!=="production"?ws(o):o,!zt(s,n)&&!zt(s,Xe(n)))}}function zp(s,t,e,o,r){const{type:n,required:a,validator:i,skipCheck:l}=e;if(a&&r){ut('Missing required prop: "'+s+'"');return}if(!(t==null&&!a)){if(n!=null&&n!==!0&&!l){let c=!1;const u=Pt(n)?n:[n],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:p,expectedType:d}=Yp(t,u[f]);h.push(d||""),c=p}if(!c){ut(Vp(s,t,h));return}}i&&!i(t,o)&&ut('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Bp=bs("String,Number,Boolean,Function,Symbol,BigInt");function Yp(s,t){let e;const o=Fa(t);if(Bp(o)){const r=typeof s;e=r===o.toLowerCase(),!e&&r==="object"&&(e=s instanceof t)}else o==="Object"?e=Ht(s):o==="Array"?e=Pt(s):o==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:o}}function Vp(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 o=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(Pr).join(" | ")}`;const r=e[0],n=Jn(t),a=Pc(t,r),i=Pc(t,n);return e.length===1&&Oc(r)&&!Xp(r,n)&&(o+=` with value ${a}`),o+=`, got ${n} `,Oc(n)&&(o+=`with value ${i}.`),o}function Pc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function Oc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Xp(...s){return s.some(t=>t.toLowerCase()==="boolean")}const Ic=s=>s[0]==="_"||s==="$stable",$a=s=>Pt(s)?s.map(Je):[Je(s)],Gp=(s,t,e)=>{if(t._n)return t;const o=bt((...r)=>({}.NODE_ENV!=="production"&&_e&&(!e||e.root===_e.root)&&ut(`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.`),$a(t(...r))),e);return o._c=!1,o},Rc=(s,t,e)=>{const o=s._ctx;for(const r in s){if(Ic(r))continue;const n=s[r];if(Ft(n))t[r]=Gp(r,n,o);else if(n!=null){({}).NODE_ENV!=="production"&&ut(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const a=$a(n);t[r]=()=>a}}},Fc=(s,t)=>{({}).NODE_ENV!=="production"&&!Ca(s.vnode)&&ut("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=$a(t);s.slots.default=()=>e},Up=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=Dt(t),Or(t,"_",e)):Rc(t,s.slots={})}else s.slots={},t&&Fc(s,t);Or(s.slots,Kr,1)},jp=(s,t,e)=>{const{vnode:o,slots:r}=s;let n=!0,a=Wt;if(o.shapeFlag&32){const i=t._;i?{}.NODE_ENV!=="production"&&os?(ie(r,t),oo(s,"set","$slots")):e&&i===1?n=!1:(ie(r,t),!e&&i===1&&delete r._):(n=!t.$stable,Rc(t,r)),a=t}else t&&(Fc(s,t),a={default:1});if(n)for(const i in r)!Ic(i)&&a[i]==null&&delete r[i]};function Da(s,t,e,o,r=!1){if(Pt(s)){s.forEach((f,p)=>Da(f,t&&(Pt(t)?t[p]:t),e,o,r));return}if(qs(o)&&!r)return;const n=o.shapeFlag&4?on(o.component)||o.component.proxy:o.el,a=r?null:n,{i,r:l}=s;if({}.NODE_ENV!=="production"&&!i){ut("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=i.refs===Wt?i.refs={}:i.refs,h=i.setupState;if(c!=null&&c!==l&&(ce(c)?(u[c]=null,zt(h,c)&&(h[c]=null)):Ce(c)&&(c.value=null)),Ft(l))go(l,i,12,[a,u]);else{const f=ce(l),p=Ce(l);if(f||p){const d=()=>{if(s.f){const b=f?zt(h,l)?h[l]:u[l]:l.value;r?Pt(b)&&Qn(b,n):Pt(b)?b.includes(n)||b.push(n):f?(u[l]=[n],zt(h,l)&&(h[l]=u[l])):(l.value=[n],s.k&&(u[s.k]=l.value))}else f?(u[l]=a,zt(h,l)&&(h[l]=a)):p?(l.value=a,s.k&&(u[s.k]=a)):{}.NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)};a?(d.id=-1,Ae(d,e)):d()}else({}).NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)}}let Js,Mo;function bo(s,t){s.appContext.config.performance&&qr()&&Mo.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Qf(s,t,qr()?Mo.now():Date.now())}function _o(s,t){if(s.appContext.config.performance&&qr()){const e=`vue-${t}-${s.uid}`,o=e+":end";Mo.mark(o),Mo.measure(`<${sn(s,s.type)}> ${t}`,e,o),Mo.clearMarks(e),Mo.clearMarks(o)}({}).NODE_ENV!=="production"&&Kf(s,t,qr()?Mo.now():Date.now())}function qr(){return Js!==void 0||(typeof window<"u"&&window.performance?(Js=!0,Mo=window.performance):Js=!1),Js}function Hp(){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 Ae=ip;function Wp(s){return Zp(s)}function Zp(s,t){Hp();const e=ea();e.__VUE__=!0,{}.NODE_ENV!=="production"&&sc(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:o,remove:r,patchProp:n,createElement:a,createText:i,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:p=de,insertStaticContent:d}=s,b=(S,F,X,W=null,Z=null,rt=null,ct=void 0,J=null,at={}.NODE_ENV!=="production"&&os?!1:!!F.dynamicChildren)=>{if(S===F)return;S&&!rr(S,F)&&(W=Kt(S),Y(S,Z,rt,!0),S=null),F.patchFlag===-2&&(at=!1,F.dynamicChildren=null);const{type:et,ref:dt,shapeFlag:Tt}=F;switch(et){case tr:_(S,F,X,W);break;case Ne:v(S,F,X,W);break;case er:S==null?w(F,X,W,ct):{}.NODE_ENV!=="production"&&g(S,F,X,ct);break;case Xt:N(S,F,X,W,Z,rt,ct,J,at);break;default:Tt&1?C(S,F,X,W,Z,rt,ct,J,at):Tt&6?G(S,F,X,W,Z,rt,ct,J,at):Tt&64||Tt&128?et.process(S,F,X,W,Z,rt,ct,J,at,$e):{}.NODE_ENV!=="production"&&ut("Invalid VNode type:",et,`(${typeof et})`)}dt!=null&&Z&&Da(dt,S&&S.ref,rt,F||S,!F)},_=(S,F,X,W)=>{if(S==null)o(F.el=i(F.children),X,W);else{const Z=F.el=S.el;F.children!==S.children&&c(Z,F.children)}},v=(S,F,X,W)=>{S==null?o(F.el=l(F.children||""),X,W):F.el=S.el},w=(S,F,X,W)=>{[S.el,S.anchor]=d(S.children,F,X,W,S.el,S.anchor)},g=(S,F,X,W)=>{if(F.children!==S.children){const Z=f(S.anchor);k(S),[F.el,F.anchor]=d(F.children,X,Z,W)}else F.el=S.el,F.anchor=S.anchor},m=({el:S,anchor:F},X,W)=>{let Z;for(;S&&S!==F;)Z=f(S),o(S,X,W),S=Z;o(F,X,W)},k=({el:S,anchor:F})=>{let X;for(;S&&S!==F;)X=f(S),r(S),S=X;r(F)},C=(S,F,X,W,Z,rt,ct,J,at)=>{F.type==="svg"?ct="svg":F.type==="math"&&(ct="mathml"),S==null?z(F,X,W,Z,rt,ct,J,at):D(S,F,Z,rt,ct,J,at)},z=(S,F,X,W,Z,rt,ct,J)=>{let at,et;const{props:dt,shapeFlag:Tt,transition:wt,dirs:It}=S;if(at=S.el=a(S.type,rt,dt&&dt.is,dt),Tt&8?u(at,S.children):Tt&16&&R(S.children,at,null,W,Z,La(S,rt),ct,J),It&&as(S,null,W,"created"),tt(at,S,S.scopeId,ct,W),dt){for(const Ut in dt)Ut!=="value"&&!Ys(Ut)&&n(at,Ut,null,dt[Ut],rt,S.children,W,Z,Ct);"value"in dt&&n(at,"value",null,dt.value,rt),(et=dt.onVnodeBeforeMount)&&no(et,W,S)}({}).NODE_ENV!=="production"&&(Object.defineProperty(at,"__vnode",{value:S,enumerable:!1}),Object.defineProperty(at,"__vueParentComponent",{value:W,enumerable:!1})),It&&as(S,null,W,"beforeMount");const At=qp(Z,wt);At&&wt.beforeEnter(at),o(at,F,X),((et=dt&&dt.onVnodeMounted)||At||It)&&Ae(()=>{et&&no(et,W,S),At&&wt.enter(at),It&&as(S,null,W,"mounted")},Z)},tt=(S,F,X,W,Z)=>{if(X&&p(S,X),W)for(let rt=0;rt<W.length;rt++)p(S,W[rt]);if(Z){let rt=Z.subTree;if({}.NODE_ENV!=="production"&&rt.patchFlag>0&&rt.patchFlag&2048&&(rt=wa(rt.children)||rt),F===rt){const ct=Z.vnode;tt(S,ct,ct.scopeId,ct.slotScopeIds,Z.parent)}}},R=(S,F,X,W,Z,rt,ct,J,at=0)=>{for(let et=at;et<S.length;et++){const dt=S[et]=J?No(S[et]):Je(S[et]);b(null,dt,F,X,W,Z,rt,ct,J)}},D=(S,F,X,W,Z,rt,ct)=>{const J=F.el=S.el;let{patchFlag:at,dynamicChildren:et,dirs:dt}=F;at|=S.patchFlag&16;const Tt=S.props||Wt,wt=F.props||Wt;let It;if(X&&ls(X,!1),(It=wt.onVnodeBeforeUpdate)&&no(It,X,F,S),dt&&as(F,S,X,"beforeUpdate"),X&&ls(X,!0),{}.NODE_ENV!=="production"&&os&&(at=0,ct=!1,et=null),et?(M(S.dynamicChildren,et,J,X,W,La(F,Z),rt),{}.NODE_ENV!=="production"&&Qr(S,F)):ct||U(S,F,J,null,X,W,La(F,Z),rt,!1),at>0){if(at&16)$(J,F,Tt,wt,X,W,Z);else if(at&2&&Tt.class!==wt.class&&n(J,"class",null,wt.class,Z),at&4&&n(J,"style",Tt.style,wt.style,Z),at&8){const At=F.dynamicProps;for(let Ut=0;Ut<At.length;Ut++){const Jt=At[Ut],le=Tt[Jt],De=wt[Jt];(De!==le||Jt==="value")&&n(J,Jt,le,De,Z,S.children,X,W,Ct)}}at&1&&S.children!==F.children&&u(J,F.children)}else!ct&&et==null&&$(J,F,Tt,wt,X,W,Z);((It=wt.onVnodeUpdated)||dt)&&Ae(()=>{It&&no(It,X,F,S),dt&&as(F,S,X,"updated")},W)},M=(S,F,X,W,Z,rt,ct)=>{for(let J=0;J<F.length;J++){const at=S[J],et=F[J],dt=at.el&&(at.type===Xt||!rr(at,et)||at.shapeFlag&70)?h(at.el):X;b(at,et,dt,null,W,Z,rt,ct,!0)}},$=(S,F,X,W,Z,rt,ct)=>{if(X!==W){if(X!==Wt)for(const J in X)!Ys(J)&&!(J in W)&&n(S,J,X[J],null,ct,F.children,Z,rt,Ct);for(const J in W){if(Ys(J))continue;const at=W[J],et=X[J];at!==et&&J!=="value"&&n(S,J,et,at,ct,F.children,Z,rt,Ct)}"value"in W&&n(S,"value",X.value,W.value,ct)}},N=(S,F,X,W,Z,rt,ct,J,at)=>{const et=F.el=S?S.el:i(""),dt=F.anchor=S?S.anchor:i("");let{patchFlag:Tt,dynamicChildren:wt,slotScopeIds:It}=F;({}).NODE_ENV!=="production"&&(os||Tt&2048)&&(Tt=0,at=!1,wt=null),It&&(J=J?J.concat(It):It),S==null?(o(et,X,W),o(dt,X,W),R(F.children||[],X,dt,Z,rt,ct,J,at)):Tt>0&&Tt&64&&wt&&S.dynamicChildren?(M(S.dynamicChildren,wt,X,Z,rt,ct,J),{}.NODE_ENV!=="production"?Qr(S,F):(F.key!=null||Z&&F===Z.subTree)&&Qr(S,F,!0)):U(S,F,X,dt,Z,rt,ct,J,at)},G=(S,F,X,W,Z,rt,ct,J,at)=>{F.slotScopeIds=J,S==null?F.shapeFlag&512?Z.ctx.activate(F,X,W,ct,at):st(F,X,W,Z,rt,ct,at):K(S,F,at)},st=(S,F,X,W,Z,rt,ct)=>{const J=S.component=rm(S,W,Z);if({}.NODE_ENV!=="production"&&J.type.__hmrId&&Vf(J),{}.NODE_ENV!=="production"&&(zr(S),bo(J,"mount")),Ca(S)&&(J.ctx.renderer=$e),{}.NODE_ENV!=="production"&&bo(J,"init"),am(J),{}.NODE_ENV!=="production"&&_o(J,"init"),J.asyncDep){if(Z&&Z.registerDep(J,q),!S.el){const at=J.subTree=lt(Ne);v(null,at,F,X)}}else q(J,S,F,X,Z,rt,ct);({}).NODE_ENV!=="production"&&(Br(),_o(J,"mount"))},K=(S,F,X)=>{const W=F.component=S.component;if(sp(S,F,X))if(W.asyncDep&&!W.asyncResolved){({}).NODE_ENV!=="production"&&zr(F),nt(W,F,X),{}.NODE_ENV!=="production"&&Br();return}else W.next=F,Bf(W.update),W.effect.dirty=!0,W.update();else F.el=S.el,W.vnode=F},q=(S,F,X,W,Z,rt,ct)=>{const J=()=>{if(S.isMounted){let{next:dt,bu:Tt,u:wt,parent:It,vnode:At}=S;{const Ho=$c(S);if(Ho){dt&&(dt.el=At.el,nt(S,dt,ct)),Ho.asyncDep.then(()=>{S.isUnmounted||J()});return}}let Ut=dt,Jt;({}).NODE_ENV!=="production"&&zr(dt||S.vnode),ls(S,!1),dt?(dt.el=At.el,nt(S,dt,ct)):dt=At,Tt&&Vs(Tt),(Jt=dt.props&&dt.props.onVnodeBeforeUpdate)&&no(Jt,It,dt,At),ls(S,!0),{}.NODE_ENV!=="production"&&bo(S,"render");const le=xa(S);({}).NODE_ENV!=="production"&&_o(S,"render");const De=S.subTree;S.subTree=le,{}.NODE_ENV!=="production"&&bo(S,"patch"),b(De,le,h(De.el),Kt(De),S,Z,rt),{}.NODE_ENV!=="production"&&_o(S,"patch"),dt.el=le.el,Ut===null&&rp(S,le.el),wt&&Ae(wt,Z),(Jt=dt.props&&dt.props.onVnodeUpdated)&&Ae(()=>no(Jt,It,dt,At),Z),{}.NODE_ENV!=="production"&&rc(S),{}.NODE_ENV!=="production"&&Br()}else{let dt;const{el:Tt,props:wt}=F,{bm:It,m:At,parent:Ut}=S,Jt=qs(F);if(ls(S,!1),It&&Vs(It),!Jt&&(dt=wt&&wt.onVnodeBeforeMount)&&no(dt,Ut,F),ls(S,!0),Tt&&Ie){const le=()=>{({}).NODE_ENV!=="production"&&bo(S,"render"),S.subTree=xa(S),{}.NODE_ENV!=="production"&&_o(S,"render"),{}.NODE_ENV!=="production"&&bo(S,"hydrate"),Ie(Tt,S.subTree,S,Z,null),{}.NODE_ENV!=="production"&&_o(S,"hydrate")};Jt?F.type.__asyncLoader().then(()=>!S.isUnmounted&&le()):le()}else{({}).NODE_ENV!=="production"&&bo(S,"render");const le=S.subTree=xa(S);({}).NODE_ENV!=="production"&&_o(S,"render"),{}.NODE_ENV!=="production"&&bo(S,"patch"),b(null,le,X,W,S,Z,rt),{}.NODE_ENV!=="production"&&_o(S,"patch"),F.el=le.el}if(At&&Ae(At,Z),!Jt&&(dt=wt&&wt.onVnodeMounted)){const le=F;Ae(()=>no(dt,Ut,le),Z)}(F.shapeFlag&256||Ut&&qs(Ut.vnode)&&Ut.vnode.shapeFlag&256)&&S.a&&Ae(S.a,Z),S.isMounted=!0,{}.NODE_ENV!=="production"&&Wf(S),F=X=W=null}},at=S.effect=new sa(J,de,()=>Yr(et),S.scope),et=S.update=()=>{at.dirty&&at.run()};et.id=S.uid,ls(S,!0),{}.NODE_ENV!=="production"&&(at.onTrack=S.rtc?dt=>Vs(S.rtc,dt):void 0,at.onTrigger=S.rtg?dt=>Vs(S.rtg,dt):void 0,et.ownerInstance=S),et()},nt=(S,F,X)=>{F.component=S;const W=S.vnode.props;S.vnode=F,S.next=null,Np(S,F.props,W,X),jp(S,F.children,X),Io(),Kl(S),Ro()},U=(S,F,X,W,Z,rt,ct,J,at=!1)=>{const et=S&&S.children,dt=S?S.shapeFlag:0,Tt=F.children,{patchFlag:wt,shapeFlag:It}=F;if(wt>0){if(wt&128){gt(et,Tt,X,W,Z,rt,ct,J,at);return}else if(wt&256){H(et,Tt,X,W,Z,rt,ct,J,at);return}}It&8?(dt&16&&Ct(et,Z,rt),Tt!==et&&u(X,Tt)):dt&16?It&16?gt(et,Tt,X,W,Z,rt,ct,J,at):Ct(et,Z,rt,!0):(dt&8&&u(X,""),It&16&&R(Tt,X,W,Z,rt,ct,J,at))},H=(S,F,X,W,Z,rt,ct,J,at)=>{S=S||_s,F=F||_s;const et=S.length,dt=F.length,Tt=Math.min(et,dt);let wt;for(wt=0;wt<Tt;wt++){const It=F[wt]=at?No(F[wt]):Je(F[wt]);b(S[wt],It,X,null,Z,rt,ct,J,at)}et>dt?Ct(S,Z,rt,!0,!1,Tt):R(F,X,W,Z,rt,ct,J,at,Tt)},gt=(S,F,X,W,Z,rt,ct,J,at)=>{let et=0;const dt=F.length;let Tt=S.length-1,wt=dt-1;for(;et<=Tt&&et<=wt;){const It=S[et],At=F[et]=at?No(F[et]):Je(F[et]);if(rr(It,At))b(It,At,X,null,Z,rt,ct,J,at);else break;et++}for(;et<=Tt&&et<=wt;){const It=S[Tt],At=F[wt]=at?No(F[wt]):Je(F[wt]);if(rr(It,At))b(It,At,X,null,Z,rt,ct,J,at);else break;Tt--,wt--}if(et>Tt){if(et<=wt){const It=wt+1,At=It<dt?F[It].el:W;for(;et<=wt;)b(null,F[et]=at?No(F[et]):Je(F[et]),X,At,Z,rt,ct,J,at),et++}}else if(et>wt)for(;et<=Tt;)Y(S[et],Z,rt,!0),et++;else{const It=et,At=et,Ut=new Map;for(et=At;et<=wt;et++){const Se=F[et]=at?No(F[et]):Je(F[et]);Se.key!=null&&({}.NODE_ENV!=="production"&&Ut.has(Se.key)&&ut("Duplicate keys found during update:",JSON.stringify(Se.key),"Make sure keys are unique."),Ut.set(Se.key,et))}let Jt,le=0;const De=wt-At+1;let Ho=!1,Vn=0;const ys=new Array(De);for(et=0;et<De;et++)ys[et]=0;for(et=It;et<=Tt;et++){const Se=S[et];if(le>=De){Y(Se,Z,rt,!0);continue}let Le;if(Se.key!=null)Le=Ut.get(Se.key);else for(Jt=At;Jt<=wt;Jt++)if(ys[Jt-At]===0&&rr(Se,F[Jt])){Le=Jt;break}Le===void 0?Y(Se,Z,rt,!0):(ys[Le-At]=et+1,Le>=Vn?Vn=Le:Ho=!0,b(Se,F[Le],X,null,Z,rt,ct,J,at),le++)}const Xn=Ho?Qp(ys):_s;for(Jt=Xn.length-1,et=De-1;et>=0;et--){const Se=At+et,Le=F[Se],Gn=Se+1<dt?F[Se+1].el:W;ys[et]===0?b(null,Le,X,Gn,Z,rt,ct,J,at):Ho&&(Jt<0||et!==Xn[Jt]?ft(Le,X,Gn,2):Jt--)}}},ft=(S,F,X,W,Z=null)=>{const{el:rt,type:ct,transition:J,children:at,shapeFlag:et}=S;if(et&6){ft(S.component.subTree,F,X,W);return}if(et&128){S.suspense.move(F,X,W);return}if(et&64){ct.move(S,F,X,$e);return}if(ct===Xt){o(rt,F,X);for(let Tt=0;Tt<at.length;Tt++)ft(at[Tt],F,X,W);o(S.anchor,F,X);return}if(ct===er){m(S,F,X);return}if(W!==2&&et&1&&J)if(W===0)J.beforeEnter(rt),o(rt,F,X),Ae(()=>J.enter(rt),Z);else{const{leave:Tt,delayLeave:wt,afterLeave:It}=J,At=()=>o(rt,F,X),Ut=()=>{Tt(rt,()=>{At(),It&&It()})};wt?wt(rt,At,Ut):Ut()}else o(rt,F,X)},Y=(S,F,X,W=!1,Z=!1)=>{const{type:rt,props:ct,ref:J,children:at,dynamicChildren:et,shapeFlag:dt,patchFlag:Tt,dirs:wt}=S;if(J!=null&&Da(J,null,X,S,!0),dt&256){F.ctx.deactivate(S);return}const It=dt&1&&wt,At=!qs(S);let Ut;if(At&&(Ut=ct&&ct.onVnodeBeforeUnmount)&&no(Ut,F,S),dt&6)Nt(S.component,X,W);else{if(dt&128){S.suspense.unmount(X,W);return}It&&as(S,null,F,"beforeUnmount"),dt&64?S.type.remove(S,F,X,Z,$e,W):et&&(rt!==Xt||Tt>0&&Tt&64)?Ct(et,F,X,!1,!0):(rt===Xt&&Tt&384||!Z&&dt&16)&&Ct(at,F,X),W&&P(S)}(At&&(Ut=ct&&ct.onVnodeUnmounted)||It)&&Ae(()=>{Ut&&no(Ut,F,S),It&&as(S,null,F,"unmounted")},X)},P=S=>{const{type:F,el:X,anchor:W,transition:Z}=S;if(F===Xt){({}).NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&Z&&!Z.persisted?S.children.forEach(ct=>{ct.type===Ne?r(ct.el):P(ct)}):Vt(X,W);return}if(F===er){k(S);return}const rt=()=>{r(X),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(S.shapeFlag&1&&Z&&!Z.persisted){const{leave:ct,delayLeave:J}=Z,at=()=>ct(X,rt);J?J(S.el,rt,at):at()}else rt()},Vt=(S,F)=>{let X;for(;S!==F;)X=f(S),r(S),S=X;r(F)},Nt=(S,F,X)=>{({}).NODE_ENV!=="production"&&S.type.__hmrId&&Xf(S);const{bum:W,scope:Z,update:rt,subTree:ct,um:J}=S;W&&Vs(W),Z.stop(),rt&&(rt.active=!1,Y(ct,S,F,X)),J&&Ae(J,F),Ae(()=>{S.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve()),{}.NODE_ENV!=="production"&&qf(S)},Ct=(S,F,X,W=!1,Z=!1,rt=0)=>{for(let ct=rt;ct<S.length;ct++)Y(S[ct],F,X,W,Z)},Kt=S=>S.shapeFlag&6?Kt(S.component.subTree):S.shapeFlag&128?S.suspense.next():f(S.anchor||S.el);let Gt=!1;const j=(S,F,X)=>{S==null?F._vnode&&Y(F._vnode,null,null,!0):b(F._vnode||null,S,F,null,null,null,X),Gt||(Gt=!0,Kl(),Jl(),Gt=!1),F._vnode=S},$e={p:b,um:Y,m:ft,r:P,mt:st,mc:R,pc:U,pbc:M,n:Kt,o:s};let Ve,Ie;return t&&([Ve,Ie]=t($e)),{render:j,hydrate:Ve,createApp:Dp(j,Ve)}}function La({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 ls({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function qp(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function Qr(s,t,e=!1){const o=s.children,r=t.children;if(Et(o)&&Et(r))for(let n=0;n<o.length;n++){const a=o[n];let i=r[n];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[n]=No(r[n]),i.el=a.el),e||Qr(a,i)),i.type===tr&&(i.el=a.el),{}.NODE_ENV!=="production"&&i.type===Ne&&!i.el&&(i.el=a.el)}}function Qp(s){const t=s.slice(),e=[0];let o,r,n,a,i;const l=s.length;for(o=0;o<l;o++){const c=s[o];if(c!==0){if(r=e[e.length-1],s[r]<c){t[o]=r,e.push(o);continue}for(n=0,a=e.length-1;n<a;)i=n+a>>1,s[e[i]]<c?n=i+1:a=i;c<s[e[n]]&&(n>0&&(t[o]=e[n-1]),e[n]=o)}}for(n=e.length,a=e[n-1];n-- >0;)e[n]=a,a=t[a];return e}function $c(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$c(t)}const Kp=s=>s.__isTeleport,Xt=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),Ne=Symbol.for("v-cmt"),er=Symbol.for("v-stc"),or=[];let Ke=null;function L(s=!1){or.push(Ke=s?null:[])}function Jp(){or.pop(),Ke=or[or.length-1]||null}let sr=1;function Dc(s){sr+=s}function Lc(s){return s.dynamicChildren=sr>0?Ke||_s:null,Jp(),sr>0&&Ke&&Ke.push(s),s}function V(s,t,e,o,r,n){return Lc(E(s,t,e,o,r,n,!0))}function Mt(s,t,e,o,r){return Lc(lt(s,t,e,o,r,!0))}function Es(s){return s?s.__v_isVNode===!0:!1}function rr(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Cs.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const tm=(...s)=>Ac(...s),Kr="__vInternal",Mc=({key:s})=>s??null,Jr=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?ce(s)||Ce(s)||Rt(s)?{i:fe,r:s,k:t,f:!!e}:s:null);function E(s,t=null,e=null,o=0,r=null,n=s===Xt?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Mc(t),ref:t&&Jr(t),scopeId:Xr,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:n,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:fe};return i?(Ma(l,e),n&128&&s.normalize(l)):e&&(l.shapeFlag|=ce(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ut("VNode created with invalid key (NaN). VNode type:",l.type),sr>0&&!a&&Ke&&(l.patchFlag>0||n&6)&&l.patchFlag!==32&&Ke.push(l),l}const lt={}.NODE_ENV!=="production"?tm:Ac;function Ac(s,t=null,e=null,o=0,r=null,n=!1){if((!s||s===np)&&({}.NODE_ENV!=="production"&&!s&&ut(`Invalid vnode type when creating vnode: ${s}.`),s=Ne),Es(s)){const i=Ao(s,t,!0);return e&&Ma(i,e),sr>0&&!n&&Ke&&(i.shapeFlag&6?Ke[Ke.indexOf(s)]=i:Ke.push(i)),i.patchFlag|=-2,i}if(Wc(s)&&(s=s.__vccOpts),t){t=em(t);let{class:i,style:l}=t;i&&!ce(i)&&(t.class=ae(i)),Ht(l)&&(ha(l)&&!Et(l)&&(l=ie({},l)),t.style=A(l))}const a=ce(s)?1:ap(s)?128:Kp(s)?64:Ht(s)?4:Rt(s)?2:0;return{}.NODE_ENV!=="production"&&a&4&&ha(s)&&(s=Dt(s),ut("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)),E(s,t,e,o,r,a,n,!0)}function em(s){return s?ha(s)||Kr in s?ie({},s):s:null}function Ao(s,t,e=!1){const{props:o,ref:r,patchFlag:n,children:a}=s,i=t?Aa(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:i,key:i&&Mc(i),ref:t&&t.ref?e&&r?
|
|
20
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Ae=ip;function Wp(s){return Zp(s)}function Zp(s,t){Hp();const e=ea();e.__VUE__=!0,{}.NODE_ENV!=="production"&&sc(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:o,remove:r,patchProp:n,createElement:a,createText:i,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:p=de,insertStaticContent:d}=s,b=(S,F,X,W=null,Z=null,rt=null,ct=void 0,J=null,at={}.NODE_ENV!=="production"&&os?!1:!!F.dynamicChildren)=>{if(S===F)return;S&&!rr(S,F)&&(W=Kt(S),V(S,Z,rt,!0),S=null),F.patchFlag===-2&&(at=!1,F.dynamicChildren=null);const{type:et,ref:dt,shapeFlag:Tt}=F;switch(et){case tr:_(S,F,X,W);break;case Ne:v(S,F,X,W);break;case er:S==null?w(F,X,W,ct):{}.NODE_ENV!=="production"&&g(S,F,X,ct);break;case Xt:N(S,F,X,W,Z,rt,ct,J,at);break;default:Tt&1?C(S,F,X,W,Z,rt,ct,J,at):Tt&6?G(S,F,X,W,Z,rt,ct,J,at):Tt&64||Tt&128?et.process(S,F,X,W,Z,rt,ct,J,at,$e):{}.NODE_ENV!=="production"&&ut("Invalid VNode type:",et,`(${typeof et})`)}dt!=null&&Z&&Da(dt,S&&S.ref,rt,F||S,!F)},_=(S,F,X,W)=>{if(S==null)o(F.el=i(F.children),X,W);else{const Z=F.el=S.el;F.children!==S.children&&c(Z,F.children)}},v=(S,F,X,W)=>{S==null?o(F.el=l(F.children||""),X,W):F.el=S.el},w=(S,F,X,W)=>{[S.el,S.anchor]=d(S.children,F,X,W,S.el,S.anchor)},g=(S,F,X,W)=>{if(F.children!==S.children){const Z=f(S.anchor);k(S),[F.el,F.anchor]=d(F.children,X,Z,W)}else F.el=S.el,F.anchor=S.anchor},m=({el:S,anchor:F},X,W)=>{let Z;for(;S&&S!==F;)Z=f(S),o(S,X,W),S=Z;o(F,X,W)},k=({el:S,anchor:F})=>{let X;for(;S&&S!==F;)X=f(S),r(S),S=X;r(F)},C=(S,F,X,W,Z,rt,ct,J,at)=>{F.type==="svg"?ct="svg":F.type==="math"&&(ct="mathml"),S==null?z(F,X,W,Z,rt,ct,J,at):D(S,F,Z,rt,ct,J,at)},z=(S,F,X,W,Z,rt,ct,J)=>{let at,et;const{props:dt,shapeFlag:Tt,transition:wt,dirs:Rt}=S;if(at=S.el=a(S.type,rt,dt&&dt.is,dt),Tt&8?u(at,S.children):Tt&16&&R(S.children,at,null,W,Z,La(S,rt),ct,J),Rt&&as(S,null,W,"created"),tt(at,S,S.scopeId,ct,W),dt){for(const Ut in dt)Ut!=="value"&&!Ys(Ut)&&n(at,Ut,null,dt[Ut],rt,S.children,W,Z,Ct);"value"in dt&&n(at,"value",null,dt.value,rt),(et=dt.onVnodeBeforeMount)&&no(et,W,S)}({}).NODE_ENV!=="production"&&(Object.defineProperty(at,"__vnode",{value:S,enumerable:!1}),Object.defineProperty(at,"__vueParentComponent",{value:W,enumerable:!1})),Rt&&as(S,null,W,"beforeMount");const At=qp(Z,wt);At&&wt.beforeEnter(at),o(at,F,X),((et=dt&&dt.onVnodeMounted)||At||Rt)&&Ae(()=>{et&&no(et,W,S),At&&wt.enter(at),Rt&&as(S,null,W,"mounted")},Z)},tt=(S,F,X,W,Z)=>{if(X&&p(S,X),W)for(let rt=0;rt<W.length;rt++)p(S,W[rt]);if(Z){let rt=Z.subTree;if({}.NODE_ENV!=="production"&&rt.patchFlag>0&&rt.patchFlag&2048&&(rt=wa(rt.children)||rt),F===rt){const ct=Z.vnode;tt(S,ct,ct.scopeId,ct.slotScopeIds,Z.parent)}}},R=(S,F,X,W,Z,rt,ct,J,at=0)=>{for(let et=at;et<S.length;et++){const dt=S[et]=J?No(S[et]):Je(S[et]);b(null,dt,F,X,W,Z,rt,ct,J)}},D=(S,F,X,W,Z,rt,ct)=>{const J=F.el=S.el;let{patchFlag:at,dynamicChildren:et,dirs:dt}=F;at|=S.patchFlag&16;const Tt=S.props||Wt,wt=F.props||Wt;let Rt;if(X&&ls(X,!1),(Rt=wt.onVnodeBeforeUpdate)&&no(Rt,X,F,S),dt&&as(F,S,X,"beforeUpdate"),X&&ls(X,!0),{}.NODE_ENV!=="production"&&os&&(at=0,ct=!1,et=null),et?(M(S.dynamicChildren,et,J,X,W,La(F,Z),rt),{}.NODE_ENV!=="production"&&Qr(S,F)):ct||U(S,F,J,null,X,W,La(F,Z),rt,!1),at>0){if(at&16)$(J,F,Tt,wt,X,W,Z);else if(at&2&&Tt.class!==wt.class&&n(J,"class",null,wt.class,Z),at&4&&n(J,"style",Tt.style,wt.style,Z),at&8){const At=F.dynamicProps;for(let Ut=0;Ut<At.length;Ut++){const Jt=At[Ut],le=Tt[Jt],De=wt[Jt];(De!==le||Jt==="value")&&n(J,Jt,le,De,Z,S.children,X,W,Ct)}}at&1&&S.children!==F.children&&u(J,F.children)}else!ct&&et==null&&$(J,F,Tt,wt,X,W,Z);((Rt=wt.onVnodeUpdated)||dt)&&Ae(()=>{Rt&&no(Rt,X,F,S),dt&&as(F,S,X,"updated")},W)},M=(S,F,X,W,Z,rt,ct)=>{for(let J=0;J<F.length;J++){const at=S[J],et=F[J],dt=at.el&&(at.type===Xt||!rr(at,et)||at.shapeFlag&70)?h(at.el):X;b(at,et,dt,null,W,Z,rt,ct,!0)}},$=(S,F,X,W,Z,rt,ct)=>{if(X!==W){if(X!==Wt)for(const J in X)!Ys(J)&&!(J in W)&&n(S,J,X[J],null,ct,F.children,Z,rt,Ct);for(const J in W){if(Ys(J))continue;const at=W[J],et=X[J];at!==et&&J!=="value"&&n(S,J,et,at,ct,F.children,Z,rt,Ct)}"value"in W&&n(S,"value",X.value,W.value,ct)}},N=(S,F,X,W,Z,rt,ct,J,at)=>{const et=F.el=S?S.el:i(""),dt=F.anchor=S?S.anchor:i("");let{patchFlag:Tt,dynamicChildren:wt,slotScopeIds:Rt}=F;({}).NODE_ENV!=="production"&&(os||Tt&2048)&&(Tt=0,at=!1,wt=null),Rt&&(J=J?J.concat(Rt):Rt),S==null?(o(et,X,W),o(dt,X,W),R(F.children||[],X,dt,Z,rt,ct,J,at)):Tt>0&&Tt&64&&wt&&S.dynamicChildren?(M(S.dynamicChildren,wt,X,Z,rt,ct,J),{}.NODE_ENV!=="production"?Qr(S,F):(F.key!=null||Z&&F===Z.subTree)&&Qr(S,F,!0)):U(S,F,X,dt,Z,rt,ct,J,at)},G=(S,F,X,W,Z,rt,ct,J,at)=>{F.slotScopeIds=J,S==null?F.shapeFlag&512?Z.ctx.activate(F,X,W,ct,at):st(F,X,W,Z,rt,ct,at):K(S,F,at)},st=(S,F,X,W,Z,rt,ct)=>{const J=S.component=rm(S,W,Z);if({}.NODE_ENV!=="production"&&J.type.__hmrId&&Vf(J),{}.NODE_ENV!=="production"&&(zr(S),bo(J,"mount")),Ca(S)&&(J.ctx.renderer=$e),{}.NODE_ENV!=="production"&&bo(J,"init"),am(J),{}.NODE_ENV!=="production"&&_o(J,"init"),J.asyncDep){if(Z&&Z.registerDep(J,q),!S.el){const at=J.subTree=lt(Ne);v(null,at,F,X)}}else q(J,S,F,X,Z,rt,ct);({}).NODE_ENV!=="production"&&(Br(),_o(J,"mount"))},K=(S,F,X)=>{const W=F.component=S.component;if(sp(S,F,X))if(W.asyncDep&&!W.asyncResolved){({}).NODE_ENV!=="production"&&zr(F),nt(W,F,X),{}.NODE_ENV!=="production"&&Br();return}else W.next=F,Bf(W.update),W.effect.dirty=!0,W.update();else F.el=S.el,W.vnode=F},q=(S,F,X,W,Z,rt,ct)=>{const J=()=>{if(S.isMounted){let{next:dt,bu:Tt,u:wt,parent:Rt,vnode:At}=S;{const Ho=$c(S);if(Ho){dt&&(dt.el=At.el,nt(S,dt,ct)),Ho.asyncDep.then(()=>{S.isUnmounted||J()});return}}let Ut=dt,Jt;({}).NODE_ENV!=="production"&&zr(dt||S.vnode),ls(S,!1),dt?(dt.el=At.el,nt(S,dt,ct)):dt=At,Tt&&Vs(Tt),(Jt=dt.props&&dt.props.onVnodeBeforeUpdate)&&no(Jt,Rt,dt,At),ls(S,!0),{}.NODE_ENV!=="production"&&bo(S,"render");const le=xa(S);({}).NODE_ENV!=="production"&&_o(S,"render");const De=S.subTree;S.subTree=le,{}.NODE_ENV!=="production"&&bo(S,"patch"),b(De,le,h(De.el),Kt(De),S,Z,rt),{}.NODE_ENV!=="production"&&_o(S,"patch"),dt.el=le.el,Ut===null&&rp(S,le.el),wt&&Ae(wt,Z),(Jt=dt.props&&dt.props.onVnodeUpdated)&&Ae(()=>no(Jt,Rt,dt,At),Z),{}.NODE_ENV!=="production"&&rc(S),{}.NODE_ENV!=="production"&&Br()}else{let dt;const{el:Tt,props:wt}=F,{bm:Rt,m:At,parent:Ut}=S,Jt=qs(F);if(ls(S,!1),Rt&&Vs(Rt),!Jt&&(dt=wt&&wt.onVnodeBeforeMount)&&no(dt,Ut,F),ls(S,!0),Tt&&Ie){const le=()=>{({}).NODE_ENV!=="production"&&bo(S,"render"),S.subTree=xa(S),{}.NODE_ENV!=="production"&&_o(S,"render"),{}.NODE_ENV!=="production"&&bo(S,"hydrate"),Ie(Tt,S.subTree,S,Z,null),{}.NODE_ENV!=="production"&&_o(S,"hydrate")};Jt?F.type.__asyncLoader().then(()=>!S.isUnmounted&&le()):le()}else{({}).NODE_ENV!=="production"&&bo(S,"render");const le=S.subTree=xa(S);({}).NODE_ENV!=="production"&&_o(S,"render"),{}.NODE_ENV!=="production"&&bo(S,"patch"),b(null,le,X,W,S,Z,rt),{}.NODE_ENV!=="production"&&_o(S,"patch"),F.el=le.el}if(At&&Ae(At,Z),!Jt&&(dt=wt&&wt.onVnodeMounted)){const le=F;Ae(()=>no(dt,Ut,le),Z)}(F.shapeFlag&256||Ut&&qs(Ut.vnode)&&Ut.vnode.shapeFlag&256)&&S.a&&Ae(S.a,Z),S.isMounted=!0,{}.NODE_ENV!=="production"&&Wf(S),F=X=W=null}},at=S.effect=new sa(J,de,()=>Yr(et),S.scope),et=S.update=()=>{at.dirty&&at.run()};et.id=S.uid,ls(S,!0),{}.NODE_ENV!=="production"&&(at.onTrack=S.rtc?dt=>Vs(S.rtc,dt):void 0,at.onTrigger=S.rtg?dt=>Vs(S.rtg,dt):void 0,et.ownerInstance=S),et()},nt=(S,F,X)=>{F.component=S;const W=S.vnode.props;S.vnode=F,S.next=null,Np(S,F.props,W,X),jp(S,F.children,X),Io(),Kl(S),Ro()},U=(S,F,X,W,Z,rt,ct,J,at=!1)=>{const et=S&&S.children,dt=S?S.shapeFlag:0,Tt=F.children,{patchFlag:wt,shapeFlag:Rt}=F;if(wt>0){if(wt&128){gt(et,Tt,X,W,Z,rt,ct,J,at);return}else if(wt&256){H(et,Tt,X,W,Z,rt,ct,J,at);return}}Rt&8?(dt&16&&Ct(et,Z,rt),Tt!==et&&u(X,Tt)):dt&16?Rt&16?gt(et,Tt,X,W,Z,rt,ct,J,at):Ct(et,Z,rt,!0):(dt&8&&u(X,""),Rt&16&&R(Tt,X,W,Z,rt,ct,J,at))},H=(S,F,X,W,Z,rt,ct,J,at)=>{S=S||_s,F=F||_s;const et=S.length,dt=F.length,Tt=Math.min(et,dt);let wt;for(wt=0;wt<Tt;wt++){const Rt=F[wt]=at?No(F[wt]):Je(F[wt]);b(S[wt],Rt,X,null,Z,rt,ct,J,at)}et>dt?Ct(S,Z,rt,!0,!1,Tt):R(F,X,W,Z,rt,ct,J,at,Tt)},gt=(S,F,X,W,Z,rt,ct,J,at)=>{let et=0;const dt=F.length;let Tt=S.length-1,wt=dt-1;for(;et<=Tt&&et<=wt;){const Rt=S[et],At=F[et]=at?No(F[et]):Je(F[et]);if(rr(Rt,At))b(Rt,At,X,null,Z,rt,ct,J,at);else break;et++}for(;et<=Tt&&et<=wt;){const Rt=S[Tt],At=F[wt]=at?No(F[wt]):Je(F[wt]);if(rr(Rt,At))b(Rt,At,X,null,Z,rt,ct,J,at);else break;Tt--,wt--}if(et>Tt){if(et<=wt){const Rt=wt+1,At=Rt<dt?F[Rt].el:W;for(;et<=wt;)b(null,F[et]=at?No(F[et]):Je(F[et]),X,At,Z,rt,ct,J,at),et++}}else if(et>wt)for(;et<=Tt;)V(S[et],Z,rt,!0),et++;else{const Rt=et,At=et,Ut=new Map;for(et=At;et<=wt;et++){const Se=F[et]=at?No(F[et]):Je(F[et]);Se.key!=null&&({}.NODE_ENV!=="production"&&Ut.has(Se.key)&&ut("Duplicate keys found during update:",JSON.stringify(Se.key),"Make sure keys are unique."),Ut.set(Se.key,et))}let Jt,le=0;const De=wt-At+1;let Ho=!1,Vn=0;const ys=new Array(De);for(et=0;et<De;et++)ys[et]=0;for(et=Rt;et<=Tt;et++){const Se=S[et];if(le>=De){V(Se,Z,rt,!0);continue}let Le;if(Se.key!=null)Le=Ut.get(Se.key);else for(Jt=At;Jt<=wt;Jt++)if(ys[Jt-At]===0&&rr(Se,F[Jt])){Le=Jt;break}Le===void 0?V(Se,Z,rt,!0):(ys[Le-At]=et+1,Le>=Vn?Vn=Le:Ho=!0,b(Se,F[Le],X,null,Z,rt,ct,J,at),le++)}const Xn=Ho?Qp(ys):_s;for(Jt=Xn.length-1,et=De-1;et>=0;et--){const Se=At+et,Le=F[Se],Gn=Se+1<dt?F[Se+1].el:W;ys[et]===0?b(null,Le,X,Gn,Z,rt,ct,J,at):Ho&&(Jt<0||et!==Xn[Jt]?ft(Le,X,Gn,2):Jt--)}}},ft=(S,F,X,W,Z=null)=>{const{el:rt,type:ct,transition:J,children:at,shapeFlag:et}=S;if(et&6){ft(S.component.subTree,F,X,W);return}if(et&128){S.suspense.move(F,X,W);return}if(et&64){ct.move(S,F,X,$e);return}if(ct===Xt){o(rt,F,X);for(let Tt=0;Tt<at.length;Tt++)ft(at[Tt],F,X,W);o(S.anchor,F,X);return}if(ct===er){m(S,F,X);return}if(W!==2&&et&1&&J)if(W===0)J.beforeEnter(rt),o(rt,F,X),Ae(()=>J.enter(rt),Z);else{const{leave:Tt,delayLeave:wt,afterLeave:Rt}=J,At=()=>o(rt,F,X),Ut=()=>{Tt(rt,()=>{At(),Rt&&Rt()})};wt?wt(rt,At,Ut):Ut()}else o(rt,F,X)},V=(S,F,X,W=!1,Z=!1)=>{const{type:rt,props:ct,ref:J,children:at,dynamicChildren:et,shapeFlag:dt,patchFlag:Tt,dirs:wt}=S;if(J!=null&&Da(J,null,X,S,!0),dt&256){F.ctx.deactivate(S);return}const Rt=dt&1&&wt,At=!qs(S);let Ut;if(At&&(Ut=ct&&ct.onVnodeBeforeUnmount)&&no(Ut,F,S),dt&6)Nt(S.component,X,W);else{if(dt&128){S.suspense.unmount(X,W);return}Rt&&as(S,null,F,"beforeUnmount"),dt&64?S.type.remove(S,F,X,Z,$e,W):et&&(rt!==Xt||Tt>0&&Tt&64)?Ct(et,F,X,!1,!0):(rt===Xt&&Tt&384||!Z&&dt&16)&&Ct(at,F,X),W&&P(S)}(At&&(Ut=ct&&ct.onVnodeUnmounted)||Rt)&&Ae(()=>{Ut&&no(Ut,F,S),Rt&&as(S,null,F,"unmounted")},X)},P=S=>{const{type:F,el:X,anchor:W,transition:Z}=S;if(F===Xt){({}).NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&Z&&!Z.persisted?S.children.forEach(ct=>{ct.type===Ne?r(ct.el):P(ct)}):Vt(X,W);return}if(F===er){k(S);return}const rt=()=>{r(X),Z&&!Z.persisted&&Z.afterLeave&&Z.afterLeave()};if(S.shapeFlag&1&&Z&&!Z.persisted){const{leave:ct,delayLeave:J}=Z,at=()=>ct(X,rt);J?J(S.el,rt,at):at()}else rt()},Vt=(S,F)=>{let X;for(;S!==F;)X=f(S),r(S),S=X;r(F)},Nt=(S,F,X)=>{({}).NODE_ENV!=="production"&&S.type.__hmrId&&Xf(S);const{bum:W,scope:Z,update:rt,subTree:ct,um:J}=S;W&&Vs(W),Z.stop(),rt&&(rt.active=!1,V(ct,S,F,X)),J&&Ae(J,F),Ae(()=>{S.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve()),{}.NODE_ENV!=="production"&&qf(S)},Ct=(S,F,X,W=!1,Z=!1,rt=0)=>{for(let ct=rt;ct<S.length;ct++)V(S[ct],F,X,W,Z)},Kt=S=>S.shapeFlag&6?Kt(S.component.subTree):S.shapeFlag&128?S.suspense.next():f(S.anchor||S.el);let Gt=!1;const j=(S,F,X)=>{S==null?F._vnode&&V(F._vnode,null,null,!0):b(F._vnode||null,S,F,null,null,null,X),Gt||(Gt=!0,Kl(),Jl(),Gt=!1),F._vnode=S},$e={p:b,um:V,m:ft,r:P,mt:st,mc:R,pc:U,pbc:M,n:Kt,o:s};let Ve,Ie;return t&&([Ve,Ie]=t($e)),{render:j,hydrate:Ve,createApp:Dp(j,Ve)}}function La({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 ls({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function qp(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function Qr(s,t,e=!1){const o=s.children,r=t.children;if(Pt(o)&&Pt(r))for(let n=0;n<o.length;n++){const a=o[n];let i=r[n];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[n]=No(r[n]),i.el=a.el),e||Qr(a,i)),i.type===tr&&(i.el=a.el),{}.NODE_ENV!=="production"&&i.type===Ne&&!i.el&&(i.el=a.el)}}function Qp(s){const t=s.slice(),e=[0];let o,r,n,a,i;const l=s.length;for(o=0;o<l;o++){const c=s[o];if(c!==0){if(r=e[e.length-1],s[r]<c){t[o]=r,e.push(o);continue}for(n=0,a=e.length-1;n<a;)i=n+a>>1,s[e[i]]<c?n=i+1:a=i;c<s[e[n]]&&(n>0&&(t[o]=e[n-1]),e[n]=o)}}for(n=e.length,a=e[n-1];n-- >0;)e[n]=a,a=t[a];return e}function $c(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$c(t)}const Kp=s=>s.__isTeleport,Xt=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),Ne=Symbol.for("v-cmt"),er=Symbol.for("v-stc"),or=[];let Ke=null;function L(s=!1){or.push(Ke=s?null:[])}function Jp(){or.pop(),Ke=or[or.length-1]||null}let sr=1;function Dc(s){sr+=s}function Lc(s){return s.dynamicChildren=sr>0?Ke||_s:null,Jp(),sr>0&&Ke&&Ke.push(s),s}function Y(s,t,e,o,r,n){return Lc(E(s,t,e,o,r,n,!0))}function Mt(s,t,e,o,r){return Lc(lt(s,t,e,o,r,!0))}function Es(s){return s?s.__v_isVNode===!0:!1}function rr(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Cs.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const tm=(...s)=>Ac(...s),Kr="__vInternal",Mc=({key:s})=>s??null,Jr=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?ce(s)||Ce(s)||Ft(s)?{i:fe,r:s,k:t,f:!!e}:s:null);function E(s,t=null,e=null,o=0,r=null,n=s===Xt?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Mc(t),ref:t&&Jr(t),scopeId:Xr,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:n,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:fe};return i?(Ma(l,e),n&128&&s.normalize(l)):e&&(l.shapeFlag|=ce(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ut("VNode created with invalid key (NaN). VNode type:",l.type),sr>0&&!a&&Ke&&(l.patchFlag>0||n&6)&&l.patchFlag!==32&&Ke.push(l),l}const lt={}.NODE_ENV!=="production"?tm:Ac;function Ac(s,t=null,e=null,o=0,r=null,n=!1){if((!s||s===np)&&({}.NODE_ENV!=="production"&&!s&&ut(`Invalid vnode type when creating vnode: ${s}.`),s=Ne),Es(s)){const i=Ao(s,t,!0);return e&&Ma(i,e),sr>0&&!n&&Ke&&(i.shapeFlag&6?Ke[Ke.indexOf(s)]=i:Ke.push(i)),i.patchFlag|=-2,i}if(Wc(s)&&(s=s.__vccOpts),t){t=em(t);let{class:i,style:l}=t;i&&!ce(i)&&(t.class=te(i)),Ht(l)&&(ha(l)&&!Pt(l)&&(l=ie({},l)),t.style=A(l))}const a=ce(s)?1:ap(s)?128:Kp(s)?64:Ht(s)?4:Ft(s)?2:0;return{}.NODE_ENV!=="production"&&a&4&&ha(s)&&(s=Dt(s),ut("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)),E(s,t,e,o,r,a,n,!0)}function em(s){return s?ha(s)||Kr in s?ie({},s):s:null}function Ao(s,t,e=!1){const{props:o,ref:r,patchFlag:n,children:a}=s,i=t?Aa(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:i,key:i&&Mc(i),ref:t&&t.ref?e&&r?Pt(r)?r.concat(Jr(t)):[r,Jr(t)]:Jr(t):r,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&n===-1&&Pt(a)?a.map(Nc):a,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==Xt?n===-1?16:n|16:n,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Ao(s.ssContent),ssFallback:s.ssFallback&&Ao(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function Nc(s){const t=Ao(s);return Pt(s.children)&&(t.children=s.children.map(Nc)),t}function jt(s=" ",t=0){return lt(tr,null,s,t)}function zc(s,t){const e=lt(er,null,s);return e.staticCount=t,e}function Ot(s="",t=!1){return t?(L(),Mt(Ne,null,s)):lt(Ne,null,s)}function Je(s){return s==null||typeof s=="boolean"?lt(Ne):Pt(s)?lt(Xt,null,s.slice()):typeof s=="object"?No(s):lt(tr,null,String(s))}function No(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Ao(s)}function Ma(s,t){let e=0;const{shapeFlag:o}=s;if(t==null)t=null;else if(Pt(t))e=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ma(s,r()),r._c&&(r._d=!0));return}else{e=32;const r=t._;!r&&!(Kr in t)?t._ctx=fe:r===3&&fe&&(fe.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else Ft(t)?(t={default:t,_ctx:fe},e=32):(t=String(t),o&64?(e=16,t=[jt(t)]):e=8);s.children=t,s.shapeFlag|=e}function Aa(...s){const t={};for(let e=0;e<s.length;e++){const o=s[e];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=te([t.class,o.class]));else if(r==="style")t.style=A([t.style,o.style]);else if(Bs(r)){const n=t[r],a=o[r];a&&n!==a&&!(Pt(n)&&n.includes(a))&&(t[r]=n?[].concat(n,a):a)}else r!==""&&(t[r]=o[r])}return t}function no(s,t,e,o=null){Qe(s,t,7,[e,o])}const om=xc();let sm=0;function rm(s,t,e){const o=s.type,r=(t?t.appContext:s.appContext)||om,n={uid:sm++,vnode:s,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new rf(!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:kc(o,r),emitsOptions:ac(o,r),emit:null,emitted:null,propsDefaults:Wt,inheritAttrs:o.inheritAttrs,ctx:Wt,data:Wt,props:Wt,attrs:Wt,slots:Wt,refs:Wt,setupState:Wt,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"?n.ctx=wp(n):n.ctx={_:n},n.root=t?t.root:n,n.emit=tp.bind(null,n),s.ce&&s.ce(n),n}let _e=null;const Bc=()=>_e||fe;let tn,Na;{const s=ea(),t=(e,o)=>{let r;return(r=s[e])||(r=s[e]=[]),r.push(o),n=>{r.length>1?r.forEach(a=>a(n)):r[0](n)}};tn=t("__VUE_INSTANCE_SETTERS__",e=>_e=e),Na=t("__VUE_SSR_SETTERS__",e=>en=e)}const nr=s=>{const t=_e;return tn(s),s.scope.on(),()=>{s.scope.off(),tn(t)}},Yc=()=>{_e&&_e.scope.off(),tn(null)},nm=bs("slot,component");function za(s,{isNativeTag:t}){(nm(s)||t(s))&&ut("Do not use built-in or reserved HTML elements as component id: "+s)}function Vc(s){return s.vnode.shapeFlag&4}let en=!1;function am(s,t=!1){t&&Na(t);const{props:e,children:o}=s.vnode,r=Vc(s);Mp(s,e,r,t),Up(s,o);const n=r?im(s,t):void 0;return t&&Na(!1),n}function im(s,t){var e;const o=s.type;if({}.NODE_ENV!=="production"){if(o.name&&za(o.name,s.appContext.config),o.components){const n=Object.keys(o.components);for(let a=0;a<n.length;a++)za(n[a],s.appContext.config)}if(o.directives){const n=Object.keys(o.directives);for(let a=0;a<n.length;a++)dc(n[a])}o.compilerOptions&&lm()&&ut('"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=Xl(new Proxy(s.ctx,mc)),{}.NODE_ENV!=="production"&&kp(s);const{setup:r}=o;if(r){const n=s.setupContext=r.length>1?jc(s):null,a=nr(s);Io();const i=go(r,s,0,[{}.NODE_ENV!=="production"?ws(s.props):s.props,n]);if(Ro(),a(),Kn(i)){if(i.then(Yc,Yc),t)return i.then(l=>{Xc(s,l,t)}).catch(l=>{Gs(l,s,0)});if(s.asyncDep=i,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=o.name)!=null?e:"Anonymous";ut(`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 Xc(s,i,t)}else Gc(s,t)}function Xc(s,t,e){Ft(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Ht(t)?({}.NODE_ENV!=="production"&&Es(t)&&ut("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=jl(t),{}.NODE_ENV!=="production"&&Cp(s)):{}.NODE_ENV!=="production"&&t!==void 0&&ut(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Gc(s,e)}let Ba;const lm=()=>!Ba;function Gc(s,t,e){const o=s.type;if(!s.render){if(!t&&Ba&&!o.render){const r=o.template||Oa(s).template;if(r){({}).NODE_ENV!=="production"&&bo(s,"compile");const{isCustomElement:n,compilerOptions:a}=s.appContext.config,{delimiters:i,compilerOptions:l}=o,c=ie(ie({isCustomElement:n,delimiters:i},a),l);o.render=Ba(r,c),{}.NODE_ENV!=="production"&&_o(s,"compile")}}s.render=o.render||de}{const r=nr(s);Io();try{Pp(s)}finally{Ro(),r()}}({}).NODE_ENV!=="production"&&!o.render&&s.render===de&&!t&&(o.template?ut('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".'):ut("Component is missing template or render function."))}function Uc(s){return s.attrsProxy||(s.attrsProxy=new Proxy(s.attrs,{}.NODE_ENV!=="production"?{get(t,e){return Ur(),ke(s,"get","$attrs"),t[e]},set(){return ut("setupContext.attrs is readonly."),!1},deleteProperty(){return ut("setupContext.attrs is readonly."),!1}}:{get(t,e){return ke(s,"get","$attrs"),t[e]}}))}function cm(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return ke(s,"get","$slots"),t[e]}}))}function jc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&ut("expose() should be called only once per setup()."),e!=null)){let o=typeof e;o==="object"&&(Pt(e)?o="array":Ce(e)&&(o="ref")),o!=="object"&&ut(`expose() should be passed a plain object, received ${o}.`)}s.exposed=e||{}};return{}.NODE_ENV!=="production"?Object.freeze({get attrs(){return Uc(s)},get slots(){return cm(s)},get emit(){return(e,...o)=>s.emit(e,...o)},expose:t}):{get attrs(){return Uc(s)},slots:s.slots,emit:s.emit,expose:t}}function on(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(jl(Xl(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in is)return is[e](s)},has(t,e){return e in t||e in is}}))}const um=/(?:^|[-_])(\w)/g,hm=s=>s.replace(um,t=>t.toUpperCase()).replace(/[-_]/g,"");function Hc(s,t=!0){return Ft(s)?s.displayName||s.name:s.name||t&&s.__name}function sn(s,t,e=!1){let o=Hc(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&s&&s.parent){const r=n=>{for(const a in n)if(n[a]===t)return a};o=r(s.components||s.parent.type.components)||r(s.appContext.components)}return o?hm(o):e?"App":"Anonymous"}function Wc(s){return Ft(s)&&"__vccOpts"in s}const dm=(s,t)=>{const e=Of(s,t,en);if({}.NODE_ENV!=="production"){const o=Bc();o&&o.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function qt(s,t,e){const o=arguments.length;return o===2?Ht(t)&&!Pt(t)?Es(t)?lt(s,null,[t]):lt(s,t):lt(s,null,t):(o>3?e=Array.prototype.slice.call(arguments,2):o===3&&Es(e)&&(e=[e]),lt(s,t,e))}function fm(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},o={style:"color:#eb2f96"},r={header(h){return Ht(h)?h.__isVue?["div",s,"VueInstance"]:Ce(h)?["div",{},["span",s,u(h)],"<",i(h.value),">"]:Jo(h)?["div",{},["span",s,ts(h)?"ShallowReactive":"Reactive"],"<",i(h),`>${$o(h)?" (readonly)":""}`]:$o(h)?["div",{},["span",s,ts(h)?"ShallowReadonly":"Readonly"],"<",i(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...n(h.$)]}};function n(h){const f=[];h.type.props&&h.props&&f.push(a("props",Dt(h.props))),h.setupState!==Wt&&f.push(a("setup",h.setupState)),h.data!==Wt&&f.push(a("data",Dt(h.data)));const p=l(h,"computed");p&&f.push(a("computed",p));const d=l(h,"inject");return d&&f.push(a("injected",d)),f.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function a(h,f){return f=ie({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(p=>["div",{},["span",o,p+": "],i(f[p],!1)])]]:["span",{}]}function i(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",o,h]:Ht(h)?["object",{object:f?Dt(h):h}]:["span",e,String(h)]}function l(h,f){const p=h.type;if(Ft(p))return;const d={};for(const b in h.ctx)c(p,b,f)&&(d[b]=h.ctx[b]);return d}function c(h,f,p){const d=h[p];if(Pt(d)&&d.includes(f)||Ht(d)&&f in d||h.extends&&c(h.extends,f,p)||h.mixins&&h.mixins.some(b=>c(b,f,p)))return!0}function u(h){return ts(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const Zc="3.4.21",Ya={}.NODE_ENV!=="production"?ut:de;/**
|
|
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 pm="http://www.w3.org/2000/svg",mm="http://www.w3.org/1998/Math/MathML",zo=typeof document<"u"?document:null,qc=zo&&zo.createElement("template"),gm={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,o)=>{const r=t==="svg"?zo.createElementNS(pm,s):t==="mathml"?zo.createElementNS(mm,s):zo.createElement(s,e?{is:e}:void 0);return s==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:s=>zo.createTextNode(s),createComment:s=>zo.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>zo.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,o,r,n){const a=e?e.previousSibling:t.lastChild;if(r&&(r===n||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),e),!(r===n||!(r=r.nextSibling)););else{qc.innerHTML=o==="svg"?`<svg>${s}</svg>`:o==="mathml"?`<math>${s}</math>`:s;const i=qc.content;if(o==="svg"||o==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,e)}return[a?a.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},ym=Symbol("_vtc");function vm(s,t,e){const o=s[ym];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const rn=Symbol("_vod"),Qc=Symbol("_vsh"),Bo={beforeMount(s,{value:t},{transition:e}){s[rn]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):ar(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:o}){!t!=!e&&(o?t?(o.beforeEnter(s),ar(s,!0),o.enter(s)):o.leave(s,()=>{ar(s,!1)}):ar(s,t))},beforeUnmount(s,{value:t}){ar(s,t)}};({}).NODE_ENV!=="production"&&(Bo.name="show");function ar(s,t){s.style.display=t?s[rn]:"none",s[Qc]=!t}const bm=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),_m=/(^|;)\s*display\s*:/;function xm(s,t,e){const o=s.style,r=ce(e);let n=!1;if(e&&!r){if(t)if(ce(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();e[i]==null&&nn(o,i,"")}else for(const a in t)e[a]==null&&nn(o,a,"");for(const a in e)a==="display"&&(n=!0),nn(o,a,e[a])}else if(r){if(t!==e){const a=o[bm];a&&(e+=";"+a),o.cssText=e,n=_m.test(e)}}else t&&s.removeAttribute("style");rn in s&&(s[rn]=n?o.display:"",s[Qc]&&(o.display="none"))}const wm=/[^\\];\s*$/,Kc=/\s*!important$/;function nn(s,t,e){if(
|
|
25
|
+
**/const pm="http://www.w3.org/2000/svg",mm="http://www.w3.org/1998/Math/MathML",zo=typeof document<"u"?document:null,qc=zo&&zo.createElement("template"),gm={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,o)=>{const r=t==="svg"?zo.createElementNS(pm,s):t==="mathml"?zo.createElementNS(mm,s):zo.createElement(s,e?{is:e}:void 0);return s==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:s=>zo.createTextNode(s),createComment:s=>zo.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>zo.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,o,r,n){const a=e?e.previousSibling:t.lastChild;if(r&&(r===n||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),e),!(r===n||!(r=r.nextSibling)););else{qc.innerHTML=o==="svg"?`<svg>${s}</svg>`:o==="mathml"?`<math>${s}</math>`:s;const i=qc.content;if(o==="svg"||o==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,e)}return[a?a.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},ym=Symbol("_vtc");function vm(s,t,e){const o=s[ym];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const rn=Symbol("_vod"),Qc=Symbol("_vsh"),Bo={beforeMount(s,{value:t},{transition:e}){s[rn]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):ar(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:o}){!t!=!e&&(o?t?(o.beforeEnter(s),ar(s,!0),o.enter(s)):o.leave(s,()=>{ar(s,!1)}):ar(s,t))},beforeUnmount(s,{value:t}){ar(s,t)}};({}).NODE_ENV!=="production"&&(Bo.name="show");function ar(s,t){s.style.display=t?s[rn]:"none",s[Qc]=!t}const bm=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),_m=/(^|;)\s*display\s*:/;function xm(s,t,e){const o=s.style,r=ce(e);let n=!1;if(e&&!r){if(t)if(ce(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();e[i]==null&&nn(o,i,"")}else for(const a in t)e[a]==null&&nn(o,a,"");for(const a in e)a==="display"&&(n=!0),nn(o,a,e[a])}else if(r){if(t!==e){const a=o[bm];a&&(e+=";"+a),o.cssText=e,n=_m.test(e)}}else t&&s.removeAttribute("style");rn in s&&(s[rn]=n?o.display:"",s[Qc]&&(o.display="none"))}const wm=/[^\\];\s*$/,Kc=/\s*!important$/;function nn(s,t,e){if(Pt(e))e.forEach(o=>nn(s,t,o));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&wm.test(e)&&Ya(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const o=km(s,t);Kc.test(e)?s.setProperty(Xe(o),e.replace(Kc,""),"important"):s[o]=e}}const Jc=["Webkit","Moz","ms"],Va={};function km(s,t){const e=Va[t];if(e)return e;let o=mo(t);if(o!=="filter"&&o in s)return Va[t]=o;o=Pr(o);for(let r=0;r<Jc.length;r++){const n=Jc[r]+o;if(n in s)return Va[t]=n}return t}const tu="http://www.w3.org/1999/xlink";function Cm(s,t,e,o,r){if(o&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(tu,t.slice(6,t.length)):s.setAttributeNS(tu,t,e);else{const n=sf(t);e==null||n&&!bl(e)?s.removeAttribute(t):s.setAttribute(t,n?"":e)}}function Tm(s,t,e,o,r,n,a){if(t==="innerHTML"||t==="textContent"){o&&a(o,r,n),s[t]=e??"";return}const i=s.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const c=i==="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=bl(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&Ya(`Failed setting prop "${t}" on <${i.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function Sm(s,t,e,o){s.addEventListener(t,e,o)}function Em(s,t,e,o){s.removeEventListener(t,e,o)}const eu=Symbol("_vei");function Pm(s,t,e,o,r=null){const n=s[eu]||(s[eu]={}),a=n[t];if(o&&a)a.value=o;else{const[i,l]=Om(t);if(o){const c=n[t]=Fm(o,r);Sm(s,i,c,l)}else a&&(Em(s,i,a,l),n[t]=void 0)}}const ou=/(?:Once|Passive|Capture)$/;function Om(s){let t;if(ou.test(s)){t={};let o;for(;o=s.match(ou);)s=s.slice(0,s.length-o[0].length),t[o[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):Xe(s.slice(2)),t]}let Xa=0;const Im=Promise.resolve(),Rm=()=>Xa||(Im.then(()=>Xa=0),Xa=Date.now());function Fm(s,t){const e=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=e.attached)return;Qe($m(o,e.value),t,5,[o])};return e.value=s,e.attached=Rm(),e}function $m(s,t){if(Pt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const su=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,Dm=(s,t,e,o,r,n,a,i,l)=>{const c=r==="svg";t==="class"?vm(s,o,c):t==="style"?xm(s,e,o):Bs(t)?Tr(t)||Pm(s,t,e,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lm(s,t,o,c))?Tm(s,t,o,n,a,i,l):(t==="true-value"?s._trueValue=o:t==="false-value"&&(s._falseValue=o),Cm(s,t,o,c))};function Lm(s,t,e,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in s&&su(t)&&Ft(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 su(t)&&ce(e)?!1:t in s}/*! #__NO_SIDE_EFFECTS__ */function pt(s,t){const e=Q(s);class o extends Ga{constructor(n){super(e,n,t)}}return o.def=e,o}const Mm=typeof HTMLElement<"u"?HTMLElement:class{};class Ga extends Mm{constructor(t,e={},o){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&Ya("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Zl(()=>{this._connected||(ir(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:n,styles:a}=o;let i;if(n&&!Pt(n))for(const l in n){const c=n[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=yl(this._props[l])),(i||(i=Object.create(null)))[mo(l)]=!0)}this._numberProps=i,r&&this._resolveProps(o),this._applyStyles(a),this._update()},e=this._def.__asyncLoader;e?e().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:e}=t,o=Pt(e)?e:Object.keys(e||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(mo))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(n){this._setProp(r,n)}})}_setAttr(t){let e=this.getAttribute(t);const o=mo(t);this._numberProps&&this._numberProps[o]&&(e=yl(e)),this._setProp(o,e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,o=!0,r=!0){e!==this._props[t]&&(this._props[t]=e,r&&this._instance&&this._update(),o&&(e===!0?this.setAttribute(Xe(t),""):typeof e=="string"||typeof e=="number"?this.setAttribute(Xe(t),e+""):e||this.removeAttribute(Xe(t))))}_update(){ir(this._createVNode(),this.shadowRoot)}_createVNode(){const t=lt(this._def,ie({},this._props));return this._instance||(t.ce=e=>{this._instance=e,e.isCE=!0,{}.NODE_ENV!=="production"&&(e.ceReload=n=>{this._styles&&(this._styles.forEach(a=>this.shadowRoot.removeChild(a)),this._styles.length=0),this._applyStyles(n),this._instance=null,this._update()});const o=(n,a)=>{this.dispatchEvent(new CustomEvent(n,{detail:a}))};e.emit=(n,...a)=>{o(n,a),Xe(n)!==n&&o(Xe(n),a)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Ga){e.parent=r._instance,e.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(e=>{const o=document.createElement("style");o.textContent=e,this.shadowRoot.appendChild(o),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(o)})}}const Am=ie({patchProp:Dm},gm);let ru;function Nm(){return ru||(ru=Wp(Am))}const ir=(...s)=>{Nm().render(...s)};/**
|
|
26
26
|
* vue v3.4.21
|
|
27
27
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
28
28
|
* @license MIT
|
|
@@ -35,34 +35,34 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(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},ao=(s,t)=>(typeof s=="string"&&(s=an(s)||new RegExp(s)),s.test(t)),au=(s,t)=>{typeof s=="string"&&(s=an(s)||new RegExp(s));const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(o=>({matchIndex:-1,fullMatch:o,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},iu=(s,t)=>{typeof s=="string"&&(s=an(s)||new RegExp(s));const e=[],o=t.matchAll(s);for(const r of o)e.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return e};function Bm(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function lu(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function Ps(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let o="";for(let r=0;r<s;r++)o+=t[Math.floor(Math.random()*e)];return o}function Ym(s){return s.replace(/(^\w)/g,t=>t.toLowerCase())}const to=(s,t="-")=>{let e=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function Vm(s){return s.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function cu(s){return Ym(Vm(s))}const uu=(s,t="")=>(s=s.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,t),s);function Xm(s){return s!=null}function Gm(s,...t){return new s.constructor(...t)}function hu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function du(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function lr(s=[],t=[]){const e=s.length,o=t.length;for(let n=0;n<o;n++)s[n]=t[n];let r=Math.max(0,e-o);for(;r>0;)s.pop(),r--;return s}function Um(s,t){const e=s.findIndex(o=>o===t);return e>=0&&s.splice(e,1),s}let fu;try{fu=Map}catch{fu=function(){}}let pu;try{pu=Set}catch{pu=function(){}}function Yo(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function ln(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const re=(s,t,e)=>s<t?t:s>e?e:s;function jm(s,t,e,o,r){return o+(r-o)*((s-t)/(e-t))}const mu=(s,t,e)=>o=>{const r=re(o,s,t);return e==0?r:t-r<e?t:Math.round(r/e)*e};function Hm(s,t=12){return Yo(s).toFixed(t)}function xe(s,t=12){return+Hm(s,t)}function io(s,t){const e=au("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Xm(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 Ua(s){const t=au("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Wm(s=0,t=100){return Math.random()*(t-s)+s}function Qt(s=0,t=100){return Math.floor(Wm(s,t))}Zm();function Zm(){const s=new ArrayBuffer(4),t=new Float32Array(s),e=new Uint32Array(s),o=new Uint32Array(512),r=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(o[l]=0,o[l|256]=32768,r[l]=24,r[l|256]=24):c<-14?(o[l]=1024>>-c-14,o[l|256]=1024>>-c-14|32768,r[l]=-c-1,r[l|256]=-c-1):c<=15?(o[l]=c+15<<10,o[l|256]=c+15<<10|32768,r[l]=13,r[l|256]=13):c<128?(o[l]=31744,o[l|256]=64512,r[l]=24,r[l|256]=24):(o[l]=31744,o[l|256]=64512,r[l]=13,r[l|256]=13)}const n=new Uint32Array(2048),a=new Uint32Array(64),i=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,n[l]=c|u}for(let l=1024;l<2048;++l)n[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)a[l]=l<<23;a[31]=1199570944,a[32]=2147483648;for(let l=33;l<63;++l)a[l]=2147483648+(l-32<<23);a[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(i[l]=1024);return{floatView:t,uint32View:e,baseTable:o,shiftTable:r,mantissaTable:n,exponentTable:a,offsetTable:i}}var gu=(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))(gu||{}),cn=(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))(cn||{});const yu=(s,t,e)=>t?e===cn.base64?new Blob([s],{type:`${t};${e}`}):e===cn.utf8?new Blob([s],{type:`${t};charset=${e}`}):new Blob([s],{type:`${t}`}):new Blob([s]);function pe(){return(performance||Date).now()}function qm(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 ja(s){let t=qm(s)/1e3;const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const o=t%60;s[3]=o%10,s[2]=Math.floor(o/10),t=Math.floor(t/60);const r=t%60%24;return s[1]=r%10,s[0]=Math.floor(r/10),s}function Qm(s){const t=[0,0,0,0,0,0],e=Ua(s);for(let o=0,r=Math.min(e.length,3);o<r;o++){const n=Math.floor(Math.abs(e[o]));t[2*o+1]=n%10,t[2*o]=Math.floor(n/10)}return ja(t)}function Ha(s,t=1){return s[5]+=t,ja(s)}function Wa(s,t=1){return s[5]-=t,ja(s)}function Km(s,t){s.forEach((e,o)=>{t[o]=e})}function Jm(s,t){const e=t.reduce((o,r)=>{const{match:n,error:a}=r;return n(s)||o.push(a),o},[]);return{valid:e.length===0,errors:e}}function t0(s="xxx不能为空!"){return{match:t=>!!t,error:s}}function e0(s="邮箱格式不正确!"){return{match:t=>ao("email",t),error:s}}class o0{criterias=[];constructor(t=[]){t.forEach(e=>this.add(e))}add(...t){this.criterias.push(...t)}clear(){this.criterias=[]}get(){return t=>Jm(t,this.criterias)}run(t){return this.get()(t)}}function Os(s){return new o0([t0("邮箱不能为空!"),e0("邮箱格式不正确!")]).run(s)}function vu(s,t){let e=!0;return function(...o){e&&(e=!1,s.apply(this,o),setTimeout(()=>{e=!0},t))}}function s0(s,t){let e;return function(...o){clearTimeout(e),e=setTimeout(()=>{s.apply(this,o)},t)}}class cr{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(o=>o!==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(o=>{o(...e)}),this}once(t,e){const r=(()=>{let n=!1;return(...a)=>{n||(n=!0,e(...a),this.off(t,r))}})();return this.on(t,r),this}}class un extends cr{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())),o=this.results.length;e.forEach((r,n)=>{if(r.status=="fulfilled"){const a=r.value;this.results.push(a),this.controller?.enqueue(a),this.emit("success",o+n,a)}else if(r.status=="rejected"){const a=new Error(r.reason);this.results.push(a),this.controller?.enqueue(a),this.emit("error",o+n,a)}}),this.activeTaskCount-=e.length}}}Array.prototype.ap=function(s){return this.reduce((t,e)=>t.concat(s.map(e)),[])};let ur;function Za(s){ur=s,s(),ur=null}class r0{subscribers=new Set;add(){ur&&!this.subscribers.has(ur)&&this.subscribers.add(ur)}notify(){this.subscribers.forEach(t=>t())}}const bu=new WeakMap;function _u(s,t){let e=bu.get(s);e||(e=new Map,bu.set(s,e));let o=e.get(t);return o||(o=new r0,e.set(t,o)),o}function n0(s){const t={get(e,o,r){return _u(s,o).add(),Reflect.get(e,o,r)},set(e,o,r,n){const a=_u(s,o),i=Reflect.get(e,o,n),l=Reflect.set(e,o,r,n);return i!=r&&a.notify(),l}};return new Proxy(s,t)}const a0=n0;class qa{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,o]=t[0];return this.delete(e),[e,o]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}clear(){this.maps.clear(),this.mapsAddedDuringUpdate.clear()}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate.clear();for(let o=0,r=e.length;o<r;o++){const[n,a]=e[o];t(n,a)===!1&&this.delete(n)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function i0(s,t=(e,o)=>e<=o){const e=s.length;let o=Math.floor(e/2);for(;o>0;){for(let r=o;r<e;r++){const n=s[r];let a=r;for(;a>=o&&!t(s[a-o],n);)s[a]=s[a-o],a-=o;s[a]=n}o=Math.floor(o/2)}}let xu;try{xu=Promise}catch{xu=function(){}}const hr=/^[a-z0-9]+(-[a-z0-9]+)*$/,hn=(s,t,e,o="")=>{const r=s.split(":");if(s.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const i=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:o,prefix:l,name:i};return t&&!dn(c)?null:c}const n=r[0],a=n.split("-");if(a.length>1){const i={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!dn(i)?null:i}if(e&&o===""){const i={provider:o,prefix:"",name:n};return t&&!dn(i,e)?null:i}return null},dn=(s,t)=>s?!!((s.provider===""||s.provider.match(hr))&&(t&&s.prefix===""||s.prefix.match(hr))&&s.name.match(hr)):!1,wu=Object.freeze({left:0,top:0,width:16,height:16}),fn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),pn=Object.freeze({...wu,...fn}),Qa=Object.freeze({...pn,body:"",hidden:!1});function l0(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const o=((s.rotate||0)+(t.rotate||0))%4;return o&&(e.rotate=o),e}function ku(s,t){const e=l0(s,t);for(const o in Qa)o in fn?o in s&&!(o in e)&&(e[o]=fn[o]):o in t?e[o]=t[o]:o in s&&(e[o]=s[o]);return e}function c0(s,t){const e=s.icons,o=s.aliases||Object.create(null),r=Object.create(null);function n(a){if(e[a])return r[a]=[];if(!(a in r)){r[a]=null;const i=o[a]&&o[a].parent,l=i&&n(i);l&&(r[a]=[i].concat(l))}return r[a]}return(t||Object.keys(e).concat(Object.keys(o))).forEach(n),r}function u0(s,t,e){const o=s.icons,r=s.aliases||Object.create(null);let n={};function a(i){n=ku(o[i]||r[i],n)}return a(t),e.forEach(a),ku(s,n)}function Cu(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 o=c0(s);for(const r in o){const n=o[r];n&&(t(r,u0(s,r,n)),e.push(r))}return e}const h0={provider:"",aliases:{},not_found:{},...wu};function Ka(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function Tu(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Ka(s,h0))return null;const e=t.icons;for(const r in e){const n=e[r];if(!r.match(hr)||typeof n.body!="string"||!Ka(n,Qa))return null}const o=t.aliases||Object.create(null);for(const r in o){const n=o[r],a=n.parent;if(!r.match(hr)||typeof a!="string"||!e[a]&&!o[a]||!Ka(n,Qa))return null}return t}const Su=Object.create(null);function d0(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function cs(s,t){const e=Su[s]||(Su[s]=Object.create(null));return e[t]||(e[t]=d0(s,t))}function Ja(s,t){return Tu(t)?Cu(t,(e,o)=>{o?s.icons[e]=o:s.missing.add(e)}):[]}function f0(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let dr=!1;function Eu(s){return typeof s=="boolean"&&(dr=s),dr}function p0(s){const t=typeof s=="string"?hn(s,!0,dr):s;if(t){const e=cs(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function m0(s,t){const e=hn(s,!0,dr);if(!e)return!1;const o=cs(e.provider,e.prefix);return f0(o,e.name,t)}function g0(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),dr&&!t&&!s.prefix){let r=!1;return Tu(s)&&(s.prefix="",Cu(s,(n,a)=>{a&&m0(n,a)&&(r=!0)})),r}const e=s.prefix;if(!dn({provider:t,prefix:e,name:"a"}))return!1;const o=cs(t,e);return!!Ja(o,s)}const Pu=Object.freeze({width:null,height:null}),Ou=Object.freeze({...Pu,...fn}),y0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,v0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Iu(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 o=s.split(y0);if(o===null||!o.length)return s;const r=[];let n=o.shift(),a=v0.test(n);for(;;){if(a){const i=parseFloat(n);isNaN(i)?r.push(n):r.push(Math.ceil(i*t*e)/e)}else r.push(n);if(n=o.shift(),n===void 0)return r.join("");a=!a}}function b0(s,t="defs"){let e="";const o=s.indexOf("<"+t);for(;o>=0;){const r=s.indexOf(">",o),n=s.indexOf("</"+t);if(r===-1||n===-1)break;const a=s.indexOf(">",n);if(a===-1)break;e+=s.slice(r+1,n).trim(),s=s.slice(0,o).trim()+s.slice(a+1)}return{defs:e,content:s}}function _0(s,t){return s?"<defs>"+s+"</defs>"+t:t}function x0(s,t,e){const o=b0(s);return _0(o.defs,t+o.content+e)}const w0=s=>s==="unset"||s==="undefined"||s==="none";function k0(s,t){const e={...pn,...s},o={...Ou,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let n=e.body;[e,o].forEach(b=>{const _=[],v=b.hFlip,w=b.vFlip;let g=b.rotate;v?w?g+=2:(_.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),_.push("scale(-1 1)"),r.top=r.left=0):w&&(_.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),_.push("scale(1 -1)"),r.top=r.left=0);let m;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:m=r.height/2+r.top,_.unshift("rotate(90 "+m.toString()+" "+m.toString()+")");break;case 2:_.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:m=r.width/2+r.left,_.unshift("rotate(-90 "+m.toString()+" "+m.toString()+")");break}g%2===1&&(r.left!==r.top&&(m=r.left,r.left=r.top,r.top=m),r.width!==r.height&&(m=r.width,r.width=r.height,r.height=m)),_.length&&(n=x0(n,'<g transform="'+_.join(" ")+'">',"</g>"))});const a=o.width,i=o.height,l=r.width,c=r.height;let u,h;a===null?(h=i===null?"1em":i==="auto"?c:i,u=Iu(h,l/c)):(u=a==="auto"?l:a,h=i===null?Iu(u,c/l):i==="auto"?c:i);const f={},p=(b,_)=>{w0(_)||(f[b]=_.toString())};p("width",u),p("height",h);const d=[r.left,r.top,l,c];return f.viewBox=d.join(" "),{attributes:f,viewBox:d,body:n}}const C0=/\sid="(\S+)"/g,T0="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let S0=0;function E0(s,t=T0){const e=[];let o;for(;o=C0.exec(s);)e.push(o[1]);if(!e.length)return s;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{const a=typeof t=="function"?t(n):t+(S0++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),s=s.replace(new RegExp(r,"g"),""),s}const ti=Object.create(null);function P0(s,t){ti[s]=t}function ei(s){return ti[s]||ti[""]}function oi(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 si=Object.create(null),fr=["https://api.simplesvg.com","https://api.unisvg.com"],mn=[];for(;fr.length>0;)fr.length===1||Math.random()>.5?mn.push(fr.shift()):mn.push(fr.pop());si[""]=oi({resources:["https://api.iconify.design"].concat(mn)});function O0(s,t){const e=oi(t);return e===null?!1:(si[s]=e,!0)}function ri(s){return si[s]}let Ru=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function I0(s,t){const e=ri(s);if(!e)return 0;let o;if(!e.maxURL)o=0;else{let r=0;e.resources.forEach(a=>{r=Math.max(r,a.length)});const n=t+".json?icons=";o=e.maxURL-r-e.path.length-n.length}return o}function R0(s){return s===404}const F0=(s,t,e)=>{const o=[],r=I0(s,t),n="icons";let a={type:n,provider:s,prefix:t,icons:[]},i=0;return e.forEach((l,c)=>{i+=l.length+1,i>=r&&c>0&&(o.push(a),a={type:n,provider:s,prefix:t,icons:[]},i=l.length),a.icons.push(l)}),o.push(a),o};function $0(s){if(typeof s=="string"){const t=ri(s);if(t)return t.path}return"/"}const D0={prepare:F0,send:(s,t,e)=>{if(!Ru){e("abort",424);return}let o=$0(t.provider);switch(t.type){case"icons":{const n=t.prefix,i=t.icons.join(","),l=new URLSearchParams({icons:i});o+=n+".json?"+l.toString();break}case"custom":{const n=t.uri;o+=n.slice(0,1)==="/"?n.slice(1):n;break}default:e("abort",400);return}let r=503;Ru(s+o).then(n=>{const a=n.status;if(a!==200){setTimeout(()=>{e(R0(a)?"abort":"next",a)});return}return r=501,n.json()}).then(n=>{if(typeof n!="object"||n===null){setTimeout(()=>{n===404?e("abort",n):e("next",r)});return}setTimeout(()=>{e("success",n)})}).catch(()=>{e("next",r)})}};function L0(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.sort((r,n)=>r.provider!==n.provider?r.provider.localeCompare(n.provider):r.prefix!==n.prefix?r.prefix.localeCompare(n.prefix):r.name.localeCompare(n.name));let o={provider:"",prefix:"",name:""};return s.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const n=r.provider,a=r.prefix,i=r.name,l=e[n]||(e[n]=Object.create(null)),c=l[a]||(l[a]=cs(n,a));let u;i in c.icons?u=t.loaded:a===""||c.missing.has(i)?u=t.missing:u=t.pending;const h={provider:n,prefix:a,name:i};u.push(h)}),t}function Fu(s,t){s.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(r=>r.id!==t))})}function M0(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 o=s.provider,r=s.prefix;t.forEach(n=>{const a=n.icons,i=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(s.icons[c])a.loaded.push({provider:o,prefix:r,name:c});else if(s.missing.has(c))a.missing.push({provider:o,prefix:r,name:c});else return e=!0,!0;return!1}),a.pending.length!==i&&(e||Fu([s],n.id),n.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),n.abort))})}))}let A0=0;function N0(s,t,e){const o=A0++,r=Fu.bind(null,e,o);if(!t.pending.length)return r;const n={id:o,icons:t,callback:s,abort:r};return e.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(n)}),r}function z0(s,t=!0,e=!1){const o=[];return s.forEach(r=>{const n=typeof r=="string"?hn(r,t,e):r;n&&o.push(n)}),o}var B0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Y0(s,t,e,o){const r=s.resources.length,n=s.random?Math.floor(Math.random()*r):s.index;let a;if(s.random){let C=s.resources.slice(0);for(a=[];C.length>1;){const z=Math.floor(Math.random()*C.length);a.push(C[z]),C=C.slice(0,z).concat(C.slice(z+1))}a=a.concat(C)}else a=s.resources.slice(n).concat(s.resources.slice(0,n));const i=Date.now();let l="pending",c=0,u,h=null,f=[],p=[];typeof o=="function"&&p.push(o);function d(){h&&(clearTimeout(h),h=null)}function b(){l==="pending"&&(l="aborted"),d(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function _(C,z){z&&(p=[]),typeof C=="function"&&p.push(C)}function v(){return{startTime:i,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:_,abort:b}}function w(){l="failed",p.forEach(C=>{C(void 0,u)})}function g(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function m(C,z,tt){const R=z!=="success";switch(f=f.filter(D=>D!==C),l){case"pending":break;case"failed":if(R||!s.dataAfterTimeout)return;break;default:return}if(z==="abort"){u=tt,w();return}if(R){u=tt,f.length||(a.length?k():w());return}if(d(),g(),!s.random){const D=s.resources.indexOf(C.resource);D!==-1&&D!==s.index&&(s.index=D)}l="completed",p.forEach(D=>{D(tt)})}function k(){if(l!=="pending")return;d();const C=a.shift();if(C===void 0){if(f.length){h=setTimeout(()=>{d(),l==="pending"&&(g(),w())},s.timeout);return}w();return}const z={status:"pending",resource:C,callback:(tt,R)=>{m(z,tt,R)}};f.push(z),c++,h=setTimeout(k,s.rotate),e(C,t,z.callback)}return setTimeout(k),v}function $u(s){const t={...B0,...s};let e=[];function o(){e=e.filter(i=>i().status==="pending")}function r(i,l,c){const u=Y0(t,i,l,(h,f)=>{o(),c&&c(h,f)});return e.push(u),u}function n(i){return e.find(l=>i(l))||null}return{query:r,find:n,setIndex:i=>{t.index=i},getIndex:()=>t.index,cleanup:o}}function Du(){}const ni=Object.create(null);function V0(s){if(!ni[s]){const t=ri(s);if(!t)return;const e=$u(t),o={config:t,redundancy:e};ni[s]=o}return ni[s]}function X0(s,t,e){let o,r;if(typeof s=="string"){const n=ei(s);if(!n)return e(void 0,424),Du;r=n.send;const a=V0(s);a&&(o=a.redundancy)}else{const n=oi(s);if(n){o=$u(n);const a=s.resources?s.resources[0]:"",i=ei(a);i&&(r=i.send)}}return!o||!r?(e(void 0,424),Du):o.query(t,r,e)().abort}const Lu="iconify2",pr="iconify",Mu=pr+"-count",Au=pr+"-version",Nu=36e5,G0=168,U0=50;function ai(s,t){try{return s.getItem(t)}catch{}}function ii(s,t,e){try{return s.setItem(t,e),!0}catch{}}function zu(s,t){try{s.removeItem(t)}catch{}}function li(s,t){return ii(s,Mu,t.toString())}function ci(s){return parseInt(ai(s,Mu))||0}const gn={local:!0,session:!0},Bu={local:new Set,session:new Set};let ui=!1;function j0(s){ui=s}let yn=typeof window>"u"?{}:window;function Yu(s){const t=s+"Storage";try{if(yn&&yn[t]&&typeof yn[t].length=="number")return yn[t]}catch{}gn[s]=!1}function Vu(s,t){const e=Yu(s);if(!e)return;const o=ai(e,Au);if(o!==Lu){if(o){const i=ci(e);for(let l=0;l<i;l++)zu(e,pr+l.toString())}ii(e,Au,Lu),li(e,0);return}const r=Math.floor(Date.now()/Nu)-G0,n=i=>{const l=pr+i.toString(),c=ai(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,i))return!0}catch{}zu(e,l)}};let a=ci(e);for(let i=a-1;i>=0;i--)n(i)||(i===a-1?(a--,li(e,a)):Bu[s].add(i))}function Xu(){if(!ui){j0(!0);for(const s in gn)Vu(s,t=>{const e=t.data,o=t.provider,r=e.prefix,n=cs(o,r);if(!Ja(n,e).length)return!1;const a=e.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,a):a,!0})}}function H0(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const o in gn)Vu(o,r=>{const n=r.data;return r.provider!==s.provider||n.prefix!==s.prefix||n.lastModified===t});return!0}function W0(s,t){ui||Xu();function e(o){let r;if(!gn[o]||!(r=Yu(o)))return;const n=Bu[o];let a;if(n.size)n.delete(a=Array.from(n).shift());else if(a=ci(r),a>=U0||!li(r,a+1))return;const i={cached:Math.floor(Date.now()/Nu),provider:s.provider,data:t};return ii(r,pr+a.toString(),JSON.stringify(i))}t.lastModified&&!H0(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function Gu(){}function Z0(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,M0(s)}))}function q0(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:o}=s,r=s.iconsToLoad;delete s.iconsToLoad;let n;if(!r||!(n=ei(e)))return;n.prepare(e,o,r).forEach(i=>{X0(e,i,l=>{if(typeof l!="object")i.icons.forEach(c=>{s.missing.add(c)});else try{const c=Ja(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),W0(s,l)}catch(c){console.error(c)}Z0(s)})})}))}const Q0=(s,t)=>{const e=z0(s,!0,Eu()),o=L0(e);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Gu)}),()=>{l=!1}}const r=Object.create(null),n=[];let a,i;return o.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===i&&c===a)return;a=c,i=u,n.push(cs(c,u));const h=r[c]||(r[c]=Object.create(null));h[u]||(h[u]=[])}),o.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=cs(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(h)||(p.add(h),r[c][u].push(h))}),n.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&q0(l,r[c][u])}),t?N0(t,o,n):Gu};function K0(s,t){const e={...s};for(const o in t){const r=t[o],n=typeof r;o in Pu?(r===null||r&&(n==="string"||n==="number"))&&(e[o]=r):n===typeof e[o]&&(e[o]=o==="rotate"?r%4:r)}return e}const J0=/[\s,]+/;function tg(s,t){t.split(J0).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function eg(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(s);return isNaN(r)?0:o(r)}else if(e!==s){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let n=parseFloat(s.slice(0,s.length-e.length));return isNaN(n)?0:(n=n/r,n%1===0?o(n):0)}}return t}function og(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)e+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function sg(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function rg(s){return"data:image/svg+xml,"+sg(s)}function ng(s){return'url("'+rg(s)+'")'}const Uu={...Ou,inline:!1},ag={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ig={display:"inline-block"},hi={backgroundColor:"currentColor"},ju={backgroundColor:"transparent"},Hu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Wu={webkitMask:hi,mask:hi,background:ju};for(const s in Wu){const t=Wu[s];for(const e in Hu)t[s+e]=Hu[e]}const vn={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";vn[s+"-flip"]=t,vn[s.slice(0,1)+"-flip"]=t,vn[s+"Flip"]=t});function Zu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const qu=(s,t)=>{const e=K0(Uu,t),o={...ag},r=t.mode||"svg",n={},a=t.style,i=typeof a=="object"&&!(a instanceof Array)?a:{};for(let b in t){const _=t[b];if(_!==void 0)switch(b){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[b]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&tg(e,_);break;case"color":n.color=_;break;case"rotate":typeof _=="string"?e[b]=eg(_):typeof _=="number"&&(e[b]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete o["aria-hidden"];break;default:{const v=vn[b];v?(_===!0||_==="true"||_===1)&&(e[v]=!0):Uu[b]===void 0&&(o[b]=_)}}}const l=k0(s,e),c=l.attributes;if(e.inline&&(n.verticalAlign="-0.125em"),r==="svg"){o.style={...n,...i},Object.assign(o,c);let b=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),o.innerHTML=E0(l.body,_?()=>_+"ID"+b++:"iconifyVue"),qt("svg",o)}const{body:u,width:h,height:f}=s,p=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),d=og(u,{...c,width:h+"",height:f+""});return o.style={...n,"--svg":ng(d),width:Zu(c.width),height:Zu(c.height),...ig,...p?hi:ju,...i},qt("span",o)};if(Eu(!0),P0("",D0),typeof document<"u"&&typeof window<"u"){Xu();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(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!g0(o))&&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 o="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;O0(e,r)||console.error(o)}catch{console.error(o)}}}}const lg={...pn,body:""},Qu=Q({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=hn(s,!1,!0))===null)return this.abortLoading(),null;const o=p0(e);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:s,abort:Q0([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:o,classes:r}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return qu(lg,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),qu({...pn,...t.data},e)}});function cg(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ug={exports:{}};(function(s,t){(function(e){s.exports=e()})(function(e){var o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(v,w){var g=v[0],m=v[1],k=v[2],C=v[3];g+=(m&k|~m&C)+w[0]-680876936|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[1]-389564586|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[2]+606105819|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[3]-1044525330|0,m=(m<<22|m>>>10)+k|0,g+=(m&k|~m&C)+w[4]-176418897|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[5]+1200080426|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[6]-1473231341|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[7]-45705983|0,m=(m<<22|m>>>10)+k|0,g+=(m&k|~m&C)+w[8]+1770035416|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[9]-1958414417|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[10]-42063|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[11]-1990404162|0,m=(m<<22|m>>>10)+k|0,g+=(m&k|~m&C)+w[12]+1804603682|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[13]-40341101|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[14]-1502002290|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[15]+1236535329|0,m=(m<<22|m>>>10)+k|0,g+=(m&C|k&~C)+w[1]-165796510|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[6]-1069501632|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[11]+643717713|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[0]-373897302|0,m=(m<<20|m>>>12)+k|0,g+=(m&C|k&~C)+w[5]-701558691|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[10]+38016083|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[15]-660478335|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[4]-405537848|0,m=(m<<20|m>>>12)+k|0,g+=(m&C|k&~C)+w[9]+568446438|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[14]-1019803690|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[3]-187363961|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[8]+1163531501|0,m=(m<<20|m>>>12)+k|0,g+=(m&C|k&~C)+w[13]-1444681467|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[2]-51403784|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[7]+1735328473|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[12]-1926607734|0,m=(m<<20|m>>>12)+k|0,g+=(m^k^C)+w[5]-378558|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[8]-2022574463|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[11]+1839030562|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[14]-35309556|0,m=(m<<23|m>>>9)+k|0,g+=(m^k^C)+w[1]-1530992060|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[4]+1272893353|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[7]-155497632|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[10]-1094730640|0,m=(m<<23|m>>>9)+k|0,g+=(m^k^C)+w[13]+681279174|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[0]-358537222|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[3]-722521979|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[6]+76029189|0,m=(m<<23|m>>>9)+k|0,g+=(m^k^C)+w[9]-640364487|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[12]-421815835|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[15]+530742520|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[2]-995338651|0,m=(m<<23|m>>>9)+k|0,g+=(k^(m|~C))+w[0]-198630844|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[7]+1126891415|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[14]-1416354905|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[5]-57434055|0,m=(m<<21|m>>>11)+k|0,g+=(k^(m|~C))+w[12]+1700485571|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[3]-1894986606|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[10]-1051523|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[1]-2054922799|0,m=(m<<21|m>>>11)+k|0,g+=(k^(m|~C))+w[8]+1873313359|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[15]-30611744|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[6]-1560198380|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[13]+1309151649|0,m=(m<<21|m>>>11)+k|0,g+=(k^(m|~C))+w[4]-145523070|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[11]-1120210379|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[2]+718787259|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[9]-343485551|0,m=(m<<21|m>>>11)+k|0,v[0]=g+v[0]|0,v[1]=m+v[1]|0,v[2]=k+v[2]|0,v[3]=C+v[3]|0}function n(v){var w=[],g;for(g=0;g<64;g+=4)w[g>>2]=v.charCodeAt(g)+(v.charCodeAt(g+1)<<8)+(v.charCodeAt(g+2)<<16)+(v.charCodeAt(g+3)<<24);return w}function a(v){var w=[],g;for(g=0;g<64;g+=4)w[g>>2]=v[g]+(v[g+1]<<8)+(v[g+2]<<16)+(v[g+3]<<24);return w}function i(v){var w=v.length,g=[1732584193,-271733879,-1732584194,271733878],m,k,C,z,tt,R;for(m=64;m<=w;m+=64)r(g,n(v.substring(m-64,m)));for(v=v.substring(m-64),k=v.length,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<k;m+=1)C[m>>2]|=v.charCodeAt(m)<<(m%4<<3);if(C[m>>2]|=128<<(m%4<<3),m>55)for(r(g,C),m=0;m<16;m+=1)C[m]=0;return z=w*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),tt=parseInt(z[2],16),R=parseInt(z[1],16)||0,C[14]=tt,C[15]=R,r(g,C),g}function l(v){var w=v.length,g=[1732584193,-271733879,-1732584194,271733878],m,k,C,z,tt,R;for(m=64;m<=w;m+=64)r(g,a(v.subarray(m-64,m)));for(v=m-64<w?v.subarray(m-64):new Uint8Array(0),k=v.length,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<k;m+=1)C[m>>2]|=v[m]<<(m%4<<3);if(C[m>>2]|=128<<(m%4<<3),m>55)for(r(g,C),m=0;m<16;m+=1)C[m]=0;return z=w*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),tt=parseInt(z[2],16),R=parseInt(z[1],16)||0,C[14]=tt,C[15]=R,r(g,C),g}function c(v){var w="",g;for(g=0;g<4;g+=1)w+=o[v>>g*8+4&15]+o[v>>g*8&15];return w}function u(v){var w;for(w=0;w<v.length;w+=1)v[w]=c(v[w]);return v.join("")}u(i("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function v(w,g){return w=w|0||0,w<0?Math.max(w+g,0):Math.min(w,g)}ArrayBuffer.prototype.slice=function(w,g){var m=this.byteLength,k=v(w,m),C=m,z,tt,R,D;return g!==e&&(C=v(g,m)),k>C?new ArrayBuffer(0):(z=C-k,tt=new ArrayBuffer(z),R=new Uint8Array(tt),D=new Uint8Array(this,k,z),R.set(D),tt)}}();function h(v){return/[\u0080-\uFFFF]/.test(v)&&(v=unescape(encodeURIComponent(v))),v}function f(v,w){var g=v.length,m=new ArrayBuffer(g),k=new Uint8Array(m),C;for(C=0;C<g;C+=1)k[C]=v.charCodeAt(C);return w?k:m}function p(v){return String.fromCharCode.apply(null,new Uint8Array(v))}function d(v,w,g){var m=new Uint8Array(v.byteLength+w.byteLength);return m.set(new Uint8Array(v)),m.set(new Uint8Array(w),v.byteLength),g?m:m.buffer}function b(v){var w=[],g=v.length,m;for(m=0;m<g-1;m+=2)w.push(parseInt(v.substr(m,2),16));return String.fromCharCode.apply(String,w)}function _(){this.reset()}return _.prototype.append=function(v){return this.appendBinary(h(v)),this},_.prototype.appendBinary=function(v){this._buff+=v,this._length+=v.length;var w=this._buff.length,g;for(g=64;g<=w;g+=64)r(this._hash,n(this._buff.substring(g-64,g)));return this._buff=this._buff.substring(g-64),this},_.prototype.end=function(v){var w=this._buff,g=w.length,m,k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C;for(m=0;m<g;m+=1)k[m>>2]|=w.charCodeAt(m)<<(m%4<<3);return this._finish(k,g),C=u(this._hash),v&&(C=b(C)),this.reset(),C},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},_.prototype.setState=function(v){return this._buff=v.buff,this._length=v.length,this._hash=v.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.prototype._finish=function(v,w){var g=w,m,k,C;if(v[g>>2]|=128<<(g%4<<3),g>55)for(r(this._hash,v),g=0;g<16;g+=1)v[g]=0;m=this._length*8,m=m.toString(16).match(/(.*?)(.{0,8})$/),k=parseInt(m[2],16),C=parseInt(m[1],16)||0,v[14]=k,v[15]=C,r(this._hash,v)},_.hash=function(v,w){return _.hashBinary(h(v),w)},_.hashBinary=function(v,w){var g=i(v),m=u(g);return w?b(m):m},_.ArrayBuffer=function(){this.reset()},_.ArrayBuffer.prototype.append=function(v){var w=d(this._buff.buffer,v,!0),g=w.length,m;for(this._length+=v.byteLength,m=64;m<=g;m+=64)r(this._hash,a(w.subarray(m-64,m)));return this._buff=m-64<g?new Uint8Array(w.buffer.slice(m-64)):new Uint8Array(0),this},_.ArrayBuffer.prototype.end=function(v){var w=this._buff,g=w.length,m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k,C;for(k=0;k<g;k+=1)m[k>>2]|=w[k]<<(k%4<<3);return this._finish(m,g),C=u(this._hash),v&&(C=b(C)),this.reset(),C},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var v=_.prototype.getState.call(this);return v.buff=p(v.buff),v},_.ArrayBuffer.prototype.setState=function(v){return v.buff=f(v.buff,!0),_.prototype.setState.call(this,v)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(v,w){var g=l(new Uint8Array(v)),m=u(g);return w?b(m):m},_})})(ug);const Ku=s=>new XMLSerializer().serializeToString(s),hg=(s,t=gu.SVG,e=cn.utf8)=>yu(Ku(s),t,e),dg=(s,t,e)=>{const o=async r=>{await e(r)};return s.addEventListener(t,o,!1),()=>{s.removeEventListener(t,o,!1)}};function fg(){const s=new cr;return{on:(t,e)=>{s.on(t,e)},off:(t,e)=>{s.off(t,e)},emit:(t,...e)=>{s.emit(t,...e)}}}const di=fg();function pg(){return{remove:dg(document,"scroll",s=>{di.emit("scroll",s)}),on:s=>{di.on("scroll",s)},off:s=>{di.off("scroll",s)}}}function bn(s,t,e,o,r){const n=t/e;let a=0,i=0;switch(s){case"aspectFit":n>=1?(a=o,i=a/n,i>r&&(i=r,a=i*n)):(i=r,a=i*n,a>o&&(a=o,i=a/n));break;case"aspectFill":n>=1?(i=r,a=i*n):(a=o,i=a/n);break;case"widthFix":a=o,i=a/n;break;case"heightFix":i=r,a=i*n;break;case"scaleToFill":default:a=o,i=r;break}return{width:a,height:i}}function mg(s){const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=s.width,t.height=s.height,e.drawImage(s,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}function gg(){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 o=s.indexOf("Edge/");return o>0?parseInt(s.substring(o+5,s.indexOf(".",o)),10):-1}const fi=gg()!==-1;(()=>{const s=nu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!nu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const o=t.transferToImageBitmap();try{e.createPattern(o,"no-repeat")}catch{return!1}return!0}();function Yt(s){return s*Math.PI/180}function ze(s){return s*180/Math.PI}function pi(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function mi(s,t,e,o){return pi(e-s,o-t)}function gi(s,t,e,o){const r=e-s,n=o-t;return r*r+n*n}function Is(s,t,e,o){let r=Math.atan2(o-t,e-s);return r<0&&(r+=Math.PI*2),r}function xo(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const Ju=yg("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 yg(s,t=10){const e={},o=s.split(",");for(let r=0;r<o.length;r+=2){const n="&"+o[r+1]+";",a=parseInt(o[r],t);e[n]="&#"+a+";"}return e["\\xa0"]=" ",e}function Fe(s,t){const e=Object.keys(t);for(let o=0;o<e.length;o++)s=s.replace(new RegExp("{"+e[o]+"}","gi"),""+t[e[o]]);return s}function _n(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const o="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=o[Math.floor(Math.random()*o.length)];while(s[t]);return t}function vg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function bg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const mr={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 yi{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const o=this.__ctx.__createElement("stop");if(o.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const n=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);n&&(o.setAttribute("stop-color",Fe("rgb({r},{g},{b})",{r:n[1],g:n[2],b:n[3]})),o.setAttribute("stop-opacity",n[4]))}else o.setAttribute("stop-color",e);this.__root.appendChild(o)}}class th{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class xn{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:o=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=o),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(mr);for(let e=0,o=t.length;e<o;e++){const r=t[e];this[r]=mr[r].canvas}}__getStyleState(){const t={},e=Object.keys(mr);for(let o=0,r=e.length;o<r;o++){const n=e[o];t[n]=this[n]}return t}__applyStyleState(t){const e=Object.keys(t);for(let o=0,r=e.length;o<r;o++){const n=e[o];this[n]=t[n]}}__createElement(t,e={},o=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),n=Object.keys(e);o&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let a=0;a<n.length;a++){const i=n[a];r.setAttribute(i,e[i])}return r}__applyStyleToCurrentElement(t){let e=this.__currentElement;const o=this.__currentElementsToStyle;o&&(e.setAttribute(t,""),e=o.element,o.children.forEach(n=>{n.setAttribute(t,"")}));const r=Object.keys(mr);for(let n=0;n<r.length;n++){const a=mr[r[n]],i=this[r[n]];if(a.apply){if(i instanceof th){if(i.__ctx)for(;i.__ctx.__SVGdefs.childNodes.length;){const l=i.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(i.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(a.apply,Fe("url(#{id})",{id:i.__root.getAttribute("id")}))}else if(i instanceof yi)e.setAttribute(a.apply,Fe("url(#{id})",{id:i.__root.getAttribute("id")}));else if(a.apply.indexOf(t)!==-1&&a.svg!==i)if((a.svgAttr==="stroke"||a.svgAttr==="fill")&&i.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(i);if(c){e.setAttribute(a.svgAttr,Fe("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(a.svgAttr+"-opacity",""+u)}}else{let l=a.svgAttr;if(r[n]==="globalAlpha"&&(l=t+"-"+a.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,i)}}}}__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 n=0,a=r.length;n<a;n++){const i=r[n],l=Ju[i],c=new RegExp(i,"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 o=this.__currentElement.getAttribute("transform");o?o+=" ":o="",o+=t,this.__currentElement.setAttribute("transform",o)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Fe("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Fe("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Fe("translate({x},{y})",{x:t,y:e}))}transform(t,e,o,r,n,a){this.__addTransform(Fe("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:o,d:r,e:n,f:a}))}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(Fe("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(Fe("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Fe("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,o,r,n,a){this.__currentPosition={x:n,y:a},this.__addPathCommand(Fe("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:o,cp2y:r,x:n,y:a}))}quadraticCurveTo(t,e,o,r){this.__currentPosition={x:o,y:r},this.__addPathCommand(Fe("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:o,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,o,r,n){const a=this.__currentPosition&&this.__currentPosition.x,i=this.__currentPosition&&this.__currentPosition.y;if(typeof a>"u"||typeof i>"u")return;if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(a===t&&i===e||t===o&&e===r||n===0){this.lineTo(t,e);return}const l=this.normalize([a-t,i-e]),c=this.normalize([o-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]]),p=n/Math.sin(h/2),d=t+p*f[0],b=e+p*f[1],_=[-l[1],l[0]],v=[c[1],-c[0]],w=function(k){const C=k[0];return k[1]>=0?Math.acos(C):-Math.acos(C)},g=w(_),m=w(v);this.lineTo(d+_[0]*n,b+_[1]*n),this.arc(d,b,n,g,m)}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,o,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+o,e),this.lineTo(t+o,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,o,r){const n=this.__createElement("rect",{x:t,y:e,width:o,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,o,r){const n=this.__createElement("rect",{x:t,y:e,width:o,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),o=this.__rootSVG.childNodes[1],r=o.childNodes;for(let n=r.length-1;n>=0;n--)r[n]&&o.removeChild(r[n]);this.__currentElement=o,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,o,r){if(t===0&&e===0&&o===this.width&&r===this.height){this.__clearCanvas();return}const n=this.__closestGroupOrSvg(),a=this.__createElement("rect",{x:t,y:e,width:o,height:r,fill:"#FFFFFF"},!0);n.appendChild(a)}createLinearGradient(t,e,o,r){const n=this.__createElement("linearGradient",{id:_n(this.__ids),x1:t+"px",x2:o+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(n),new yi(n,this)}createRadialGradient(t,e,o,r,n,a){const i=this.__createElement("radialGradient",{id:_n(this.__ids),cx:r+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new yi(i,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),o={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"&&(o.decoration="underline"),this.__fontHref&&(o.href=this.__fontHref),o}__wrapTextLink(t,e){if(t.href){const o=this.__createElement("a");return o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),o.appendChild(e),o}return e}__applyText(t,e,o,r){const n=this.__parseFont(),a=this.__closestGroupOrSvg(),i=this.__createElement("text",{"font-family":n.family,"font-size":n.size,"font-style":n.style,"font-weight":n.weight,"text-decoration":n.decoration,x:e,y:o,"text-anchor":vg(this.textAlign),"dominant-baseline":bg(this.textBaseline)},!0);i.appendChild(this.__document.createTextNode(t)),this.__currentElement=i,this.__applyStyleToCurrentElement(r),a.appendChild(this.__wrapTextLink(n,i))}fillText(t,e,o){this.__applyText(t,e,o,"fill")}strokeText(t,e,o){this.__applyText(t,e,o,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,o,r,n,a){if(r===n)return;r=r%(2*Math.PI),n=n%(2*Math.PI),r===n&&(n=(n+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));const i=t+o*Math.cos(n),l=e+o*Math.sin(n),c=t+o*Math.cos(r),u=e+o*Math.sin(r),h=a?0:1;let f=0,p=n-r;p<0&&(p+=2*Math.PI),a?f=p>Math.PI?0:1:f=p>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Fe("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:o,ry:o,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:i,endY:l})),this.__currentPosition={x:i,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),o=_n(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",o),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Fe("url(#{id})",{id:o})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],o,r,n,a,i=0,l=0,c,u,h,f,p,d,b,_;if(t.length===3)o=t[1],r=t[2],c=e.width,u=e.height,n=c,a=u;else if(t.length===5)o=t[1],r=t[2],n=t[3],a=t[4],c=e.width,u=e.height;else if(t.length===9)i=t[1],l=t[2],c=t[3],u=t[4],o=t[5],r=t[6],n=t[7],a=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const v=this.__closestGroupOrSvg();this.__currentElement;const w="translate("+o+", "+r+")";if(e instanceof xn){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)_=f.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(f.childNodes[0]);if(p=h.childNodes[1],p){const g=p.getAttribute("transform");let m;g?m=g+" "+w:m=w,p.setAttribute("transform",m),v.appendChild(p)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(d=this.__createElement("image"),d.setAttribute("width",n),d.setAttribute("height",a),d.setAttribute("preserveAspectRatio","none"),(i||l||c!==e.width||u!==e.height)&&(b=this.__document.createElement("canvas"),b.width=n,b.height=a,b.getContext("2d")?.drawImage(e,i,l,c,u,0,0,n,a),e=b),d.setAttribute("transform",w),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),v.appendChild(d))}createPattern(t,e){const o=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=_n(this.__ids);let n;return o.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(n=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),o.appendChild(n),this.__SVGdefs.appendChild(o)):t instanceof xn&&(o.setAttribute("width",""+t.width),o.setAttribute("height",""+t.height),o.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(o)),new th(o,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class vi{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,o,r=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),r&&(this.customContext=new xn({canvas:this.canvas,width:e||this.canvas.width,height:o||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,o,r){return this.context.fillRect(t,e,o,r),this.customContext&&this.customContext.fillRect(t,e,o,r),this}fillText(t,e,o,r){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,o,r),this.customContext&&this.customContext.fillText(t,e,o),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,o,r){return this.context.strokeText(t,e,o,r),this.customContext&&this.customContext.strokeText(t,e,o),this}strokeRect(t,e,o,r){return this.context.strokeRect(t,e,o,r),this.customContext&&this.customContext.strokeRect(t,e,o,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,o=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,o,r),this.customContext&&this.customContext.clearRect(t,e,o,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 o=new Path2D;o.addPath(t,e),this.currentPath2D=o}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,o=0){return this.translate(e,o),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-o),this.changePath2D(),this}scale(t,e=t,o=0,r=0){return this.translate(o,r),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-o,-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,o,r,n,a){return this.context.arc(t,e,o,r,n,a),this.customContext&&this.customContext.arc(t,e,o,r,n,a?-1:1),this.currentPath2D.arc(t,e,o,r,n,a),this}arcTo(t,e,o,r,n){return this.context.arcTo(t,e,o,r,n),this.customContext&&this.customContext.arcTo(t,e,o,r,n),this.currentPath2D.arcTo(t,e,o,r,n),this}ellipse(t,e,o,r,n,a,i,l){return this.context.ellipse(t,e,o,r,n,a,i,l),this.currentPath2D.ellipse(t,e,o,r,n,a,i,l),this}quadraticCurveTo(t,e,o,r){return this.context.quadraticCurveTo(t,e,o,r),this.customContext&&this.customContext.quadraticCurveTo(t,e,o,r),this.currentPath2D.quadraticCurveTo(t,e,o,r),this}bezierCurveTo(t,e,o,r,n,a){return this.context.bezierCurveTo(t,e,o,r,n,a),this.customContext&&this.customContext.bezierCurveTo(t,e,o,r,n,a),this.currentPath2D.bezierCurveTo(t,e,o,r,n,a),this}rect(t,e,o,r){return this.context.rect(t,e,o,r),this.customContext&&this.customContext.rect(t,e,o,r),this.currentPath2D.rect(t,e,o,r),this}createLinearGradient(t,e,o,r,n){const a=this.context.createLinearGradient(t,e,o,r);return n&&Object.entries(n).forEach(([i,l])=>{a.addColorStop(parseFloat(i),l)}),a}createRadialGradient(t,e,o,r,n,a,i){const l=this.context.createRadialGradient(t,e,o,r,n,a);return i&&Object.entries(i).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 o=e[0],r=e[1];this.context.drawImage(t,o,r)}else if(e.length===4){const o=e[0],r=e[1],n=e[2],a=e[3];this.context.drawImage(t,o,r,n,a)}else if(e.length===8){const o=e[0],r=e[1],n=e[2],a=e[3],i=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,o,r,n,a,i,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,o=this.canvas.width,r=this.canvas.height,n){return this.context.getImageData(t,e,o,r,n)}putImageData(t,e=0,o=0){return this.context.putImageData(t,e,o)}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 wn{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=Is(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),o=Math.min(this.y,this.toY),r=Math.max(this.x,this.toX),n=Math.max(this.y,this.toY);return{x:e,y:o,width:r-e,height:n-o}}else{const e=Math.sin(t),o=Math.cos(t),r=o*this.x-e*this.y,n=o*this.toX-e*this.toY,a=o*this.y+e*this.x,i=o*this.toY+e*this.toX;return{x:Math.min(r,n),y:Math.min(a,i),width:Math.max(r,n)-Math.min(r,n),height:Math.max(a,i)-Math.min(a,i)}}}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,o=this.y,r=t.toX,n=t.toY,a=this.toX-e,i=t.x-r;if(!a&&!i)return null;const l=(this.toY-o)/a,c=(t.y-n)/i;if(a){if(!i)return{x:r,y:l*(r-e)+o}}else return{x:e,y:c*(e-r)+n};const u=(-c*r+n+l*e-o)/(l-c),h=l*(u-e)+o;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}const eh=wn;class bi extends wn{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,o,r,n,a,i,l]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,o,r,n,a,i,l,!this.sweepFlag)}convert(t,e,o,r,n,a,i,l,c){const u=i/180*Math.PI,h=(t-o)/2,f=(e-r)/2,p=Math.cos(u)*h+Math.sin(u)*f,d=-Math.sin(u)*h+Math.cos(u)*f,b=p*p/(n*n)+d*d/(a*a);if(b>1){const M=Math.sqrt(b);throw n=M*n,a=M*a,new Error(`Radii are too small to build an arc. Correcting them to ${n}/${a}.`)}const _=Math.sqrt((n*n*a*a-n*n*d*d-a*a*p*p)/(n*n*d*d+a*a*p*p)),v=l!=c?1:-1,w=v*_*n*d/a,g=v*_*-a*p/n,m=(t+o)/2,k=(e+r)/2,C=Math.cos(u)*w-Math.sin(u)*g+m,z=Math.sin(u)*w+Math.cos(u)*g+k,tt=(M,$,N,G)=>(M*G>=$*N?1:-1)*Math.acos((M*N+$*G)/(Math.sqrt(M*M+$*$)*Math.sqrt(N*N+G*G))),R=tt(1,0,t-C,e-z)-u,D=tt(t-C,e-z,o-C,r-z);return[C,z,n,a,u,R,R+D]}}const _g=bi;class xg extends wn{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,o=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,o,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 o,r,n,a;for(let c=0;c<2;++c)o=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,n=c==0?this.x:this.y,Math.abs(o)>1e-12&&(a=-r/(2*o),0<a&&a<1&&[t,e][c].push(o*a*a+r*a+n));const i={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:i.x,y:i.y,width:l.x-i.x,height:l.y-i.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 wg=xg;class us extends wn{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),o=this.x-this.c1x,r=(-e+Math.sqrt(e*e-4*t*o))/2/t,n=(-e-Math.sqrt(e*e-4*t*o))/2/t;const a=[this.y,this.toY],i=[this.x,this.toX];let l;const c=[];Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.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),o=this.y-this.c1y,r=(-e+Math.sqrt(e*e-4*t*o))/2/t,n=(-e-Math.sqrt(e*e-4*t*o))/2/t,Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.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 b=d+1;b<h;b++)c[d].X===c[b].X&&c[d].Y===c[b].Y&&(b=++d);u.push({X:c[d].X,Y:c[d].Y})}const f={x:Math.min.apply(Math,i),y:Math.min.apply(Math,a)},p={x:Math.max.apply(Math,i),y:Math.max.apply(Math,a)};return{x:f.x,y:f.y,width:p.x-f.x,height:p.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,o,r,n){const a=-3*e+9*o-9*r+3*n,i=t*a+6*e-12*o+6*r;return t*i-3*e+3*o}static bezlen(t,e,o,r,n,a,i,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 p=0;for(let d=0;d<12;d++){const b=u*h[d]+u,_=this.base3(b,t,o,n,i),v=this.base3(b,e,r,a,l);p+=f[d]*Math.sqrt(_*_+v*v)}return u*p}length(t=1){return us.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,o=this.y,r=this.c1x,n=this.c1y,a=this.c2x,i=this.c2y,l=this.toX,c=this.toY;if(t<0||us.bezlen(e,o,r,n,a,i,l,c)<t)return 0;let u=1,h=u/2,f=u-h,p=us.bezlen(e,o,r,n,a,i,l,c,f);for(;Math.abs(p-t)>.01;)h/=2,f+=(p<t?1:-1)*h,p=us.bezlen(e,o,r,n,a,i,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t);let o=1-e,r=Math.pow(o,3),n=Math.pow(o,2),a=e*e,i=a*e,l=r*this.x+n*3*e*this.c1x+o*3*e*e*this.c2x+i*this.toX,c=r*this.y+n*3*e*this.c1y+o*3*e*e*this.c2y+i*this.toY,u=this.x+2*e*(this.c1x-this.x)+a*(this.c2x-2*this.c1x+this.x),h=this.y+2*e*(this.c1y-this.y)+a*(this.c2y-2*this.c1y+this.y),f=this.c1x+2*e*(this.c2x-this.c1x)+a*(this.toX-2*this.c2x+this.c1x),p=this.c1y+2*e*(this.c2y-this.c1y)+a*(this.toY-2*this.c2y+this.c1y),d=o*this.x+e*this.c1x,b=o*this.y+e*this.c1y,_=o*this.c2x+e*this.toX,v=o*this.c2y+e*this.toY,w=90-Math.atan2(u-f,h-p)*180/Math.PI;return{x:l,y:c,m:{x:u,y:h},n:{x:f,y:p},start:{x:d,y:b},end:{x:_,y:v},alpha:w}}}const Vo=us,gr=Math.PI*2;function oh(s,t,e,o){const r=s*o-t*e<0?-1:1;let n=s*e+t*o;return n>1&&(n=1),n<-1&&(n=-1),r*Math.acos(n)}function kg(s,t,e,o,r,n,a,i,l,c){const u=c*(s-e)/2+l*(t-o)/2,h=-l*(s-e)/2+c*(t-o)/2,f=a*a,p=i*i,d=u*u,b=h*h;let _=f*p-f*b-p*d;_<0&&(_=0),_/=f*b+p*d,_=Math.sqrt(_)*(r===n?-1:1);const v=_*a/i*h,w=_*-i/a*u,g=c*v-l*w+(s+e)/2,m=l*v+c*w+(t+o)/2,k=(u-v)/a,C=(h-w)/i,z=(-u-v)/a,tt=(-h-w)/i,R=oh(1,0,k,C);let D=oh(k,C,z,tt);return n===0&&D>0&&(D-=gr),n===1&&D<0&&(D+=gr),[g,m,R,D]}function Cg(s,t){const e=1.3333333333333333*Math.tan(t/4),o=Math.cos(s),r=Math.sin(s),n=Math.cos(s+t),a=Math.sin(s+t);return[o,r,o-r*e,r+o*e,n+a*e,a-n*e,n,a]}function sh(s,t,e,o,r,n,a,i,l){const c=Math.sin(l*gr/360),u=Math.cos(l*gr/360),h=u*(s-e)/2+c*(t-o)/2,f=-c*(s-e)/2+u*(t-o)/2;if(h===0&&f===0)return[];if(a===0||i===0)return[];a=Math.abs(a),i=Math.abs(i);const p=h*h/(a*a)+f*f/(i*i);p>1&&(a*=Math.sqrt(p),i*=Math.sqrt(p));const d=kg(s,t,e,o,r,n,a,i,c,u),b=[];let _=d[2],v=d[3];const w=Math.max(Math.ceil(Math.abs(v)/(gr/4)),1);v/=w;for(let g=0;g<w;g++)b.push(Cg(_,v)),_+=v;return b.map(g=>{for(let m=0;m<g.length;m+=2){let k=g[m+0],C=g[m+1];k*=a,C*=i;const z=u*k-c*C,tt=c*k+u*C;g[m+0]=z+d[0],g[m+1]=tt+d[1]}return g})}function _i(s,t,e,o,r,n){return[s/3+.6666666666666666*e,t/3+.6666666666666666*o,r/3+.6666666666666666*e,n/3+.6666666666666666*o,r,n]}function yr(s,t,e,o){return[s,t,e,o,e,o]}const kn={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class me{static createSVGElement(t="path",e){const o=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&Ls(o,e),o}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||Ps()})}static downloadFromSVGElement(t,e="shape"){return kh(hg(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return kh(yu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Ku(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 me.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(o,r,n)=>{let a=r.toLowerCase();const i=Ua(n);for(a=="m"&&i.length>kn[a]&&(e.push([r,...i.splice(0,kn[a])]),a="l",r=r=="m"?"l":"L");i.length;){if(i.length<kn[a])throw new Error(`parseSVGPath substring:{ ${o} } command:{ ${r} } args:{ ${i} }`);e.push([r,...i.splice(0,kn[a])])}return a=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,o=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toUpperCase();if(i!=l)switch(a[0]=l,i){case"a":a[6]+=r,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=r;break;default:for(let c=1;c<a.length;)a[c++]+=r,a[c++]+=n}switch(l){case"Z":r=e,n=o;break;case"H":r=a[1];break;case"V":n=a[1];break;case"M":r=e=a[1],n=o=a[2];break;default:r=a[a.length-2],n=a[a.length-1]}return a})}static relativeSVGPath(t){let e=0,o=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toLowerCase();if(i!=l)switch(a[0]=l,i){case"A":a[6]-=r,a[7]-=n;break;case"V":a[1]-=n;break;case"H":a[1]-=r;break;default:for(let c=1;c<a.length;)a[c++]-=r,a[c++]-=n}switch(l){case"z":r=e,n=o;break;case"h":r+=a[1];break;case"v":n+=a[1];break;case"m":r+=a[1],n+=a[2],e+=a[1],o+=a[2];break;default:r+=a[a.length-2],n+=a[a.length-1]}return a})}static normalizeSVGPath(t){const e=[];let o=0,r=0,n=0,a=0,i=0,l=0,c=0,u=0,h;for(let f=0,p=t.length;f<p;f++){let d=t[f];const b=d[0];switch(b){case"M":o=d[1],r=d[2];break;case"A":const _=sh(n,a,d[6],d[7],d[4],d[5],d[1],d[2],d[3]);if(!_.length)continue;_.forEach((g,m)=>{const[k,C,z,tt,R,D,M,$]=g;d=["C",z,tt,R,D,M,$],m<_.length-1&&e.push(d)});break;case"S":let v=n,w=a;(h=="C"||h=="S")&&(v+=v-c,w+=w-u),d=["C",v,w,d[1],d[2],d[3],d[4]];break;case"T":h=="Q"||h=="T"?(i=n*2-i,l=a*2-l):(i=n,l=a),d=["C",..._i(n,a,i,l,d[1],d[2])];break;case"Q":i=d[1],l=d[2],d=["C",..._i(n,a,d[1],d[2],d[3],d[4])];break;case"L":d=["C",...yr(n,a,d[1],d[2])];break;case"H":d=["C",...yr(n,a,d[1],a)];break;case"V":d=["C",...yr(n,a,n,d[1])];break;case"Z":d=["C",...yr(n,a,o,r)];break}h=b,n=d[d.length-2],a=d[d.length-1],d.length>4?(c=d[d.length-4],u=d[d.length-3]):(c=n,u=a),e.push(d)}return e}static catmullRom2bezier(t){const e=[];for(let o=0,r=t.length;r-2>o;o+=2){let n;o==0?n=[{x:t[o],y:t[o+1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+4],y:t[o+5]}]:r-4==o?n=[{x:t[o-2],y:t[o-1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+2],y:t[o+3]}]:n=[{x:t[o-2],y:t[o-1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+4],y:t[o+5]}];const a=[{x:n[1].x,y:n[1].y},{x:(-n[0].x+6*n[1].x+n[2].x)/6,y:(-n[0].y+6*n[1].y+n[2].y)/6},{x:(n[1].x+6*n[2].x-n[3].x)/6,y:(n[1].y+6*n[2].y-n[3].y)/6},{x:n[2].x,y:n[2].y}];e.push(["C",a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y])}return e}static zvhToLSVGPath(t){const e=[];let o=["L",0,0],r;for(let n=0,a=t.length;n<a;n++){const i=t[n];switch(i[0]){case"M":o=["L",i[1],i[2]],e.push(i);break;case"Z":e.push(o);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",i[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.length-2],i[1]]);break;default:e.push(i)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let o,r=0,n=0;for(let a=0,i=t.length;a<i;a++){const l=t[a],c=e[l[0]];c&&(l[0]=c.to,o&&(o[0]===c.to?(r=2*Number(o[c.x+2])-Number(o[c.x]),n=2*Number(o[c.x+3])-Number(o[c.x+1])):(r=Number(o[o.length-2]),n=Number(o[o.length-1]))),l.splice(1,0,r,n)),o=l}return t}}class Ge{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(me.parseSVGPath(t),e):t instanceof Ge?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const o=me.normalizeSVGPath(me.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let r=!1;for(let n=0,a=o.length;n<a;n++){const i=o[n];if(i[0]=="M"){r||(r=!0,this.startPathX=i[1],this.startPathY=i[2]),this.prevPathX=i[1],this.prevPathY=i[2];continue}this.appendLine(new Vo({c1x:i[1],c1y:i[2],c2x:i[3],c2y:i[4],toX:i[5],toY:i[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(n=>{({x:n.x,y:n.y}=e.transformPoint({x:n.x,y:n.y})),{x:n.c1x,y:n.c1y}=e.transformPoint({x:n.c1x,y:n.c1y}),{x:n.c2x,y:n.c2y}=e.transformPoint({x:n.c2x,y:n.c2y}),{x:n.toX,y:n.toY}=e.transformPoint({x:n.toX,y:n.toY})}))}static fromPolymorphPoints(t){const e=new Ge;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let o=2,r=t.length;o+5<r;o+=6)e.appendLine(new Vo({c1x:t[o],c1y:t[o+1],c2x:t[o+2],c2y:t[o+3],toX:t[o+4],toY:t[o+5]}));return e}static fromLines(t){const e=new Ge;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let o=0,r=t.length;o<r;o++)e.appendLine(t[o]);return e}appendLine(t){if(t instanceof _g){sh(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,p,d,b,_,v]=c;this.normalizedLines.push(new Vo({x:this.prevPathX,y:this.prevPathY,c1x:f,c1y:p,c2x:d,c2y:b,toX:_,toY:v})),this.prevPathX=_,this.prevPathY=v});return}let e,o,r,n,a,i;t instanceof Vo?(e=t.c1x,o=t.c1y,r=t.c2x,n=t.c2y,a=t.toX,i=t.toY):t instanceof wg?[e,o,r,n,a,i]=_i(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,o,r,n,a,i]=yr(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Vo({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:o,c2x:r,c2y:n,toX:a,toY:i})),this.prevPathX=a,this.prevPathY=i}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:o}=this.updateTransform(),r=[];r.push(["M",t,e]);for(let n=0,a=o.length;n<a;n++)r.push(...o[n].toSVGPathData());return r}toSVGPathD(){return me.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:o,normalizedLines:r}=this.updateTransform();t.beginPath(),t.moveTo(e,o),r.forEach(n=>{n.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],o=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),o.push(c.y,c.y+c.height)}),e.length==0||o.length==0)return{x:0,y:0,width:0,height:0};const r=Math.min.apply(0,e),n=Math.min.apply(0,o),a=Math.max.apply(0,e),i=Math.max.apply(0,o);return{x:r,y:n,width:a-r,height:i-n}}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 Ue;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,o=this.startPathY;({x:e,y:o}=t.transformPoint({x:e,y:o}));const r=[];return this.normalizedLines.forEach(n=>{let a=n.x,i=n.y,l=n.c1x,c=n.c1y,u=n.c2x,h=n.c2y,f=n.toX,p=n.toY;({x:a,y:i}=t.transformPoint({x:a,y:i})),{x:l,y:c}=t.transformPoint({x:l,y:c}),{x:u,y:h}=t.transformPoint({x:u,y:h}),{x:f,y:p}=t.transformPoint({x:f,y:p}),r.push(new Vo({x:a,y:i,c1x:l,c1y:c,c2x:u,c2y:h,toX:f,toY:p}))}),{startPathX:e,startPathY:o,normalizedLines:r}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,o)=>e+=o.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let o=0;const r=e.length;for(let n=0;n<r;n++){const a=e[n],i=a.length();if(o+i>=t)return a.getPointAtSegmentLength(t-o);o+=i}return e[r-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:o,normalizedLines:r}=this.updateTransform(),n=r.length;if(n===0)return{x:e,y:o};if(n===1)return r[0].interpolate(t);{let a=t*n,i=r[0];if(a--,a>1)for(let l=1;l<n&&(i=r[l],a>1);l++)a-=1;return i.interpolate(a)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const o=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(o,t):o}}getSubpathsAtLength(t,e,o){const{startPathX:r,startPathY:n,normalizedLines:a}=t.updateTransform();let i=null,l=0;const c=new Ge;c.prevPathX=c.startPathX=r,c.prevPathY=c.startPathY=n;for(let u=0,h=a.length;u<h;u++){const f=a[u],p=f.length();if(l+p>e&&!i){const d=f.getPointAtSegmentLength(e-l);if(c.appendLine(new Vo({c1x:d.start.x,c1y:d.start.y,c2x:d.m.x,c2y:d.m.y,toX:d.x,toY:d.y})),o)return c;i=c,c.appendLine(new Vo({c1x:d.n.x,c1y:d.n.y,c2x:d.end.x,c2y:d.end.y,toX:f.x,toY:f.y})),l+=p;continue}l+=p,c.appendLine(f)}return c}closestPoint(t,e){const o=this.getTotalLength();let r={x:t,y:e},n=0,a=1/0,i=8;for(let c=0;c<=o;c+=i){let u=this.getPointAtLength(c),h=gi(u.x,u.y,t,e);h<a&&(r=u,n=c,a=h)}for(i/=2;i>.5;){let c=n-i,u=this.getPointAtLength(c),h=gi(u.x,u.y,t,e),f=n+i,p=this.getPointAtLength(f),d=gi(p.x,p.y,t,e);c>=0&&h<a?(r=u,n=c,a=h):f<=o&&d<a?(r=p,n=f,a=d):i/=2}const l=this.getPointAtLength(n+(n===o?-.1:.1));return{point:r,rotation:n>=o?Is(l.x,l.y,r.x,r.y):Is(r.x,r.y,l.x,l.y),distance:Math.sqrt(a)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:o}=this.updateTransform();return[t,e].concat(o.reduce((r,n)=>r.concat([n.c1x,n.c1y,n.c2x,n.c2y,n.toX,n.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let o=t[e-2],r=t[e-1],n=0;for(let a=0;a<e;a+=6)n+=mi(t[a],t[a+1],o,r),o=t[a],r=t[a+1];return Math.floor(n)}expendFill(t){const e=this.polymorphPoints,o=e.length;let r=t-o;const n=Math.ceil(t/o),a=[];a.push(["M",e[0],e[1]]);let i=2;for(;i+5<=o-1;){const l=e[i++],c=e[i++],u=e[i++],h=e[i++],f=e[i++],p=e[i++];a.push(["C",l,c,u,h,f,p]);let d=0;for(;d<n&&r>0;)a.push(["C",f,p,f,p,f,p]),r-=6,d++}return a}static mixPoints(t,e,o){const r=t.length,n=new Array(r);for(let a=0;a<r;a++)n[a]=xe(t[a]+(e[a]-t[a])*o,6);return n}static getPathInterpolator(t,e){return o=>Math.abs(o-0)<Number.EPSILON?t:Math.abs(o-1)<Number.EPSILON?e:Ge.fromPolymorphPoints(Ge.mixPoints(new Ge({d:t}).polymorphPoints,new Ge({d:e}).polymorphPoints,o)).toSVGPathData()}}(function(){if(!window.requestAnimationFrame){let s=pe();window.requestAnimationFrame=function(t){const e=pe(),o=Math.max(0,16-(e-s)),r=window.setTimeout(function(){t(e+o)},o);return s=e+o,r}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(s){clearTimeout(s)})})();const ne=s=>{let t=!1;return window.requestAnimationFrame(function e(o){!t&&s(o)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function xi(s,t=0){if(t==0)return s(pe()),()=>{};{const e=pe();return ne(o=>o-e>=t?(s(o),!1):!0)}}function Tg(s,t=0){let e=!1,o=0;const r=pe(),n=a=>{if(e)return;o++;const i=a-r-o*t;s(a,o,t<=i),xi(n,Math.max(0,t-i))};return xi(n,t),()=>{e=!0}}function Sg(s,t=20){const e=1e3/t;let o=0,r;return()=>(pe()-o>=e&&(o=pe(),r=s()),r)}const Cn=new qa;let wi=!1;function rh(s,t,e){if(s&&t&&Cn.set(s,t),wi)return;wi=!0;const o=pe();Pg(r=>{for(wi=!1;(r.timeRemaining()>0||e&&pe()-o>=e)&&Cn.length>0;){const n=Cn.shift();n&&n[1]()}Cn.length>0&&rh()})}let Tn=0,hs=33,Xo=33,ki;const nh=new MessageChannel,Eg=nh.port2;nh.port1.onmessage=s=>{ki!==null&&ki({didTimeout:Tn<=pe(),timeRemaining:()=>Math.max(0,Tn-pe())})};function Pg(s){return ki=s,requestAnimationFrame(t=>{let e=t-Tn+Xo;e<Xo&&hs<Xo?(e<8&&(e=8),Xo=e<hs?hs:e):e>Xo&&hs>Xo?Xo=e<hs?hs:e:hs=e,Tn=t+Xo,Eg.postMessage(null)})}class vr{static _nextId=0;static nextId(){return vr._nextId++}}const ht={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-ht.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?ht.Bounce.In(s*2)*.5:ht.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(o){return t*Math.random()+e*s(o)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},Ci=ht;function Og(s){switch(s){case ht.Quadratic.In:return ht.Quadratic.Out;case ht.Quadratic.Out:return ht.Quadratic.In;case ht.Quadratic.InOut:return ht.Quadratic.InOut;case ht.Cubic.In:return ht.Cubic.Out;case ht.Cubic.Out:return ht.Cubic.In;case ht.Cubic.InOut:return ht.Cubic.InOut;case ht.Quartic.In:return ht.Quartic.Out;case ht.Quartic.Out:return ht.Quartic.In;case ht.Quartic.InOut:return ht.Quartic.InOut;case ht.Quintic.In:return ht.Quintic.Out;case ht.Quintic.Out:return ht.Quintic.In;case ht.Quintic.InOut:return ht.Quintic.InOut;case ht.Sinusoidal.In:return ht.Sinusoidal.Out;case ht.Sinusoidal.Out:return ht.Sinusoidal.In;case ht.Sinusoidal.InOut:return ht.Sinusoidal.InOut;case ht.Exponential.In:return ht.Exponential.Out;case ht.Exponential.Out:return ht.Exponential.In;case ht.Exponential.InOut:return ht.Exponential.InOut;case ht.Circular.In:return ht.Circular.Out;case ht.Circular.Out:return ht.Circular.In;case ht.Circular.InOut:return ht.Circular.InOut;case ht.Elastic.In:return ht.Elastic.Out;case ht.Elastic.Out:return ht.Elastic.In;case ht.Elastic.InOut:return ht.Elastic.InOut;case ht.Back.In:return ht.Back.Out;case ht.Back.Out:return ht.Back.In;case ht.Back.InOut:return ht.Back.InOut;case ht.Bounce.In:return ht.Bounce.Out;case ht.Bounce.Out:return ht.Bounce.In;case ht.Bounce.InOut:return ht.Bounce.InOut;default:return s}}const Rs={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 o=t;o>1;o--)e*=o;return s[t]=e,e}}(),Bernstein:function(s,t){const e=Rs.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,o,r){const n=(e-s)*.5,a=(o-t)*.5,i=r*r,l=r*i;return(2*t-2*e+n+a)*l+(-3*t+3*e-2*n-a)*i+n*r+t},QuadraticBezier:(s,t,e,o)=>{const r=1-o;return r*r*s+2*r*o*t+o*o*e},CubicBezier:(s,t,e,o,r)=>{const n=1-r;return n*n*n*s+3*n*n*r*t+3*n*r*r*e+r*r*r*o}},Linear:function(s,t){const e=s.length-1,o=e*t,r=Math.floor(o),n=Rs.Utils.Linear;return t<0?n(s[0],s[1],o):t>1?n(s[e],s[e-1],e-o):n(s[r],s[r+1>e?e:r+1],o-r)},Bezier:function(s,t){let e=0;const o=s.length-1,r=Math.pow,n=Rs.Utils.Bernstein;for(let a=0;a<=o;a++)e+=r(1-t,o-a)*r(t,a)*s[a]*n(o,a);return e},CatmullRom:function(s,t){const e=s.length-1;let o=e*t,r=Math.floor(o);const n=Rs.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(r=Math.floor(o=e*(1+t))),n(s[(r-1+e)%e],s[r],s[(r+1)%e],s[(r+2)%e],o-r)):t<0?s[0]-(n(s[0],s[0],s[1],s[1],-o)-s[0]):t>1?s[e]-(n(s[e],s[e],s[e-1],s[e-1],o-e)-s[e]):n(s[r?r-1:0],s[r],s[e<r+1?e:r+1],s[e<r+2?e:r+2],o-r)}},Ti=Rs;class ah{_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=pe(),e=!1){const o=Object.keys(this._tweens);for(let r=0;r<o.length;r++){const n=this._tweens[o[r]],a=!e;n&&n.update(t,a)===!1&&!e&&delete this._tweens[o[r]]}return!!Object.keys(this._tweens).length}}const je=new ah;class ih{constructor(t,e=je){this._object=t,this._group=e}_id=vr.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=Ci.Linear.None;_interpolationFunction=Ti.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=pe()){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,o,r){for(const n in o){const a=t[n],i=Array.isArray(a),l=i?"array":typeof a,c=!i&&Array.isArray(o[n]);if(!(l==="undefined"||l==="function")){if(c){let u=o[n];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,a)),o[n]=[a].concat(u)}if((l==="object"||i)&&a&&!c){e[n]=i?[]:{};for(const u in a)e[n][u]=a[u];r[n]=i?[]:{},this._setupProperties(a,e[n],o[n],r[n])}else typeof e[n]>"u"&&(e[n]=a),i||(e[n]*=1),c?r[n]=o[n].slice().reverse():r[n]=e[n]||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=pe()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=pe()){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=je){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=Ci.Linear.None){return this._easingFunction=t,this}interpolation(t=Ti.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=pe(),e=!0){if(this._isPaused)return!0;let o,r;const n=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>n)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 a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(o in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[o]=="string"&&(this._valuesStartRepeat[o]=this._valuesStartRepeat[o]+parseFloat(this._valuesEnd[o])),this._yoyo&&this._swapEndStartRepeatValues(o),this._valuesStart[o]=this._valuesStartRepeat[o];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 i=0,l=this._chainedTweens.length;i<l;i++)this._chainedTweens[i].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,o,r){for(const n in o){if(e[n]===void 0)continue;const a=e[n]||0;let i=o[n];const l=Array.isArray(t[n]),c=Array.isArray(i);!l&&c?t[n]=this._interpolationFunction(i,r):typeof i=="object"&&i?this._updateProperties(t[n],a,i,r):(i=this._handleRelativeValue(a,i),typeof i=="number"&&(t[n]=a+(i-a)*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],o=this._valuesEnd[t];typeof o=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(o):this._valuesStartRepeat[t]=o,this._valuesEnd[t]=e}}const Ig=ih,Rg=vr.nextId,Fg=je.getAll.bind(je),$g=je.removeAll.bind(je),Dg=je.add.bind(je),Lg=je.remove.bind(je),Mg=je.update.bind(je),_t={now:pe,Sequence:vr,Easing:Ci,Interpolation:Ti,Group:ah,Tween:Ig,nextId:Rg,getAll:Fg,removeAll:$g,add:Dg,remove:Lg,update:Mg};class Ag{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=pe(),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=pe();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const lh=Ag;class Oe{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){i0(this.tweens,(e,o)=>t?e.delay>o.delay:e.delay<=o.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(o=>{const r={...o};delete r.tween,r.fromValues={...r.fromValues},r.toValues={...r.toValues},e.push(r)}),e}addTween(t,e,o){const r={fromValues:t,toValues:e,frames:typeof o?.frames=="number"?o.frames:1,delay:typeof o?.delay=="number"?o.delay:this.tweens.length,easeFunction:o?.easeFunction||ht.Linear.None,interpolationFunction:o?.interpolationFunction||Rs.Linear,repeat:typeof o?.repeat=="number"?o.repeat:0,yoyo:o?.yoyo||!1,onStart:o?.onStart||(()=>{}),onUpdate:o?.onUpdate||(()=>{}),onComplete:o?.onComplete||(()=>{})};return this.tweens.push(r),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new lh,o=this.frameDuration;return new Promise(r=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=ne(n=>{if(!this.isPaused){const i=Math.max(0,n-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*o<=l).forEach(c=>{c.tween||(c.tween=new ih({...c.fromValues}).to({...c.toValues},c.frames*o).easing(c.easeFunction).interpolation(c.interpolationFunction).repeat(c.repeat).yoyo(c.yoyo).onStart(c.onStart).onUpdate(c.onUpdate).onComplete(c.onComplete),c.tween.start(i)),(c.delay+c.frames*(c.repeat+1))*o>l?c.tween.update(i):(c.tween.isPlaying()&&c.tween.end(),Um(t,c))})}const a=!!t.length;return a||(this.onGroupComplete?.(),r()),a})})}isPaused=!1;pausedClock=new lh;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(o=>{e=Math.max(e,o.delay+o.frames),o.easeFunction=Og(o.easeFunction);const r={...o.toValues};o.toValues={...o.fromValues},o.fromValues={...r}}),t.forEach(o=>{o.delay=e-o.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}class ee extends cr{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=Ps(),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 o=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",o),this.strokeDashTotalLength=Ua(o).reduce((r,n)=>r+n,0)}return a0(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Ge,Za(()=>{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(o=>{const r=o.originMatrix?o.originMatrix.clone():new Ue;r.translate(-t.x+o.x,-t.y+o.y),o.originMatrix=r});const e=this.originMatrix?this.originMatrix.clone():new Ue;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,o){if(o instanceof vi)return o.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=o.createSVGPoint(),r.x=t,r.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(r);{const n=this.getBoundingClientRect();if(n)return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height}return!1}isPointInStroke(t,e,o){if(o instanceof vi)return o.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=o.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!1}clone(){return Gm(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(([o,r])=>[to(o),r]))):e&&(this.attrs[to(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[to(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[to(t)]}distance(t){return mi(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ze(Is(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:o,dy:r}=xo(Yt(this.degree),e);this.vx=o,this.vy=r,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:o,dy:r}=xo(Yt(this.degree),e);this.ax=o,this.ay=r,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,o=t.y-this.y,r=e*e+o*o,n=Math.sqrt(r),a=this.mass*t.mass/r,i=a*e/n,l=a*o/n;this.vx+=i/this.mass,this.vy+=l/this.mass,t.vx-=i/t.mass,t.vy-=l/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=Yo(t?.gravity,0);this.vy+=e;const o=Yo(t?.friction,1);this.vx*=o,this.vy*=o,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const o=Yo(e?.easing,.05),r=t.x-this.cX-this.x,n=t.y-this.cY-this.y;this.vx=r*o,this.vy=n*o,this.run(e)}runSpringTo(t,e){const o=Yo(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(r=>{const n=r.x-this.cX-this.x,a=r.y-this.cY-this.y,i=n*o,l=a*o;this.vx+=i,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const o=Yo(e?.springLength,100),r=Yo(e?.spring,1e-4),n=t.x-this.x,a=t.y-this.y,i=Math.sqrt(n*n+a*a);if(i<o){const l=n*r,c=a*r;return this.vx+=l/this.mass,this.vy+=c/this.mass,t.vx-=l/t.mass,t.vy-=c/t.mass,1-i/o}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 o=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*o),this.getPointAtLength(e*o)}strokeDashTween(t=1e3,e){const o=this.initPathD(),r=xe(o.getTotalLength(),0);this.setAttr({strokeDasharray:`${r} ${r}`,strokeDashoffset:`${r}`});const n=e?.onUpdate,a=new Oe({frameDuration:t});a.addTween({offset:r},{offset:0},Object.assign(e||{},{onUpdate:(i,l)=>{this.setAttr("strokeDashoffset",""+xe(i.offset,2)),n?.(i,l)}})),a.play()}}class Ng extends ee{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,o){this.cX=t,this.cY=e,this.cZ=o}rotateX(t){({x:this.y,y:this.z}=lo(Yt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=lo(Yt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=lo(Yt(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 pi(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,o=t.y-this.y,r=t.z-this.z;return Math.sqrt(e*e+o*o+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 o=t/e;this.scalar(o)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,o=this.y,r=this.z;return{x:o*t.z-r*t.y,y:r*t.x-e*t.z,z:e*t.y-o*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 Sn=Ng,ch=[1,0,0,1,0,0],uh=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ue{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=ch){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Ue,o=iu("number",t);return o.length===6&&o.forEach((r,n)=>{r.fullMatch&&(e.value[n]=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 He(e)}identity(){return this.value=Array.from(ch),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 Ue([...this.value])}multiply(t){const e=this.clone(),o=t instanceof Ue?t:new Ue(t);return this.m11=o.m11*e.m11+o.m12*e.m21+o.m13*e.m31,this.m12=o.m11*e.m12+o.m12*e.m22+o.m13*e.m32,this.m13=o.m11*e.m13+o.m12*e.m23+o.m13*e.m33,this.m21=o.m21*e.m11+o.m22*e.m21+o.m23*e.m31,this.m22=o.m21*e.m12+o.m22*e.m22+o.m23*e.m32,this.m23=o.m21*e.m13+o.m22*e.m23+o.m23*e.m33,this.m31=o.m31*e.m11+o.m32*e.m21+o.m33*e.m31,this.m32=o.m31*e.m12+o.m32*e.m22+o.m33*e.m32,this.m33=o.m31*e.m13+o.m32*e.m23+o.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,o=this.m13,r=this.m21,n=this.m22,a=this.m23,i=this.m31,l=this.m32,c=this.m33,u=c*n-a*l,h=-c*r+a*i,f=l*r-n*i;let p=t*u+e*h+o*f;return p?(p=1/p,this.m11=u*p,this.m12=(-c*e+o*l)*p,this.m13=(a*e-o*n)*p,this.m21=h*p,this.m22=(c*t-o*i)*p,this.m23=(-a*t+o*r)*p,this.m31=f*p,this.m32=(-l*t+e*i)*p,this.m33=(n*t-e*r)*p,this):null}adjugate(){const t=new Ue;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=ze(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:ze(Math.atan2(-this.m21,this.m22)),skewY:ze(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],o=this.value[1],r=this.value[2],n=this.value[3],a=this.value[4],i=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],p=t.value[5],d=l*h,b=c*u,_=(u*o-e*h)/(b-d),v=(l*o-e*c)/(d-b),w=(u*n-r*h)/(b-d),g=(l*n-r*c)/(d-b),m=(u*(i-p)+h*(f-a))/(b-d),k=(l*(i-p)+c*(f-a))/(d-b),C=[_,v,w,g,m,k];return new Ue(C)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>xe(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,o){return this.matrix3d.translate(t,e,o),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,o){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,o-this.matrix3d.m43),this}rotate(t,e=0,o=0){const r=Yt(t),n=Math.cos(r),a=Math.sin(r);return this.translate(e,o),this.multiply([n,a,-a,n,0,0]),this.translate(-e,-o),this.toMatrix3D(),this}rotateTo(t,e=0,o=0){const{degree:r}=this.split();return this.rotate(t-r,e,o),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,o){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(o),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,o){const{degreeX:r,degreeY:n,degreeZ:a}=this.matrix3d.split();return this.rotate3d(t-r,e-n,o-a),this}scale(t,e=t,o=0,r=0){return this.translate(o,r),this.multiply([t,0,0,e,0,0]),this.translate(-o,-r),this.toMatrix3D(),this}scaleTo(t,e=t,o=0,r=0){return this.scale(t/this.m11,e/this.m22,o,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,o=t){return this.matrix3d.scale(t,e,o),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,o=t){const{scalarX:r,scalarY:n,scalarZ:a}=this.matrix3d.split();return this.scale3d(t/r,e/n,o/a),this}skew(t,e=t){return this.multiply([Math.cos(Yt(e)),Math.sin(Yt(e)),-Math.sin(Yt(t)),Math.cos(Yt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:o,skewY:r}=this.split();return this.skew(t-o,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,o){return this}skew3dTo(t,e,o){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class He{value;is3dSpecial=!1;constructor(t=uh){this.value=Array.from(t)}static fromString(t){const e=new He,o=iu("number",t);return o.length===16&&o.forEach((r,n)=>{r.fullMatch&&(e.value[n]=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(uh),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 He([...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,o=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+o*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+o*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+o*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+o*this.m44}}toMatrix(t){const{scalarX:e,scalarY:o,skewX:r,skewY:n,x:a,y:i}=this.split(),l=[e,n,r,o,a,i];return t?(t.value=l,t):new Ue(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=>xe(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),o=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),r=ze(re(Math.asin(-this.m13),-1,1));let n=ze(Math.atan2(this.m23,this.m33));Math.cos(Yt(r))===0&&(n=ze(Math.atan2(-this.m31,this.m22)));let a=ze(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(a+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:o,degreeX:n,degreeY:r,degreeZ:a,skewX:ze(this.m14),skewY:ze(this.m24),skewZ:ze(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,o=this.m12,r=this.m13,n=this.m14,a=this.m21,i=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,p=this.m34,d=this.m41,b=this.m42,_=this.m43,v=this.m44;t[0]=l*p*b-c*f*b+c*h*_-i*p*_-l*h*v+i*f*v,t[1]=n*f*b-r*p*b-n*h*_+o*p*_+r*h*v-o*f*v,t[2]=r*c*b-n*l*b+n*i*_-o*c*_-r*i*v+o*l*v,t[3]=n*l*h-r*c*h-n*i*f+o*c*f+r*i*p-o*l*p;const w=e*t[0]+a*t[1]+u*t[2]+d*t[3];if(w==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*d-l*p*d-c*u*_+a*p*_+l*u*v-a*f*v,t[5]=r*p*d-n*f*d+n*u*_-e*p*_-r*u*v+e*f*v,t[6]=n*l*d-r*c*d-n*a*_+e*c*_+r*a*v-e*l*v,t[7]=r*c*u-n*l*u+n*a*f-e*c*f-r*a*p+e*l*p,t[8]=i*p*d-c*h*d+c*u*b-a*p*b-i*u*v+a*h*v,t[9]=n*h*d-o*p*d-n*u*b+e*p*b+o*u*v-e*h*v,t[10]=o*c*d-n*i*d+n*a*b-e*c*b-o*a*v+e*i*v,t[11]=n*i*u-o*c*u-n*a*h+e*c*h+o*a*p-e*i*p,t[12]=l*h*d-i*f*d-l*u*b+a*f*b+i*u*_-a*h*_,t[13]=o*f*d-r*h*d+r*u*b-e*f*b-o*u*_+e*h*_,t[14]=r*i*d-o*l*d-r*a*b+e*l*b+o*a*_-e*i*_,t[15]=o*l*u-r*i*u+r*a*h-e*l*h-o*a*f+e*i*f,this.value=t,this.scalar(1/w)}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,o=0){return this.multiply(new He([1,0,0,0,0,1,0,0,0,0,1,0,t,e,o,1]))}scale(t=1,e=1,o=1){return this.multiply(new He([t,0,0,0,0,e,0,0,0,0,o,0,0,0,0,1]))}rotateX(t){const e=Yt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new He([1,0,0,0,0,o,r,0,0,-r,o,0,0,0,0,1]))}rotateY(t){const e=Yt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new He([o,0,-r,0,0,1,0,0,r,0,o,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Yt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new He([o,r,0,0,-r,o,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,o=0){return this.multiply(new He([1,0,0,Yt(t),0,1,0,Yt(e),0,0,1,Yt(o),0,0,0,1]))}perspective(t){return this.multiply(new He([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,o=t.x*this.m12+t.y*this.m22+this.m42,r=t.x*this.m13+t.y*this.m23+this.m43,n=t.x*this.m14+t.y*this.m24+this.m44,a=e+this.m31,i=o+this.m32,l=r+this.m33,c=n+this.m34;n==0&&(n=1e-4),e/=n,o/=n,r/=n,c==0&&(c=1e-4),a/=c,i/=c,l/=c;const u=l-r;if(u==0)return{x:e,y:o,z:r,mass:n};const h=-r/u;return e+=h*(a-e),o+=h*(i-o),{x:e,y:o,z:r,mass:n}}project(t){const e=t.z;let o=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,n=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return n==0&&(n=1e-4),o/=n,r/=n,n<0&&(o-=this.m41,r-=this.m42,o*=1/n,r*=1/n,o+=this.m41,r+=this.m42),{x:o,y:r,z:e,mass:n}}bounds(t,e,o,r){const n=new Sn({x:t,y:e}),a=new Sn({x:t+o,y:e}),i=new Sn({x:t+o,y:e+r}),l=new Sn({x:t,y:e+r});({x:n.x,y:n.y,z:n.z,mass:n.mass}=this.project(n)),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:i.x,y:i.y,z:i.z,mass:i.mass}=this.project(i),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(n.x,a.x,i.x,l.x),u=Math.min(n.y,a.y,i.y,l.y),h=Math.max(n.x,a.x,i.x,l.x)-c,f=Math.max(n.y,a.y,i.y,l.y)-u;return{x:c,y:u,width:h,height:f}}}function hh(s){const t=new Ue;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,o,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const n=[];for(let a=0,i=r.length;a<i;a++)r[a].trim()&&n.push(parseFloat(""+r[a]));switch(o.toLowerCase()){case"t":case"translate":t.translate(n[0],n[1]);break;case"translatex":t.translateX(n[0]);break;case"translatey":t.translateY(n[0]);break;case"translatez":t.translateZ(n[0]);break;case"translate3d":t.translate3d(n[0],n[1],n[2]);break;case"r":case"rotate":t.rotate(n[0],n[1]??0,n[2]??0);break;case"rotatex":t.rotateX(n[0]);break;case"rotatey":t.rotateY(n[0]);break;case"rotatez":t.rotateZ(n[0]);break;case"rotate3d":t.rotate3d(n[0],n[1],n[2]);break;case"s":case"scale":t.scale(n[0],n[1]??n[0]);break;case"scalex":t.scaleX(n[0]);break;case"scaley":t.scaleY(n[0]);break;case"scalez":t.scaleZ(n[0]);break;case"scale3d":t.scale3d(n[0],n[1],n[2]);break;case"skew":t.skew(n[0],n[1]??0);break;case"skewx":t.skewX(n[0]);break;case"skewy":t.skewY(n[0]);break;case"skewz":t.skewZ(n[0]);break;case"skew3d":t.skew3d(n[0],n[1],n[2]);break;case"m":case"matrix":t.multiply([n[0],n[1],n[2],n[3],n[4],n[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new He(n)),t.matrix3d.toMatrix(t);break}return""}),t}function lo(s,t,e){const o=new Ue;return o.rotate(ze(s)),o.transformPoint({x:t,y:e})}class co extends ee{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(o=>{!o.independentTransformInGroup&&!o.isDragging&&(o.x=this.x+o.diffXInGroup,o.y=this.y+o.diffYInGroup,o.degree=this.degree+o.diffDegreeInGroup,o.scalarX=this.scalarX*o.diffScalarXInGroup,o.scalarY=this.scalarY*o.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(o=>o.id==e.id)==-1&&(e.on("draging",(o,r)=>{this.enableDrag&&(this.x+=o,this.y+=r,this.emit("draging",o,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 o=this.pathd?.getBoundingClientRect();if(o&&(o.width||o.height)&&(t.push(o.x,o.x+o.width),e.push(o.y,o.y+o.height)),t.length==0||e.length==0)return null;const r=Math.min.apply(0,t),n=Math.min.apply(0,e),a=Math.max.apply(0,t),i=Math.max.apply(0,e);return{x:r,y:n,width:a-r,height:i-n}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(o=>{o.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(o=>{o.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,o=this.shapes.length;if(e<o)return t.expendFill(this);for(let r=o;r<e;r++){const a=t.shapes[r].initPathD().polymorphPoints,i=a[0],l=a[1],c=[["M",i,l]];for(let u=2;u+5<a.length;u+=6)c.push(["C",i,l,i,l,i,l]);this.addShape(new ee({attrs:{...t.shapes[r].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const o=this.shapes.length-1;this.shapes.forEach((i,l)=>{i.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==o&&e?.onGroupComplete?.()}})});break;case"parallel":default:const r=new Oe({frameDuration:t}),n={},a={};this.shapes.forEach((i,l)=>{const c=xe(i.getTotalLength(),0);n[`offset_${l}`]=c,a[`offset_${l}`]=0,i.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),r.addTween(n,a,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(i,l)=>{for(let c in i){const u=io(c).number;this.shapes[u].setAttr("strokeDashoffset",""+xe(i[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),r.play();break}}}const Fs=co,zg=getComputedStyle(document.documentElement);function Lt(s){return zg.getPropertyValue(s)}const yt={safeAreaTop:Lt("--safe-area-inset-top"),safeAreaRight:Lt("--safe-area-inset-right"),safeAreaBottom:Lt("--safe-area-inset-bottom"),safeAreaLeft:Lt("--safe-area-inset-left"),colorPrimary:Lt("--color-primary")||"#5078f0",colorRed:Lt("--color-red")||"#ff5050",colorOrange:Lt("--color-orange")||"#fa8c00",colorYellow:Lt("--color-yellow")||"#fadc32",colorGreen:Lt("--color-green")||"#00c878",colorBlue:Lt("--color-blue")||"#00b4fa",colorPurple:Lt("--color-purple")||"#6464fa",colorBlack:Lt("--color-black")||"#001428",colorGray00:Lt("--color-gray-00")||"#000000",colorGray33:Lt("--color-gray-33")||"#333333",colorGray66:Lt("--color-gray-66")||"#666666",colorGray99:Lt("--color-gray-99")||"#999999",colorGrayCC:Lt("--color-gray-cc")||"#cccccc",colorGrayDD:Lt("--color-gray-dd")||"#dddddd",colorGrayE6:Lt("--color-gray-e6")||"#e6e6e6",colorGrayEE:Lt("--color-gray-ee")||"#eeeeee",colorGrayEF:Lt("--color-gray-ef")||"#efefef",colorGrayF5:Lt("--color-gray-f5")||"#f5f5f5",colorGrayFF:Lt("--color-gray-ff")||"#ffffff",fontLineHeight:Lt("--font-line-height")||"1.4",fontSize32:Lt("--font-size-32")||"32px",fontSize24:Lt("--font-size-24")||"24px",fontSize22:Lt("--font-size-22")||"22px",fontSize20:Lt("--font-size-20")||"20px",fontSize18:Lt("--font-size-18")||"18px",fontSize16:Lt("--font-size-16")||"16px",fontSize14:Lt("--font-size-14")||"14px",fontSize12:Lt("--font-size-12")||"12px",fontSize10:Lt("--font-size-10")||"10px",d4:Lt("--distance-4")||"4px",d8:Lt("--distance-8")||"8px",d12:Lt("--distance-12")||"12px",d16:Lt("--distance-16")||"16px",d20:Lt("--distance-20")||"20px",d32:Lt("--distance-32")||"32px",d40:Lt("--distance-40")||"40px",d44:Lt("--distance-44")||"44px"};class Ot{__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=Si(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=re(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=re(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=re(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=re(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,e,o){return this.r=t,this.g=e,this.b=o,this}setRGBA(t,e,o,r){return this.r=t,this.g=e,this.b=o,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},${xe(this.a,6)})`}clone(){return new Ot(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",o="#ffffff"){if(t)return new Ot(this.r*.299+this.g*.587+this.b*.114>186?e:o);{const r=this.clone();return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,r}}lighten(t){t=re(Math.abs(t),0,1);let{r:e,g:o,b:r}=this.color;return e+=(255-e)*t,o+=(255-o)*t,r+=(255-r)*t,new Ot().setRGBA(e,o,r,this.color.a)}darken(t){t=re(Math.abs(t),0,1);let{r:e,g:o,b:r}=this.color;return e=e*(1-t),o=o*(1-t),r=r*(1-t),new Ot().setRGBA(e,o,r,this.color.a)}static gradient(t,e,o){try{const r=Si(t),n=Si(e);return new Ot().setRGB((n.r-r.r)*o+r.r,(n.g-r.g)*o+r.g,(n.b-r.b)*o+r.b)}catch{return new Ot(e)}}static random(){return new Ot(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:o,a:r}=this.color,n=Math.max(t,e,o),a=Math.min(t,e,o),i=n-a;let l;return t===n?l=(e-o)/i:e===n?l=2+(o-t)/i:l=4+(t-e)/i,l/=6,l<0&&(l+=1),{h:i==0?0:l*360,s:n===0?0:i/n,v:n/255,a:r}}set h(t){const e=this.hsv;e.h=re(t,0,360),this.setColor(e)}get h(){return this.hsv.h}set s(t){const e=this.hsv;e.s=re(t,0,1),this.setColor(e)}get s(){return this.hsv.s}set v(t){const e=this.hsv;e.v=re(t,0,1),this.setColor(e)}get v(){return this.hsv.v}}function ge(s,t){return new Ot(s,t)}function Si(s){const t=Object.prototype.hasOwnProperty.call(s,"a")?re(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=re(Math.round(s.r),0,255),s.g=re(Math.round(s.g),0,255),s.b=re(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 o=re(s.h,0,360),r=re(s.s,0,1),n=re(s.v,0,1),a=Math.floor(o/60)%6,i=o/60-Math.floor(o/60),l=n*(1-r),c=n*(1-i*r),u=n*(1-(1-i)*r),h=[[n,u,l],[c,n,l],[l,n,u],[l,c,n],[u,l,n],[n,l,c]][a];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 o=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);if(o)e.r=parseInt(o[1]),e.g=parseInt(o[2]),e.b=parseInt(o[3]),o[4]&&(e.a=parseFloat(o[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=re(e.r,0,255),e.g=re(e.g,0,255),e.b=re(e.b,0,255),e.a=re(e.a,0,1),e}const Bg=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],Go={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};Go.buttonColor=new Ot(Go.saveRowColor).darken(.1).toString(),Go.borderColor=new Ot(Go.backgroundColor).lighten(.07).toString(),Go.inputColor=new Ot(Go.backgroundColor).lighten(.085).toString();class ve extends ee{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,o=this.toY-this.y;return new Proxy(this,{set(r,n,a,i){switch(n){case"x":r.toX=a+e;break;case"y":r.toY=a+o;break;case"toX":e=a-r.x;break;case"toY":o=a-r.y;break}return Reflect.set(r,n,a,i)}})}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 eh({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),o=new eh({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(o)}}class En extends ee{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,o=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,o-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}var dh={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
38
|
+
`.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":t=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":t=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t},ao=(s,t)=>(typeof s=="string"&&(s=an(s)||new RegExp(s)),s.test(t)),au=(s,t)=>{typeof s=="string"&&(s=an(s)||new RegExp(s));const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(o=>({matchIndex:-1,fullMatch:o,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},iu=(s,t)=>{typeof s=="string"&&(s=an(s)||new RegExp(s));const e=[],o=t.matchAll(s);for(const r of o)e.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return e};function Bm(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function lu(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function Ps(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let o="";for(let r=0;r<s;r++)o+=t[Math.floor(Math.random()*e)];return o}function Ym(s){return s.replace(/(^\w)/g,t=>t.toLowerCase())}const to=(s,t="-")=>{let e=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function Vm(s){return s.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function cu(s){return Ym(Vm(s))}const uu=(s,t="")=>(s=s.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,t),s);function Xm(s){return s!=null}function Gm(s,...t){return new s.constructor(...t)}function hu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function du(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function lr(s=[],t=[]){const e=s.length,o=t.length;for(let n=0;n<o;n++)s[n]=t[n];let r=Math.max(0,e-o);for(;r>0;)s.pop(),r--;return s}function Um(s,t){const e=s.findIndex(o=>o===t);return e>=0&&s.splice(e,1),s}let fu;try{fu=Map}catch{fu=function(){}}let pu;try{pu=Set}catch{pu=function(){}}function Yo(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function ln(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const ne=(s,t,e)=>s<t?t:s>e?e:s;function jm(s,t,e,o,r){return o+(r-o)*((s-t)/(e-t))}const mu=(s,t,e)=>o=>{const r=ne(o,s,t);return e==0?r:t-r<e?t:Math.round(r/e)*e};function Hm(s,t=12){return Yo(s).toFixed(t)}function xe(s,t=12){return+Hm(s,t)}function io(s,t){const e=au("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Xm(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 Ua(s){const t=au("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Wm(s=0,t=100){return Math.random()*(t-s)+s}function Qt(s=0,t=100){return Math.floor(Wm(s,t))}Zm();function Zm(){const s=new ArrayBuffer(4),t=new Float32Array(s),e=new Uint32Array(s),o=new Uint32Array(512),r=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(o[l]=0,o[l|256]=32768,r[l]=24,r[l|256]=24):c<-14?(o[l]=1024>>-c-14,o[l|256]=1024>>-c-14|32768,r[l]=-c-1,r[l|256]=-c-1):c<=15?(o[l]=c+15<<10,o[l|256]=c+15<<10|32768,r[l]=13,r[l|256]=13):c<128?(o[l]=31744,o[l|256]=64512,r[l]=24,r[l|256]=24):(o[l]=31744,o[l|256]=64512,r[l]=13,r[l|256]=13)}const n=new Uint32Array(2048),a=new Uint32Array(64),i=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,n[l]=c|u}for(let l=1024;l<2048;++l)n[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)a[l]=l<<23;a[31]=1199570944,a[32]=2147483648;for(let l=33;l<63;++l)a[l]=2147483648+(l-32<<23);a[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(i[l]=1024);return{floatView:t,uint32View:e,baseTable:o,shiftTable:r,mantissaTable:n,exponentTable:a,offsetTable:i}}var gu=(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))(gu||{}),cn=(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))(cn||{});const yu=(s,t,e)=>t?e===cn.base64?new Blob([s],{type:`${t};${e}`}):e===cn.utf8?new Blob([s],{type:`${t};charset=${e}`}):new Blob([s],{type:`${t}`}):new Blob([s]);function pe(){return(performance||Date).now()}function qm(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 ja(s){let t=qm(s)/1e3;const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const o=t%60;s[3]=o%10,s[2]=Math.floor(o/10),t=Math.floor(t/60);const r=t%60%24;return s[1]=r%10,s[0]=Math.floor(r/10),s}function Qm(s){const t=[0,0,0,0,0,0],e=Ua(s);for(let o=0,r=Math.min(e.length,3);o<r;o++){const n=Math.floor(Math.abs(e[o]));t[2*o+1]=n%10,t[2*o]=Math.floor(n/10)}return ja(t)}function Ha(s,t=1){return s[5]+=t,ja(s)}function Wa(s,t=1){return s[5]-=t,ja(s)}function Km(s,t){s.forEach((e,o)=>{t[o]=e})}function Jm(s,t){const e=t.reduce((o,r)=>{const{match:n,error:a}=r;return n(s)||o.push(a),o},[]);return{valid:e.length===0,errors:e}}function t0(s="xxx不能为空!"){return{match:t=>!!t,error:s}}function e0(s="邮箱格式不正确!"){return{match:t=>ao("email",t),error:s}}class o0{criterias=[];constructor(t=[]){t.forEach(e=>this.add(e))}add(...t){this.criterias.push(...t)}clear(){this.criterias=[]}get(){return t=>Jm(t,this.criterias)}run(t){return this.get()(t)}}function Os(s){return new o0([t0("邮箱不能为空!"),e0("邮箱格式不正确!")]).run(s)}function vu(s,t){let e=!0;return function(...o){e&&(e=!1,s.apply(this,o),setTimeout(()=>{e=!0},t))}}function s0(s,t){let e;return function(...o){clearTimeout(e),e=setTimeout(()=>{s.apply(this,o)},t)}}class cr{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(o=>o!==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(o=>{o(...e)}),this}once(t,e){const r=(()=>{let n=!1;return(...a)=>{n||(n=!0,e(...a),this.off(t,r))}})();return this.on(t,r),this}}class un extends cr{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())),o=this.results.length;e.forEach((r,n)=>{if(r.status=="fulfilled"){const a=r.value;this.results.push(a),this.controller?.enqueue(a),this.emit("success",o+n,a)}else if(r.status=="rejected"){const a=new Error(r.reason);this.results.push(a),this.controller?.enqueue(a),this.emit("error",o+n,a)}}),this.activeTaskCount-=e.length}}}Array.prototype.ap=function(s){return this.reduce((t,e)=>t.concat(s.map(e)),[])};let ur;function Za(s){ur=s,s(),ur=null}class r0{subscribers=new Set;add(){ur&&!this.subscribers.has(ur)&&this.subscribers.add(ur)}notify(){this.subscribers.forEach(t=>t())}}const bu=new WeakMap;function _u(s,t){let e=bu.get(s);e||(e=new Map,bu.set(s,e));let o=e.get(t);return o||(o=new r0,e.set(t,o)),o}function n0(s){const t={get(e,o,r){return _u(s,o).add(),Reflect.get(e,o,r)},set(e,o,r,n){const a=_u(s,o),i=Reflect.get(e,o,n),l=Reflect.set(e,o,r,n);return i!=r&&a.notify(),l}};return new Proxy(s,t)}const a0=n0;class qa{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,o]=t[0];return this.delete(e),[e,o]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}clear(){this.maps.clear(),this.mapsAddedDuringUpdate.clear()}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate.clear();for(let o=0,r=e.length;o<r;o++){const[n,a]=e[o];t(n,a)===!1&&this.delete(n)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function i0(s,t=(e,o)=>e<=o){const e=s.length;let o=Math.floor(e/2);for(;o>0;){for(let r=o;r<e;r++){const n=s[r];let a=r;for(;a>=o&&!t(s[a-o],n);)s[a]=s[a-o],a-=o;s[a]=n}o=Math.floor(o/2)}}let xu;try{xu=Promise}catch{xu=function(){}}const hr=/^[a-z0-9]+(-[a-z0-9]+)*$/,hn=(s,t,e,o="")=>{const r=s.split(":");if(s.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const i=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:o,prefix:l,name:i};return t&&!dn(c)?null:c}const n=r[0],a=n.split("-");if(a.length>1){const i={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!dn(i)?null:i}if(e&&o===""){const i={provider:o,prefix:"",name:n};return t&&!dn(i,e)?null:i}return null},dn=(s,t)=>s?!!((s.provider===""||s.provider.match(hr))&&(t&&s.prefix===""||s.prefix.match(hr))&&s.name.match(hr)):!1,wu=Object.freeze({left:0,top:0,width:16,height:16}),fn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),pn=Object.freeze({...wu,...fn}),Qa=Object.freeze({...pn,body:"",hidden:!1});function l0(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const o=((s.rotate||0)+(t.rotate||0))%4;return o&&(e.rotate=o),e}function ku(s,t){const e=l0(s,t);for(const o in Qa)o in fn?o in s&&!(o in e)&&(e[o]=fn[o]):o in t?e[o]=t[o]:o in s&&(e[o]=s[o]);return e}function c0(s,t){const e=s.icons,o=s.aliases||Object.create(null),r=Object.create(null);function n(a){if(e[a])return r[a]=[];if(!(a in r)){r[a]=null;const i=o[a]&&o[a].parent,l=i&&n(i);l&&(r[a]=[i].concat(l))}return r[a]}return(t||Object.keys(e).concat(Object.keys(o))).forEach(n),r}function u0(s,t,e){const o=s.icons,r=s.aliases||Object.create(null);let n={};function a(i){n=ku(o[i]||r[i],n)}return a(t),e.forEach(a),ku(s,n)}function Cu(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 o=c0(s);for(const r in o){const n=o[r];n&&(t(r,u0(s,r,n)),e.push(r))}return e}const h0={provider:"",aliases:{},not_found:{},...wu};function Ka(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function Tu(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Ka(s,h0))return null;const e=t.icons;for(const r in e){const n=e[r];if(!r.match(hr)||typeof n.body!="string"||!Ka(n,Qa))return null}const o=t.aliases||Object.create(null);for(const r in o){const n=o[r],a=n.parent;if(!r.match(hr)||typeof a!="string"||!e[a]&&!o[a]||!Ka(n,Qa))return null}return t}const Su=Object.create(null);function d0(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function cs(s,t){const e=Su[s]||(Su[s]=Object.create(null));return e[t]||(e[t]=d0(s,t))}function Ja(s,t){return Tu(t)?Cu(t,(e,o)=>{o?s.icons[e]=o:s.missing.add(e)}):[]}function f0(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let dr=!1;function Eu(s){return typeof s=="boolean"&&(dr=s),dr}function p0(s){const t=typeof s=="string"?hn(s,!0,dr):s;if(t){const e=cs(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function m0(s,t){const e=hn(s,!0,dr);if(!e)return!1;const o=cs(e.provider,e.prefix);return f0(o,e.name,t)}function g0(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),dr&&!t&&!s.prefix){let r=!1;return Tu(s)&&(s.prefix="",Cu(s,(n,a)=>{a&&m0(n,a)&&(r=!0)})),r}const e=s.prefix;if(!dn({provider:t,prefix:e,name:"a"}))return!1;const o=cs(t,e);return!!Ja(o,s)}const Pu=Object.freeze({width:null,height:null}),Ou=Object.freeze({...Pu,...fn}),y0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,v0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Iu(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 o=s.split(y0);if(o===null||!o.length)return s;const r=[];let n=o.shift(),a=v0.test(n);for(;;){if(a){const i=parseFloat(n);isNaN(i)?r.push(n):r.push(Math.ceil(i*t*e)/e)}else r.push(n);if(n=o.shift(),n===void 0)return r.join("");a=!a}}function b0(s,t="defs"){let e="";const o=s.indexOf("<"+t);for(;o>=0;){const r=s.indexOf(">",o),n=s.indexOf("</"+t);if(r===-1||n===-1)break;const a=s.indexOf(">",n);if(a===-1)break;e+=s.slice(r+1,n).trim(),s=s.slice(0,o).trim()+s.slice(a+1)}return{defs:e,content:s}}function _0(s,t){return s?"<defs>"+s+"</defs>"+t:t}function x0(s,t,e){const o=b0(s);return _0(o.defs,t+o.content+e)}const w0=s=>s==="unset"||s==="undefined"||s==="none";function k0(s,t){const e={...pn,...s},o={...Ou,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let n=e.body;[e,o].forEach(b=>{const _=[],v=b.hFlip,w=b.vFlip;let g=b.rotate;v?w?g+=2:(_.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),_.push("scale(-1 1)"),r.top=r.left=0):w&&(_.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),_.push("scale(1 -1)"),r.top=r.left=0);let m;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:m=r.height/2+r.top,_.unshift("rotate(90 "+m.toString()+" "+m.toString()+")");break;case 2:_.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:m=r.width/2+r.left,_.unshift("rotate(-90 "+m.toString()+" "+m.toString()+")");break}g%2===1&&(r.left!==r.top&&(m=r.left,r.left=r.top,r.top=m),r.width!==r.height&&(m=r.width,r.width=r.height,r.height=m)),_.length&&(n=x0(n,'<g transform="'+_.join(" ")+'">',"</g>"))});const a=o.width,i=o.height,l=r.width,c=r.height;let u,h;a===null?(h=i===null?"1em":i==="auto"?c:i,u=Iu(h,l/c)):(u=a==="auto"?l:a,h=i===null?Iu(u,c/l):i==="auto"?c:i);const f={},p=(b,_)=>{w0(_)||(f[b]=_.toString())};p("width",u),p("height",h);const d=[r.left,r.top,l,c];return f.viewBox=d.join(" "),{attributes:f,viewBox:d,body:n}}const C0=/\sid="(\S+)"/g,T0="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let S0=0;function E0(s,t=T0){const e=[];let o;for(;o=C0.exec(s);)e.push(o[1]);if(!e.length)return s;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{const a=typeof t=="function"?t(n):t+(S0++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),s=s.replace(new RegExp(r,"g"),""),s}const ti=Object.create(null);function P0(s,t){ti[s]=t}function ei(s){return ti[s]||ti[""]}function oi(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 si=Object.create(null),fr=["https://api.simplesvg.com","https://api.unisvg.com"],mn=[];for(;fr.length>0;)fr.length===1||Math.random()>.5?mn.push(fr.shift()):mn.push(fr.pop());si[""]=oi({resources:["https://api.iconify.design"].concat(mn)});function O0(s,t){const e=oi(t);return e===null?!1:(si[s]=e,!0)}function ri(s){return si[s]}let Ru=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function I0(s,t){const e=ri(s);if(!e)return 0;let o;if(!e.maxURL)o=0;else{let r=0;e.resources.forEach(a=>{r=Math.max(r,a.length)});const n=t+".json?icons=";o=e.maxURL-r-e.path.length-n.length}return o}function R0(s){return s===404}const F0=(s,t,e)=>{const o=[],r=I0(s,t),n="icons";let a={type:n,provider:s,prefix:t,icons:[]},i=0;return e.forEach((l,c)=>{i+=l.length+1,i>=r&&c>0&&(o.push(a),a={type:n,provider:s,prefix:t,icons:[]},i=l.length),a.icons.push(l)}),o.push(a),o};function $0(s){if(typeof s=="string"){const t=ri(s);if(t)return t.path}return"/"}const D0={prepare:F0,send:(s,t,e)=>{if(!Ru){e("abort",424);return}let o=$0(t.provider);switch(t.type){case"icons":{const n=t.prefix,i=t.icons.join(","),l=new URLSearchParams({icons:i});o+=n+".json?"+l.toString();break}case"custom":{const n=t.uri;o+=n.slice(0,1)==="/"?n.slice(1):n;break}default:e("abort",400);return}let r=503;Ru(s+o).then(n=>{const a=n.status;if(a!==200){setTimeout(()=>{e(R0(a)?"abort":"next",a)});return}return r=501,n.json()}).then(n=>{if(typeof n!="object"||n===null){setTimeout(()=>{n===404?e("abort",n):e("next",r)});return}setTimeout(()=>{e("success",n)})}).catch(()=>{e("next",r)})}};function L0(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.sort((r,n)=>r.provider!==n.provider?r.provider.localeCompare(n.provider):r.prefix!==n.prefix?r.prefix.localeCompare(n.prefix):r.name.localeCompare(n.name));let o={provider:"",prefix:"",name:""};return s.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const n=r.provider,a=r.prefix,i=r.name,l=e[n]||(e[n]=Object.create(null)),c=l[a]||(l[a]=cs(n,a));let u;i in c.icons?u=t.loaded:a===""||c.missing.has(i)?u=t.missing:u=t.pending;const h={provider:n,prefix:a,name:i};u.push(h)}),t}function Fu(s,t){s.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(r=>r.id!==t))})}function M0(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 o=s.provider,r=s.prefix;t.forEach(n=>{const a=n.icons,i=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(s.icons[c])a.loaded.push({provider:o,prefix:r,name:c});else if(s.missing.has(c))a.missing.push({provider:o,prefix:r,name:c});else return e=!0,!0;return!1}),a.pending.length!==i&&(e||Fu([s],n.id),n.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),n.abort))})}))}let A0=0;function N0(s,t,e){const o=A0++,r=Fu.bind(null,e,o);if(!t.pending.length)return r;const n={id:o,icons:t,callback:s,abort:r};return e.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(n)}),r}function z0(s,t=!0,e=!1){const o=[];return s.forEach(r=>{const n=typeof r=="string"?hn(r,t,e):r;n&&o.push(n)}),o}var B0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Y0(s,t,e,o){const r=s.resources.length,n=s.random?Math.floor(Math.random()*r):s.index;let a;if(s.random){let C=s.resources.slice(0);for(a=[];C.length>1;){const z=Math.floor(Math.random()*C.length);a.push(C[z]),C=C.slice(0,z).concat(C.slice(z+1))}a=a.concat(C)}else a=s.resources.slice(n).concat(s.resources.slice(0,n));const i=Date.now();let l="pending",c=0,u,h=null,f=[],p=[];typeof o=="function"&&p.push(o);function d(){h&&(clearTimeout(h),h=null)}function b(){l==="pending"&&(l="aborted"),d(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function _(C,z){z&&(p=[]),typeof C=="function"&&p.push(C)}function v(){return{startTime:i,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:_,abort:b}}function w(){l="failed",p.forEach(C=>{C(void 0,u)})}function g(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function m(C,z,tt){const R=z!=="success";switch(f=f.filter(D=>D!==C),l){case"pending":break;case"failed":if(R||!s.dataAfterTimeout)return;break;default:return}if(z==="abort"){u=tt,w();return}if(R){u=tt,f.length||(a.length?k():w());return}if(d(),g(),!s.random){const D=s.resources.indexOf(C.resource);D!==-1&&D!==s.index&&(s.index=D)}l="completed",p.forEach(D=>{D(tt)})}function k(){if(l!=="pending")return;d();const C=a.shift();if(C===void 0){if(f.length){h=setTimeout(()=>{d(),l==="pending"&&(g(),w())},s.timeout);return}w();return}const z={status:"pending",resource:C,callback:(tt,R)=>{m(z,tt,R)}};f.push(z),c++,h=setTimeout(k,s.rotate),e(C,t,z.callback)}return setTimeout(k),v}function $u(s){const t={...B0,...s};let e=[];function o(){e=e.filter(i=>i().status==="pending")}function r(i,l,c){const u=Y0(t,i,l,(h,f)=>{o(),c&&c(h,f)});return e.push(u),u}function n(i){return e.find(l=>i(l))||null}return{query:r,find:n,setIndex:i=>{t.index=i},getIndex:()=>t.index,cleanup:o}}function Du(){}const ni=Object.create(null);function V0(s){if(!ni[s]){const t=ri(s);if(!t)return;const e=$u(t),o={config:t,redundancy:e};ni[s]=o}return ni[s]}function X0(s,t,e){let o,r;if(typeof s=="string"){const n=ei(s);if(!n)return e(void 0,424),Du;r=n.send;const a=V0(s);a&&(o=a.redundancy)}else{const n=oi(s);if(n){o=$u(n);const a=s.resources?s.resources[0]:"",i=ei(a);i&&(r=i.send)}}return!o||!r?(e(void 0,424),Du):o.query(t,r,e)().abort}const Lu="iconify2",pr="iconify",Mu=pr+"-count",Au=pr+"-version",Nu=36e5,G0=168,U0=50;function ai(s,t){try{return s.getItem(t)}catch{}}function ii(s,t,e){try{return s.setItem(t,e),!0}catch{}}function zu(s,t){try{s.removeItem(t)}catch{}}function li(s,t){return ii(s,Mu,t.toString())}function ci(s){return parseInt(ai(s,Mu))||0}const gn={local:!0,session:!0},Bu={local:new Set,session:new Set};let ui=!1;function j0(s){ui=s}let yn=typeof window>"u"?{}:window;function Yu(s){const t=s+"Storage";try{if(yn&&yn[t]&&typeof yn[t].length=="number")return yn[t]}catch{}gn[s]=!1}function Vu(s,t){const e=Yu(s);if(!e)return;const o=ai(e,Au);if(o!==Lu){if(o){const i=ci(e);for(let l=0;l<i;l++)zu(e,pr+l.toString())}ii(e,Au,Lu),li(e,0);return}const r=Math.floor(Date.now()/Nu)-G0,n=i=>{const l=pr+i.toString(),c=ai(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,i))return!0}catch{}zu(e,l)}};let a=ci(e);for(let i=a-1;i>=0;i--)n(i)||(i===a-1?(a--,li(e,a)):Bu[s].add(i))}function Xu(){if(!ui){j0(!0);for(const s in gn)Vu(s,t=>{const e=t.data,o=t.provider,r=e.prefix,n=cs(o,r);if(!Ja(n,e).length)return!1;const a=e.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,a):a,!0})}}function H0(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const o in gn)Vu(o,r=>{const n=r.data;return r.provider!==s.provider||n.prefix!==s.prefix||n.lastModified===t});return!0}function W0(s,t){ui||Xu();function e(o){let r;if(!gn[o]||!(r=Yu(o)))return;const n=Bu[o];let a;if(n.size)n.delete(a=Array.from(n).shift());else if(a=ci(r),a>=U0||!li(r,a+1))return;const i={cached:Math.floor(Date.now()/Nu),provider:s.provider,data:t};return ii(r,pr+a.toString(),JSON.stringify(i))}t.lastModified&&!H0(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function Gu(){}function Z0(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,M0(s)}))}function q0(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:o}=s,r=s.iconsToLoad;delete s.iconsToLoad;let n;if(!r||!(n=ei(e)))return;n.prepare(e,o,r).forEach(i=>{X0(e,i,l=>{if(typeof l!="object")i.icons.forEach(c=>{s.missing.add(c)});else try{const c=Ja(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),W0(s,l)}catch(c){console.error(c)}Z0(s)})})}))}const Q0=(s,t)=>{const e=z0(s,!0,Eu()),o=L0(e);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Gu)}),()=>{l=!1}}const r=Object.create(null),n=[];let a,i;return o.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===i&&c===a)return;a=c,i=u,n.push(cs(c,u));const h=r[c]||(r[c]=Object.create(null));h[u]||(h[u]=[])}),o.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=cs(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(h)||(p.add(h),r[c][u].push(h))}),n.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&q0(l,r[c][u])}),t?N0(t,o,n):Gu};function K0(s,t){const e={...s};for(const o in t){const r=t[o],n=typeof r;o in Pu?(r===null||r&&(n==="string"||n==="number"))&&(e[o]=r):n===typeof e[o]&&(e[o]=o==="rotate"?r%4:r)}return e}const J0=/[\s,]+/;function tg(s,t){t.split(J0).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function eg(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(s);return isNaN(r)?0:o(r)}else if(e!==s){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let n=parseFloat(s.slice(0,s.length-e.length));return isNaN(n)?0:(n=n/r,n%1===0?o(n):0)}}return t}function og(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)e+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function sg(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function rg(s){return"data:image/svg+xml,"+sg(s)}function ng(s){return'url("'+rg(s)+'")'}const Uu={...Ou,inline:!1},ag={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ig={display:"inline-block"},hi={backgroundColor:"currentColor"},ju={backgroundColor:"transparent"},Hu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Wu={webkitMask:hi,mask:hi,background:ju};for(const s in Wu){const t=Wu[s];for(const e in Hu)t[s+e]=Hu[e]}const vn={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";vn[s+"-flip"]=t,vn[s.slice(0,1)+"-flip"]=t,vn[s+"Flip"]=t});function Zu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const qu=(s,t)=>{const e=K0(Uu,t),o={...ag},r=t.mode||"svg",n={},a=t.style,i=typeof a=="object"&&!(a instanceof Array)?a:{};for(let b in t){const _=t[b];if(_!==void 0)switch(b){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[b]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&tg(e,_);break;case"color":n.color=_;break;case"rotate":typeof _=="string"?e[b]=eg(_):typeof _=="number"&&(e[b]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete o["aria-hidden"];break;default:{const v=vn[b];v?(_===!0||_==="true"||_===1)&&(e[v]=!0):Uu[b]===void 0&&(o[b]=_)}}}const l=k0(s,e),c=l.attributes;if(e.inline&&(n.verticalAlign="-0.125em"),r==="svg"){o.style={...n,...i},Object.assign(o,c);let b=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),o.innerHTML=E0(l.body,_?()=>_+"ID"+b++:"iconifyVue"),qt("svg",o)}const{body:u,width:h,height:f}=s,p=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),d=og(u,{...c,width:h+"",height:f+""});return o.style={...n,"--svg":ng(d),width:Zu(c.width),height:Zu(c.height),...ig,...p?hi:ju,...i},qt("span",o)};if(Eu(!0),P0("",D0),typeof document<"u"&&typeof window<"u"){Xu();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(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!g0(o))&&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 o="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;O0(e,r)||console.error(o)}catch{console.error(o)}}}}const lg={...pn,body:""},Qu=Q({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=hn(s,!1,!0))===null)return this.abortLoading(),null;const o=p0(e);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:s,abort:Q0([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:o,classes:r}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return qu(lg,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),qu({...pn,...t.data},e)}});function cg(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ug={exports:{}};(function(s,t){(function(e){s.exports=e()})(function(e){var o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(v,w){var g=v[0],m=v[1],k=v[2],C=v[3];g+=(m&k|~m&C)+w[0]-680876936|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[1]-389564586|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[2]+606105819|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[3]-1044525330|0,m=(m<<22|m>>>10)+k|0,g+=(m&k|~m&C)+w[4]-176418897|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[5]+1200080426|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[6]-1473231341|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[7]-45705983|0,m=(m<<22|m>>>10)+k|0,g+=(m&k|~m&C)+w[8]+1770035416|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[9]-1958414417|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[10]-42063|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[11]-1990404162|0,m=(m<<22|m>>>10)+k|0,g+=(m&k|~m&C)+w[12]+1804603682|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&k)+w[13]-40341101|0,C=(C<<12|C>>>20)+g|0,k+=(C&g|~C&m)+w[14]-1502002290|0,k=(k<<17|k>>>15)+C|0,m+=(k&C|~k&g)+w[15]+1236535329|0,m=(m<<22|m>>>10)+k|0,g+=(m&C|k&~C)+w[1]-165796510|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[6]-1069501632|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[11]+643717713|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[0]-373897302|0,m=(m<<20|m>>>12)+k|0,g+=(m&C|k&~C)+w[5]-701558691|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[10]+38016083|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[15]-660478335|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[4]-405537848|0,m=(m<<20|m>>>12)+k|0,g+=(m&C|k&~C)+w[9]+568446438|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[14]-1019803690|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[3]-187363961|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[8]+1163531501|0,m=(m<<20|m>>>12)+k|0,g+=(m&C|k&~C)+w[13]-1444681467|0,g=(g<<5|g>>>27)+m|0,C+=(g&k|m&~k)+w[2]-51403784|0,C=(C<<9|C>>>23)+g|0,k+=(C&m|g&~m)+w[7]+1735328473|0,k=(k<<14|k>>>18)+C|0,m+=(k&g|C&~g)+w[12]-1926607734|0,m=(m<<20|m>>>12)+k|0,g+=(m^k^C)+w[5]-378558|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[8]-2022574463|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[11]+1839030562|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[14]-35309556|0,m=(m<<23|m>>>9)+k|0,g+=(m^k^C)+w[1]-1530992060|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[4]+1272893353|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[7]-155497632|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[10]-1094730640|0,m=(m<<23|m>>>9)+k|0,g+=(m^k^C)+w[13]+681279174|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[0]-358537222|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[3]-722521979|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[6]+76029189|0,m=(m<<23|m>>>9)+k|0,g+=(m^k^C)+w[9]-640364487|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^k)+w[12]-421815835|0,C=(C<<11|C>>>21)+g|0,k+=(C^g^m)+w[15]+530742520|0,k=(k<<16|k>>>16)+C|0,m+=(k^C^g)+w[2]-995338651|0,m=(m<<23|m>>>9)+k|0,g+=(k^(m|~C))+w[0]-198630844|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[7]+1126891415|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[14]-1416354905|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[5]-57434055|0,m=(m<<21|m>>>11)+k|0,g+=(k^(m|~C))+w[12]+1700485571|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[3]-1894986606|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[10]-1051523|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[1]-2054922799|0,m=(m<<21|m>>>11)+k|0,g+=(k^(m|~C))+w[8]+1873313359|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[15]-30611744|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[6]-1560198380|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[13]+1309151649|0,m=(m<<21|m>>>11)+k|0,g+=(k^(m|~C))+w[4]-145523070|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~k))+w[11]-1120210379|0,C=(C<<10|C>>>22)+g|0,k+=(g^(C|~m))+w[2]+718787259|0,k=(k<<15|k>>>17)+C|0,m+=(C^(k|~g))+w[9]-343485551|0,m=(m<<21|m>>>11)+k|0,v[0]=g+v[0]|0,v[1]=m+v[1]|0,v[2]=k+v[2]|0,v[3]=C+v[3]|0}function n(v){var w=[],g;for(g=0;g<64;g+=4)w[g>>2]=v.charCodeAt(g)+(v.charCodeAt(g+1)<<8)+(v.charCodeAt(g+2)<<16)+(v.charCodeAt(g+3)<<24);return w}function a(v){var w=[],g;for(g=0;g<64;g+=4)w[g>>2]=v[g]+(v[g+1]<<8)+(v[g+2]<<16)+(v[g+3]<<24);return w}function i(v){var w=v.length,g=[1732584193,-271733879,-1732584194,271733878],m,k,C,z,tt,R;for(m=64;m<=w;m+=64)r(g,n(v.substring(m-64,m)));for(v=v.substring(m-64),k=v.length,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<k;m+=1)C[m>>2]|=v.charCodeAt(m)<<(m%4<<3);if(C[m>>2]|=128<<(m%4<<3),m>55)for(r(g,C),m=0;m<16;m+=1)C[m]=0;return z=w*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),tt=parseInt(z[2],16),R=parseInt(z[1],16)||0,C[14]=tt,C[15]=R,r(g,C),g}function l(v){var w=v.length,g=[1732584193,-271733879,-1732584194,271733878],m,k,C,z,tt,R;for(m=64;m<=w;m+=64)r(g,a(v.subarray(m-64,m)));for(v=m-64<w?v.subarray(m-64):new Uint8Array(0),k=v.length,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<k;m+=1)C[m>>2]|=v[m]<<(m%4<<3);if(C[m>>2]|=128<<(m%4<<3),m>55)for(r(g,C),m=0;m<16;m+=1)C[m]=0;return z=w*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),tt=parseInt(z[2],16),R=parseInt(z[1],16)||0,C[14]=tt,C[15]=R,r(g,C),g}function c(v){var w="",g;for(g=0;g<4;g+=1)w+=o[v>>g*8+4&15]+o[v>>g*8&15];return w}function u(v){var w;for(w=0;w<v.length;w+=1)v[w]=c(v[w]);return v.join("")}u(i("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function v(w,g){return w=w|0||0,w<0?Math.max(w+g,0):Math.min(w,g)}ArrayBuffer.prototype.slice=function(w,g){var m=this.byteLength,k=v(w,m),C=m,z,tt,R,D;return g!==e&&(C=v(g,m)),k>C?new ArrayBuffer(0):(z=C-k,tt=new ArrayBuffer(z),R=new Uint8Array(tt),D=new Uint8Array(this,k,z),R.set(D),tt)}}();function h(v){return/[\u0080-\uFFFF]/.test(v)&&(v=unescape(encodeURIComponent(v))),v}function f(v,w){var g=v.length,m=new ArrayBuffer(g),k=new Uint8Array(m),C;for(C=0;C<g;C+=1)k[C]=v.charCodeAt(C);return w?k:m}function p(v){return String.fromCharCode.apply(null,new Uint8Array(v))}function d(v,w,g){var m=new Uint8Array(v.byteLength+w.byteLength);return m.set(new Uint8Array(v)),m.set(new Uint8Array(w),v.byteLength),g?m:m.buffer}function b(v){var w=[],g=v.length,m;for(m=0;m<g-1;m+=2)w.push(parseInt(v.substr(m,2),16));return String.fromCharCode.apply(String,w)}function _(){this.reset()}return _.prototype.append=function(v){return this.appendBinary(h(v)),this},_.prototype.appendBinary=function(v){this._buff+=v,this._length+=v.length;var w=this._buff.length,g;for(g=64;g<=w;g+=64)r(this._hash,n(this._buff.substring(g-64,g)));return this._buff=this._buff.substring(g-64),this},_.prototype.end=function(v){var w=this._buff,g=w.length,m,k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C;for(m=0;m<g;m+=1)k[m>>2]|=w.charCodeAt(m)<<(m%4<<3);return this._finish(k,g),C=u(this._hash),v&&(C=b(C)),this.reset(),C},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},_.prototype.setState=function(v){return this._buff=v.buff,this._length=v.length,this._hash=v.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.prototype._finish=function(v,w){var g=w,m,k,C;if(v[g>>2]|=128<<(g%4<<3),g>55)for(r(this._hash,v),g=0;g<16;g+=1)v[g]=0;m=this._length*8,m=m.toString(16).match(/(.*?)(.{0,8})$/),k=parseInt(m[2],16),C=parseInt(m[1],16)||0,v[14]=k,v[15]=C,r(this._hash,v)},_.hash=function(v,w){return _.hashBinary(h(v),w)},_.hashBinary=function(v,w){var g=i(v),m=u(g);return w?b(m):m},_.ArrayBuffer=function(){this.reset()},_.ArrayBuffer.prototype.append=function(v){var w=d(this._buff.buffer,v,!0),g=w.length,m;for(this._length+=v.byteLength,m=64;m<=g;m+=64)r(this._hash,a(w.subarray(m-64,m)));return this._buff=m-64<g?new Uint8Array(w.buffer.slice(m-64)):new Uint8Array(0),this},_.ArrayBuffer.prototype.end=function(v){var w=this._buff,g=w.length,m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k,C;for(k=0;k<g;k+=1)m[k>>2]|=w[k]<<(k%4<<3);return this._finish(m,g),C=u(this._hash),v&&(C=b(C)),this.reset(),C},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var v=_.prototype.getState.call(this);return v.buff=p(v.buff),v},_.ArrayBuffer.prototype.setState=function(v){return v.buff=f(v.buff,!0),_.prototype.setState.call(this,v)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(v,w){var g=l(new Uint8Array(v)),m=u(g);return w?b(m):m},_})})(ug);const Ku=s=>new XMLSerializer().serializeToString(s),hg=(s,t=gu.SVG,e=cn.utf8)=>yu(Ku(s),t,e),dg=(s,t,e)=>{const o=async r=>{await e(r)};return s.addEventListener(t,o,!1),()=>{s.removeEventListener(t,o,!1)}};function fg(){const s=new cr;return{on:(t,e)=>{s.on(t,e)},off:(t,e)=>{s.off(t,e)},emit:(t,...e)=>{s.emit(t,...e)}}}const di=fg();function pg(){return{remove:dg(document,"scroll",s=>{di.emit("scroll",s)}),on:s=>{di.on("scroll",s)},off:s=>{di.off("scroll",s)}}}function bn(s,t,e,o,r){const n=t/e;let a=0,i=0;switch(s){case"aspectFit":n>=1?(a=o,i=a/n,i>r&&(i=r,a=i*n)):(i=r,a=i*n,a>o&&(a=o,i=a/n));break;case"aspectFill":n>=1?(i=r,a=i*n):(a=o,i=a/n);break;case"widthFix":a=o,i=a/n;break;case"heightFix":i=r,a=i*n;break;case"scaleToFill":default:a=o,i=r;break}return{width:a,height:i}}function mg(s){const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=s.width,t.height=s.height,e.drawImage(s,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}function gg(){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 o=s.indexOf("Edge/");return o>0?parseInt(s.substring(o+5,s.indexOf(".",o)),10):-1}const fi=gg()!==-1;(()=>{const s=nu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!nu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const o=t.transferToImageBitmap();try{e.createPattern(o,"no-repeat")}catch{return!1}return!0}();function Yt(s){return s*Math.PI/180}function ze(s){return s*180/Math.PI}function pi(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function mi(s,t,e,o){return pi(e-s,o-t)}function gi(s,t,e,o){const r=e-s,n=o-t;return r*r+n*n}function Is(s,t,e,o){let r=Math.atan2(o-t,e-s);return r<0&&(r+=Math.PI*2),r}function xo(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const Ju=yg("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 yg(s,t=10){const e={},o=s.split(",");for(let r=0;r<o.length;r+=2){const n="&"+o[r+1]+";",a=parseInt(o[r],t);e[n]="&#"+a+";"}return e["\\xa0"]=" ",e}function Fe(s,t){const e=Object.keys(t);for(let o=0;o<e.length;o++)s=s.replace(new RegExp("{"+e[o]+"}","gi"),""+t[e[o]]);return s}function _n(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const o="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=o[Math.floor(Math.random()*o.length)];while(s[t]);return t}function vg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function bg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const mr={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 yi{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const o=this.__ctx.__createElement("stop");if(o.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const n=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);n&&(o.setAttribute("stop-color",Fe("rgb({r},{g},{b})",{r:n[1],g:n[2],b:n[3]})),o.setAttribute("stop-opacity",n[4]))}else o.setAttribute("stop-color",e);this.__root.appendChild(o)}}class th{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class xn{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:o=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=o),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(mr);for(let e=0,o=t.length;e<o;e++){const r=t[e];this[r]=mr[r].canvas}}__getStyleState(){const t={},e=Object.keys(mr);for(let o=0,r=e.length;o<r;o++){const n=e[o];t[n]=this[n]}return t}__applyStyleState(t){const e=Object.keys(t);for(let o=0,r=e.length;o<r;o++){const n=e[o];this[n]=t[n]}}__createElement(t,e={},o=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),n=Object.keys(e);o&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let a=0;a<n.length;a++){const i=n[a];r.setAttribute(i,e[i])}return r}__applyStyleToCurrentElement(t){let e=this.__currentElement;const o=this.__currentElementsToStyle;o&&(e.setAttribute(t,""),e=o.element,o.children.forEach(n=>{n.setAttribute(t,"")}));const r=Object.keys(mr);for(let n=0;n<r.length;n++){const a=mr[r[n]],i=this[r[n]];if(a.apply){if(i instanceof th){if(i.__ctx)for(;i.__ctx.__SVGdefs.childNodes.length;){const l=i.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(i.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(a.apply,Fe("url(#{id})",{id:i.__root.getAttribute("id")}))}else if(i instanceof yi)e.setAttribute(a.apply,Fe("url(#{id})",{id:i.__root.getAttribute("id")}));else if(a.apply.indexOf(t)!==-1&&a.svg!==i)if((a.svgAttr==="stroke"||a.svgAttr==="fill")&&i.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(i);if(c){e.setAttribute(a.svgAttr,Fe("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(a.svgAttr+"-opacity",""+u)}}else{let l=a.svgAttr;if(r[n]==="globalAlpha"&&(l=t+"-"+a.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,i)}}}}__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 n=0,a=r.length;n<a;n++){const i=r[n],l=Ju[i],c=new RegExp(i,"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 o=this.__currentElement.getAttribute("transform");o?o+=" ":o="",o+=t,this.__currentElement.setAttribute("transform",o)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Fe("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Fe("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Fe("translate({x},{y})",{x:t,y:e}))}transform(t,e,o,r,n,a){this.__addTransform(Fe("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:o,d:r,e:n,f:a}))}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(Fe("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(Fe("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Fe("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,o,r,n,a){this.__currentPosition={x:n,y:a},this.__addPathCommand(Fe("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:o,cp2y:r,x:n,y:a}))}quadraticCurveTo(t,e,o,r){this.__currentPosition={x:o,y:r},this.__addPathCommand(Fe("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:o,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,o,r,n){const a=this.__currentPosition&&this.__currentPosition.x,i=this.__currentPosition&&this.__currentPosition.y;if(typeof a>"u"||typeof i>"u")return;if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(a===t&&i===e||t===o&&e===r||n===0){this.lineTo(t,e);return}const l=this.normalize([a-t,i-e]),c=this.normalize([o-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]]),p=n/Math.sin(h/2),d=t+p*f[0],b=e+p*f[1],_=[-l[1],l[0]],v=[c[1],-c[0]],w=function(k){const C=k[0];return k[1]>=0?Math.acos(C):-Math.acos(C)},g=w(_),m=w(v);this.lineTo(d+_[0]*n,b+_[1]*n),this.arc(d,b,n,g,m)}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,o,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+o,e),this.lineTo(t+o,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,o,r){const n=this.__createElement("rect",{x:t,y:e,width:o,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,o,r){const n=this.__createElement("rect",{x:t,y:e,width:o,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),o=this.__rootSVG.childNodes[1],r=o.childNodes;for(let n=r.length-1;n>=0;n--)r[n]&&o.removeChild(r[n]);this.__currentElement=o,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,o,r){if(t===0&&e===0&&o===this.width&&r===this.height){this.__clearCanvas();return}const n=this.__closestGroupOrSvg(),a=this.__createElement("rect",{x:t,y:e,width:o,height:r,fill:"#FFFFFF"},!0);n.appendChild(a)}createLinearGradient(t,e,o,r){const n=this.__createElement("linearGradient",{id:_n(this.__ids),x1:t+"px",x2:o+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(n),new yi(n,this)}createRadialGradient(t,e,o,r,n,a){const i=this.__createElement("radialGradient",{id:_n(this.__ids),cx:r+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new yi(i,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),o={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"&&(o.decoration="underline"),this.__fontHref&&(o.href=this.__fontHref),o}__wrapTextLink(t,e){if(t.href){const o=this.__createElement("a");return o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),o.appendChild(e),o}return e}__applyText(t,e,o,r){const n=this.__parseFont(),a=this.__closestGroupOrSvg(),i=this.__createElement("text",{"font-family":n.family,"font-size":n.size,"font-style":n.style,"font-weight":n.weight,"text-decoration":n.decoration,x:e,y:o,"text-anchor":vg(this.textAlign),"dominant-baseline":bg(this.textBaseline)},!0);i.appendChild(this.__document.createTextNode(t)),this.__currentElement=i,this.__applyStyleToCurrentElement(r),a.appendChild(this.__wrapTextLink(n,i))}fillText(t,e,o){this.__applyText(t,e,o,"fill")}strokeText(t,e,o){this.__applyText(t,e,o,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,o,r,n,a){if(r===n)return;r=r%(2*Math.PI),n=n%(2*Math.PI),r===n&&(n=(n+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));const i=t+o*Math.cos(n),l=e+o*Math.sin(n),c=t+o*Math.cos(r),u=e+o*Math.sin(r),h=a?0:1;let f=0,p=n-r;p<0&&(p+=2*Math.PI),a?f=p>Math.PI?0:1:f=p>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Fe("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:o,ry:o,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:i,endY:l})),this.__currentPosition={x:i,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),o=_n(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",o),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Fe("url(#{id})",{id:o})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],o,r,n,a,i=0,l=0,c,u,h,f,p,d,b,_;if(t.length===3)o=t[1],r=t[2],c=e.width,u=e.height,n=c,a=u;else if(t.length===5)o=t[1],r=t[2],n=t[3],a=t[4],c=e.width,u=e.height;else if(t.length===9)i=t[1],l=t[2],c=t[3],u=t[4],o=t[5],r=t[6],n=t[7],a=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const v=this.__closestGroupOrSvg();this.__currentElement;const w="translate("+o+", "+r+")";if(e instanceof xn){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)_=f.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(f.childNodes[0]);if(p=h.childNodes[1],p){const g=p.getAttribute("transform");let m;g?m=g+" "+w:m=w,p.setAttribute("transform",m),v.appendChild(p)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(d=this.__createElement("image"),d.setAttribute("width",n),d.setAttribute("height",a),d.setAttribute("preserveAspectRatio","none"),(i||l||c!==e.width||u!==e.height)&&(b=this.__document.createElement("canvas"),b.width=n,b.height=a,b.getContext("2d")?.drawImage(e,i,l,c,u,0,0,n,a),e=b),d.setAttribute("transform",w),d.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),v.appendChild(d))}createPattern(t,e){const o=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=_n(this.__ids);let n;return o.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(n=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),o.appendChild(n),this.__SVGdefs.appendChild(o)):t instanceof xn&&(o.setAttribute("width",""+t.width),o.setAttribute("height",""+t.height),o.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(o)),new th(o,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class vi{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,o,r=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),r&&(this.customContext=new xn({canvas:this.canvas,width:e||this.canvas.width,height:o||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,o,r){return this.context.fillRect(t,e,o,r),this.customContext&&this.customContext.fillRect(t,e,o,r),this}fillText(t,e,o,r){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,o,r),this.customContext&&this.customContext.fillText(t,e,o),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,o,r){return this.context.strokeText(t,e,o,r),this.customContext&&this.customContext.strokeText(t,e,o),this}strokeRect(t,e,o,r){return this.context.strokeRect(t,e,o,r),this.customContext&&this.customContext.strokeRect(t,e,o,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,o=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,o,r),this.customContext&&this.customContext.clearRect(t,e,o,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 o=new Path2D;o.addPath(t,e),this.currentPath2D=o}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,o=0){return this.translate(e,o),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-o),this.changePath2D(),this}scale(t,e=t,o=0,r=0){return this.translate(o,r),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-o,-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,o,r,n,a){return this.context.arc(t,e,o,r,n,a),this.customContext&&this.customContext.arc(t,e,o,r,n,a?-1:1),this.currentPath2D.arc(t,e,o,r,n,a),this}arcTo(t,e,o,r,n){return this.context.arcTo(t,e,o,r,n),this.customContext&&this.customContext.arcTo(t,e,o,r,n),this.currentPath2D.arcTo(t,e,o,r,n),this}ellipse(t,e,o,r,n,a,i,l){return this.context.ellipse(t,e,o,r,n,a,i,l),this.currentPath2D.ellipse(t,e,o,r,n,a,i,l),this}quadraticCurveTo(t,e,o,r){return this.context.quadraticCurveTo(t,e,o,r),this.customContext&&this.customContext.quadraticCurveTo(t,e,o,r),this.currentPath2D.quadraticCurveTo(t,e,o,r),this}bezierCurveTo(t,e,o,r,n,a){return this.context.bezierCurveTo(t,e,o,r,n,a),this.customContext&&this.customContext.bezierCurveTo(t,e,o,r,n,a),this.currentPath2D.bezierCurveTo(t,e,o,r,n,a),this}rect(t,e,o,r){return this.context.rect(t,e,o,r),this.customContext&&this.customContext.rect(t,e,o,r),this.currentPath2D.rect(t,e,o,r),this}createLinearGradient(t,e,o,r,n){const a=this.context.createLinearGradient(t,e,o,r);return n&&Object.entries(n).forEach(([i,l])=>{a.addColorStop(parseFloat(i),l)}),a}createRadialGradient(t,e,o,r,n,a,i){const l=this.context.createRadialGradient(t,e,o,r,n,a);return i&&Object.entries(i).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 o=e[0],r=e[1];this.context.drawImage(t,o,r)}else if(e.length===4){const o=e[0],r=e[1],n=e[2],a=e[3];this.context.drawImage(t,o,r,n,a)}else if(e.length===8){const o=e[0],r=e[1],n=e[2],a=e[3],i=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,o,r,n,a,i,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,o=this.canvas.width,r=this.canvas.height,n){return this.context.getImageData(t,e,o,r,n)}putImageData(t,e=0,o=0){return this.context.putImageData(t,e,o)}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 wn{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=Is(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),o=Math.min(this.y,this.toY),r=Math.max(this.x,this.toX),n=Math.max(this.y,this.toY);return{x:e,y:o,width:r-e,height:n-o}}else{const e=Math.sin(t),o=Math.cos(t),r=o*this.x-e*this.y,n=o*this.toX-e*this.toY,a=o*this.y+e*this.x,i=o*this.toY+e*this.toX;return{x:Math.min(r,n),y:Math.min(a,i),width:Math.max(r,n)-Math.min(r,n),height:Math.max(a,i)-Math.min(a,i)}}}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,o=this.y,r=t.toX,n=t.toY,a=this.toX-e,i=t.x-r;if(!a&&!i)return null;const l=(this.toY-o)/a,c=(t.y-n)/i;if(a){if(!i)return{x:r,y:l*(r-e)+o}}else return{x:e,y:c*(e-r)+n};const u=(-c*r+n+l*e-o)/(l-c),h=l*(u-e)+o;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}const eh=wn;class bi extends wn{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,o,r,n,a,i,l]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,o,r,n,a,i,l,!this.sweepFlag)}convert(t,e,o,r,n,a,i,l,c){const u=i/180*Math.PI,h=(t-o)/2,f=(e-r)/2,p=Math.cos(u)*h+Math.sin(u)*f,d=-Math.sin(u)*h+Math.cos(u)*f,b=p*p/(n*n)+d*d/(a*a);if(b>1){const M=Math.sqrt(b);throw n=M*n,a=M*a,new Error(`Radii are too small to build an arc. Correcting them to ${n}/${a}.`)}const _=Math.sqrt((n*n*a*a-n*n*d*d-a*a*p*p)/(n*n*d*d+a*a*p*p)),v=l!=c?1:-1,w=v*_*n*d/a,g=v*_*-a*p/n,m=(t+o)/2,k=(e+r)/2,C=Math.cos(u)*w-Math.sin(u)*g+m,z=Math.sin(u)*w+Math.cos(u)*g+k,tt=(M,$,N,G)=>(M*G>=$*N?1:-1)*Math.acos((M*N+$*G)/(Math.sqrt(M*M+$*$)*Math.sqrt(N*N+G*G))),R=tt(1,0,t-C,e-z)-u,D=tt(t-C,e-z,o-C,r-z);return[C,z,n,a,u,R,R+D]}}const _g=bi;class xg extends wn{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,o=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,o,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 o,r,n,a;for(let c=0;c<2;++c)o=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,n=c==0?this.x:this.y,Math.abs(o)>1e-12&&(a=-r/(2*o),0<a&&a<1&&[t,e][c].push(o*a*a+r*a+n));const i={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:i.x,y:i.y,width:l.x-i.x,height:l.y-i.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 wg=xg;class us extends wn{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),o=this.x-this.c1x,r=(-e+Math.sqrt(e*e-4*t*o))/2/t,n=(-e-Math.sqrt(e*e-4*t*o))/2/t;const a=[this.y,this.toY],i=[this.x,this.toX];let l;const c=[];Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.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),o=this.y-this.c1y,r=(-e+Math.sqrt(e*e-4*t*o))/2/t,n=(-e-Math.sqrt(e*e-4*t*o))/2/t,Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.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 b=d+1;b<h;b++)c[d].X===c[b].X&&c[d].Y===c[b].Y&&(b=++d);u.push({X:c[d].X,Y:c[d].Y})}const f={x:Math.min.apply(Math,i),y:Math.min.apply(Math,a)},p={x:Math.max.apply(Math,i),y:Math.max.apply(Math,a)};return{x:f.x,y:f.y,width:p.x-f.x,height:p.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,o,r,n){const a=-3*e+9*o-9*r+3*n,i=t*a+6*e-12*o+6*r;return t*i-3*e+3*o}static bezlen(t,e,o,r,n,a,i,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 p=0;for(let d=0;d<12;d++){const b=u*h[d]+u,_=this.base3(b,t,o,n,i),v=this.base3(b,e,r,a,l);p+=f[d]*Math.sqrt(_*_+v*v)}return u*p}length(t=1){return us.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,o=this.y,r=this.c1x,n=this.c1y,a=this.c2x,i=this.c2y,l=this.toX,c=this.toY;if(t<0||us.bezlen(e,o,r,n,a,i,l,c)<t)return 0;let u=1,h=u/2,f=u-h,p=us.bezlen(e,o,r,n,a,i,l,c,f);for(;Math.abs(p-t)>.01;)h/=2,f+=(p<t?1:-1)*h,p=us.bezlen(e,o,r,n,a,i,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t);let o=1-e,r=Math.pow(o,3),n=Math.pow(o,2),a=e*e,i=a*e,l=r*this.x+n*3*e*this.c1x+o*3*e*e*this.c2x+i*this.toX,c=r*this.y+n*3*e*this.c1y+o*3*e*e*this.c2y+i*this.toY,u=this.x+2*e*(this.c1x-this.x)+a*(this.c2x-2*this.c1x+this.x),h=this.y+2*e*(this.c1y-this.y)+a*(this.c2y-2*this.c1y+this.y),f=this.c1x+2*e*(this.c2x-this.c1x)+a*(this.toX-2*this.c2x+this.c1x),p=this.c1y+2*e*(this.c2y-this.c1y)+a*(this.toY-2*this.c2y+this.c1y),d=o*this.x+e*this.c1x,b=o*this.y+e*this.c1y,_=o*this.c2x+e*this.toX,v=o*this.c2y+e*this.toY,w=90-Math.atan2(u-f,h-p)*180/Math.PI;return{x:l,y:c,m:{x:u,y:h},n:{x:f,y:p},start:{x:d,y:b},end:{x:_,y:v},alpha:w}}}const Vo=us,gr=Math.PI*2;function oh(s,t,e,o){const r=s*o-t*e<0?-1:1;let n=s*e+t*o;return n>1&&(n=1),n<-1&&(n=-1),r*Math.acos(n)}function kg(s,t,e,o,r,n,a,i,l,c){const u=c*(s-e)/2+l*(t-o)/2,h=-l*(s-e)/2+c*(t-o)/2,f=a*a,p=i*i,d=u*u,b=h*h;let _=f*p-f*b-p*d;_<0&&(_=0),_/=f*b+p*d,_=Math.sqrt(_)*(r===n?-1:1);const v=_*a/i*h,w=_*-i/a*u,g=c*v-l*w+(s+e)/2,m=l*v+c*w+(t+o)/2,k=(u-v)/a,C=(h-w)/i,z=(-u-v)/a,tt=(-h-w)/i,R=oh(1,0,k,C);let D=oh(k,C,z,tt);return n===0&&D>0&&(D-=gr),n===1&&D<0&&(D+=gr),[g,m,R,D]}function Cg(s,t){const e=1.3333333333333333*Math.tan(t/4),o=Math.cos(s),r=Math.sin(s),n=Math.cos(s+t),a=Math.sin(s+t);return[o,r,o-r*e,r+o*e,n+a*e,a-n*e,n,a]}function sh(s,t,e,o,r,n,a,i,l){const c=Math.sin(l*gr/360),u=Math.cos(l*gr/360),h=u*(s-e)/2+c*(t-o)/2,f=-c*(s-e)/2+u*(t-o)/2;if(h===0&&f===0)return[];if(a===0||i===0)return[];a=Math.abs(a),i=Math.abs(i);const p=h*h/(a*a)+f*f/(i*i);p>1&&(a*=Math.sqrt(p),i*=Math.sqrt(p));const d=kg(s,t,e,o,r,n,a,i,c,u),b=[];let _=d[2],v=d[3];const w=Math.max(Math.ceil(Math.abs(v)/(gr/4)),1);v/=w;for(let g=0;g<w;g++)b.push(Cg(_,v)),_+=v;return b.map(g=>{for(let m=0;m<g.length;m+=2){let k=g[m+0],C=g[m+1];k*=a,C*=i;const z=u*k-c*C,tt=c*k+u*C;g[m+0]=z+d[0],g[m+1]=tt+d[1]}return g})}function _i(s,t,e,o,r,n){return[s/3+.6666666666666666*e,t/3+.6666666666666666*o,r/3+.6666666666666666*e,n/3+.6666666666666666*o,r,n]}function yr(s,t,e,o){return[s,t,e,o,e,o]}const kn={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class me{static createSVGElement(t="path",e){const o=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&Ls(o,e),o}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||Ps()})}static downloadFromSVGElement(t,e="shape"){return kh(hg(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return kh(yu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Ku(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 me.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(o,r,n)=>{let a=r.toLowerCase();const i=Ua(n);for(a=="m"&&i.length>kn[a]&&(e.push([r,...i.splice(0,kn[a])]),a="l",r=r=="m"?"l":"L");i.length;){if(i.length<kn[a])throw new Error(`parseSVGPath substring:{ ${o} } command:{ ${r} } args:{ ${i} }`);e.push([r,...i.splice(0,kn[a])])}return a=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,o=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toUpperCase();if(i!=l)switch(a[0]=l,i){case"a":a[6]+=r,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=r;break;default:for(let c=1;c<a.length;)a[c++]+=r,a[c++]+=n}switch(l){case"Z":r=e,n=o;break;case"H":r=a[1];break;case"V":n=a[1];break;case"M":r=e=a[1],n=o=a[2];break;default:r=a[a.length-2],n=a[a.length-1]}return a})}static relativeSVGPath(t){let e=0,o=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toLowerCase();if(i!=l)switch(a[0]=l,i){case"A":a[6]-=r,a[7]-=n;break;case"V":a[1]-=n;break;case"H":a[1]-=r;break;default:for(let c=1;c<a.length;)a[c++]-=r,a[c++]-=n}switch(l){case"z":r=e,n=o;break;case"h":r+=a[1];break;case"v":n+=a[1];break;case"m":r+=a[1],n+=a[2],e+=a[1],o+=a[2];break;default:r+=a[a.length-2],n+=a[a.length-1]}return a})}static normalizeSVGPath(t){const e=[];let o=0,r=0,n=0,a=0,i=0,l=0,c=0,u=0,h;for(let f=0,p=t.length;f<p;f++){let d=t[f];const b=d[0];switch(b){case"M":o=d[1],r=d[2];break;case"A":const _=sh(n,a,d[6],d[7],d[4],d[5],d[1],d[2],d[3]);if(!_.length)continue;_.forEach((g,m)=>{const[k,C,z,tt,R,D,M,$]=g;d=["C",z,tt,R,D,M,$],m<_.length-1&&e.push(d)});break;case"S":let v=n,w=a;(h=="C"||h=="S")&&(v+=v-c,w+=w-u),d=["C",v,w,d[1],d[2],d[3],d[4]];break;case"T":h=="Q"||h=="T"?(i=n*2-i,l=a*2-l):(i=n,l=a),d=["C",..._i(n,a,i,l,d[1],d[2])];break;case"Q":i=d[1],l=d[2],d=["C",..._i(n,a,d[1],d[2],d[3],d[4])];break;case"L":d=["C",...yr(n,a,d[1],d[2])];break;case"H":d=["C",...yr(n,a,d[1],a)];break;case"V":d=["C",...yr(n,a,n,d[1])];break;case"Z":d=["C",...yr(n,a,o,r)];break}h=b,n=d[d.length-2],a=d[d.length-1],d.length>4?(c=d[d.length-4],u=d[d.length-3]):(c=n,u=a),e.push(d)}return e}static catmullRom2bezier(t){const e=[];for(let o=0,r=t.length;r-2>o;o+=2){let n;o==0?n=[{x:t[o],y:t[o+1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+4],y:t[o+5]}]:r-4==o?n=[{x:t[o-2],y:t[o-1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+2],y:t[o+3]}]:n=[{x:t[o-2],y:t[o-1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+4],y:t[o+5]}];const a=[{x:n[1].x,y:n[1].y},{x:(-n[0].x+6*n[1].x+n[2].x)/6,y:(-n[0].y+6*n[1].y+n[2].y)/6},{x:(n[1].x+6*n[2].x-n[3].x)/6,y:(n[1].y+6*n[2].y-n[3].y)/6},{x:n[2].x,y:n[2].y}];e.push(["C",a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y])}return e}static zvhToLSVGPath(t){const e=[];let o=["L",0,0],r;for(let n=0,a=t.length;n<a;n++){const i=t[n];switch(i[0]){case"M":o=["L",i[1],i[2]],e.push(i);break;case"Z":e.push(o);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",i[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.length-2],i[1]]);break;default:e.push(i)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let o,r=0,n=0;for(let a=0,i=t.length;a<i;a++){const l=t[a],c=e[l[0]];c&&(l[0]=c.to,o&&(o[0]===c.to?(r=2*Number(o[c.x+2])-Number(o[c.x]),n=2*Number(o[c.x+3])-Number(o[c.x+1])):(r=Number(o[o.length-2]),n=Number(o[o.length-1]))),l.splice(1,0,r,n)),o=l}return t}}class Ge{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(me.parseSVGPath(t),e):t instanceof Ge?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const o=me.normalizeSVGPath(me.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let r=!1;for(let n=0,a=o.length;n<a;n++){const i=o[n];if(i[0]=="M"){r||(r=!0,this.startPathX=i[1],this.startPathY=i[2]),this.prevPathX=i[1],this.prevPathY=i[2];continue}this.appendLine(new Vo({c1x:i[1],c1y:i[2],c2x:i[3],c2y:i[4],toX:i[5],toY:i[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(n=>{({x:n.x,y:n.y}=e.transformPoint({x:n.x,y:n.y})),{x:n.c1x,y:n.c1y}=e.transformPoint({x:n.c1x,y:n.c1y}),{x:n.c2x,y:n.c2y}=e.transformPoint({x:n.c2x,y:n.c2y}),{x:n.toX,y:n.toY}=e.transformPoint({x:n.toX,y:n.toY})}))}static fromPolymorphPoints(t){const e=new Ge;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let o=2,r=t.length;o+5<r;o+=6)e.appendLine(new Vo({c1x:t[o],c1y:t[o+1],c2x:t[o+2],c2y:t[o+3],toX:t[o+4],toY:t[o+5]}));return e}static fromLines(t){const e=new Ge;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let o=0,r=t.length;o<r;o++)e.appendLine(t[o]);return e}appendLine(t){if(t instanceof _g){sh(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,p,d,b,_,v]=c;this.normalizedLines.push(new Vo({x:this.prevPathX,y:this.prevPathY,c1x:f,c1y:p,c2x:d,c2y:b,toX:_,toY:v})),this.prevPathX=_,this.prevPathY=v});return}let e,o,r,n,a,i;t instanceof Vo?(e=t.c1x,o=t.c1y,r=t.c2x,n=t.c2y,a=t.toX,i=t.toY):t instanceof wg?[e,o,r,n,a,i]=_i(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,o,r,n,a,i]=yr(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Vo({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:o,c2x:r,c2y:n,toX:a,toY:i})),this.prevPathX=a,this.prevPathY=i}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:o}=this.updateTransform(),r=[];r.push(["M",t,e]);for(let n=0,a=o.length;n<a;n++)r.push(...o[n].toSVGPathData());return r}toSVGPathD(){return me.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:o,normalizedLines:r}=this.updateTransform();t.beginPath(),t.moveTo(e,o),r.forEach(n=>{n.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],o=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),o.push(c.y,c.y+c.height)}),e.length==0||o.length==0)return{x:0,y:0,width:0,height:0};const r=Math.min.apply(0,e),n=Math.min.apply(0,o),a=Math.max.apply(0,e),i=Math.max.apply(0,o);return{x:r,y:n,width:a-r,height:i-n}}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 Ue;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,o=this.startPathY;({x:e,y:o}=t.transformPoint({x:e,y:o}));const r=[];return this.normalizedLines.forEach(n=>{let a=n.x,i=n.y,l=n.c1x,c=n.c1y,u=n.c2x,h=n.c2y,f=n.toX,p=n.toY;({x:a,y:i}=t.transformPoint({x:a,y:i})),{x:l,y:c}=t.transformPoint({x:l,y:c}),{x:u,y:h}=t.transformPoint({x:u,y:h}),{x:f,y:p}=t.transformPoint({x:f,y:p}),r.push(new Vo({x:a,y:i,c1x:l,c1y:c,c2x:u,c2y:h,toX:f,toY:p}))}),{startPathX:e,startPathY:o,normalizedLines:r}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,o)=>e+=o.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let o=0;const r=e.length;for(let n=0;n<r;n++){const a=e[n],i=a.length();if(o+i>=t)return a.getPointAtSegmentLength(t-o);o+=i}return e[r-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:o,normalizedLines:r}=this.updateTransform(),n=r.length;if(n===0)return{x:e,y:o};if(n===1)return r[0].interpolate(t);{let a=t*n,i=r[0];if(a--,a>1)for(let l=1;l<n&&(i=r[l],a>1);l++)a-=1;return i.interpolate(a)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const o=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(o,t):o}}getSubpathsAtLength(t,e,o){const{startPathX:r,startPathY:n,normalizedLines:a}=t.updateTransform();let i=null,l=0;const c=new Ge;c.prevPathX=c.startPathX=r,c.prevPathY=c.startPathY=n;for(let u=0,h=a.length;u<h;u++){const f=a[u],p=f.length();if(l+p>e&&!i){const d=f.getPointAtSegmentLength(e-l);if(c.appendLine(new Vo({c1x:d.start.x,c1y:d.start.y,c2x:d.m.x,c2y:d.m.y,toX:d.x,toY:d.y})),o)return c;i=c,c.appendLine(new Vo({c1x:d.n.x,c1y:d.n.y,c2x:d.end.x,c2y:d.end.y,toX:f.x,toY:f.y})),l+=p;continue}l+=p,c.appendLine(f)}return c}closestPoint(t,e){const o=this.getTotalLength();let r={x:t,y:e},n=0,a=1/0,i=8;for(let c=0;c<=o;c+=i){let u=this.getPointAtLength(c),h=gi(u.x,u.y,t,e);h<a&&(r=u,n=c,a=h)}for(i/=2;i>.5;){let c=n-i,u=this.getPointAtLength(c),h=gi(u.x,u.y,t,e),f=n+i,p=this.getPointAtLength(f),d=gi(p.x,p.y,t,e);c>=0&&h<a?(r=u,n=c,a=h):f<=o&&d<a?(r=p,n=f,a=d):i/=2}const l=this.getPointAtLength(n+(n===o?-.1:.1));return{point:r,rotation:n>=o?Is(l.x,l.y,r.x,r.y):Is(r.x,r.y,l.x,l.y),distance:Math.sqrt(a)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:o}=this.updateTransform();return[t,e].concat(o.reduce((r,n)=>r.concat([n.c1x,n.c1y,n.c2x,n.c2y,n.toX,n.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let o=t[e-2],r=t[e-1],n=0;for(let a=0;a<e;a+=6)n+=mi(t[a],t[a+1],o,r),o=t[a],r=t[a+1];return Math.floor(n)}expendFill(t){const e=this.polymorphPoints,o=e.length;let r=t-o;const n=Math.ceil(t/o),a=[];a.push(["M",e[0],e[1]]);let i=2;for(;i+5<=o-1;){const l=e[i++],c=e[i++],u=e[i++],h=e[i++],f=e[i++],p=e[i++];a.push(["C",l,c,u,h,f,p]);let d=0;for(;d<n&&r>0;)a.push(["C",f,p,f,p,f,p]),r-=6,d++}return a}static mixPoints(t,e,o){const r=t.length,n=new Array(r);for(let a=0;a<r;a++)n[a]=xe(t[a]+(e[a]-t[a])*o,6);return n}static getPathInterpolator(t,e){return o=>Math.abs(o-0)<Number.EPSILON?t:Math.abs(o-1)<Number.EPSILON?e:Ge.fromPolymorphPoints(Ge.mixPoints(new Ge({d:t}).polymorphPoints,new Ge({d:e}).polymorphPoints,o)).toSVGPathData()}}(function(){if(!window.requestAnimationFrame){let s=pe();window.requestAnimationFrame=function(t){const e=pe(),o=Math.max(0,16-(e-s)),r=window.setTimeout(function(){t(e+o)},o);return s=e+o,r}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(s){clearTimeout(s)})})();const ae=s=>{let t=!1;return window.requestAnimationFrame(function e(o){!t&&s(o)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function xi(s,t=0){if(t==0)return s(pe()),()=>{};{const e=pe();return ae(o=>o-e>=t?(s(o),!1):!0)}}function Tg(s,t=0){let e=!1,o=0;const r=pe(),n=a=>{if(e)return;o++;const i=a-r-o*t;s(a,o,t<=i),xi(n,Math.max(0,t-i))};return xi(n,t),()=>{e=!0}}function Sg(s,t=20){const e=1e3/t;let o=0,r;return()=>(pe()-o>=e&&(o=pe(),r=s()),r)}const Cn=new qa;let wi=!1;function rh(s,t,e){if(s&&t&&Cn.set(s,t),wi)return;wi=!0;const o=pe();Pg(r=>{for(wi=!1;(r.timeRemaining()>0||e&&pe()-o>=e)&&Cn.length>0;){const n=Cn.shift();n&&n[1]()}Cn.length>0&&rh()})}let Tn=0,hs=33,Xo=33,ki;const nh=new MessageChannel,Eg=nh.port2;nh.port1.onmessage=s=>{ki!==null&&ki({didTimeout:Tn<=pe(),timeRemaining:()=>Math.max(0,Tn-pe())})};function Pg(s){return ki=s,requestAnimationFrame(t=>{let e=t-Tn+Xo;e<Xo&&hs<Xo?(e<8&&(e=8),Xo=e<hs?hs:e):e>Xo&&hs>Xo?Xo=e<hs?hs:e:hs=e,Tn=t+Xo,Eg.postMessage(null)})}class vr{static _nextId=0;static nextId(){return vr._nextId++}}const ht={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-ht.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?ht.Bounce.In(s*2)*.5:ht.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(o){return t*Math.random()+e*s(o)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},Ci=ht;function Og(s){switch(s){case ht.Quadratic.In:return ht.Quadratic.Out;case ht.Quadratic.Out:return ht.Quadratic.In;case ht.Quadratic.InOut:return ht.Quadratic.InOut;case ht.Cubic.In:return ht.Cubic.Out;case ht.Cubic.Out:return ht.Cubic.In;case ht.Cubic.InOut:return ht.Cubic.InOut;case ht.Quartic.In:return ht.Quartic.Out;case ht.Quartic.Out:return ht.Quartic.In;case ht.Quartic.InOut:return ht.Quartic.InOut;case ht.Quintic.In:return ht.Quintic.Out;case ht.Quintic.Out:return ht.Quintic.In;case ht.Quintic.InOut:return ht.Quintic.InOut;case ht.Sinusoidal.In:return ht.Sinusoidal.Out;case ht.Sinusoidal.Out:return ht.Sinusoidal.In;case ht.Sinusoidal.InOut:return ht.Sinusoidal.InOut;case ht.Exponential.In:return ht.Exponential.Out;case ht.Exponential.Out:return ht.Exponential.In;case ht.Exponential.InOut:return ht.Exponential.InOut;case ht.Circular.In:return ht.Circular.Out;case ht.Circular.Out:return ht.Circular.In;case ht.Circular.InOut:return ht.Circular.InOut;case ht.Elastic.In:return ht.Elastic.Out;case ht.Elastic.Out:return ht.Elastic.In;case ht.Elastic.InOut:return ht.Elastic.InOut;case ht.Back.In:return ht.Back.Out;case ht.Back.Out:return ht.Back.In;case ht.Back.InOut:return ht.Back.InOut;case ht.Bounce.In:return ht.Bounce.Out;case ht.Bounce.Out:return ht.Bounce.In;case ht.Bounce.InOut:return ht.Bounce.InOut;default:return s}}const Rs={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 o=t;o>1;o--)e*=o;return s[t]=e,e}}(),Bernstein:function(s,t){const e=Rs.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,o,r){const n=(e-s)*.5,a=(o-t)*.5,i=r*r,l=r*i;return(2*t-2*e+n+a)*l+(-3*t+3*e-2*n-a)*i+n*r+t},QuadraticBezier:(s,t,e,o)=>{const r=1-o;return r*r*s+2*r*o*t+o*o*e},CubicBezier:(s,t,e,o,r)=>{const n=1-r;return n*n*n*s+3*n*n*r*t+3*n*r*r*e+r*r*r*o}},Linear:function(s,t){const e=s.length-1,o=e*t,r=Math.floor(o),n=Rs.Utils.Linear;return t<0?n(s[0],s[1],o):t>1?n(s[e],s[e-1],e-o):n(s[r],s[r+1>e?e:r+1],o-r)},Bezier:function(s,t){let e=0;const o=s.length-1,r=Math.pow,n=Rs.Utils.Bernstein;for(let a=0;a<=o;a++)e+=r(1-t,o-a)*r(t,a)*s[a]*n(o,a);return e},CatmullRom:function(s,t){const e=s.length-1;let o=e*t,r=Math.floor(o);const n=Rs.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(r=Math.floor(o=e*(1+t))),n(s[(r-1+e)%e],s[r],s[(r+1)%e],s[(r+2)%e],o-r)):t<0?s[0]-(n(s[0],s[0],s[1],s[1],-o)-s[0]):t>1?s[e]-(n(s[e],s[e],s[e-1],s[e-1],o-e)-s[e]):n(s[r?r-1:0],s[r],s[e<r+1?e:r+1],s[e<r+2?e:r+2],o-r)}},Ti=Rs;class ah{_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=pe(),e=!1){const o=Object.keys(this._tweens);for(let r=0;r<o.length;r++){const n=this._tweens[o[r]],a=!e;n&&n.update(t,a)===!1&&!e&&delete this._tweens[o[r]]}return!!Object.keys(this._tweens).length}}const je=new ah;class ih{constructor(t,e=je){this._object=t,this._group=e}_id=vr.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=Ci.Linear.None;_interpolationFunction=Ti.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=pe()){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,o,r){for(const n in o){const a=t[n],i=Array.isArray(a),l=i?"array":typeof a,c=!i&&Array.isArray(o[n]);if(!(l==="undefined"||l==="function")){if(c){let u=o[n];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,a)),o[n]=[a].concat(u)}if((l==="object"||i)&&a&&!c){e[n]=i?[]:{};for(const u in a)e[n][u]=a[u];r[n]=i?[]:{},this._setupProperties(a,e[n],o[n],r[n])}else typeof e[n]>"u"&&(e[n]=a),i||(e[n]*=1),c?r[n]=o[n].slice().reverse():r[n]=e[n]||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=pe()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=pe()){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=je){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=Ci.Linear.None){return this._easingFunction=t,this}interpolation(t=Ti.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=pe(),e=!0){if(this._isPaused)return!0;let o,r;const n=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>n)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 a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(o in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[o]=="string"&&(this._valuesStartRepeat[o]=this._valuesStartRepeat[o]+parseFloat(this._valuesEnd[o])),this._yoyo&&this._swapEndStartRepeatValues(o),this._valuesStart[o]=this._valuesStartRepeat[o];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 i=0,l=this._chainedTweens.length;i<l;i++)this._chainedTweens[i].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,o,r){for(const n in o){if(e[n]===void 0)continue;const a=e[n]||0;let i=o[n];const l=Array.isArray(t[n]),c=Array.isArray(i);!l&&c?t[n]=this._interpolationFunction(i,r):typeof i=="object"&&i?this._updateProperties(t[n],a,i,r):(i=this._handleRelativeValue(a,i),typeof i=="number"&&(t[n]=a+(i-a)*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],o=this._valuesEnd[t];typeof o=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(o):this._valuesStartRepeat[t]=o,this._valuesEnd[t]=e}}const Ig=ih,Rg=vr.nextId,Fg=je.getAll.bind(je),$g=je.removeAll.bind(je),Dg=je.add.bind(je),Lg=je.remove.bind(je),Mg=je.update.bind(je),_t={now:pe,Sequence:vr,Easing:Ci,Interpolation:Ti,Group:ah,Tween:Ig,nextId:Rg,getAll:Fg,removeAll:$g,add:Dg,remove:Lg,update:Mg};class Ag{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=pe(),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=pe();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const lh=Ag;class Oe{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){i0(this.tweens,(e,o)=>t?e.delay>o.delay:e.delay<=o.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(o=>{const r={...o};delete r.tween,r.fromValues={...r.fromValues},r.toValues={...r.toValues},e.push(r)}),e}addTween(t,e,o){const r={fromValues:t,toValues:e,frames:typeof o?.frames=="number"?o.frames:1,delay:typeof o?.delay=="number"?o.delay:this.tweens.length,easeFunction:o?.easeFunction||ht.Linear.None,interpolationFunction:o?.interpolationFunction||Rs.Linear,repeat:typeof o?.repeat=="number"?o.repeat:0,yoyo:o?.yoyo||!1,onStart:o?.onStart||(()=>{}),onUpdate:o?.onUpdate||(()=>{}),onComplete:o?.onComplete||(()=>{})};return this.tweens.push(r),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new lh,o=this.frameDuration;return new Promise(r=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=ae(n=>{if(!this.isPaused){const i=Math.max(0,n-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*o<=l).forEach(c=>{c.tween||(c.tween=new ih({...c.fromValues}).to({...c.toValues},c.frames*o).easing(c.easeFunction).interpolation(c.interpolationFunction).repeat(c.repeat).yoyo(c.yoyo).onStart(c.onStart).onUpdate(c.onUpdate).onComplete(c.onComplete),c.tween.start(i)),(c.delay+c.frames*(c.repeat+1))*o>l?c.tween.update(i):(c.tween.isPlaying()&&c.tween.end(),Um(t,c))})}const a=!!t.length;return a||(this.onGroupComplete?.(),r()),a})})}isPaused=!1;pausedClock=new lh;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(o=>{e=Math.max(e,o.delay+o.frames),o.easeFunction=Og(o.easeFunction);const r={...o.toValues};o.toValues={...o.fromValues},o.fromValues={...r}}),t.forEach(o=>{o.delay=e-o.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}class oe extends cr{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=Ps(),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 o=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",o),this.strokeDashTotalLength=Ua(o).reduce((r,n)=>r+n,0)}return a0(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Ge,Za(()=>{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(o=>{const r=o.originMatrix?o.originMatrix.clone():new Ue;r.translate(-t.x+o.x,-t.y+o.y),o.originMatrix=r});const e=this.originMatrix?this.originMatrix.clone():new Ue;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,o){if(o instanceof vi)return o.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=o.createSVGPoint(),r.x=t,r.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(r);{const n=this.getBoundingClientRect();if(n)return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height}return!1}isPointInStroke(t,e,o){if(o instanceof vi)return o.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=o.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!1}clone(){return Gm(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(([o,r])=>[to(o),r]))):e&&(this.attrs[to(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[to(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[to(t)]}distance(t){return mi(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ze(Is(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:o,dy:r}=xo(Yt(this.degree),e);this.vx=o,this.vy=r,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:o,dy:r}=xo(Yt(this.degree),e);this.ax=o,this.ay=r,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,o=t.y-this.y,r=e*e+o*o,n=Math.sqrt(r),a=this.mass*t.mass/r,i=a*e/n,l=a*o/n;this.vx+=i/this.mass,this.vy+=l/this.mass,t.vx-=i/t.mass,t.vy-=l/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=Yo(t?.gravity,0);this.vy+=e;const o=Yo(t?.friction,1);this.vx*=o,this.vy*=o,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const o=Yo(e?.easing,.05),r=t.x-this.cX-this.x,n=t.y-this.cY-this.y;this.vx=r*o,this.vy=n*o,this.run(e)}runSpringTo(t,e){const o=Yo(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(r=>{const n=r.x-this.cX-this.x,a=r.y-this.cY-this.y,i=n*o,l=a*o;this.vx+=i,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const o=Yo(e?.springLength,100),r=Yo(e?.spring,1e-4),n=t.x-this.x,a=t.y-this.y,i=Math.sqrt(n*n+a*a);if(i<o){const l=n*r,c=a*r;return this.vx+=l/this.mass,this.vy+=c/this.mass,t.vx-=l/t.mass,t.vy-=c/t.mass,1-i/o}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 o=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*o),this.getPointAtLength(e*o)}strokeDashTween(t=1e3,e){const o=this.initPathD(),r=xe(o.getTotalLength(),0);this.setAttr({strokeDasharray:`${r} ${r}`,strokeDashoffset:`${r}`});const n=e?.onUpdate,a=new Oe({frameDuration:t});a.addTween({offset:r},{offset:0},Object.assign(e||{},{onUpdate:(i,l)=>{this.setAttr("strokeDashoffset",""+xe(i.offset,2)),n?.(i,l)}})),a.play()}}class Ng extends oe{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,o){this.cX=t,this.cY=e,this.cZ=o}rotateX(t){({x:this.y,y:this.z}=lo(Yt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=lo(Yt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=lo(Yt(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 pi(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,o=t.y-this.y,r=t.z-this.z;return Math.sqrt(e*e+o*o+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 o=t/e;this.scalar(o)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,o=this.y,r=this.z;return{x:o*t.z-r*t.y,y:r*t.x-e*t.z,z:e*t.y-o*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 Sn=Ng,ch=[1,0,0,1,0,0],uh=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ue{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=ch){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Ue,o=iu("number",t);return o.length===6&&o.forEach((r,n)=>{r.fullMatch&&(e.value[n]=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 He(e)}identity(){return this.value=Array.from(ch),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 Ue([...this.value])}multiply(t){const e=this.clone(),o=t instanceof Ue?t:new Ue(t);return this.m11=o.m11*e.m11+o.m12*e.m21+o.m13*e.m31,this.m12=o.m11*e.m12+o.m12*e.m22+o.m13*e.m32,this.m13=o.m11*e.m13+o.m12*e.m23+o.m13*e.m33,this.m21=o.m21*e.m11+o.m22*e.m21+o.m23*e.m31,this.m22=o.m21*e.m12+o.m22*e.m22+o.m23*e.m32,this.m23=o.m21*e.m13+o.m22*e.m23+o.m23*e.m33,this.m31=o.m31*e.m11+o.m32*e.m21+o.m33*e.m31,this.m32=o.m31*e.m12+o.m32*e.m22+o.m33*e.m32,this.m33=o.m31*e.m13+o.m32*e.m23+o.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,o=this.m13,r=this.m21,n=this.m22,a=this.m23,i=this.m31,l=this.m32,c=this.m33,u=c*n-a*l,h=-c*r+a*i,f=l*r-n*i;let p=t*u+e*h+o*f;return p?(p=1/p,this.m11=u*p,this.m12=(-c*e+o*l)*p,this.m13=(a*e-o*n)*p,this.m21=h*p,this.m22=(c*t-o*i)*p,this.m23=(-a*t+o*r)*p,this.m31=f*p,this.m32=(-l*t+e*i)*p,this.m33=(n*t-e*r)*p,this):null}adjugate(){const t=new Ue;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=ze(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:ze(Math.atan2(-this.m21,this.m22)),skewY:ze(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],o=this.value[1],r=this.value[2],n=this.value[3],a=this.value[4],i=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],p=t.value[5],d=l*h,b=c*u,_=(u*o-e*h)/(b-d),v=(l*o-e*c)/(d-b),w=(u*n-r*h)/(b-d),g=(l*n-r*c)/(d-b),m=(u*(i-p)+h*(f-a))/(b-d),k=(l*(i-p)+c*(f-a))/(d-b),C=[_,v,w,g,m,k];return new Ue(C)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>xe(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,o){return this.matrix3d.translate(t,e,o),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,o){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,o-this.matrix3d.m43),this}rotate(t,e=0,o=0){const r=Yt(t),n=Math.cos(r),a=Math.sin(r);return this.translate(e,o),this.multiply([n,a,-a,n,0,0]),this.translate(-e,-o),this.toMatrix3D(),this}rotateTo(t,e=0,o=0){const{degree:r}=this.split();return this.rotate(t-r,e,o),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,o){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(o),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,o){const{degreeX:r,degreeY:n,degreeZ:a}=this.matrix3d.split();return this.rotate3d(t-r,e-n,o-a),this}scale(t,e=t,o=0,r=0){return this.translate(o,r),this.multiply([t,0,0,e,0,0]),this.translate(-o,-r),this.toMatrix3D(),this}scaleTo(t,e=t,o=0,r=0){return this.scale(t/this.m11,e/this.m22,o,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,o=t){return this.matrix3d.scale(t,e,o),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,o=t){const{scalarX:r,scalarY:n,scalarZ:a}=this.matrix3d.split();return this.scale3d(t/r,e/n,o/a),this}skew(t,e=t){return this.multiply([Math.cos(Yt(e)),Math.sin(Yt(e)),-Math.sin(Yt(t)),Math.cos(Yt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:o,skewY:r}=this.split();return this.skew(t-o,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,o){return this}skew3dTo(t,e,o){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class He{value;is3dSpecial=!1;constructor(t=uh){this.value=Array.from(t)}static fromString(t){const e=new He,o=iu("number",t);return o.length===16&&o.forEach((r,n)=>{r.fullMatch&&(e.value[n]=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(uh),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 He([...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,o=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+o*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+o*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+o*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+o*this.m44}}toMatrix(t){const{scalarX:e,scalarY:o,skewX:r,skewY:n,x:a,y:i}=this.split(),l=[e,n,r,o,a,i];return t?(t.value=l,t):new Ue(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=>xe(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),o=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),r=ze(ne(Math.asin(-this.m13),-1,1));let n=ze(Math.atan2(this.m23,this.m33));Math.cos(Yt(r))===0&&(n=ze(Math.atan2(-this.m31,this.m22)));let a=ze(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(a+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:o,degreeX:n,degreeY:r,degreeZ:a,skewX:ze(this.m14),skewY:ze(this.m24),skewZ:ze(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,o=this.m12,r=this.m13,n=this.m14,a=this.m21,i=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,p=this.m34,d=this.m41,b=this.m42,_=this.m43,v=this.m44;t[0]=l*p*b-c*f*b+c*h*_-i*p*_-l*h*v+i*f*v,t[1]=n*f*b-r*p*b-n*h*_+o*p*_+r*h*v-o*f*v,t[2]=r*c*b-n*l*b+n*i*_-o*c*_-r*i*v+o*l*v,t[3]=n*l*h-r*c*h-n*i*f+o*c*f+r*i*p-o*l*p;const w=e*t[0]+a*t[1]+u*t[2]+d*t[3];if(w==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*d-l*p*d-c*u*_+a*p*_+l*u*v-a*f*v,t[5]=r*p*d-n*f*d+n*u*_-e*p*_-r*u*v+e*f*v,t[6]=n*l*d-r*c*d-n*a*_+e*c*_+r*a*v-e*l*v,t[7]=r*c*u-n*l*u+n*a*f-e*c*f-r*a*p+e*l*p,t[8]=i*p*d-c*h*d+c*u*b-a*p*b-i*u*v+a*h*v,t[9]=n*h*d-o*p*d-n*u*b+e*p*b+o*u*v-e*h*v,t[10]=o*c*d-n*i*d+n*a*b-e*c*b-o*a*v+e*i*v,t[11]=n*i*u-o*c*u-n*a*h+e*c*h+o*a*p-e*i*p,t[12]=l*h*d-i*f*d-l*u*b+a*f*b+i*u*_-a*h*_,t[13]=o*f*d-r*h*d+r*u*b-e*f*b-o*u*_+e*h*_,t[14]=r*i*d-o*l*d-r*a*b+e*l*b+o*a*_-e*i*_,t[15]=o*l*u-r*i*u+r*a*h-e*l*h-o*a*f+e*i*f,this.value=t,this.scalar(1/w)}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,o=0){return this.multiply(new He([1,0,0,0,0,1,0,0,0,0,1,0,t,e,o,1]))}scale(t=1,e=1,o=1){return this.multiply(new He([t,0,0,0,0,e,0,0,0,0,o,0,0,0,0,1]))}rotateX(t){const e=Yt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new He([1,0,0,0,0,o,r,0,0,-r,o,0,0,0,0,1]))}rotateY(t){const e=Yt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new He([o,0,-r,0,0,1,0,0,r,0,o,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Yt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new He([o,r,0,0,-r,o,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,o=0){return this.multiply(new He([1,0,0,Yt(t),0,1,0,Yt(e),0,0,1,Yt(o),0,0,0,1]))}perspective(t){return this.multiply(new He([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,o=t.x*this.m12+t.y*this.m22+this.m42,r=t.x*this.m13+t.y*this.m23+this.m43,n=t.x*this.m14+t.y*this.m24+this.m44,a=e+this.m31,i=o+this.m32,l=r+this.m33,c=n+this.m34;n==0&&(n=1e-4),e/=n,o/=n,r/=n,c==0&&(c=1e-4),a/=c,i/=c,l/=c;const u=l-r;if(u==0)return{x:e,y:o,z:r,mass:n};const h=-r/u;return e+=h*(a-e),o+=h*(i-o),{x:e,y:o,z:r,mass:n}}project(t){const e=t.z;let o=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,n=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return n==0&&(n=1e-4),o/=n,r/=n,n<0&&(o-=this.m41,r-=this.m42,o*=1/n,r*=1/n,o+=this.m41,r+=this.m42),{x:o,y:r,z:e,mass:n}}bounds(t,e,o,r){const n=new Sn({x:t,y:e}),a=new Sn({x:t+o,y:e}),i=new Sn({x:t+o,y:e+r}),l=new Sn({x:t,y:e+r});({x:n.x,y:n.y,z:n.z,mass:n.mass}=this.project(n)),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:i.x,y:i.y,z:i.z,mass:i.mass}=this.project(i),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(n.x,a.x,i.x,l.x),u=Math.min(n.y,a.y,i.y,l.y),h=Math.max(n.x,a.x,i.x,l.x)-c,f=Math.max(n.y,a.y,i.y,l.y)-u;return{x:c,y:u,width:h,height:f}}}function hh(s){const t=new Ue;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,o,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const n=[];for(let a=0,i=r.length;a<i;a++)r[a].trim()&&n.push(parseFloat(""+r[a]));switch(o.toLowerCase()){case"t":case"translate":t.translate(n[0],n[1]);break;case"translatex":t.translateX(n[0]);break;case"translatey":t.translateY(n[0]);break;case"translatez":t.translateZ(n[0]);break;case"translate3d":t.translate3d(n[0],n[1],n[2]);break;case"r":case"rotate":t.rotate(n[0],n[1]??0,n[2]??0);break;case"rotatex":t.rotateX(n[0]);break;case"rotatey":t.rotateY(n[0]);break;case"rotatez":t.rotateZ(n[0]);break;case"rotate3d":t.rotate3d(n[0],n[1],n[2]);break;case"s":case"scale":t.scale(n[0],n[1]??n[0]);break;case"scalex":t.scaleX(n[0]);break;case"scaley":t.scaleY(n[0]);break;case"scalez":t.scaleZ(n[0]);break;case"scale3d":t.scale3d(n[0],n[1],n[2]);break;case"skew":t.skew(n[0],n[1]??0);break;case"skewx":t.skewX(n[0]);break;case"skewy":t.skewY(n[0]);break;case"skewz":t.skewZ(n[0]);break;case"skew3d":t.skew3d(n[0],n[1],n[2]);break;case"m":case"matrix":t.multiply([n[0],n[1],n[2],n[3],n[4],n[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new He(n)),t.matrix3d.toMatrix(t);break}return""}),t}function lo(s,t,e){const o=new Ue;return o.rotate(ze(s)),o.transformPoint({x:t,y:e})}class co extends oe{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(o=>{!o.independentTransformInGroup&&!o.isDragging&&(o.x=this.x+o.diffXInGroup,o.y=this.y+o.diffYInGroup,o.degree=this.degree+o.diffDegreeInGroup,o.scalarX=this.scalarX*o.diffScalarXInGroup,o.scalarY=this.scalarY*o.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(o=>o.id==e.id)==-1&&(e.on("draging",(o,r)=>{this.enableDrag&&(this.x+=o,this.y+=r,this.emit("draging",o,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 o=this.pathd?.getBoundingClientRect();if(o&&(o.width||o.height)&&(t.push(o.x,o.x+o.width),e.push(o.y,o.y+o.height)),t.length==0||e.length==0)return null;const r=Math.min.apply(0,t),n=Math.min.apply(0,e),a=Math.max.apply(0,t),i=Math.max.apply(0,e);return{x:r,y:n,width:a-r,height:i-n}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(o=>{o.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(o=>{o.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,o=this.shapes.length;if(e<o)return t.expendFill(this);for(let r=o;r<e;r++){const a=t.shapes[r].initPathD().polymorphPoints,i=a[0],l=a[1],c=[["M",i,l]];for(let u=2;u+5<a.length;u+=6)c.push(["C",i,l,i,l,i,l]);this.addShape(new oe({attrs:{...t.shapes[r].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const o=this.shapes.length-1;this.shapes.forEach((i,l)=>{i.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==o&&e?.onGroupComplete?.()}})});break;case"parallel":default:const r=new Oe({frameDuration:t}),n={},a={};this.shapes.forEach((i,l)=>{const c=xe(i.getTotalLength(),0);n[`offset_${l}`]=c,a[`offset_${l}`]=0,i.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),r.addTween(n,a,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(i,l)=>{for(let c in i){const u=io(c).number;this.shapes[u].setAttr("strokeDashoffset",""+xe(i[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),r.play();break}}}const Fs=co,zg=getComputedStyle(document.documentElement);function Lt(s){return zg.getPropertyValue(s)}const vt={safeAreaTop:Lt("--safe-area-inset-top"),safeAreaRight:Lt("--safe-area-inset-right"),safeAreaBottom:Lt("--safe-area-inset-bottom"),safeAreaLeft:Lt("--safe-area-inset-left"),colorPrimary:Lt("--color-primary")||"#5078f0",colorRed:Lt("--color-red")||"#ff5050",colorOrange:Lt("--color-orange")||"#fa8c00",colorYellow:Lt("--color-yellow")||"#fadc32",colorGreen:Lt("--color-green")||"#00c878",colorBlue:Lt("--color-blue")||"#00b4fa",colorPurple:Lt("--color-purple")||"#6464fa",colorBlack:Lt("--color-black")||"#001428",colorGray00:Lt("--color-gray-00")||"#000000",colorGray33:Lt("--color-gray-33")||"#333333",colorGray66:Lt("--color-gray-66")||"#666666",colorGray99:Lt("--color-gray-99")||"#999999",colorGrayCC:Lt("--color-gray-cc")||"#cccccc",colorGrayDD:Lt("--color-gray-dd")||"#dddddd",colorGrayE6:Lt("--color-gray-e6")||"#e6e6e6",colorGrayEE:Lt("--color-gray-ee")||"#eeeeee",colorGrayEF:Lt("--color-gray-ef")||"#efefef",colorGrayF5:Lt("--color-gray-f5")||"#f5f5f5",colorGrayFF:Lt("--color-gray-ff")||"#ffffff",fontLineHeight:Lt("--font-line-height")||"1.4",fontSize32:Lt("--font-size-32")||"32px",fontSize24:Lt("--font-size-24")||"24px",fontSize22:Lt("--font-size-22")||"22px",fontSize20:Lt("--font-size-20")||"20px",fontSize18:Lt("--font-size-18")||"18px",fontSize16:Lt("--font-size-16")||"16px",fontSize14:Lt("--font-size-14")||"14px",fontSize12:Lt("--font-size-12")||"12px",fontSize10:Lt("--font-size-10")||"10px",d4:Lt("--distance-4")||"4px",d8:Lt("--distance-8")||"8px",d12:Lt("--distance-12")||"12px",d16:Lt("--distance-16")||"16px",d20:Lt("--distance-20")||"20px",d32:Lt("--distance-32")||"32px",d40:Lt("--distance-40")||"40px",d44:Lt("--distance-44")||"44px"};class It{__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=Si(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=ne(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=ne(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=ne(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=ne(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,e,o){return this.r=t,this.g=e,this.b=o,this}setRGBA(t,e,o,r){return this.r=t,this.g=e,this.b=o,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},${xe(this.a,6)})`}clone(){return new It(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",o="#ffffff"){if(t)return new It(this.r*.299+this.g*.587+this.b*.114>186?e:o);{const r=this.clone();return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,r}}lighten(t){t=ne(Math.abs(t),0,1);let{r:e,g:o,b:r}=this.color;return e+=(255-e)*t,o+=(255-o)*t,r+=(255-r)*t,new It().setRGBA(e,o,r,this.color.a)}darken(t){t=ne(Math.abs(t),0,1);let{r:e,g:o,b:r}=this.color;return e=e*(1-t),o=o*(1-t),r=r*(1-t),new It().setRGBA(e,o,r,this.color.a)}static gradient(t,e,o){try{const r=Si(t),n=Si(e);return new It().setRGB((n.r-r.r)*o+r.r,(n.g-r.g)*o+r.g,(n.b-r.b)*o+r.b)}catch{return new It(e)}}static random(){return new It(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:o,a:r}=this.color,n=Math.max(t,e,o),a=Math.min(t,e,o),i=n-a;let l;return t===n?l=(e-o)/i:e===n?l=2+(o-t)/i:l=4+(t-e)/i,l/=6,l<0&&(l+=1),{h:i==0?0:l*360,s:n===0?0:i/n,v:n/255,a:r}}set h(t){const e=this.hsv;e.h=ne(t,0,360),this.setColor(e)}get h(){return this.hsv.h}set s(t){const e=this.hsv;e.s=ne(t,0,1),this.setColor(e)}get s(){return this.hsv.s}set v(t){const e=this.hsv;e.v=ne(t,0,1),this.setColor(e)}get v(){return this.hsv.v}}function ge(s,t){return new It(s,t)}function Si(s){const t=Object.prototype.hasOwnProperty.call(s,"a")?ne(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=ne(Math.round(s.r),0,255),s.g=ne(Math.round(s.g),0,255),s.b=ne(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 o=ne(s.h,0,360),r=ne(s.s,0,1),n=ne(s.v,0,1),a=Math.floor(o/60)%6,i=o/60-Math.floor(o/60),l=n*(1-r),c=n*(1-i*r),u=n*(1-(1-i)*r),h=[[n,u,l],[c,n,l],[l,n,u],[l,c,n],[u,l,n],[n,l,c]][a];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 o=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);if(o)e.r=parseInt(o[1]),e.g=parseInt(o[2]),e.b=parseInt(o[3]),o[4]&&(e.a=parseFloat(o[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=ne(e.r,0,255),e.g=ne(e.g,0,255),e.b=ne(e.b,0,255),e.a=ne(e.a,0,1),e}const Bg=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],Go={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};Go.buttonColor=new It(Go.saveRowColor).darken(.1).toString(),Go.borderColor=new It(Go.backgroundColor).lighten(.07).toString(),Go.inputColor=new It(Go.backgroundColor).lighten(.085).toString();class ve extends oe{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,o=this.toY-this.y;return new Proxy(this,{set(r,n,a,i){switch(n){case"x":r.toX=a+e;break;case"y":r.toY=a+o;break;case"toX":e=a-r.x;break;case"toY":o=a-r.y;break}return Reflect.set(r,n,a,i)}})}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 eh({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),o=new eh({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(o)}}class En extends oe{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,o=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,o-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}var dh={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
39
39
|
* http://hammerjs.github.io/
|
|
40
40
|
*
|
|
41
41
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
42
42
|
* Licensed under the MIT license */(function(s){(function(t,e,o,r){var n=["","webkit","Moz","MS","ms","o"],a=e.createElement("div"),i="function",l=Math.round,c=Math.abs,u=Date.now;function h(y,x,O){return setTimeout(g(y,O),x)}function f(y,x,O){return Array.isArray(y)?(p(y,O[x],O),!0):!1}function p(y,x,O){var B;if(y)if(y.forEach)y.forEach(x,O);else if(y.length!==r)for(B=0;B<y.length;)x.call(O,y[B],B,y),B++;else for(B in y)y.hasOwnProperty(B)&&x.call(O,y[B],B,y)}function d(y,x,O){var B="DEPRECATED METHOD: "+x+`
|
|
43
43
|
`+O+` AT
|
|
44
|
-
`;return function(){var ot=new Error("get-stack-trace"),mt=ot&&ot.stack?ot.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Bt=t.console&&(t.console.warn||t.console.log);return Bt&&Bt.call(t.console,B,mt),y.apply(this,arguments)}}var b;typeof Object.assign!="function"?b=function(x){if(x===r||x===null)throw new TypeError("Cannot convert undefined or null to object");for(var O=Object(x),B=1;B<arguments.length;B++){var ot=arguments[B];if(ot!==r&&ot!==null)for(var mt in ot)ot.hasOwnProperty(mt)&&(O[mt]=ot[mt])}return O}:b=Object.assign;var _=d(function(x,O,B){for(var ot=Object.keys(O),mt=0;mt<ot.length;)(!B||B&&x[ot[mt]]===r)&&(x[ot[mt]]=O[ot[mt]]),mt++;return x},"extend","Use `assign`."),v=d(function(x,O){return _(x,O,!0)},"merge","Use `assign`.");function w(y,x,O){var B=x.prototype,ot;ot=y.prototype=Object.create(B),ot.constructor=y,ot._super=B,O&&b(ot,O)}function g(y,x){return function(){return y.apply(x,arguments)}}function m(y,x){return typeof y==i?y.apply(x&&x[0]||r,x):y}function k(y,x){return y===r?x:y}function C(y,x,O){p(D(x),function(B){y.addEventListener(B,O,!1)})}function z(y,x,O){p(D(x),function(B){y.removeEventListener(B,O,!1)})}function tt(y,x){for(;y;){if(y==x)return!0;y=y.parentNode}return!1}function R(y,x){return y.indexOf(x)>-1}function D(y){return y.trim().split(/\s+/g)}function M(y,x,O){if(y.indexOf&&!O)return y.indexOf(x);for(var B=0;B<y.length;){if(O&&y[B][O]==x||!O&&y[B]===x)return B;B++}return-1}function $(y){return Array.prototype.slice.call(y,0)}function N(y,x,O){for(var B=[],ot=[],mt=0;mt<y.length;){var Bt=x?y[mt][x]:y[mt];M(ot,Bt)<0&&B.push(y[mt]),ot[mt]=Bt,mt++}return O&&(x?B=B.sort(function(Ee,Me){return Ee[x]>Me[x]}):B=B.sort()),B}function G(y,x){for(var O,B,ot=x[0].toUpperCase()+x.slice(1),mt=0;mt<n.length;){if(O=n[mt],B=O?O+ot:x,B in y)return B;mt++}return r}var st=1;function K(){return st++}function q(y){var x=y.ownerDocument||y;return x.defaultView||x.parentWindow||t}var nt=/mobile|tablet|ip(ad|hone|od)|android/i,U="ontouchstart"in t,H=G(t,"PointerEvent")!==r,gt=U&&nt.test(navigator.userAgent),ft="touch",Y="pen",P="mouse",Vt="kinect",Nt=25,Ct=1,Kt=2,Gt=4,j=8,$e=1,Ve=2,Ie=4,S=8,F=16,X=Ve|Ie,W=S|F,Z=X|W,rt=["x","y"],ct=["clientX","clientY"];function J(y,x){var O=this;this.manager=y,this.callback=x,this.element=y.element,this.target=y.options.inputTarget,this.domHandler=function(B){m(y.options.enable,[y])&&O.handler(B)},this.init()}J.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(q(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(q(this.element),this.evWin,this.domHandler)}};function at(y){var x,O=y.options.inputClass;return O?x=O:H?x=nl:gt?x=Un:U?x=al:x=Le,new x(y,et)}function et(y,x,O){var B=O.pointers.length,ot=O.changedPointers.length,mt=x&Ct&&B-ot===0,Bt=x&(Gt|j)&&B-ot===0;O.isFirst=!!mt,O.isFinal=!!Bt,mt&&(y.session={}),O.eventType=x,dt(y,O),y.emit("hammer.input",O),y.recognize(O),y.session.prevInput=O}function dt(y,x){var O=y.session,B=x.pointers,ot=B.length;O.firstInput||(O.firstInput=It(x)),ot>1&&!O.firstMultiple?O.firstMultiple=It(x):ot===1&&(O.firstMultiple=!1);var mt=O.firstInput,Bt=O.firstMultiple,we=Bt?Bt.center:mt.center,Ee=x.center=At(B);x.timeStamp=u(),x.deltaTime=x.timeStamp-mt.timeStamp,x.angle=De(we,Ee),x.distance=le(we,Ee),Tt(O,x),x.offsetDirection=Jt(x.deltaX,x.deltaY);var Me=Ut(x.deltaTime,x.deltaX,x.deltaY);x.overallVelocityX=Me.x,x.overallVelocityY=Me.y,x.overallVelocity=c(Me.x)>c(Me.y)?Me.x:Me.y,x.scale=Bt?Vn(Bt.pointers,B):1,x.rotation=Bt?Ho(Bt.pointers,B):0,x.maxPointers=O.prevInput?x.pointers.length>O.prevInput.maxPointers?x.pointers.length:O.prevInput.maxPointers:x.pointers.length,wt(O,x);var po=y.element;tt(x.srcEvent.target,po)&&(po=x.srcEvent.target),x.target=po}function Tt(y,x){var O=x.center,B=y.offsetDelta||{},ot=y.prevDelta||{},mt=y.prevInput||{};(x.eventType===Ct||mt.eventType===Gt)&&(ot=y.prevDelta={x:mt.deltaX||0,y:mt.deltaY||0},B=y.offsetDelta={x:O.x,y:O.y}),x.deltaX=ot.x+(O.x-B.x),x.deltaY=ot.y+(O.y-B.y)}function wt(y,x){var O=y.lastInterval||x,B=x.timeStamp-O.timeStamp,ot,mt,Bt,we;if(x.eventType!=j&&(B>Nt||O.velocity===r)){var Ee=x.deltaX-O.deltaX,Me=x.deltaY-O.deltaY,po=Ut(B,Ee,Me);mt=po.x,Bt=po.y,ot=c(po.x)>c(po.y)?po.x:po.y,we=Jt(Ee,Me),y.lastInterval=x}else ot=O.velocity,mt=O.velocityX,Bt=O.velocityY,we=O.direction;x.velocity=ot,x.velocityX=mt,x.velocityY=Bt,x.direction=we}function It(y){for(var x=[],O=0;O<y.pointers.length;)x[O]={clientX:l(y.pointers[O].clientX),clientY:l(y.pointers[O].clientY)},O++;return{timeStamp:u(),pointers:x,center:At(x),deltaX:y.deltaX,deltaY:y.deltaY}}function At(y){var x=y.length;if(x===1)return{x:l(y[0].clientX),y:l(y[0].clientY)};for(var O=0,B=0,ot=0;ot<x;)O+=y[ot].clientX,B+=y[ot].clientY,ot++;return{x:l(O/x),y:l(B/x)}}function Ut(y,x,O){return{x:x/y||0,y:O/y||0}}function Jt(y,x){return y===x?$e:c(y)>=c(x)?y<0?Ve:Ie:x<0?S:F}function le(y,x,O){O||(O=rt);var B=x[O[0]]-y[O[0]],ot=x[O[1]]-y[O[1]];return Math.sqrt(B*B+ot*ot)}function De(y,x,O){O||(O=rt);var B=x[O[0]]-y[O[0]],ot=x[O[1]]-y[O[1]];return Math.atan2(ot,B)*180/Math.PI}function Ho(y,x){return De(x[1],x[0],ct)+De(y[1],y[0],ct)}function Vn(y,x){return le(x[0],x[1],ct)/le(y[0],y[1],ct)}var ys={mousedown:Ct,mousemove:Kt,mouseup:Gt},Xn="mousedown",Se="mousemove mouseup";function Le(){this.evEl=Xn,this.evWin=Se,this.pressed=!1,J.apply(this,arguments)}w(Le,J,{handler:function(x){var O=ys[x.type];O&Ct&&x.button===0&&(this.pressed=!0),O&Kt&&x.which!==1&&(O=Gt),this.pressed&&(O&Gt&&(this.pressed=!1),this.callback(this.manager,O,{pointers:[x],changedPointers:[x],pointerType:P,srcEvent:x}))}});var Gn={pointerdown:Ct,pointermove:Kt,pointerup:Gt,pointercancel:j,pointerout:j},U_={2:ft,3:Y,4:P,5:Vt},Dd="pointerdown",Ld="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Dd="MSPointerDown",Ld="MSPointerMove MSPointerUp MSPointerCancel");function nl(){this.evEl=Dd,this.evWin=Ld,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}w(nl,J,{handler:function(x){var O=this.store,B=!1,ot=x.type.toLowerCase().replace("ms",""),mt=Gn[ot],Bt=U_[x.pointerType]||x.pointerType,we=Bt==ft,Ee=M(O,x.pointerId,"pointerId");mt&Ct&&(x.button===0||we)?Ee<0&&(O.push(x),Ee=O.length-1):mt&(Gt|j)&&(B=!0),!(Ee<0)&&(O[Ee]=x,this.callback(this.manager,mt,{pointers:O,changedPointers:[x],pointerType:Bt,srcEvent:x}),B&&O.splice(Ee,1))}});var j_={touchstart:Ct,touchmove:Kt,touchend:Gt,touchcancel:j},H_="touchstart",W_="touchstart touchmove touchend touchcancel";function Md(){this.evTarget=H_,this.evWin=W_,this.started=!1,J.apply(this,arguments)}w(Md,J,{handler:function(x){var O=j_[x.type];if(O===Ct&&(this.started=!0),!!this.started){var B=Z_.call(this,x,O);O&(Gt|j)&&B[0].length-B[1].length===0&&(this.started=!1),this.callback(this.manager,O,{pointers:B[0],changedPointers:B[1],pointerType:ft,srcEvent:x})}}});function Z_(y,x){var O=$(y.touches),B=$(y.changedTouches);return x&(Gt|j)&&(O=N(O.concat(B),"identifier",!0)),[O,B]}var q_={touchstart:Ct,touchmove:Kt,touchend:Gt,touchcancel:j},Q_="touchstart touchmove touchend touchcancel";function Un(){this.evTarget=Q_,this.targetIds={},J.apply(this,arguments)}w(Un,J,{handler:function(x){var O=q_[x.type],B=K_.call(this,x,O);B&&this.callback(this.manager,O,{pointers:B[0],changedPointers:B[1],pointerType:ft,srcEvent:x})}});function K_(y,x){var O=$(y.touches),B=this.targetIds;if(x&(Ct|Kt)&&O.length===1)return B[O[0].identifier]=!0,[O,O];var ot,mt,Bt=$(y.changedTouches),we=[],Ee=this.target;if(mt=O.filter(function(Me){return tt(Me.target,Ee)}),x===Ct)for(ot=0;ot<mt.length;)B[mt[ot].identifier]=!0,ot++;for(ot=0;ot<Bt.length;)B[Bt[ot].identifier]&&we.push(Bt[ot]),x&(Gt|j)&&delete B[Bt[ot].identifier],ot++;if(we.length)return[N(mt.concat(we),"identifier",!0),we]}var J_=2500,Ad=25;function al(){J.apply(this,arguments);var y=g(this.handler,this);this.touch=new Un(this.manager,y),this.mouse=new Le(this.manager,y),this.primaryTouch=null,this.lastTouches=[]}w(al,J,{handler:function(x,O,B){var ot=B.pointerType==ft,mt=B.pointerType==P;if(!(mt&&B.sourceCapabilities&&B.sourceCapabilities.firesTouchEvents)){if(ot)tx.call(this,O,B);else if(mt&&ex.call(this,B))return;this.callback(x,O,B)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function tx(y,x){y&Ct?(this.primaryTouch=x.changedPointers[0].identifier,Nd.call(this,x)):y&(Gt|j)&&Nd.call(this,x)}function Nd(y){var x=y.changedPointers[0];if(x.identifier===this.primaryTouch){var O={x:x.clientX,y:x.clientY};this.lastTouches.push(O);var B=this.lastTouches,ot=function(){var mt=B.indexOf(O);mt>-1&&B.splice(mt,1)};setTimeout(ot,J_)}}function ex(y){for(var x=y.srcEvent.clientX,O=y.srcEvent.clientY,B=0;B<this.lastTouches.length;B++){var ot=this.lastTouches[B],mt=Math.abs(x-ot.x),Bt=Math.abs(O-ot.y);if(mt<=Ad&&Bt<=Ad)return!0}return!1}var zd=G(a.style,"touchAction"),Bd=zd!==r,Yd="compute",Vd="auto",il="manipulation",vs="none",wr="pan-x",kr="pan-y",jn=sx();function ll(y,x){this.manager=y,this.set(x)}ll.prototype={set:function(y){y==Yd&&(y=this.compute()),Bd&&this.manager.element.style&&jn[y]&&(this.manager.element.style[zd]=y),this.actions=y.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var y=[];return p(this.manager.recognizers,function(x){m(x.options.enable,[x])&&(y=y.concat(x.getTouchAction()))}),ox(y.join(" "))},preventDefaults:function(y){var x=y.srcEvent,O=y.offsetDirection;if(this.manager.session.prevented){x.preventDefault();return}var B=this.actions,ot=R(B,vs)&&!jn[vs],mt=R(B,kr)&&!jn[kr],Bt=R(B,wr)&&!jn[wr];if(ot){var we=y.pointers.length===1,Ee=y.distance<2,Me=y.deltaTime<250;if(we&&Ee&&Me)return}if(!(Bt&&mt)&&(ot||mt&&O&X||Bt&&O&W))return this.preventSrc(x)},preventSrc:function(y){this.manager.session.prevented=!0,y.preventDefault()}};function ox(y){if(R(y,vs))return vs;var x=R(y,wr),O=R(y,kr);return x&&O?vs:x||O?x?wr:kr:R(y,il)?il:Vd}function sx(){if(!Bd)return!1;var y={},x=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(O){y[O]=x?t.CSS.supports("touch-action",O):!0}),y}var Hn=1,Ze=2,zs=4,Wo=8,Co=Wo,Cr=16,fo=32;function To(y){this.options=b({},this.defaults,y||{}),this.id=K(),this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=Hn,this.simultaneous={},this.requireFail=[]}To.prototype={defaults:{},set:function(y){return b(this.options,y),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(y){if(f(y,"recognizeWith",this))return this;var x=this.simultaneous;return y=Wn(y,this),x[y.id]||(x[y.id]=y,y.recognizeWith(this)),this},dropRecognizeWith:function(y){return f(y,"dropRecognizeWith",this)?this:(y=Wn(y,this),delete this.simultaneous[y.id],this)},requireFailure:function(y){if(f(y,"requireFailure",this))return this;var x=this.requireFail;return y=Wn(y,this),M(x,y)===-1&&(x.push(y),y.requireFailure(this)),this},dropRequireFailure:function(y){if(f(y,"dropRequireFailure",this))return this;y=Wn(y,this);var x=M(this.requireFail,y);return x>-1&&this.requireFail.splice(x,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(y){return!!this.simultaneous[y.id]},emit:function(y){var x=this,O=this.state;function B(ot){x.manager.emit(ot,y)}O<Wo&&B(x.options.event+Xd(O)),B(x.options.event),y.additionalEvent&&B(y.additionalEvent),O>=Wo&&B(x.options.event+Xd(O))},tryEmit:function(y){if(this.canEmit())return this.emit(y);this.state=fo},canEmit:function(){for(var y=0;y<this.requireFail.length;){if(!(this.requireFail[y].state&(fo|Hn)))return!1;y++}return!0},recognize:function(y){var x=b({},y);if(!m(this.options.enable,[this,x])){this.reset(),this.state=fo;return}this.state&(Co|Cr|fo)&&(this.state=Hn),this.state=this.process(x),this.state&(Ze|zs|Wo|Cr)&&this.tryEmit(x)},process:function(y){},getTouchAction:function(){},reset:function(){}};function Xd(y){return y&Cr?"cancel":y&Wo?"end":y&zs?"move":y&Ze?"start":""}function Gd(y){return y==F?"down":y==S?"up":y==Ve?"left":y==Ie?"right":""}function Wn(y,x){var O=x.manager;return O?O.get(y):y}function eo(){To.apply(this,arguments)}w(eo,To,{defaults:{pointers:1},attrTest:function(y){var x=this.options.pointers;return x===0||y.pointers.length===x},process:function(y){var x=this.state,O=y.eventType,B=x&(Ze|zs),ot=this.attrTest(y);return B&&(O&j||!ot)?x|Cr:B||ot?O&Gt?x|Wo:x&Ze?x|zs:Ze:fo}});function Zn(){eo.apply(this,arguments),this.pX=null,this.pY=null}w(Zn,eo,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var y=this.options.direction,x=[];return y&X&&x.push(kr),y&W&&x.push(wr),x},directionTest:function(y){var x=this.options,O=!0,B=y.distance,ot=y.direction,mt=y.deltaX,Bt=y.deltaY;return ot&x.direction||(x.direction&X?(ot=mt===0?$e:mt<0?Ve:Ie,O=mt!=this.pX,B=Math.abs(y.deltaX)):(ot=Bt===0?$e:Bt<0?S:F,O=Bt!=this.pY,B=Math.abs(y.deltaY))),y.direction=ot,O&&B>x.threshold&&ot&x.direction},attrTest:function(y){return eo.prototype.attrTest.call(this,y)&&(this.state&Ze||!(this.state&Ze)&&this.directionTest(y))},emit:function(y){this.pX=y.deltaX,this.pY=y.deltaY;var x=Gd(y.direction);x&&(y.additionalEvent=this.options.event+x),this._super.emit.call(this,y)}});function cl(){eo.apply(this,arguments)}w(cl,eo,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[vs]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.scale-1)>this.options.threshold||this.state&Ze)},emit:function(y){if(y.scale!==1){var x=y.scale<1?"in":"out";y.additionalEvent=this.options.event+x}this._super.emit.call(this,y)}});function ul(){To.apply(this,arguments),this._timer=null,this._input=null}w(ul,To,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Vd]},process:function(y){var x=this.options,O=y.pointers.length===x.pointers,B=y.distance<x.threshold,ot=y.deltaTime>x.time;if(this._input=y,!B||!O||y.eventType&(Gt|j)&&!ot)this.reset();else if(y.eventType&Ct)this.reset(),this._timer=h(function(){this.state=Co,this.tryEmit()},x.time,this);else if(y.eventType&Gt)return Co;return fo},reset:function(){clearTimeout(this._timer)},emit:function(y){this.state===Co&&(y&&y.eventType&Gt?this.manager.emit(this.options.event+"up",y):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function hl(){eo.apply(this,arguments)}w(hl,eo,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[vs]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.rotation)>this.options.threshold||this.state&Ze)}});function dl(){eo.apply(this,arguments)}w(dl,eo,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:X|W,pointers:1},getTouchAction:function(){return Zn.prototype.getTouchAction.call(this)},attrTest:function(y){var x=this.options.direction,O;return x&(X|W)?O=y.overallVelocity:x&X?O=y.overallVelocityX:x&W&&(O=y.overallVelocityY),this._super.attrTest.call(this,y)&&x&y.offsetDirection&&y.distance>this.options.threshold&&y.maxPointers==this.options.pointers&&c(O)>this.options.velocity&&y.eventType&Gt},emit:function(y){var x=Gd(y.offsetDirection);x&&this.manager.emit(this.options.event+x,y),this.manager.emit(this.options.event,y)}});function qn(){To.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}w(qn,To,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[il]},process:function(y){var x=this.options,O=y.pointers.length===x.pointers,B=y.distance<x.threshold,ot=y.deltaTime<x.time;if(this.reset(),y.eventType&Ct&&this.count===0)return this.failTimeout();if(B&&ot&&O){if(y.eventType!=Gt)return this.failTimeout();var mt=this.pTime?y.timeStamp-this.pTime<x.interval:!0,Bt=!this.pCenter||le(this.pCenter,y.center)<x.posThreshold;this.pTime=y.timeStamp,this.pCenter=y.center,!Bt||!mt?this.count=1:this.count+=1,this._input=y;var we=this.count%x.taps;if(we===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Co,this.tryEmit()},x.interval,this),Ze):Co}return fo},failTimeout:function(){return this._timer=h(function(){this.state=fo},this.options.interval,this),fo},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Co&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function So(y,x){return x=x||{},x.recognizers=k(x.recognizers,So.defaults.preset),new fl(y,x)}So.VERSION="2.0.7",So.defaults={domEvents:!1,touchAction:Yd,enable:!0,inputTarget:null,inputClass:null,preset:[[hl,{enable:!1}],[cl,{enable:!1},["rotate"]],[dl,{direction:X}],[Zn,{direction:X},["swipe"]],[qn],[qn,{event:"doubletap",taps:2},["tap"]],[ul]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var rx=1,Ud=2;function fl(y,x){this.options=b({},So.defaults,x||{}),this.options.inputTarget=this.options.inputTarget||y,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=y,this.input=at(this),this.touchAction=new ll(this,this.options.touchAction),jd(this,!0),p(this.options.recognizers,function(O){var B=this.add(new O[0](O[1]));O[2]&&B.recognizeWith(O[2]),O[3]&&B.requireFailure(O[3])},this)}fl.prototype={set:function(y){return b(this.options,y),y.touchAction&&this.touchAction.update(),y.inputTarget&&(this.input.destroy(),this.input.target=y.inputTarget,this.input.init()),this},stop:function(y){this.session.stopped=y?Ud:rx},recognize:function(y){var x=this.session;if(!x.stopped){this.touchAction.preventDefaults(y);var O,B=this.recognizers,ot=x.curRecognizer;(!ot||ot&&ot.state&Co)&&(ot=x.curRecognizer=null);for(var mt=0;mt<B.length;)O=B[mt],x.stopped!==Ud&&(!ot||O==ot||O.canRecognizeWith(ot))?O.recognize(y):O.reset(),!ot&&O.state&(Ze|zs|Wo)&&(ot=x.curRecognizer=O),mt++}},get:function(y){if(y instanceof To)return y;for(var x=this.recognizers,O=0;O<x.length;O++)if(x[O].options.event==y)return x[O];return null},add:function(y){if(f(y,"add",this))return this;var x=this.get(y.options.event);return x&&this.remove(x),this.recognizers.push(y),y.manager=this,this.touchAction.update(),y},remove:function(y){if(f(y,"remove",this))return this;if(y=this.get(y),y){var x=this.recognizers,O=M(x,y);O!==-1&&(x.splice(O,1),this.touchAction.update())}return this},on:function(y,x){if(y!==r&&x!==r){var O=this.handlers;return p(D(y),function(B){O[B]=O[B]||[],O[B].push(x)}),this}},off:function(y,x){if(y!==r){var O=this.handlers;return p(D(y),function(B){x?O[B]&&O[B].splice(M(O[B],x),1):delete O[B]}),this}},emit:function(y,x){this.options.domEvents&&nx(y,x);var O=this.handlers[y]&&this.handlers[y].slice();if(!(!O||!O.length)){x.type=y,x.preventDefault=function(){x.srcEvent.preventDefault()};for(var B=0;B<O.length;)O[B](x),B++}},destroy:function(){this.element&&jd(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function jd(y,x){var O=y.element;if(O.style){var B;p(y.options.cssProps,function(ot,mt){B=G(O.style,mt),x?(y.oldCssProps[B]=O.style[B],O.style[B]=ot):O.style[B]=y.oldCssProps[B]||""}),x||(y.oldCssProps={})}}function nx(y,x){var O=e.createEvent("Event");O.initEvent(y,!0,!0),O.gesture=x,x.target.dispatchEvent(O)}b(So,{INPUT_START:Ct,INPUT_MOVE:Kt,INPUT_END:Gt,INPUT_CANCEL:j,STATE_POSSIBLE:Hn,STATE_BEGAN:Ze,STATE_CHANGED:zs,STATE_ENDED:Wo,STATE_RECOGNIZED:Co,STATE_CANCELLED:Cr,STATE_FAILED:fo,DIRECTION_NONE:$e,DIRECTION_LEFT:Ve,DIRECTION_RIGHT:Ie,DIRECTION_UP:S,DIRECTION_DOWN:F,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:W,DIRECTION_ALL:Z,Manager:fl,Input:J,TouchAction:ll,TouchInput:Un,MouseInput:Le,PointerEventInput:nl,TouchMouseInput:al,SingleTouchInput:Md,Recognizer:To,AttrRecognizer:eo,Tap:qn,Pan:Zn,Swipe:dl,Pinch:cl,Rotate:hl,Press:ul,on:C,off:z,each:p,merge:v,extend:_,assign:b,inherit:w,bindFn:g,prefixed:G});var ax=typeof t<"u"?t:typeof self<"u"?self:{};ax.Hammer=So,typeof r=="function"&&r.amd?r(function(){return So}):s.exports?s.exports=So:t[o]=So})(window,document,"Hammer")})(dh);var Yg=dh.exports;const Vg=cg(Yg);function Ei(){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 $s(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function Xg(s){const{top:t,left:e,width:o,height:r}=s.getBoundingClientRect(),{scrollLeft:n,scrollTop:a}=Ei();return{x:e+n,y:t+a,width:o,height:r}}function Gg(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=Ei(),o=e-s;return o<=0?0:t/o*100}function Ug(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}=Ei();return{x:s.clientX+t,y:s.clientY+e}}function uo(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=Ug(s),o=Xg(t||s.target);return{x:e.x-o.x,y:e.y-o.y}}class We extends cr{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,e=!0,o){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new Vg(this.container),e&&this.start(o)}emitDebounce=s0((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(uo(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=j=>{this.emit("mouseDown",j)},e=j=>{this.emit("mouseUp",j)},o=j=>{this.emit("mouseMove",j)},r=j=>{this.emit("mouseOver",j)},n=j=>{this.emit("mouseOut",j)},a=j=>{this.emit("mouseEnter",j)},i=j=>{this.emit("mouseLeave",j)},l=j=>{this.emit("mouseClick",j)},c=j=>{this.emit("mouseDoubleClick",j)},u=j=>{this.emit("mouseWheel",j)},h=j=>{this.emit("mouseContextMenu",j)},f=j=>{this.emit("touchStart",j)},p=j=>{this.emit("touchEnd",j)},d=j=>{this.emit("touchCancel",j)},b=j=>{this.emit("touchMove",j)},_=j=>{this.emit("pointerDown",j)},v=j=>{this.emit("pointerUp",j)},w=j=>{this.emit("pointerCancel",j)},g=j=>{this.emit("pointerMove",j)},m=j=>{this.emit("pan",j)},k=j=>{this.emit("panStart",j)},C=j=>{this.emit("panMove",j)},z=j=>{this.emit("panEnd",j)},tt=j=>{this.emit("panCancel",j)},R=j=>{this.emit("panLeft",j)},D=j=>{this.emit("panRight",j)},M=j=>{this.emit("panUp",j)},$=j=>{this.emit("panDown",j)},N=j=>{this.emit("pinch",j)},G=j=>{this.emit("press",j)},st=j=>{this.emit("rotate",j)},K=j=>{this.emit("swipe",j)},q=j=>{this.emit("swipeLeft",j)},nt=j=>{this.emit("swipeRight",j)},U=j=>{this.emit("swipeUp",j)},H=j=>{this.emit("swipeDown",j)},gt=j=>{this.emit("tap",j)},ft=j=>{!j.target||this.container==j.target||this.container.contains(j.target)||this.emit("tapOutSide",j)},Y=j=>{this.emit("inputChange",j,this.container.files)},P=j=>{this.emit("dragstart",j)},Vt=j=>{j.dataTransfer&&(j.dataTransfer.dropEffect="copy"),this.emit("dragover",j)},Nt=j=>{this.emit("dragenter",j)},Ct=j=>{this.emit("dragend",j)},Kt=j=>{j.dataTransfer,this.emit("drop",j,j.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",o,!1),this.container.addEventListener("mouseover",r,!1),this.container.addEventListener("mouseout",n,!1),this.container.addEventListener("mouseenter",a,!1),this.container.addEventListener("mouseleave",i,!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",p,!1),this.container.addEventListener("touchcancel",d,!1),this.container.addEventListener("touchmove",b,!1),this.container.addEventListener("pointerdown",_,!1),this.container.addEventListener("pointerup",v,!1),this.container.addEventListener("pointercancel",w,!1),this.container.addEventListener("pointermove",g,!1),this.hammer.on("pan",m),this.hammer.on("panstart",k),this.hammer.on("panmove",C),this.hammer.on("panend",z),this.hammer.on("pancancel",tt),this.hammer.on("panleft",R),this.hammer.on("panright",D),this.hammer.on("panup",M),this.hammer.on("pandown",$),this.hammer.on("pinch",N),this.hammer.on("press",G),this.hammer.on("rotate",st),this.hammer.on("swipe",K),this.hammer.on("swipeleft",q),this.hammer.on("swiperight",nt),this.hammer.on("swipeup",U),this.hammer.on("swipedown",H),this.hammer.on("tap",gt),document.addEventListener("pointerdown",ft,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",Y,!1),this.container.addEventListener("dragstart",P,!1),this.container.addEventListener("dragover",Vt,!1),this.container.addEventListener("dragenter",Nt,!1),this.container.addEventListener("dragend",Ct,!1),this.container.addEventListener("drop",Kt,!1);const Gt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",o,!1),this.container.removeEventListener("mouseover",r,!1),this.container.removeEventListener("mouseout",n,!1),this.container.removeEventListener("mouseenter",a,!1),this.container.removeEventListener("mouseleave",i,!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",p,!1),this.container.removeEventListener("touchcancel",d,!1),this.container.removeEventListener("touchmove",b,!1),this.container.removeEventListener("pointerdown",_,!1),this.container.removeEventListener("pointerup",v,!1),this.container.removeEventListener("pointercancel",w),this.container.removeEventListener("pointermove",g,!1),this.hammer.off("pan",m),this.hammer.off("panstart",k),this.hammer.off("panmove",C),this.hammer.off("panend",z),this.hammer.off("pancancel",tt),this.hammer.off("panleft",R),this.hammer.off("panright",D),this.hammer.off("panup",M),this.hammer.off("pandown",$),this.hammer.off("pinch",N),this.hammer.off("press",G),this.hammer.off("rotate",st),this.hammer.off("swipe",K),this.hammer.off("swipeleft",q),this.hammer.off("swiperight",nt),this.hammer.off("swipeup",U),this.hammer.off("swipedown",H),this.hammer.off("tap",gt),document.removeEventListener("pointerdown",ft,!1),document.removeEventListener("touchstart",ft,!1),document.removeEventListener("mousedown",ft,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",Y,!1),this.container.removeEventListener("dragstart",P,!1),this.container.removeEventListener("dragover",Vt,!1),this.container.removeEventListener("dragenter",Nt,!1),this.container.removeEventListener("dragend",Ct,!1),this.container.removeEventListener("drop",Kt,!1)};return this.addRemoves(Gt),Gt}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 o=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",e,!1)};return this.addRemoves(o),o}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 o=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",e,!1)};return this.addRemoves(o),o}registerResizeObserver(){let t;if(typeof ResizeObserver<"u"){const e=new ResizeObserver(o=>{const{width:r,height:n}=o[0].contentRect;this.width=r,this.height=n,this.emit("resize",r,n)});e.observe(this.container),t=()=>{e.unobserve(this.container)}}else{const e="orientationchange"in window?"orientationchange":"resize",o=r=>{const n=r.target.innerWidth,a=r.target.innerHeight;this.emit("resize",n,a)};window.addEventListener(e,o,!1),t=()=>{window.removeEventListener(e,o,!1)}}return this.addRemoves(t),t}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},o=new IntersectionObserver((n,a)=>{let i=n[0];if(n.length>1){const c=n.find(u=>u.isIntersecting);c&&(i=c)}i.isIntersecting&&i.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);o.observe(this.container);const r=()=>{o.unobserve(this.container)};return this.addRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(o,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullDowning",r.dStartY)},end:(o,r)=>{r.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(o,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullUping",r.dStartY)},end:(o,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,o;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",a),this.on("pointerUp",n),this.on("pointerCancel",n),o=uo(l,this.container);const c={...o};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",a),this.off("pointerUp",n),this.off("pointerCancel",n),o=uo(l,this.container);const c={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...o};o=uo(l,this.container);const u={...o,dx:o.x-(c.x||0),dy:o.y-(c.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("pointerDown",r);const i=()=>{this.off("pointerDown",r)};return this.addRemoves(i),i}captureDragUseMouse(t){let e,o;const r=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",n,!1),o=uo(l,this.container);const c={...o};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",a,!1),document.removeEventListener("mouseup",n,!1),o=uo(l,this.container);const c={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...o};o=uo(l,this.container);const u={...o,dx:o.x-(c.x||0),dy:o.y-(c.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("mouseDown",r);const i=()=>{this.off("mouseDown",r)};return this.addRemoves(i),i}captureDragUseTouch(t){let e,o;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",a),this.on("touchEnd",n),this.on("touchCancel",n);const c=l.changedTouches[0];o=uo(c,this.container);const u={...o};e=u,this.setMousePoint(u),t?.start?.(c,u)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",a),this.off("touchEnd",n),this.off("touchCancel",n);const c=l.changedTouches[0];o=uo(c,this.container);const u={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.end?.(c,u),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c=l.changedTouches[0],u={...o};o=uo(c,this.container);const h={...o,dx:o.x-(u.x||0),dy:o.y-(u.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(h),t?.move?.(c,h)};this.on("touchStart",r);const i=()=>{this.off("touchStart",r)};return this.addRemoves(i),i}}class Pi{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"),o=document.createElement("video"),r=document.createElement("source"),n=new MediaSource;n.addEventListener("sourceopen",()=>t(!0)),r.src=URL.createObjectURL(n),r.media="(min-width:10px)",o.append(r),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(o),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(()=>{Pi.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 jg extends cr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Bm(this.source);if(t===0){this.emit("finish");return}let e,o,r=lu(this.source,0);for(let n=1;n<t;n++)e=o,o=r,r=lu(this.source,n),this.raw+=o,o&&this.step(o,r,e);r&&this.step(r,void 0,o),this.emit("finish")}step(t,e,o){t==`
|
|
44
|
+
`;return function(){var ot=new Error("get-stack-trace"),mt=ot&&ot.stack?ot.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Bt=t.console&&(t.console.warn||t.console.log);return Bt&&Bt.call(t.console,B,mt),y.apply(this,arguments)}}var b;typeof Object.assign!="function"?b=function(x){if(x===r||x===null)throw new TypeError("Cannot convert undefined or null to object");for(var O=Object(x),B=1;B<arguments.length;B++){var ot=arguments[B];if(ot!==r&&ot!==null)for(var mt in ot)ot.hasOwnProperty(mt)&&(O[mt]=ot[mt])}return O}:b=Object.assign;var _=d(function(x,O,B){for(var ot=Object.keys(O),mt=0;mt<ot.length;)(!B||B&&x[ot[mt]]===r)&&(x[ot[mt]]=O[ot[mt]]),mt++;return x},"extend","Use `assign`."),v=d(function(x,O){return _(x,O,!0)},"merge","Use `assign`.");function w(y,x,O){var B=x.prototype,ot;ot=y.prototype=Object.create(B),ot.constructor=y,ot._super=B,O&&b(ot,O)}function g(y,x){return function(){return y.apply(x,arguments)}}function m(y,x){return typeof y==i?y.apply(x&&x[0]||r,x):y}function k(y,x){return y===r?x:y}function C(y,x,O){p(D(x),function(B){y.addEventListener(B,O,!1)})}function z(y,x,O){p(D(x),function(B){y.removeEventListener(B,O,!1)})}function tt(y,x){for(;y;){if(y==x)return!0;y=y.parentNode}return!1}function R(y,x){return y.indexOf(x)>-1}function D(y){return y.trim().split(/\s+/g)}function M(y,x,O){if(y.indexOf&&!O)return y.indexOf(x);for(var B=0;B<y.length;){if(O&&y[B][O]==x||!O&&y[B]===x)return B;B++}return-1}function $(y){return Array.prototype.slice.call(y,0)}function N(y,x,O){for(var B=[],ot=[],mt=0;mt<y.length;){var Bt=x?y[mt][x]:y[mt];M(ot,Bt)<0&&B.push(y[mt]),ot[mt]=Bt,mt++}return O&&(x?B=B.sort(function(Ee,Me){return Ee[x]>Me[x]}):B=B.sort()),B}function G(y,x){for(var O,B,ot=x[0].toUpperCase()+x.slice(1),mt=0;mt<n.length;){if(O=n[mt],B=O?O+ot:x,B in y)return B;mt++}return r}var st=1;function K(){return st++}function q(y){var x=y.ownerDocument||y;return x.defaultView||x.parentWindow||t}var nt=/mobile|tablet|ip(ad|hone|od)|android/i,U="ontouchstart"in t,H=G(t,"PointerEvent")!==r,gt=U&&nt.test(navigator.userAgent),ft="touch",V="pen",P="mouse",Vt="kinect",Nt=25,Ct=1,Kt=2,Gt=4,j=8,$e=1,Ve=2,Ie=4,S=8,F=16,X=Ve|Ie,W=S|F,Z=X|W,rt=["x","y"],ct=["clientX","clientY"];function J(y,x){var O=this;this.manager=y,this.callback=x,this.element=y.element,this.target=y.options.inputTarget,this.domHandler=function(B){m(y.options.enable,[y])&&O.handler(B)},this.init()}J.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(q(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(q(this.element),this.evWin,this.domHandler)}};function at(y){var x,O=y.options.inputClass;return O?x=O:H?x=nl:gt?x=Un:U?x=al:x=Le,new x(y,et)}function et(y,x,O){var B=O.pointers.length,ot=O.changedPointers.length,mt=x&Ct&&B-ot===0,Bt=x&(Gt|j)&&B-ot===0;O.isFirst=!!mt,O.isFinal=!!Bt,mt&&(y.session={}),O.eventType=x,dt(y,O),y.emit("hammer.input",O),y.recognize(O),y.session.prevInput=O}function dt(y,x){var O=y.session,B=x.pointers,ot=B.length;O.firstInput||(O.firstInput=Rt(x)),ot>1&&!O.firstMultiple?O.firstMultiple=Rt(x):ot===1&&(O.firstMultiple=!1);var mt=O.firstInput,Bt=O.firstMultiple,we=Bt?Bt.center:mt.center,Ee=x.center=At(B);x.timeStamp=u(),x.deltaTime=x.timeStamp-mt.timeStamp,x.angle=De(we,Ee),x.distance=le(we,Ee),Tt(O,x),x.offsetDirection=Jt(x.deltaX,x.deltaY);var Me=Ut(x.deltaTime,x.deltaX,x.deltaY);x.overallVelocityX=Me.x,x.overallVelocityY=Me.y,x.overallVelocity=c(Me.x)>c(Me.y)?Me.x:Me.y,x.scale=Bt?Vn(Bt.pointers,B):1,x.rotation=Bt?Ho(Bt.pointers,B):0,x.maxPointers=O.prevInput?x.pointers.length>O.prevInput.maxPointers?x.pointers.length:O.prevInput.maxPointers:x.pointers.length,wt(O,x);var po=y.element;tt(x.srcEvent.target,po)&&(po=x.srcEvent.target),x.target=po}function Tt(y,x){var O=x.center,B=y.offsetDelta||{},ot=y.prevDelta||{},mt=y.prevInput||{};(x.eventType===Ct||mt.eventType===Gt)&&(ot=y.prevDelta={x:mt.deltaX||0,y:mt.deltaY||0},B=y.offsetDelta={x:O.x,y:O.y}),x.deltaX=ot.x+(O.x-B.x),x.deltaY=ot.y+(O.y-B.y)}function wt(y,x){var O=y.lastInterval||x,B=x.timeStamp-O.timeStamp,ot,mt,Bt,we;if(x.eventType!=j&&(B>Nt||O.velocity===r)){var Ee=x.deltaX-O.deltaX,Me=x.deltaY-O.deltaY,po=Ut(B,Ee,Me);mt=po.x,Bt=po.y,ot=c(po.x)>c(po.y)?po.x:po.y,we=Jt(Ee,Me),y.lastInterval=x}else ot=O.velocity,mt=O.velocityX,Bt=O.velocityY,we=O.direction;x.velocity=ot,x.velocityX=mt,x.velocityY=Bt,x.direction=we}function Rt(y){for(var x=[],O=0;O<y.pointers.length;)x[O]={clientX:l(y.pointers[O].clientX),clientY:l(y.pointers[O].clientY)},O++;return{timeStamp:u(),pointers:x,center:At(x),deltaX:y.deltaX,deltaY:y.deltaY}}function At(y){var x=y.length;if(x===1)return{x:l(y[0].clientX),y:l(y[0].clientY)};for(var O=0,B=0,ot=0;ot<x;)O+=y[ot].clientX,B+=y[ot].clientY,ot++;return{x:l(O/x),y:l(B/x)}}function Ut(y,x,O){return{x:x/y||0,y:O/y||0}}function Jt(y,x){return y===x?$e:c(y)>=c(x)?y<0?Ve:Ie:x<0?S:F}function le(y,x,O){O||(O=rt);var B=x[O[0]]-y[O[0]],ot=x[O[1]]-y[O[1]];return Math.sqrt(B*B+ot*ot)}function De(y,x,O){O||(O=rt);var B=x[O[0]]-y[O[0]],ot=x[O[1]]-y[O[1]];return Math.atan2(ot,B)*180/Math.PI}function Ho(y,x){return De(x[1],x[0],ct)+De(y[1],y[0],ct)}function Vn(y,x){return le(x[0],x[1],ct)/le(y[0],y[1],ct)}var ys={mousedown:Ct,mousemove:Kt,mouseup:Gt},Xn="mousedown",Se="mousemove mouseup";function Le(){this.evEl=Xn,this.evWin=Se,this.pressed=!1,J.apply(this,arguments)}w(Le,J,{handler:function(x){var O=ys[x.type];O&Ct&&x.button===0&&(this.pressed=!0),O&Kt&&x.which!==1&&(O=Gt),this.pressed&&(O&Gt&&(this.pressed=!1),this.callback(this.manager,O,{pointers:[x],changedPointers:[x],pointerType:P,srcEvent:x}))}});var Gn={pointerdown:Ct,pointermove:Kt,pointerup:Gt,pointercancel:j,pointerout:j},U_={2:ft,3:V,4:P,5:Vt},Dd="pointerdown",Ld="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Dd="MSPointerDown",Ld="MSPointerMove MSPointerUp MSPointerCancel");function nl(){this.evEl=Dd,this.evWin=Ld,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}w(nl,J,{handler:function(x){var O=this.store,B=!1,ot=x.type.toLowerCase().replace("ms",""),mt=Gn[ot],Bt=U_[x.pointerType]||x.pointerType,we=Bt==ft,Ee=M(O,x.pointerId,"pointerId");mt&Ct&&(x.button===0||we)?Ee<0&&(O.push(x),Ee=O.length-1):mt&(Gt|j)&&(B=!0),!(Ee<0)&&(O[Ee]=x,this.callback(this.manager,mt,{pointers:O,changedPointers:[x],pointerType:Bt,srcEvent:x}),B&&O.splice(Ee,1))}});var j_={touchstart:Ct,touchmove:Kt,touchend:Gt,touchcancel:j},H_="touchstart",W_="touchstart touchmove touchend touchcancel";function Md(){this.evTarget=H_,this.evWin=W_,this.started=!1,J.apply(this,arguments)}w(Md,J,{handler:function(x){var O=j_[x.type];if(O===Ct&&(this.started=!0),!!this.started){var B=Z_.call(this,x,O);O&(Gt|j)&&B[0].length-B[1].length===0&&(this.started=!1),this.callback(this.manager,O,{pointers:B[0],changedPointers:B[1],pointerType:ft,srcEvent:x})}}});function Z_(y,x){var O=$(y.touches),B=$(y.changedTouches);return x&(Gt|j)&&(O=N(O.concat(B),"identifier",!0)),[O,B]}var q_={touchstart:Ct,touchmove:Kt,touchend:Gt,touchcancel:j},Q_="touchstart touchmove touchend touchcancel";function Un(){this.evTarget=Q_,this.targetIds={},J.apply(this,arguments)}w(Un,J,{handler:function(x){var O=q_[x.type],B=K_.call(this,x,O);B&&this.callback(this.manager,O,{pointers:B[0],changedPointers:B[1],pointerType:ft,srcEvent:x})}});function K_(y,x){var O=$(y.touches),B=this.targetIds;if(x&(Ct|Kt)&&O.length===1)return B[O[0].identifier]=!0,[O,O];var ot,mt,Bt=$(y.changedTouches),we=[],Ee=this.target;if(mt=O.filter(function(Me){return tt(Me.target,Ee)}),x===Ct)for(ot=0;ot<mt.length;)B[mt[ot].identifier]=!0,ot++;for(ot=0;ot<Bt.length;)B[Bt[ot].identifier]&&we.push(Bt[ot]),x&(Gt|j)&&delete B[Bt[ot].identifier],ot++;if(we.length)return[N(mt.concat(we),"identifier",!0),we]}var J_=2500,Ad=25;function al(){J.apply(this,arguments);var y=g(this.handler,this);this.touch=new Un(this.manager,y),this.mouse=new Le(this.manager,y),this.primaryTouch=null,this.lastTouches=[]}w(al,J,{handler:function(x,O,B){var ot=B.pointerType==ft,mt=B.pointerType==P;if(!(mt&&B.sourceCapabilities&&B.sourceCapabilities.firesTouchEvents)){if(ot)tx.call(this,O,B);else if(mt&&ex.call(this,B))return;this.callback(x,O,B)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function tx(y,x){y&Ct?(this.primaryTouch=x.changedPointers[0].identifier,Nd.call(this,x)):y&(Gt|j)&&Nd.call(this,x)}function Nd(y){var x=y.changedPointers[0];if(x.identifier===this.primaryTouch){var O={x:x.clientX,y:x.clientY};this.lastTouches.push(O);var B=this.lastTouches,ot=function(){var mt=B.indexOf(O);mt>-1&&B.splice(mt,1)};setTimeout(ot,J_)}}function ex(y){for(var x=y.srcEvent.clientX,O=y.srcEvent.clientY,B=0;B<this.lastTouches.length;B++){var ot=this.lastTouches[B],mt=Math.abs(x-ot.x),Bt=Math.abs(O-ot.y);if(mt<=Ad&&Bt<=Ad)return!0}return!1}var zd=G(a.style,"touchAction"),Bd=zd!==r,Yd="compute",Vd="auto",il="manipulation",vs="none",wr="pan-x",kr="pan-y",jn=sx();function ll(y,x){this.manager=y,this.set(x)}ll.prototype={set:function(y){y==Yd&&(y=this.compute()),Bd&&this.manager.element.style&&jn[y]&&(this.manager.element.style[zd]=y),this.actions=y.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var y=[];return p(this.manager.recognizers,function(x){m(x.options.enable,[x])&&(y=y.concat(x.getTouchAction()))}),ox(y.join(" "))},preventDefaults:function(y){var x=y.srcEvent,O=y.offsetDirection;if(this.manager.session.prevented){x.preventDefault();return}var B=this.actions,ot=R(B,vs)&&!jn[vs],mt=R(B,kr)&&!jn[kr],Bt=R(B,wr)&&!jn[wr];if(ot){var we=y.pointers.length===1,Ee=y.distance<2,Me=y.deltaTime<250;if(we&&Ee&&Me)return}if(!(Bt&&mt)&&(ot||mt&&O&X||Bt&&O&W))return this.preventSrc(x)},preventSrc:function(y){this.manager.session.prevented=!0,y.preventDefault()}};function ox(y){if(R(y,vs))return vs;var x=R(y,wr),O=R(y,kr);return x&&O?vs:x||O?x?wr:kr:R(y,il)?il:Vd}function sx(){if(!Bd)return!1;var y={},x=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(O){y[O]=x?t.CSS.supports("touch-action",O):!0}),y}var Hn=1,Ze=2,zs=4,Wo=8,Co=Wo,Cr=16,fo=32;function To(y){this.options=b({},this.defaults,y||{}),this.id=K(),this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=Hn,this.simultaneous={},this.requireFail=[]}To.prototype={defaults:{},set:function(y){return b(this.options,y),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(y){if(f(y,"recognizeWith",this))return this;var x=this.simultaneous;return y=Wn(y,this),x[y.id]||(x[y.id]=y,y.recognizeWith(this)),this},dropRecognizeWith:function(y){return f(y,"dropRecognizeWith",this)?this:(y=Wn(y,this),delete this.simultaneous[y.id],this)},requireFailure:function(y){if(f(y,"requireFailure",this))return this;var x=this.requireFail;return y=Wn(y,this),M(x,y)===-1&&(x.push(y),y.requireFailure(this)),this},dropRequireFailure:function(y){if(f(y,"dropRequireFailure",this))return this;y=Wn(y,this);var x=M(this.requireFail,y);return x>-1&&this.requireFail.splice(x,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(y){return!!this.simultaneous[y.id]},emit:function(y){var x=this,O=this.state;function B(ot){x.manager.emit(ot,y)}O<Wo&&B(x.options.event+Xd(O)),B(x.options.event),y.additionalEvent&&B(y.additionalEvent),O>=Wo&&B(x.options.event+Xd(O))},tryEmit:function(y){if(this.canEmit())return this.emit(y);this.state=fo},canEmit:function(){for(var y=0;y<this.requireFail.length;){if(!(this.requireFail[y].state&(fo|Hn)))return!1;y++}return!0},recognize:function(y){var x=b({},y);if(!m(this.options.enable,[this,x])){this.reset(),this.state=fo;return}this.state&(Co|Cr|fo)&&(this.state=Hn),this.state=this.process(x),this.state&(Ze|zs|Wo|Cr)&&this.tryEmit(x)},process:function(y){},getTouchAction:function(){},reset:function(){}};function Xd(y){return y&Cr?"cancel":y&Wo?"end":y&zs?"move":y&Ze?"start":""}function Gd(y){return y==F?"down":y==S?"up":y==Ve?"left":y==Ie?"right":""}function Wn(y,x){var O=x.manager;return O?O.get(y):y}function eo(){To.apply(this,arguments)}w(eo,To,{defaults:{pointers:1},attrTest:function(y){var x=this.options.pointers;return x===0||y.pointers.length===x},process:function(y){var x=this.state,O=y.eventType,B=x&(Ze|zs),ot=this.attrTest(y);return B&&(O&j||!ot)?x|Cr:B||ot?O&Gt?x|Wo:x&Ze?x|zs:Ze:fo}});function Zn(){eo.apply(this,arguments),this.pX=null,this.pY=null}w(Zn,eo,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var y=this.options.direction,x=[];return y&X&&x.push(kr),y&W&&x.push(wr),x},directionTest:function(y){var x=this.options,O=!0,B=y.distance,ot=y.direction,mt=y.deltaX,Bt=y.deltaY;return ot&x.direction||(x.direction&X?(ot=mt===0?$e:mt<0?Ve:Ie,O=mt!=this.pX,B=Math.abs(y.deltaX)):(ot=Bt===0?$e:Bt<0?S:F,O=Bt!=this.pY,B=Math.abs(y.deltaY))),y.direction=ot,O&&B>x.threshold&&ot&x.direction},attrTest:function(y){return eo.prototype.attrTest.call(this,y)&&(this.state&Ze||!(this.state&Ze)&&this.directionTest(y))},emit:function(y){this.pX=y.deltaX,this.pY=y.deltaY;var x=Gd(y.direction);x&&(y.additionalEvent=this.options.event+x),this._super.emit.call(this,y)}});function cl(){eo.apply(this,arguments)}w(cl,eo,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[vs]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.scale-1)>this.options.threshold||this.state&Ze)},emit:function(y){if(y.scale!==1){var x=y.scale<1?"in":"out";y.additionalEvent=this.options.event+x}this._super.emit.call(this,y)}});function ul(){To.apply(this,arguments),this._timer=null,this._input=null}w(ul,To,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Vd]},process:function(y){var x=this.options,O=y.pointers.length===x.pointers,B=y.distance<x.threshold,ot=y.deltaTime>x.time;if(this._input=y,!B||!O||y.eventType&(Gt|j)&&!ot)this.reset();else if(y.eventType&Ct)this.reset(),this._timer=h(function(){this.state=Co,this.tryEmit()},x.time,this);else if(y.eventType&Gt)return Co;return fo},reset:function(){clearTimeout(this._timer)},emit:function(y){this.state===Co&&(y&&y.eventType&Gt?this.manager.emit(this.options.event+"up",y):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function hl(){eo.apply(this,arguments)}w(hl,eo,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[vs]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.rotation)>this.options.threshold||this.state&Ze)}});function dl(){eo.apply(this,arguments)}w(dl,eo,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:X|W,pointers:1},getTouchAction:function(){return Zn.prototype.getTouchAction.call(this)},attrTest:function(y){var x=this.options.direction,O;return x&(X|W)?O=y.overallVelocity:x&X?O=y.overallVelocityX:x&W&&(O=y.overallVelocityY),this._super.attrTest.call(this,y)&&x&y.offsetDirection&&y.distance>this.options.threshold&&y.maxPointers==this.options.pointers&&c(O)>this.options.velocity&&y.eventType&Gt},emit:function(y){var x=Gd(y.offsetDirection);x&&this.manager.emit(this.options.event+x,y),this.manager.emit(this.options.event,y)}});function qn(){To.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}w(qn,To,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[il]},process:function(y){var x=this.options,O=y.pointers.length===x.pointers,B=y.distance<x.threshold,ot=y.deltaTime<x.time;if(this.reset(),y.eventType&Ct&&this.count===0)return this.failTimeout();if(B&&ot&&O){if(y.eventType!=Gt)return this.failTimeout();var mt=this.pTime?y.timeStamp-this.pTime<x.interval:!0,Bt=!this.pCenter||le(this.pCenter,y.center)<x.posThreshold;this.pTime=y.timeStamp,this.pCenter=y.center,!Bt||!mt?this.count=1:this.count+=1,this._input=y;var we=this.count%x.taps;if(we===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Co,this.tryEmit()},x.interval,this),Ze):Co}return fo},failTimeout:function(){return this._timer=h(function(){this.state=fo},this.options.interval,this),fo},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Co&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function So(y,x){return x=x||{},x.recognizers=k(x.recognizers,So.defaults.preset),new fl(y,x)}So.VERSION="2.0.7",So.defaults={domEvents:!1,touchAction:Yd,enable:!0,inputTarget:null,inputClass:null,preset:[[hl,{enable:!1}],[cl,{enable:!1},["rotate"]],[dl,{direction:X}],[Zn,{direction:X},["swipe"]],[qn],[qn,{event:"doubletap",taps:2},["tap"]],[ul]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var rx=1,Ud=2;function fl(y,x){this.options=b({},So.defaults,x||{}),this.options.inputTarget=this.options.inputTarget||y,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=y,this.input=at(this),this.touchAction=new ll(this,this.options.touchAction),jd(this,!0),p(this.options.recognizers,function(O){var B=this.add(new O[0](O[1]));O[2]&&B.recognizeWith(O[2]),O[3]&&B.requireFailure(O[3])},this)}fl.prototype={set:function(y){return b(this.options,y),y.touchAction&&this.touchAction.update(),y.inputTarget&&(this.input.destroy(),this.input.target=y.inputTarget,this.input.init()),this},stop:function(y){this.session.stopped=y?Ud:rx},recognize:function(y){var x=this.session;if(!x.stopped){this.touchAction.preventDefaults(y);var O,B=this.recognizers,ot=x.curRecognizer;(!ot||ot&&ot.state&Co)&&(ot=x.curRecognizer=null);for(var mt=0;mt<B.length;)O=B[mt],x.stopped!==Ud&&(!ot||O==ot||O.canRecognizeWith(ot))?O.recognize(y):O.reset(),!ot&&O.state&(Ze|zs|Wo)&&(ot=x.curRecognizer=O),mt++}},get:function(y){if(y instanceof To)return y;for(var x=this.recognizers,O=0;O<x.length;O++)if(x[O].options.event==y)return x[O];return null},add:function(y){if(f(y,"add",this))return this;var x=this.get(y.options.event);return x&&this.remove(x),this.recognizers.push(y),y.manager=this,this.touchAction.update(),y},remove:function(y){if(f(y,"remove",this))return this;if(y=this.get(y),y){var x=this.recognizers,O=M(x,y);O!==-1&&(x.splice(O,1),this.touchAction.update())}return this},on:function(y,x){if(y!==r&&x!==r){var O=this.handlers;return p(D(y),function(B){O[B]=O[B]||[],O[B].push(x)}),this}},off:function(y,x){if(y!==r){var O=this.handlers;return p(D(y),function(B){x?O[B]&&O[B].splice(M(O[B],x),1):delete O[B]}),this}},emit:function(y,x){this.options.domEvents&&nx(y,x);var O=this.handlers[y]&&this.handlers[y].slice();if(!(!O||!O.length)){x.type=y,x.preventDefault=function(){x.srcEvent.preventDefault()};for(var B=0;B<O.length;)O[B](x),B++}},destroy:function(){this.element&&jd(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function jd(y,x){var O=y.element;if(O.style){var B;p(y.options.cssProps,function(ot,mt){B=G(O.style,mt),x?(y.oldCssProps[B]=O.style[B],O.style[B]=ot):O.style[B]=y.oldCssProps[B]||""}),x||(y.oldCssProps={})}}function nx(y,x){var O=e.createEvent("Event");O.initEvent(y,!0,!0),O.gesture=x,x.target.dispatchEvent(O)}b(So,{INPUT_START:Ct,INPUT_MOVE:Kt,INPUT_END:Gt,INPUT_CANCEL:j,STATE_POSSIBLE:Hn,STATE_BEGAN:Ze,STATE_CHANGED:zs,STATE_ENDED:Wo,STATE_RECOGNIZED:Co,STATE_CANCELLED:Cr,STATE_FAILED:fo,DIRECTION_NONE:$e,DIRECTION_LEFT:Ve,DIRECTION_RIGHT:Ie,DIRECTION_UP:S,DIRECTION_DOWN:F,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:W,DIRECTION_ALL:Z,Manager:fl,Input:J,TouchAction:ll,TouchInput:Un,MouseInput:Le,PointerEventInput:nl,TouchMouseInput:al,SingleTouchInput:Md,Recognizer:To,AttrRecognizer:eo,Tap:qn,Pan:Zn,Swipe:dl,Pinch:cl,Rotate:hl,Press:ul,on:C,off:z,each:p,merge:v,extend:_,assign:b,inherit:w,bindFn:g,prefixed:G});var ax=typeof t<"u"?t:typeof self<"u"?self:{};ax.Hammer=So,typeof r=="function"&&r.amd?r(function(){return So}):s.exports?s.exports=So:t[o]=So})(window,document,"Hammer")})(dh);var Yg=dh.exports;const Vg=cg(Yg);function Ei(){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 $s(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function Xg(s){const{top:t,left:e,width:o,height:r}=s.getBoundingClientRect(),{scrollLeft:n,scrollTop:a}=Ei();return{x:e+n,y:t+a,width:o,height:r}}function Gg(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=Ei(),o=e-s;return o<=0?0:t/o*100}function Ug(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}=Ei();return{x:s.clientX+t,y:s.clientY+e}}function uo(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=Ug(s),o=Xg(t||s.target);return{x:e.x-o.x,y:e.y-o.y}}class We extends cr{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,e=!0,o){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new Vg(this.container),e&&this.start(o)}emitDebounce=s0((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(uo(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=j=>{this.emit("mouseDown",j)},e=j=>{this.emit("mouseUp",j)},o=j=>{this.emit("mouseMove",j)},r=j=>{this.emit("mouseOver",j)},n=j=>{this.emit("mouseOut",j)},a=j=>{this.emit("mouseEnter",j)},i=j=>{this.emit("mouseLeave",j)},l=j=>{this.emit("mouseClick",j)},c=j=>{this.emit("mouseDoubleClick",j)},u=j=>{this.emit("mouseWheel",j)},h=j=>{this.emit("mouseContextMenu",j)},f=j=>{this.emit("touchStart",j)},p=j=>{this.emit("touchEnd",j)},d=j=>{this.emit("touchCancel",j)},b=j=>{this.emit("touchMove",j)},_=j=>{this.emit("pointerDown",j)},v=j=>{this.emit("pointerUp",j)},w=j=>{this.emit("pointerCancel",j)},g=j=>{this.emit("pointerMove",j)},m=j=>{this.emit("pan",j)},k=j=>{this.emit("panStart",j)},C=j=>{this.emit("panMove",j)},z=j=>{this.emit("panEnd",j)},tt=j=>{this.emit("panCancel",j)},R=j=>{this.emit("panLeft",j)},D=j=>{this.emit("panRight",j)},M=j=>{this.emit("panUp",j)},$=j=>{this.emit("panDown",j)},N=j=>{this.emit("pinch",j)},G=j=>{this.emit("press",j)},st=j=>{this.emit("rotate",j)},K=j=>{this.emit("swipe",j)},q=j=>{this.emit("swipeLeft",j)},nt=j=>{this.emit("swipeRight",j)},U=j=>{this.emit("swipeUp",j)},H=j=>{this.emit("swipeDown",j)},gt=j=>{this.emit("tap",j)},ft=j=>{!j.target||this.container==j.target||this.container.contains(j.target)||this.emit("tapOutSide",j)},V=j=>{this.emit("inputChange",j,this.container.files)},P=j=>{this.emit("dragstart",j)},Vt=j=>{j.dataTransfer&&(j.dataTransfer.dropEffect="copy"),this.emit("dragover",j)},Nt=j=>{this.emit("dragenter",j)},Ct=j=>{this.emit("dragend",j)},Kt=j=>{j.dataTransfer,this.emit("drop",j,j.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",o,!1),this.container.addEventListener("mouseover",r,!1),this.container.addEventListener("mouseout",n,!1),this.container.addEventListener("mouseenter",a,!1),this.container.addEventListener("mouseleave",i,!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",p,!1),this.container.addEventListener("touchcancel",d,!1),this.container.addEventListener("touchmove",b,!1),this.container.addEventListener("pointerdown",_,!1),this.container.addEventListener("pointerup",v,!1),this.container.addEventListener("pointercancel",w,!1),this.container.addEventListener("pointermove",g,!1),this.hammer.on("pan",m),this.hammer.on("panstart",k),this.hammer.on("panmove",C),this.hammer.on("panend",z),this.hammer.on("pancancel",tt),this.hammer.on("panleft",R),this.hammer.on("panright",D),this.hammer.on("panup",M),this.hammer.on("pandown",$),this.hammer.on("pinch",N),this.hammer.on("press",G),this.hammer.on("rotate",st),this.hammer.on("swipe",K),this.hammer.on("swipeleft",q),this.hammer.on("swiperight",nt),this.hammer.on("swipeup",U),this.hammer.on("swipedown",H),this.hammer.on("tap",gt),document.addEventListener("pointerdown",ft,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",V,!1),this.container.addEventListener("dragstart",P,!1),this.container.addEventListener("dragover",Vt,!1),this.container.addEventListener("dragenter",Nt,!1),this.container.addEventListener("dragend",Ct,!1),this.container.addEventListener("drop",Kt,!1);const Gt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",o,!1),this.container.removeEventListener("mouseover",r,!1),this.container.removeEventListener("mouseout",n,!1),this.container.removeEventListener("mouseenter",a,!1),this.container.removeEventListener("mouseleave",i,!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",p,!1),this.container.removeEventListener("touchcancel",d,!1),this.container.removeEventListener("touchmove",b,!1),this.container.removeEventListener("pointerdown",_,!1),this.container.removeEventListener("pointerup",v,!1),this.container.removeEventListener("pointercancel",w),this.container.removeEventListener("pointermove",g,!1),this.hammer.off("pan",m),this.hammer.off("panstart",k),this.hammer.off("panmove",C),this.hammer.off("panend",z),this.hammer.off("pancancel",tt),this.hammer.off("panleft",R),this.hammer.off("panright",D),this.hammer.off("panup",M),this.hammer.off("pandown",$),this.hammer.off("pinch",N),this.hammer.off("press",G),this.hammer.off("rotate",st),this.hammer.off("swipe",K),this.hammer.off("swipeleft",q),this.hammer.off("swiperight",nt),this.hammer.off("swipeup",U),this.hammer.off("swipedown",H),this.hammer.off("tap",gt),document.removeEventListener("pointerdown",ft,!1),document.removeEventListener("touchstart",ft,!1),document.removeEventListener("mousedown",ft,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",V,!1),this.container.removeEventListener("dragstart",P,!1),this.container.removeEventListener("dragover",Vt,!1),this.container.removeEventListener("dragenter",Nt,!1),this.container.removeEventListener("dragend",Ct,!1),this.container.removeEventListener("drop",Kt,!1)};return this.addRemoves(Gt),Gt}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 o=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",e,!1)};return this.addRemoves(o),o}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 o=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",e,!1)};return this.addRemoves(o),o}registerResizeObserver(){let t;if(typeof ResizeObserver<"u"){const e=new ResizeObserver(o=>{const{width:r,height:n}=o[0].contentRect;this.width=r,this.height=n,this.emit("resize",r,n)});e.observe(this.container),t=()=>{e.unobserve(this.container)}}else{const e="orientationchange"in window?"orientationchange":"resize",o=r=>{const n=r.target.innerWidth,a=r.target.innerHeight;this.emit("resize",n,a)};window.addEventListener(e,o,!1),t=()=>{window.removeEventListener(e,o,!1)}}return this.addRemoves(t),t}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},o=new IntersectionObserver((n,a)=>{let i=n[0];if(n.length>1){const c=n.find(u=>u.isIntersecting);c&&(i=c)}i.isIntersecting&&i.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);o.observe(this.container);const r=()=>{o.unobserve(this.container)};return this.addRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(o,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullDowning",r.dStartY)},end:(o,r)=>{r.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(o,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullUping",r.dStartY)},end:(o,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,o;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",a),this.on("pointerUp",n),this.on("pointerCancel",n),o=uo(l,this.container);const c={...o};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",a),this.off("pointerUp",n),this.off("pointerCancel",n),o=uo(l,this.container);const c={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...o};o=uo(l,this.container);const u={...o,dx:o.x-(c.x||0),dy:o.y-(c.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("pointerDown",r);const i=()=>{this.off("pointerDown",r)};return this.addRemoves(i),i}captureDragUseMouse(t){let e,o;const r=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",n,!1),o=uo(l,this.container);const c={...o};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",a,!1),document.removeEventListener("mouseup",n,!1),o=uo(l,this.container);const c={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...o};o=uo(l,this.container);const u={...o,dx:o.x-(c.x||0),dy:o.y-(c.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("mouseDown",r);const i=()=>{this.off("mouseDown",r)};return this.addRemoves(i),i}captureDragUseTouch(t){let e,o;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",a),this.on("touchEnd",n),this.on("touchCancel",n);const c=l.changedTouches[0];o=uo(c,this.container);const u={...o};e=u,this.setMousePoint(u),t?.start?.(c,u)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",a),this.off("touchEnd",n),this.off("touchCancel",n);const c=l.changedTouches[0];o=uo(c,this.container);const u={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.end?.(c,u),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c=l.changedTouches[0],u={...o};o=uo(c,this.container);const h={...o,dx:o.x-(u.x||0),dy:o.y-(u.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(h),t?.move?.(c,h)};this.on("touchStart",r);const i=()=>{this.off("touchStart",r)};return this.addRemoves(i),i}}class Pi{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"),o=document.createElement("video"),r=document.createElement("source"),n=new MediaSource;n.addEventListener("sourceopen",()=>t(!0)),r.src=URL.createObjectURL(n),r.media="(min-width:10px)",o.append(r),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(o),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(()=>{Pi.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 jg extends cr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Bm(this.source);if(t===0){this.emit("finish");return}let e,o,r=lu(this.source,0);for(let n=1;n<t;n++)e=o,o=r,r=lu(this.source,n),this.raw+=o,o&&this.step(o,r,e);r&&this.step(r,void 0,o),this.emit("finish")}step(t,e,o){t==`
|
|
45
45
|
`&&this.emit("newline"),this.act(t,e,o)}act(t,e,o){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":ao("whitespace",t)?(this.textchunk+=fh(this.entity),this.mode="text"):t==";"?(this.textchunk+=fh(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(o=="!"&&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(o=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,o)),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=="-"&&o=="-"&&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(!ao("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,o)}break;case"close tag name start":ao("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,o));break;case"close tag name":if(ao("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(ao("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":ao("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,o));break;case"attr":if(ao("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(!ao("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,o)}break;case"attr value":if(ao("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&&o!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function fh(s){const t={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let e;return s.charAt(0)=="#"?s.charAt(1).toLowerCase()=="x"?e=parseInt(s.substring(2),16):e=parseInt(s.substring(1),10):e=t[s],e?String.fromCharCode(e):"&"+s}var ph=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Hg(s,t={}){var e=1,o=1;function r(U){var H=U.match(/\n/g);H&&(e+=H.length);var gt=U.lastIndexOf(`
|
|
46
|
-
`);o=~gt?U.length-gt:o+U.length}function n(){var U={line:e,column:o};return function(H){return H.position=new a(U),d(),H}}function a(U){this.start=U,this.end={line:e,column:o},this.source=t.source}a.prototype.content=s;var i=[];function l(U){var H=new Error(t.source+":"+e+":"+o+": "+U);if(H.reason=U,H.filename=t.source,H.line=e,H.column=o,H.source=s,t.silent)i.push(H);else throw H}function c(){var U=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:U,parsingErrors:i}}}function u(){return p(/^{\s*/)}function h(){return p(/^}/)}function f(){var U,H=[];for(d(),b(H);s.length&&s.charAt(0)!="}"&&(U=q()||nt());)U!==!1&&(H.push(U),b(H));return H}function p(U){var H=U.exec(s);if(H){var gt=H[0];return r(gt),s=s.slice(gt.length),H}}function d(){p(/^\s*/)}function b(U){var H;for(U=U||[];H=_();)H!==!1&&U.push(H);return U}function _(){var U=n();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var H=2;s.charAt(H)!=""&&(s.charAt(H)!="*"||s.charAt(H+1)!="/");)++H;if(H+=2,s.charAt(H-1)==="")return l("End of comment missing");var gt=s.slice(2,H-2);return o+=2,r(gt),s=s.slice(H),o+=2,U({type:"comment",comment:gt})}}function v(){var U=p(/^([^{]+)/);if(U)return wo(U[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(H){return H.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(H){return H.replace(/\u200C/g,",")})}function w(){var U=n(),H=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(H){if(H=wo(H[0]),!p(/^:\s*/))return l("property missing ':'");var gt=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ft=U({type:"declaration",property:H.replace(ph,""),value:gt?wo(gt[0]).replace(ph,""):""});return p(/^[;\s]*/),ft}}function g(){var U=[];if(!u())return l("missing '{'");b(U);for(var H;H=w();)H!==!1&&(U.push(H),b(U));return h()?U:l("missing '}'")}function m(){for(var U,H=[],gt=n();U=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)H.push(U[1]),p(/^,\s*/);if(H.length)return gt({type:"keyframe",values:H,declarations:g()})}function k(){var U=n(),H=p(/^@([-\w]+)?keyframes\s*/);if(H){var gt=H[1];if(H=p(/^([-\w]+)\s*/),!H)return l("@keyframes missing name");var ft=H[1];if(!u())return l("@keyframes missing '{'");for(var Y,P=b();Y=m();)P.push(Y),P=P.concat(b());return h()?U({type:"keyframes",name:ft,vendor:gt,keyframes:P}):l("@keyframes missing '}'")}}function C(){var U=n(),H=p(/^@supports *([^{]+)/);if(H){var gt=wo(H[1]);if(!u())return l("@supports missing '{'");var ft=b().concat(f());return h()?U({type:"supports",supports:gt,rules:ft}):l("@supports missing '}'")}}function z(){var U=n(),H=p(/^@host\s*/);if(H){if(!u())return l("@host missing '{'");var gt=b().concat(f());return h()?U({type:"host",rules:gt}):l("@host missing '}'")}}function tt(){var U=n(),H=p(/^@media *([^{]+)/);if(H){var gt=wo(H[1]);if(!u())return l("@media missing '{'");var ft=b().concat(f());return h()?U({type:"media",media:gt,rules:ft}):l("@media missing '}'")}}function R(){var U=n(),H=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(H)return U({type:"custom-media",name:wo(H[1]),media:wo(H[2])})}function D(){var U=n(),H=p(/^@page */);if(H){var gt=v()||[];if(!u())return l("@page missing '{'");for(var ft=b(),Y;Y=w();)ft.push(Y),ft=ft.concat(b());return h()?U({type:"page",selectors:gt,declarations:ft}):l("@page missing '}'")}}function M(){var U=n(),H=p(/^@([-\w]+)?document *([^{]+)/);if(H){var gt=wo(H[1]),ft=wo(H[2]);if(!u())return l("@document missing '{'");var Y=b().concat(f());return h()?U({type:"document",document:ft,vendor:gt,rules:Y}):l("@document missing '}'")}}function $(){var U=n(),H=p(/^@font-face\s*/);if(H){if(!u())return l("@font-face missing '{'");for(var gt=b(),ft;ft=w();)gt.push(ft),gt=gt.concat(b());return h()?U({type:"font-face",declarations:gt}):l("@font-face missing '}'")}}var N=K("import"),G=K("charset"),st=K("namespace");function K(U){var H=new RegExp("^@"+U+"\\s*([^;]+);");return function(){var gt=n(),ft=p(H);if(ft){var Y={type:U};return Y[U]=ft[1].trim(),gt(Y)}}}function q(){if(s[0]=="@")return k()||tt()||R()||C()||N()||G()||st()||M()||D()||z()||$()}function nt(){var U=n(),H=v();return H?(b(),U({type:"rule",selectors:H,declarations:g()})):l("selector missing")}return Oi(c())}function wo(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Oi(s,t){var e=s&&typeof s.type=="string",o=e?s:t;for(var r in s){var n=s[r];Array.isArray(n)?n.forEach(function(a){Oi(a,o)}):n&&typeof n=="object"&&Oi(n,o)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}class Wg extends jg{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,o)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,o)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const o=Hg(e);for(const r of o.stylesheet.rules)for(const n of r.declarations)for(const a of r.selectors)this.globalStyles[a]=this.globalStyles[a]||[],this.globalStyles[a].push(`${n.property}:${n.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,o)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let n="",a="";for(const i in this.groups[r])i=="transform"?n=this.groups[r].transform:i=="class"&&this.globalStyles["."+this.groups[r][i]]?a=this.globalStyles["."+this.groups[r][i]].join(";")+";"+a:i=="id"&&this.globalStyles["#"+this.groups[r][i]]?a=this.globalStyles["#"+this.groups[r][i]].join(";")+";"+a:typeof this.currentItem[i]>"u"&&(this.currentItem[i]=this.groups[r][i]);typeof this.currentItem.transform>"u"?this.currentItem.transform=n:this.currentItem.transform+=" "+n,typeof this.currentItem.style>"u"?this.currentItem.style=a:this.currentItem.style=a+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),Ri(this.currentItem.style,this.currentItem,Fi)}switch(this.processAttrs(e,o),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 o=[],r;switch(t){case"svg":let n="",a="";if(e.width&&e.height)n=e.width,a=e.height;else if(e.viewBox){const i=e.viewBox.split(/\s+/gi);i.length==4&&(n=String(parseFloat(i[2])-parseFloat(i[0])),a=String(parseFloat(i[3])-parseFloat(i[1])))}n&&a&&this.items.push({type:"viewbox",width:n,height:a});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&&Ri(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+Ii(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),o=[this.grad.angle];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?o.push(r.color+":"+r.offset):o.push(r.color);this.idtops[this.grad.id]=o.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break;case"radialGradient":o=[];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?o.push(r.color+":"+r.offset):o.push(r.color);this.idtops[this.grad.id]=o.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break}for(const n in e){const a=e[n];if(Fi.includes(n)&&(this.currentItem[n]=a),n==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:n,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:n,stops:[]})),n==="style"&&Ri(a,this.currentItem,Fi),n==="transform"&&(this.currentItem.transform=a+(this.currentItem.transform||" ")),n==="fill"){const i=a.match(/url\(#([^)]+)\)/);if(i){const l=i[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}n==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+a+"z"),n==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=a),n==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=a)}}addToItems(){this.items.push(this.currentItem)}}function Ii(s,t,e,o,r,n){if(typeof r>"u"||typeof n>"u"){const a=s-e,i=t-o;return!a&&!i?0:(180+Math.atan2(-i,-a)*180/Math.PI+360)%360}else return Ii(s,t,r,n)-Ii(e,o,r,n)}function Ri(s,t,e){const o=(s+"").split(";"),r=/^\s+|\s+$/g;for(let n=0,a=o.length;n<a;n++){const i=o[n].split(":"),l=i[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=i[1].replace(r,""))}}const Fi=["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 mh{app;rootEl;ue;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,o){this.app=t,this.rootEl=me.createSVGElement("svg"),this.ue=ds(this.rootEl);const r=ds(this.app.container);r.empty(),r.insert(this.rootEl),e&&o?this.setSize(e,o):(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:(n,a)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=a.dx,this.dragDy+=a.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let a=n.parent;for(;a;)a.emit("clicked",n),a=a.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 Ls(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return me.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof co&&t.shapes.forEach(e=>{this._addDrawShape(e)}))}path(t){(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow){e.el&&(e.el.remove(),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof On?e.el=this.text(e.text,e.x,e.y,hu(e.getAttrs(),(r,n)=>typeof n=="string")):(e.el=me.createSvgPath(e.toSVGPathD(),e.id),this.ue.insert(e.el))),e.followMouse&&(!ln(e.x,this.app.mousePoint.x,5)||!ln(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,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}else e.isDragging=!1;e instanceof On&&(e.setAttr("x",String(e.x)),e.setAttr("y",String(e.y))),e.frameUpdate(this.app.mousePoint);const o=e.toSVGPathD();if(this.attr(e,hu(e.getAttrs(),(r,n)=>typeof n=="string")),this.attr(e,"d",o),!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&&e.el.remove(),delete e.el,this.shapes=this.shapes.filter(o=>o.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&t.el.remove(),delete t.el}),this.ue.empty(),this.shapes=[]}attr(t,e,o){const r=t.el||t;return r instanceof SVGElement?e===void 0&&o===void 0?Ls(r):typeof e=="string"&&o===void 0?Ls(r,to(e))||"":(typeof e=="object"?Ls(r,e):typeof e=="string"&&o!==void 0&&Ls(r,to(e),o),this):this}circle(t,e,o){return this.path(new oe({x:t,y:e,radius:o}))}circleEl(t,e,o){const r=me.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(o)});return this.ue.insert(r),r}ellipse(t,e,o,r){return this.path(new yh({x:t,y:e,rx:o,ry:r}))}ellipseEl(t,e,o,r){const n=me.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(o),ry:String(r)});return this.ue.insert(n),n}rect(t,e,o,r){return this.path(new Te({x:t,y:e,width:o,height:r}))}rectEl(t,e,o,r){const n=me.createSVGElement("rect",{x:String(t),y:String(e),width:String(o),height:String(r)});return this.ue.insert(n),n}image(t,e,o,r,n){}text(t,e,o,r){const n=me.createSVGElement("text",{x:String(e),y:String(o)});return ds(n).html(t),this.attr(n,Object.assign({"alignment-baseline":"middle"},r)),this.ue.insert(n),n}textWithTspan(t,e,o,r){const n=r?.["line-height"]||"1.2em",a=me.createSVGElement("text",{x:String(e),y:String(o)});return t.split(`
|
|
47
|
-
`).forEach((i,l)=>{if(i.trim()){const c=me.createSVGElement("tspan",{x:String(e),dy:l>0?n:"0"});ds(c).html(i),ds(a).insert(c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),this.ue.insert(a),a}}class Zg extends Fs{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new Wg(t.svg).parse();for(let o=0,r=e.length;o<r;o++){const n=e[o];if(n.type=="viewbox"&&n.width&&n.height){if(this.svgWidth=parseFloat(n.width),this.svgHeight=parseFloat(n.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(n.type!="path"||!me.isSVGPath(n.path))continue;const a={};for(const u in n)u==="type"||u==="path"||u==="transform"||(a[u]=n[u]);const i=me.absolutizeSVGPath(me.parseSVGPath(n.path)),l=[];let c=[];for(let u=0,h=i.length;u<h;u++){const f=i[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=hh(n.transform??"");h.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new ee({...t,attrs:{...a,...t?.attrs||{}},d:u,originMatrix:h}))})}}shapeInit(){this.trim()}}class oe extends ee{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 pi(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const o=t/e;this.scalar(o)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,o=this.y;return{x:o*t.x-e*t.y,y:e*t.y-o*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,o=t.y-this.y;if(Math.sqrt(e*e+o*o)<this.radius+t.radius){const n=Math.atan2(o,e),a={x:0,y:0},i=lo(-n,e,o),l=lo(-n,this.vx,this.vy),c=lo(-n,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(a.x-i.x);a.x+=l.x/h*f,i.x+=c.x/h*f;const p=lo(n,a.x,a.y),d=lo(n,i.x,i.y);t.x=this.x+d.x,t.y=this.y+d.y,this.x=this.x+p.x,this.y=this.y+p.y;const b=lo(n,l.x,l.y),_=lo(n,c.x,c.y);this.vx=b.x,this.vy=b.y,t.vx=_.x,t.vy=_.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,o=t.wall.x,r=t.wall.y,n=t.wall.x+t.wall.width,a=t.wall.y+t.wall.height;this.x+this.radius>n?(this.x=n-this.radius,this.vx*=e):this.x-this.radius<o&&(this.x=o+this.radius,this.vx*=e),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=e):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=e)}}class gh extends ee{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 o=1;o<=e-1;o++)t.push(["L",this.points[o].x,this.points[o].y]);t.push(["Z"])}else{const o=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",o,r]);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.push(["Q",this.points[n].x,this.points[n].y,a,i])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,o,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 o=1;o<=e-1;o++)t.lineTo(this.points[o].x,this.points[o].y);t.closePath()}else{const o=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(o,r);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.quadraticCurveTo(this.points[n].x,this.points[n].y,a,i)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,o,r)}}isContainPoint(t,e){const o=this.points.length;let r=!1;const n=2e-10;for(let a=0,i=o-1;a<o;i=a,a++){const l=this.points[a].x,c=this.points[a].y,u=this.points[i].x,h=this.points[i].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),p=l+f*(e-c);if(p===t||Math.abs(p-t)<n)return!0;p>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 Te extends ee{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,o,r,n,a,i,l){const c=new us({x:t,y:e,c1x:o,c1y:r,c2x:n,c2y:a,toX:i,toY:l});return new Te(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 yh extends ee{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 Pn extends ee{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 $i extends ee{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 qg extends ee{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 Qg extends ee{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 Kg extends ee{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 o=288+e*144,r=this.r*Math.cos(Yt(o)),n=this.r*Math.sin(Yt(o));t.push(["l",r,n])}return t}}class Jg extends ee{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 ty extends ee{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 ey extends Fs{constructor(t){super(t);const e=new ve({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),o=30+Math.random()*30,r=new ve({...t,x:this.x,y:this.y-o,diffYInGroup:-o,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),n=60+Math.random()*40,a=new ve({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,r,a])}}class On extends ee{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=io(this.getAttr("fontSize"),10).number,o=io(this.getAttr("fontWeight"),400).number,r=this.measureText(this.text,e,o);this.width=r.width,this.height=r.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}measureText(t,e=12,o=400){const r=document.createElement("span");r.style.visibility="hidden",r.style.margin="0",r.style.padding="0",r.style.inset="0",r.style.whiteSpace="nowrap",r.style.overflow="visible",r.style.fontSize=e+"px",r.style.fontWeight=o.toString(),r.innerText=t,document.body.appendChild(r);const n=r.offsetWidth,a=r.offsetHeight;return document.body.removeChild(r),{width:n,height:a}}getFixedWidthText(t,e,o=12,r=400,n=!0){let a="";if(!t||e<o)return a;const i=t.split(""),l="...";let c=n?this.measureText(l,o,r).width:0;for(let u=0,h=i.length;u<h;u++)if(c+=this.measureText(i[u],o,r).width,c>e){n&&(a+=l);break}else a+=i[u];return a}}class oy extends Fs{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 On({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:ge(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new Te({...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(){Za(()=>{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 vh extends co{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new oe;p1Offset=10;p2=new oe;p2Offset=40;p3=new oe;p3Offset=10;p4=new oe;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 sy({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 ve({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new ve({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new On({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 oy({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:o,dy:r}=xo(Yt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+o,this.p1.y=this.y+r;const{dx:n,dy:a}=xo(Yt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+n,this.p2.y=this.y+a,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 sy extends ee{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}=xo(Yt(this.startDegree),this.radius),{dx:o,dy:r}=xo(Yt(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,o-t,r-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Yt(this.startDegree),Yt(this.endDegree),!1),t.closePath()}containPoint(t,e){const o=mi(this.x,this.y,t,e),r=ze(Is(this.x,this.y,t,e));return o<=this.radius&&r>=this.startDegree&&r<=this.endDegree}}class ry extends co{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new ee({...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 ee({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Za(()=>{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 bh extends Fs{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,o=t?.max||100,r=t?.step||1,n=mu(e,o,r);this.value=n(typeof t?.defaultValue=="number"?re(t.defaultValue,e,o):e);const a=this.value/(o-e),i=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,h=t?.barColor||yt.colorGrayF5,f=t?.handleColor||yt.colorPrimary;this.backgroundRect=new Te({x:this.x,y:this.y,width:i,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new Te({x:this.x,y:this.y,width:i*a,height:l,borderRadius:u,attrs:{fill:f},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new oe({x:this.x+i*a,y:this.y+u,diffXInGroup:i*a,diffYInGroup:u,radius:c,alongPath:new Ge({x:this.x,y:this.y+u,d:[["m",0,0],["l",i,0]]}),attrs:{fill:f},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",p=>{this.occupyRect.width=re(this.occupyRect.width+p,0,i),this.value=n((this.handle.x-this.x)/i*(o-e)+e),this.emit("change",this.value)})}}class Ds extends Fs{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 oe({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new Te({...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 oe({...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(Yt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Yt(this.controlPoint.degree))*this.width}}}class Di extends ee{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(Yt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Yt(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}=xo(Yt(this.startDegree),this.radius),{dx:o,dy:r}=xo(Yt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,o-t,r-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Yt(this.startDegree),Yt(this.endDegree),!1)}}let _h=class extends Fs{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,o=t?.endDegree||180,r=t?.extendDegree||15,n=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 a=20,i=2,l=17;this.ringBg=new Di({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:o,extendDegree:r,lineWidth:n,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new Di({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:o,extendDegree:r,lineWidth:n}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+a;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new ve({...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+(o-e+r*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(i),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,o)=>{this.shapes.forEach(r=>{r!=o&&(r.x+=t,r.y+=e)})})}frameUpdate(t,e){const o=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 n=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+o,-r,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:n})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let n=0;n<this.indicatorLineCount;n++){const a=n/(this.indicatorLineCount-1)<=this.percent;this.lines[n].setAttr({stroke:a&&e?e.createLinearGradient(0,0,this.lines[n].toX-this.lines[n].x,this.lines[n].toY-this.lines[n].y,{0:this.startColor,1:this.endColor}):a?this.startColor:this.bgColor})}}};class ny extends co{fettis=[];constructor(t,e,o){super();const{shape:r,x:n,y:a,particleCount:i,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:p,ticks:d,colors:b,scalar:_,flat:v}=Object.assign({shape:Te,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Bg,scalar:1,flat:!1},o||{}),w=Yt(l),g=Yt(c);let m=i;for(;m--;){const k=b[m%b.length],C=new r({x:t*n,y:e*a,width:10,height:10,scalar:_,attrs:{fill:k},independentTransformInGroup:!0});this.addShape(C),this.fettis.push({shape:C,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-w+(.5*g-Math.random()*g),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:d,decay:h,drift:p,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:_,flat:v,color:ge(k)})}}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 o=e.tick++/e.totalTicks,r=e.shape.x+e.random*e.tiltCos,n=e.shape.y+e.random*e.tiltSin,a=e.wobbleX+e.random*e.tiltCos,i=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-o).toString()),e.shape.degree=ze(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(a-r)*.1,e.shape.scalarY=Math.abs(i-n)*.1,e.tick<e.totalTicks}))}}class Be{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(o=>{o.run(),t?.wall&&o.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let o=0,r=e-1;o<r;o++)for(let n=o+1;n<e;n++)this.shapes[o].checkCollision(this.shapes[n])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,o)=>{e.run();for(let r=o+1;r<t;r++)e.checkCollision(this.shapes[r]),e.gravitateTo(this.shapes[r])})}springChain(t){this.shapes.forEach((e,o)=>{o>0&&e.runSpringTo(this.shapes[o-1],t)})}springConnect(t){const e=Yo(t?.springLength,100);this.shapes.forEach(o=>{o.isDragging||this.shapes.filter(r=>r.id!==o.id).forEach(r=>{const n=Is(o.x,o.y,r.x,r.y);o.runSpringTo({x:r.x-Math.cos(n)*e,y:r.y-Math.sin(n)*e},t)})})}springMass(t,e){const o=this.shapes.length,r=[];return this.shapes.forEach((n,a)=>{n.run(e),n.x>t.x+t.width?n.x=t.x:n.x<t.x&&(n.x=t.x+t.width),n.y>t.y+t.height?n.y=t.y:n.y<t.y&&(n.y=t.y+t.height);for(let i=a+1;i<o;i++)r.push([n.x,n.y,this.shapes[i].x,this.shapes[i].y,n.springMassTo(this.shapes[i],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 n=this.shapes[r].initPathD();this.shapes[r].frameStart();const a=this.shapes[r+1].initPathD();this.shapes[r+1].frameStart();const i=Math.max(n.polymorphPoints.length,a.polymorphPoints.length);e[r]=Ge.getPathInterpolator(n.expendFill(i),a.expendFill(i))}const o=new ee({d:e[0](0)});return r=>{const n=xe(t*r,6),a=Math.min(Math.floor(n),t-1),i=xe(n-a,6);o.originD=e[a](i);const l=this.shapes[a].getAttr("fill","none"),c=this.shapes[a+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&o.setAttr("fill",Ot.gradient(l,c,i).toString());const u=this.shapes[a].getAttr("stroke","none"),h=this.shapes[a+1].getAttr("stroke","none");return typeof u=="string"&&typeof h=="string"&&o.setAttr("stroke",Ot.gradient(u,h,i).toString()),o}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const o=[];this.shapes.forEach(i=>{let l;i instanceof co?(l=i,l.sortPathD()):(l=new co,l.addShape(i)),o.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),o.forEach(i=>{i!==e&&i.expendFill(e)});const r=[];o.forEach((i,l)=>{i.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const n=[];r.forEach(i=>{n.push(new Be(i).polymorph())});const a=new co;return n.forEach(i=>{a.addShape(i(0))}),i=>(n.forEach(l=>{l(i)}),a)}polymorphTween(t=6e3,e){const o=this.shapes.findIndex(i=>i instanceof co)>=0?this.polymorphGroup():this.polymorph(),r=o(0),n=e?.onUpdate,a=new Oe({frameDuration:t});a.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(i,l)=>{o(i.t),n?.(i,l),e?.draw?.(r)}})),a.play()}static generatePointsShape(t,e,o,r){const n=[];for(let a=0;a<r;a++){const i=a/r*2*Math.PI,{dx:l,dy:c}=xo(i,o);n.push({x:t+l,y:e+c})}return new gh({points:n})}static generateRosettaShape(t,e,o,r,n){if(n==0)throw new Error("no dividing by zero, please");const a=[],i=360/n;for(let l=0;l<n;l+=1){const c=i*l*Math.PI/180,u=t+2*o*Math.cos(c),h=e+2*o*Math.sin(c);a.push(new bi({x:t,y:e,rx:o,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),a.push(new bi({x:u,y:h,rx:o,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new ee({d:Ge.fromLines(a)})}}function ay(s){return window.URL.createObjectURL(s)}const xh=new qa;async function wh(s,t=6e4){const e=typeof s=="string"?s:ay(s);return new Promise((o,r)=>{const n=xh.get(e);if(n)return o(n);const a=new Image;a.onload=l=>{clearTimeout(i);const c=a.naturalWidth||a.width,u=a.naturalHeight||a.height,h={width:c,height:u,aspectRatio:c/u,imageData:mg(a),element:a};xh.set(e,h),o(h),a.onerror=a.onload=null},a.onerror=l=>{clearTimeout(i),r(l)},a.src=e;const i=setTimeout(()=>{r("Timeout!")},t)})}async function iy(s,t=6e4){return new Promise((e,o)=>{const r=document.createElement("script");r.type="text/javascript",r.async=!1,r.onload=a=>{clearTimeout(n),e(a),r.onerror=r.onload=null},r.onerror=a=>{clearTimeout(n),o(a)},r.src=s;const n=setTimeout(()=>{o("Timeout!")},t);document.body.appendChild(r)})}function kh(s,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof s=="string"?e.href=s:e.href=window.URL.createObjectURL(s),e.click()}const In=new qa,ly=(s=!0)=>{In.filter((t,e)=>(e.alternate&&($h(e,e.alternate),s&&In.set(t,e.alternate),e.alternate=void 0),s))};function Ch(s){let t=In.get(s);return t||(t=Ni(s),In.set(s,t)),t}function cy(s){const t=Ch(s);return t.alternate||(t.alternate=Ni(s)),t.alternate}function Th(s,t,e=!0){t(cy(s)),rh("FLUSH_DOM_ACTION",()=>ly(e),50)}function br(s,t,e){const o=Ch(s);return t?o.props.style[t]||o.props.style[cu(t)]||o.props.style[to(t)]:o.props.style}function Sh(s,t,e){Th(s,o=>{typeof t=="string"&&e?o.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(r=>{o.props.style[r]=t[r]})},!0)}function Eh(s){const t=[];if(getComputedStyle){const e=getComputedStyle(s);for(let o=0,r=e.length;o<r;o++)t.push(e[o]+":"+e.getPropertyValue(e[o]))}else{const e=s.currentStyle;for(const o in e)t.push(o+":"+e[o])}return t.push(...(s.style.cssText||"").split(";")),Object.fromEntries(t.filter(e=>!!e).map(e=>e.split(":").map((o,r)=>r==0?cu(o).trim():o.trim())))}function Li(s,t,e){typeof t=="string"&&e?s.style.setProperty(to(t),e.replace(/!important/i,""),String(e).toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(o=>{Li(s,o,t[o])})}function Ph(s,t){typeof t=="string"?s.style.removeProperty(to(t)):Object.keys(t).forEach(e=>{Ph(s,e)})}function ko(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 o=document.createElement("style");if(o.innerHTML=s,e)return e.appendChild(o),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(o)};{const r=document.styleSheets[0].insertRule(s);return()=>{document.styleSheets[0].deleteRule(r)}}}function uy(s,t,e={}){Object.prototype.hasOwnProperty.call(e,"transform")||Object.assign(e,{transform:br(s,"transform")||""});const o=hh(e.transform),r={};for(const n in t){const a=t[n];switch(n){case"transform":break;case"translate":o.translate(a[0]||0,a[1]||0);break;case"translateTo":o.translateTo(a[0]||0,a[1]||0);break;case"translateX":o.translateX(a||0);break;case"translateXTo":o.translateXTo(a||0);break;case"translateY":o.translateY(a||0);break;case"translateYTo":o.translateYTo(a||0);break;case"translateZ":o.translateZ(a||0);break;case"translateZTo":o.translateZTo(a||0);break;case"translate3d":o.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":o.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?o.rotate(a||0):o.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?o.rotateTo(a||0):o.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":o.rotateX(a||0);break;case"rotateXTo":o.rotateXTo(a||0);break;case"rotateY":o.rotateY(a||0);break;case"rotateYTo":o.rotateYTo(a||0);break;case"rotateZ":o.rotateZ(a||0);break;case"rotateZTo":o.rotateZTo(a||0);break;case"rotate3d":o.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":o.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?o.scale(a||1):o.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?o.scaleTo(a||1):o.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":o.scaleX(a||1);break;case"scaleXTo":o.scaleXTo(a||1);break;case"scaleY":o.scaleY(a||1);break;case"scaleYTo":o.scaleYTo(a||1);break;case"scaleZ":o.scaleZ(a||1);break;case"scaleZTo":o.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?o.scale3d(a||1):o.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?o.scale3dTo(a||1):o.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?o.skew(a||0):o.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?o.skewTo(a||0):o.skewTo(a[0]||0,a[1]||0);break;case"skewX":o.skewX(a||0);break;case"skewXTo":o.skewXTo(a||0);break;case"skewY":o.skewY(a||0);break;case"skewYTo":o.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":o.perspective(a||0);break;default:Object.prototype.hasOwnProperty.call(e,n)||(e[n]=br(s,n)),Object.assign(r,{[n]:`${a}`});break}}return Object.assign(r,{transform:o.toString()}),r}function Ls(s,t,e){if(t===void 0&&e===void 0)return Oh(s);if(typeof t=="string"&&e===void 0)return hy(s,t);let o={};typeof t=="object"?o=t:typeof t=="string"&&typeof e=="string"&&(o[t]=e),Th(s,r=>{Object.entries(o).forEach(([n,a])=>{r.props[n]=a})})}function Oh(s){const t={};for(let e=0,o=s.attributes,r=o.length;e<r;e++){const n=o[e];n.nodeName&&n.nodeValue&&(n.nodeName==="style"?t[n.nodeName]=Eh(s):t[n.nodeName]=n.nodeValue)}return t}function hy(s,t){return t==="style"?Eh(s):s.getAttribute(to(t))}function Ih(s,t,e){return s.setAttribute(to(t),e)}function Mi(s,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(s.className)||!1}function ds(s){return{el:s,isRoot:()=>/(html|body)/i.test(s.tagName)||s===document.documentElement,isActive:()=>s===document.activeElement&&(s.type||s.href),parent:()=>s.parentElement,parents:function(t=s,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,o=t.length;e<o;e++)if(/(auto|scroll)/.test(br(t[e],"overflow")+br(t[e],"overflow-y")+br(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>s.contains?s!=t&&s.contains(t):!!(s.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(s.parentElement?.children).filter(t=>t!==s),nextElementSibling:()=>s.nextElementSibling,previousElementSibling:()=>s.previousElementSibling,closest:t=>s.closest(t),shadowRoot:()=>s.shadowRoot,isInput:()=>s.tagName==="INPUT"||s instanceof HTMLInputElement,isSelect:()=>s.tagName==="SELECT"||s instanceof HTMLSelectElement,isTextArea:()=>s.tagName==="TEXTAREA"||s instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(s)&&s.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(s)&&s.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(s)&&s.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(s)&&s.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=s.options;for(let o=0,r=e.length;o<r;o++)e[o].selected=e[o].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(s.name);for(let o=0,r=e.length;o<r;o++){const n=e[o];n.checked=n.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(s.checked=t)},insert:(t,e="append")=>{typeof t=="string"?s[e](dy(t)):s[e](t)},html:function(t){if(typeof t=="string"){s.innerHTML=t;const e=Rh(s);e!=s&&(s=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{s.textContent=t},getInnerText:()=>{if(s instanceof SVGElement)return"";let t=s.innerText;if(!t){const e=s.querySelector("slot")?.assignedNodes()||[];let o=0;for(;!t&&o<=e.length-1;)"innerText"in e[o]&&(t=e[o].innerText),o++}return t},remove:()=>s.remove()}}function dy(s){const t=document.createElement("template");return t.innerHTML=s,t.content.childNodes.forEach(e=>{const o=Rh(e);o!=e&&t.content.replaceChild(o,e)}),t.content}function Rh(s){return s.tagName=="SCRIPT"&&(s=Fh(s)),s.querySelectorAll&&s.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(Fh(t),t)}),s}function Fh(s){const t=s.ownerDocument.createElement("script");t.text=s.text;const e=s.attributes;for(let o=0,r=e.length;o<r;o++)t.setAttribute(e[o].name,e[o].value);return t}async function Ai(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 fy(s,t={},e=[],o){return{tag:s,props:t,children:e,el:o}}function Ni(s){return fy(s.tagName,Oh(s),Array.from(s.children).map(t=>Ni(t)),s)}function Rn(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 o=s.props[e];e.startsWith("on")?s.el.addEventListener(e.slice(2).toLowerCase(),o):e==="style"?Li(s.el,s.props[e]):Ih(s.el,e,o)}return s.children&&(typeof s.children=="string"?s.el.appendChild(document.createTextNode(s.children)):s.children.forEach(e=>{Rn(e,s.el)})),t.appendChild(s.el),s.el}function $h(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(Rn(t),s.el);return}const e=t.el=s.el,o=s.props,r=t.props;for(const i in o)i in r||(i.startsWith("on")?e.removeEventListener(i.slice(2).toLowerCase(),o[i]):e.removeAttribute(i));for(const i in r){const l=o[i],c=r[i];if(c!=l)if(i.startsWith("on")){const u=i.slice(2).toLowerCase();e.removeEventListener(u,l),e.addEventListener(u,c)}else if(i==="style"){for(const u in l)u in c||Ph(e,u);Li(e,c)}else Ih(e,i,c)}const n=s.children||[],a=t.children||[];if(typeof a=="string")e.innerHTML=a;else if(typeof n=="string")e.innerHTML="",a.forEach(i=>{Rn(i,e)});else{const i=Math.min(n.length,a.length);for(let l=0;l<i;l++)$h(n[l],a[l]);a.length>n.length&&a.slice(n.length).forEach(l=>{Rn(l,e)}),a.length<n.length&&n.slice(a.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function py(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let o=100;const r=function(){const n=Math.min(t.clientWidth,s);t.dataset.width=n,t.dataset.rem=o=Math.round(100*(n/s)),t.style.fontSize=o+"px"};r(),window.rem2px=function(n){return n=parseFloat(n),n*o},window.px2rem=function(n){return n=parseFloat(n),n/o},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}class zi{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 vi(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:(o,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const o of this.shapes)if(this.currentMouseInShape==o){o.emit("clicked");let r=o.parent;for(;r;)r.emit("clicked",o),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(Yt(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 co&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),my(this.ctx,e.getAttrs()),e.followMouse&&(!ln(e.x,this.app.mousePoint.x,5)||!ln(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,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}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 o=this.ctx.currentPath2D;if(!this.currentMouseInShape){const r=this.ctx.isPointInPath(o,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(o,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 o=e?.brushSize??10,r=e?.brushDensity??50,n=e?.brushColor??"#000000",a=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),i=a.data,l=ge(n);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()*o,f=this.app.mousePoint.x+Math.cos(u)*h|0,p=this.app.mousePoint.y+Math.sin(u)*h|0,d=(f+p*a.width)*4;i[d]=l.r,i[d+1]=l.g,i[d+2]=l.b,i[d+3]=255}this.ctx.putImageData(a)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}function my(s,t){for(const e in t){const o=t[e];switch(e){case"fill":o!=="none"&&(s.fillStyle=o);break;case"stroke":o!=="none"&&(s.strokeStyle=o);break;case"stroke-width":case"strokeWidth":s.lineWidth=Number(o);break;case"stroke-linecap":case"strokeLinecap":s.lineCap=o;break;case"stroke-linejoin":case"strokeLinejoin":switch(o){case"round":case"bevel":case"miter":s.lineJoin=o;break;default:s.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":s.miterLimit=Number(o);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":s.lineDashOffset=Number(o);break;case"stroke-dasharray":case"strokeDasharray":typeof o=="string"&&s.setLineDash(o.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof o=="string"&&(s.font=o);break;case"font-size":case"fontSize":s.font+=` ${o}`;break;case"font-family":case"fontFamily":s.font+=` ${o}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(o){case"middle":s.textAlign="center";break;case"end":s.textAlign="end";break;case"start":s.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(o){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":s.textBaseline=o;break;default:s.textBaseline="alphabetic";break}break}}}class gy{map;constructor(t,e=120.619585,o=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,o),r)}}const yy=Q({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:yt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("span",{class:"icon",style:A(["color: "+e.color])},[lt(Pt(Qu),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),vy=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
48
|
-
`,it=(s,t)=>{const e=s.__vccOpts||s;for(const[o,r]of t)e[o]=r;return e},Dh=it(yy,[["styles",[vy]],["__scopeId","data-v-b2d9b612"]]),by=Q({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:
|
|
49
|
-
`]],["__scopeId","data-v-42c4dc4c"]]),Sy={key:0,class:"loading"},Ey=Q({customOptions:{Loading11:Fn},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 o=s,r=e,n=I(),a=I(o.borderColor),i=I(o.bgColor),l=I(o.fontColor),c=I(o.borderColor),u=I(o.bgColor);function h(m){switch(m){case"outline":a.value=o.borderColor??
|
|
46
|
+
`);o=~gt?U.length-gt:o+U.length}function n(){var U={line:e,column:o};return function(H){return H.position=new a(U),d(),H}}function a(U){this.start=U,this.end={line:e,column:o},this.source=t.source}a.prototype.content=s;var i=[];function l(U){var H=new Error(t.source+":"+e+":"+o+": "+U);if(H.reason=U,H.filename=t.source,H.line=e,H.column=o,H.source=s,t.silent)i.push(H);else throw H}function c(){var U=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:U,parsingErrors:i}}}function u(){return p(/^{\s*/)}function h(){return p(/^}/)}function f(){var U,H=[];for(d(),b(H);s.length&&s.charAt(0)!="}"&&(U=q()||nt());)U!==!1&&(H.push(U),b(H));return H}function p(U){var H=U.exec(s);if(H){var gt=H[0];return r(gt),s=s.slice(gt.length),H}}function d(){p(/^\s*/)}function b(U){var H;for(U=U||[];H=_();)H!==!1&&U.push(H);return U}function _(){var U=n();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var H=2;s.charAt(H)!=""&&(s.charAt(H)!="*"||s.charAt(H+1)!="/");)++H;if(H+=2,s.charAt(H-1)==="")return l("End of comment missing");var gt=s.slice(2,H-2);return o+=2,r(gt),s=s.slice(H),o+=2,U({type:"comment",comment:gt})}}function v(){var U=p(/^([^{]+)/);if(U)return wo(U[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(H){return H.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(H){return H.replace(/\u200C/g,",")})}function w(){var U=n(),H=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(H){if(H=wo(H[0]),!p(/^:\s*/))return l("property missing ':'");var gt=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ft=U({type:"declaration",property:H.replace(ph,""),value:gt?wo(gt[0]).replace(ph,""):""});return p(/^[;\s]*/),ft}}function g(){var U=[];if(!u())return l("missing '{'");b(U);for(var H;H=w();)H!==!1&&(U.push(H),b(U));return h()?U:l("missing '}'")}function m(){for(var U,H=[],gt=n();U=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)H.push(U[1]),p(/^,\s*/);if(H.length)return gt({type:"keyframe",values:H,declarations:g()})}function k(){var U=n(),H=p(/^@([-\w]+)?keyframes\s*/);if(H){var gt=H[1];if(H=p(/^([-\w]+)\s*/),!H)return l("@keyframes missing name");var ft=H[1];if(!u())return l("@keyframes missing '{'");for(var V,P=b();V=m();)P.push(V),P=P.concat(b());return h()?U({type:"keyframes",name:ft,vendor:gt,keyframes:P}):l("@keyframes missing '}'")}}function C(){var U=n(),H=p(/^@supports *([^{]+)/);if(H){var gt=wo(H[1]);if(!u())return l("@supports missing '{'");var ft=b().concat(f());return h()?U({type:"supports",supports:gt,rules:ft}):l("@supports missing '}'")}}function z(){var U=n(),H=p(/^@host\s*/);if(H){if(!u())return l("@host missing '{'");var gt=b().concat(f());return h()?U({type:"host",rules:gt}):l("@host missing '}'")}}function tt(){var U=n(),H=p(/^@media *([^{]+)/);if(H){var gt=wo(H[1]);if(!u())return l("@media missing '{'");var ft=b().concat(f());return h()?U({type:"media",media:gt,rules:ft}):l("@media missing '}'")}}function R(){var U=n(),H=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(H)return U({type:"custom-media",name:wo(H[1]),media:wo(H[2])})}function D(){var U=n(),H=p(/^@page */);if(H){var gt=v()||[];if(!u())return l("@page missing '{'");for(var ft=b(),V;V=w();)ft.push(V),ft=ft.concat(b());return h()?U({type:"page",selectors:gt,declarations:ft}):l("@page missing '}'")}}function M(){var U=n(),H=p(/^@([-\w]+)?document *([^{]+)/);if(H){var gt=wo(H[1]),ft=wo(H[2]);if(!u())return l("@document missing '{'");var V=b().concat(f());return h()?U({type:"document",document:ft,vendor:gt,rules:V}):l("@document missing '}'")}}function $(){var U=n(),H=p(/^@font-face\s*/);if(H){if(!u())return l("@font-face missing '{'");for(var gt=b(),ft;ft=w();)gt.push(ft),gt=gt.concat(b());return h()?U({type:"font-face",declarations:gt}):l("@font-face missing '}'")}}var N=K("import"),G=K("charset"),st=K("namespace");function K(U){var H=new RegExp("^@"+U+"\\s*([^;]+);");return function(){var gt=n(),ft=p(H);if(ft){var V={type:U};return V[U]=ft[1].trim(),gt(V)}}}function q(){if(s[0]=="@")return k()||tt()||R()||C()||N()||G()||st()||M()||D()||z()||$()}function nt(){var U=n(),H=v();return H?(b(),U({type:"rule",selectors:H,declarations:g()})):l("selector missing")}return Oi(c())}function wo(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Oi(s,t){var e=s&&typeof s.type=="string",o=e?s:t;for(var r in s){var n=s[r];Array.isArray(n)?n.forEach(function(a){Oi(a,o)}):n&&typeof n=="object"&&Oi(n,o)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}class Wg extends jg{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,o)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,o)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const o=Hg(e);for(const r of o.stylesheet.rules)for(const n of r.declarations)for(const a of r.selectors)this.globalStyles[a]=this.globalStyles[a]||[],this.globalStyles[a].push(`${n.property}:${n.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,o)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let n="",a="";for(const i in this.groups[r])i=="transform"?n=this.groups[r].transform:i=="class"&&this.globalStyles["."+this.groups[r][i]]?a=this.globalStyles["."+this.groups[r][i]].join(";")+";"+a:i=="id"&&this.globalStyles["#"+this.groups[r][i]]?a=this.globalStyles["#"+this.groups[r][i]].join(";")+";"+a:typeof this.currentItem[i]>"u"&&(this.currentItem[i]=this.groups[r][i]);typeof this.currentItem.transform>"u"?this.currentItem.transform=n:this.currentItem.transform+=" "+n,typeof this.currentItem.style>"u"?this.currentItem.style=a:this.currentItem.style=a+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),Ri(this.currentItem.style,this.currentItem,Fi)}switch(this.processAttrs(e,o),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 o=[],r;switch(t){case"svg":let n="",a="";if(e.width&&e.height)n=e.width,a=e.height;else if(e.viewBox){const i=e.viewBox.split(/\s+/gi);i.length==4&&(n=String(parseFloat(i[2])-parseFloat(i[0])),a=String(parseFloat(i[3])-parseFloat(i[1])))}n&&a&&this.items.push({type:"viewbox",width:n,height:a});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&&Ri(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+Ii(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),o=[this.grad.angle];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?o.push(r.color+":"+r.offset):o.push(r.color);this.idtops[this.grad.id]=o.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break;case"radialGradient":o=[];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?o.push(r.color+":"+r.offset):o.push(r.color);this.idtops[this.grad.id]=o.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break}for(const n in e){const a=e[n];if(Fi.includes(n)&&(this.currentItem[n]=a),n==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:n,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:n,stops:[]})),n==="style"&&Ri(a,this.currentItem,Fi),n==="transform"&&(this.currentItem.transform=a+(this.currentItem.transform||" ")),n==="fill"){const i=a.match(/url\(#([^)]+)\)/);if(i){const l=i[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}n==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+a+"z"),n==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=a),n==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=a)}}addToItems(){this.items.push(this.currentItem)}}function Ii(s,t,e,o,r,n){if(typeof r>"u"||typeof n>"u"){const a=s-e,i=t-o;return!a&&!i?0:(180+Math.atan2(-i,-a)*180/Math.PI+360)%360}else return Ii(s,t,r,n)-Ii(e,o,r,n)}function Ri(s,t,e){const o=(s+"").split(";"),r=/^\s+|\s+$/g;for(let n=0,a=o.length;n<a;n++){const i=o[n].split(":"),l=i[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=i[1].replace(r,""))}}const Fi=["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 mh{app;rootEl;ue;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,o){this.app=t,this.rootEl=me.createSVGElement("svg"),this.ue=ds(this.rootEl);const r=ds(this.app.container);r.empty(),r.insert(this.rootEl),e&&o?this.setSize(e,o):(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:(n,a)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=a.dx,this.dragDy+=a.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let a=n.parent;for(;a;)a.emit("clicked",n),a=a.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 Ls(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return me.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof co&&t.shapes.forEach(e=>{this._addDrawShape(e)}))}path(t){(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow){e.el&&(e.el.remove(),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof On?e.el=this.text(e.text,e.x,e.y,hu(e.getAttrs(),(r,n)=>typeof n=="string")):(e.el=me.createSvgPath(e.toSVGPathD(),e.id),this.ue.insert(e.el))),e.followMouse&&(!ln(e.x,this.app.mousePoint.x,5)||!ln(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,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}else e.isDragging=!1;e instanceof On&&(e.setAttr("x",String(e.x)),e.setAttr("y",String(e.y))),e.frameUpdate(this.app.mousePoint);const o=e.toSVGPathD();if(this.attr(e,hu(e.getAttrs(),(r,n)=>typeof n=="string")),this.attr(e,"d",o),!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&&e.el.remove(),delete e.el,this.shapes=this.shapes.filter(o=>o.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&t.el.remove(),delete t.el}),this.ue.empty(),this.shapes=[]}attr(t,e,o){const r=t.el||t;return r instanceof SVGElement?e===void 0&&o===void 0?Ls(r):typeof e=="string"&&o===void 0?Ls(r,to(e))||"":(typeof e=="object"?Ls(r,e):typeof e=="string"&&o!==void 0&&Ls(r,to(e),o),this):this}circle(t,e,o){return this.path(new se({x:t,y:e,radius:o}))}circleEl(t,e,o){const r=me.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(o)});return this.ue.insert(r),r}ellipse(t,e,o,r){return this.path(new yh({x:t,y:e,rx:o,ry:r}))}ellipseEl(t,e,o,r){const n=me.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(o),ry:String(r)});return this.ue.insert(n),n}rect(t,e,o,r){return this.path(new Te({x:t,y:e,width:o,height:r}))}rectEl(t,e,o,r){const n=me.createSVGElement("rect",{x:String(t),y:String(e),width:String(o),height:String(r)});return this.ue.insert(n),n}image(t,e,o,r,n){}text(t,e,o,r){const n=me.createSVGElement("text",{x:String(e),y:String(o)});return ds(n).html(t),this.attr(n,Object.assign({"alignment-baseline":"middle"},r)),this.ue.insert(n),n}textWithTspan(t,e,o,r){const n=r?.["line-height"]||"1.2em",a=me.createSVGElement("text",{x:String(e),y:String(o)});return t.split(`
|
|
47
|
+
`).forEach((i,l)=>{if(i.trim()){const c=me.createSVGElement("tspan",{x:String(e),dy:l>0?n:"0"});ds(c).html(i),ds(a).insert(c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),this.ue.insert(a),a}}class Zg extends Fs{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new Wg(t.svg).parse();for(let o=0,r=e.length;o<r;o++){const n=e[o];if(n.type=="viewbox"&&n.width&&n.height){if(this.svgWidth=parseFloat(n.width),this.svgHeight=parseFloat(n.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(n.type!="path"||!me.isSVGPath(n.path))continue;const a={};for(const u in n)u==="type"||u==="path"||u==="transform"||(a[u]=n[u]);const i=me.absolutizeSVGPath(me.parseSVGPath(n.path)),l=[];let c=[];for(let u=0,h=i.length;u<h;u++){const f=i[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=hh(n.transform??"");h.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new oe({...t,attrs:{...a,...t?.attrs||{}},d:u,originMatrix:h}))})}}shapeInit(){this.trim()}}class se extends oe{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 pi(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const o=t/e;this.scalar(o)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,o=this.y;return{x:o*t.x-e*t.y,y:e*t.y-o*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,o=t.y-this.y;if(Math.sqrt(e*e+o*o)<this.radius+t.radius){const n=Math.atan2(o,e),a={x:0,y:0},i=lo(-n,e,o),l=lo(-n,this.vx,this.vy),c=lo(-n,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(a.x-i.x);a.x+=l.x/h*f,i.x+=c.x/h*f;const p=lo(n,a.x,a.y),d=lo(n,i.x,i.y);t.x=this.x+d.x,t.y=this.y+d.y,this.x=this.x+p.x,this.y=this.y+p.y;const b=lo(n,l.x,l.y),_=lo(n,c.x,c.y);this.vx=b.x,this.vy=b.y,t.vx=_.x,t.vy=_.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,o=t.wall.x,r=t.wall.y,n=t.wall.x+t.wall.width,a=t.wall.y+t.wall.height;this.x+this.radius>n?(this.x=n-this.radius,this.vx*=e):this.x-this.radius<o&&(this.x=o+this.radius,this.vx*=e),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=e):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=e)}}class gh extends oe{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 o=1;o<=e-1;o++)t.push(["L",this.points[o].x,this.points[o].y]);t.push(["Z"])}else{const o=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",o,r]);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.push(["Q",this.points[n].x,this.points[n].y,a,i])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,o,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 o=1;o<=e-1;o++)t.lineTo(this.points[o].x,this.points[o].y);t.closePath()}else{const o=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(o,r);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.quadraticCurveTo(this.points[n].x,this.points[n].y,a,i)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,o,r)}}isContainPoint(t,e){const o=this.points.length;let r=!1;const n=2e-10;for(let a=0,i=o-1;a<o;i=a,a++){const l=this.points[a].x,c=this.points[a].y,u=this.points[i].x,h=this.points[i].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),p=l+f*(e-c);if(p===t||Math.abs(p-t)<n)return!0;p>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 Te extends oe{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,o,r,n,a,i,l){const c=new us({x:t,y:e,c1x:o,c1y:r,c2x:n,c2y:a,toX:i,toY:l});return new Te(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 yh extends oe{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 Pn extends oe{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 $i extends oe{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 qg extends oe{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 Qg extends oe{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 Kg extends oe{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 o=288+e*144,r=this.r*Math.cos(Yt(o)),n=this.r*Math.sin(Yt(o));t.push(["l",r,n])}return t}}class Jg extends oe{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 ty extends oe{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 ey extends Fs{constructor(t){super(t);const e=new ve({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),o=30+Math.random()*30,r=new ve({...t,x:this.x,y:this.y-o,diffYInGroup:-o,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),n=60+Math.random()*40,a=new ve({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,r,a])}}class On extends oe{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=io(this.getAttr("fontSize"),10).number,o=io(this.getAttr("fontWeight"),400).number,r=this.measureText(this.text,e,o);this.width=r.width,this.height=r.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}measureText(t,e=12,o=400){const r=document.createElement("span");r.style.visibility="hidden",r.style.margin="0",r.style.padding="0",r.style.inset="0",r.style.whiteSpace="nowrap",r.style.overflow="visible",r.style.fontSize=e+"px",r.style.fontWeight=o.toString(),r.innerText=t,document.body.appendChild(r);const n=r.offsetWidth,a=r.offsetHeight;return document.body.removeChild(r),{width:n,height:a}}getFixedWidthText(t,e,o=12,r=400,n=!0){let a="";if(!t||e<o)return a;const i=t.split(""),l="...";let c=n?this.measureText(l,o,r).width:0;for(let u=0,h=i.length;u<h;u++)if(c+=this.measureText(i[u],o,r).width,c>e){n&&(a+=l);break}else a+=i[u];return a}}class oy extends Fs{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 On({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:ge(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new Te({...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(){Za(()=>{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 vh extends co{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new se;p1Offset=10;p2=new se;p2Offset=40;p3=new se;p3Offset=10;p4=new se;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 sy({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 ve({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new ve({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new On({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 oy({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:o,dy:r}=xo(Yt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+o,this.p1.y=this.y+r;const{dx:n,dy:a}=xo(Yt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+n,this.p2.y=this.y+a,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 sy extends oe{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}=xo(Yt(this.startDegree),this.radius),{dx:o,dy:r}=xo(Yt(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,o-t,r-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Yt(this.startDegree),Yt(this.endDegree),!1),t.closePath()}containPoint(t,e){const o=mi(this.x,this.y,t,e),r=ze(Is(this.x,this.y,t,e));return o<=this.radius&&r>=this.startDegree&&r<=this.endDegree}}class ry extends co{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new oe({...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 oe({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Za(()=>{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 bh extends Fs{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,o=t?.max||100,r=t?.step||1,n=mu(e,o,r);this.value=n(typeof t?.defaultValue=="number"?ne(t.defaultValue,e,o):e);const a=this.value/(o-e),i=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,h=t?.barColor||vt.colorGrayF5,f=t?.handleColor||vt.colorPrimary;this.backgroundRect=new Te({x:this.x,y:this.y,width:i,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new Te({x:this.x,y:this.y,width:i*a,height:l,borderRadius:u,attrs:{fill:f},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new se({x:this.x+i*a,y:this.y+u,diffXInGroup:i*a,diffYInGroup:u,radius:c,alongPath:new Ge({x:this.x,y:this.y+u,d:[["m",0,0],["l",i,0]]}),attrs:{fill:f},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",p=>{this.occupyRect.width=ne(this.occupyRect.width+p,0,i),this.value=n((this.handle.x-this.x)/i*(o-e)+e),this.emit("change",this.value)})}}class Ds extends Fs{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 se({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new Te({...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 se({...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(Yt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Yt(this.controlPoint.degree))*this.width}}}class Di extends oe{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(Yt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Yt(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}=xo(Yt(this.startDegree),this.radius),{dx:o,dy:r}=xo(Yt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,o-t,r-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Yt(this.startDegree),Yt(this.endDegree),!1)}}let _h=class extends Fs{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,o=t?.endDegree||180,r=t?.extendDegree||15,n=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 a=20,i=2,l=17;this.ringBg=new Di({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:o,extendDegree:r,lineWidth:n,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new Di({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:o,extendDegree:r,lineWidth:n}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+a;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new ve({...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+(o-e+r*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(i),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,o)=>{this.shapes.forEach(r=>{r!=o&&(r.x+=t,r.y+=e)})})}frameUpdate(t,e){const o=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 n=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+o,-r,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:n})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let n=0;n<this.indicatorLineCount;n++){const a=n/(this.indicatorLineCount-1)<=this.percent;this.lines[n].setAttr({stroke:a&&e?e.createLinearGradient(0,0,this.lines[n].toX-this.lines[n].x,this.lines[n].toY-this.lines[n].y,{0:this.startColor,1:this.endColor}):a?this.startColor:this.bgColor})}}};class ny extends co{fettis=[];constructor(t,e,o){super();const{shape:r,x:n,y:a,particleCount:i,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:p,ticks:d,colors:b,scalar:_,flat:v}=Object.assign({shape:Te,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Bg,scalar:1,flat:!1},o||{}),w=Yt(l),g=Yt(c);let m=i;for(;m--;){const k=b[m%b.length],C=new r({x:t*n,y:e*a,width:10,height:10,scalar:_,attrs:{fill:k},independentTransformInGroup:!0});this.addShape(C),this.fettis.push({shape:C,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-w+(.5*g-Math.random()*g),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:d,decay:h,drift:p,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:_,flat:v,color:ge(k)})}}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 o=e.tick++/e.totalTicks,r=e.shape.x+e.random*e.tiltCos,n=e.shape.y+e.random*e.tiltSin,a=e.wobbleX+e.random*e.tiltCos,i=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-o).toString()),e.shape.degree=ze(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(a-r)*.1,e.shape.scalarY=Math.abs(i-n)*.1,e.tick<e.totalTicks}))}}class Be{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(o=>{o.run(),t?.wall&&o.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let o=0,r=e-1;o<r;o++)for(let n=o+1;n<e;n++)this.shapes[o].checkCollision(this.shapes[n])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,o)=>{e.run();for(let r=o+1;r<t;r++)e.checkCollision(this.shapes[r]),e.gravitateTo(this.shapes[r])})}springChain(t){this.shapes.forEach((e,o)=>{o>0&&e.runSpringTo(this.shapes[o-1],t)})}springConnect(t){const e=Yo(t?.springLength,100);this.shapes.forEach(o=>{o.isDragging||this.shapes.filter(r=>r.id!==o.id).forEach(r=>{const n=Is(o.x,o.y,r.x,r.y);o.runSpringTo({x:r.x-Math.cos(n)*e,y:r.y-Math.sin(n)*e},t)})})}springMass(t,e){const o=this.shapes.length,r=[];return this.shapes.forEach((n,a)=>{n.run(e),n.x>t.x+t.width?n.x=t.x:n.x<t.x&&(n.x=t.x+t.width),n.y>t.y+t.height?n.y=t.y:n.y<t.y&&(n.y=t.y+t.height);for(let i=a+1;i<o;i++)r.push([n.x,n.y,this.shapes[i].x,this.shapes[i].y,n.springMassTo(this.shapes[i],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 n=this.shapes[r].initPathD();this.shapes[r].frameStart();const a=this.shapes[r+1].initPathD();this.shapes[r+1].frameStart();const i=Math.max(n.polymorphPoints.length,a.polymorphPoints.length);e[r]=Ge.getPathInterpolator(n.expendFill(i),a.expendFill(i))}const o=new oe({d:e[0](0)});return r=>{const n=xe(t*r,6),a=Math.min(Math.floor(n),t-1),i=xe(n-a,6);o.originD=e[a](i);const l=this.shapes[a].getAttr("fill","none"),c=this.shapes[a+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&o.setAttr("fill",It.gradient(l,c,i).toString());const u=this.shapes[a].getAttr("stroke","none"),h=this.shapes[a+1].getAttr("stroke","none");return typeof u=="string"&&typeof h=="string"&&o.setAttr("stroke",It.gradient(u,h,i).toString()),o}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const o=[];this.shapes.forEach(i=>{let l;i instanceof co?(l=i,l.sortPathD()):(l=new co,l.addShape(i)),o.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),o.forEach(i=>{i!==e&&i.expendFill(e)});const r=[];o.forEach((i,l)=>{i.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const n=[];r.forEach(i=>{n.push(new Be(i).polymorph())});const a=new co;return n.forEach(i=>{a.addShape(i(0))}),i=>(n.forEach(l=>{l(i)}),a)}polymorphTween(t=6e3,e){const o=this.shapes.findIndex(i=>i instanceof co)>=0?this.polymorphGroup():this.polymorph(),r=o(0),n=e?.onUpdate,a=new Oe({frameDuration:t});a.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(i,l)=>{o(i.t),n?.(i,l),e?.draw?.(r)}})),a.play()}static generatePointsShape(t,e,o,r){const n=[];for(let a=0;a<r;a++){const i=a/r*2*Math.PI,{dx:l,dy:c}=xo(i,o);n.push({x:t+l,y:e+c})}return new gh({points:n})}static generateRosettaShape(t,e,o,r,n){if(n==0)throw new Error("no dividing by zero, please");const a=[],i=360/n;for(let l=0;l<n;l+=1){const c=i*l*Math.PI/180,u=t+2*o*Math.cos(c),h=e+2*o*Math.sin(c);a.push(new bi({x:t,y:e,rx:o,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),a.push(new bi({x:u,y:h,rx:o,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new oe({d:Ge.fromLines(a)})}}function ay(s){return window.URL.createObjectURL(s)}const xh=new qa;async function wh(s,t=6e4){const e=typeof s=="string"?s:ay(s);return new Promise((o,r)=>{const n=xh.get(e);if(n)return o(n);const a=new Image;a.onload=l=>{clearTimeout(i);const c=a.naturalWidth||a.width,u=a.naturalHeight||a.height,h={width:c,height:u,aspectRatio:c/u,imageData:mg(a),element:a};xh.set(e,h),o(h),a.onerror=a.onload=null},a.onerror=l=>{clearTimeout(i),r(l)},a.src=e;const i=setTimeout(()=>{r("Timeout!")},t)})}async function iy(s,t=6e4){return new Promise((e,o)=>{const r=document.createElement("script");r.type="text/javascript",r.async=!1,r.onload=a=>{clearTimeout(n),e(a),r.onerror=r.onload=null},r.onerror=a=>{clearTimeout(n),o(a)},r.src=s;const n=setTimeout(()=>{o("Timeout!")},t);document.body.appendChild(r)})}function kh(s,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof s=="string"?e.href=s:e.href=window.URL.createObjectURL(s),e.click()}const In=new qa,ly=(s=!0)=>{In.filter((t,e)=>(e.alternate&&($h(e,e.alternate),s&&In.set(t,e.alternate),e.alternate=void 0),s))};function Ch(s){let t=In.get(s);return t||(t=Ni(s),In.set(s,t)),t}function cy(s){const t=Ch(s);return t.alternate||(t.alternate=Ni(s)),t.alternate}function Th(s,t,e=!0){t(cy(s)),rh("FLUSH_DOM_ACTION",()=>ly(e),50)}function br(s,t,e){const o=Ch(s);return t?o.props.style[t]||o.props.style[cu(t)]||o.props.style[to(t)]:o.props.style}function Sh(s,t,e){Th(s,o=>{typeof t=="string"&&e?o.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(r=>{o.props.style[r]=t[r]})},!0)}function Eh(s){const t=[];if(getComputedStyle){const e=getComputedStyle(s);for(let o=0,r=e.length;o<r;o++)t.push(e[o]+":"+e.getPropertyValue(e[o]))}else{const e=s.currentStyle;for(const o in e)t.push(o+":"+e[o])}return t.push(...(s.style.cssText||"").split(";")),Object.fromEntries(t.filter(e=>!!e).map(e=>e.split(":").map((o,r)=>r==0?cu(o).trim():o.trim())))}function Li(s,t,e){typeof t=="string"&&e?s.style.setProperty(to(t),e.replace(/!important/i,""),String(e).toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(o=>{Li(s,o,t[o])})}function Ph(s,t){typeof t=="string"?s.style.removeProperty(to(t)):Object.keys(t).forEach(e=>{Ph(s,e)})}function ko(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 o=document.createElement("style");if(o.innerHTML=s,e)return e.appendChild(o),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(o)};{const r=document.styleSheets[0].insertRule(s);return()=>{document.styleSheets[0].deleteRule(r)}}}function uy(s,t,e={}){Object.prototype.hasOwnProperty.call(e,"transform")||Object.assign(e,{transform:br(s,"transform")||""});const o=hh(e.transform),r={};for(const n in t){const a=t[n];switch(n){case"transform":break;case"translate":o.translate(a[0]||0,a[1]||0);break;case"translateTo":o.translateTo(a[0]||0,a[1]||0);break;case"translateX":o.translateX(a||0);break;case"translateXTo":o.translateXTo(a||0);break;case"translateY":o.translateY(a||0);break;case"translateYTo":o.translateYTo(a||0);break;case"translateZ":o.translateZ(a||0);break;case"translateZTo":o.translateZTo(a||0);break;case"translate3d":o.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":o.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?o.rotate(a||0):o.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?o.rotateTo(a||0):o.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":o.rotateX(a||0);break;case"rotateXTo":o.rotateXTo(a||0);break;case"rotateY":o.rotateY(a||0);break;case"rotateYTo":o.rotateYTo(a||0);break;case"rotateZ":o.rotateZ(a||0);break;case"rotateZTo":o.rotateZTo(a||0);break;case"rotate3d":o.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":o.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?o.scale(a||1):o.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?o.scaleTo(a||1):o.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":o.scaleX(a||1);break;case"scaleXTo":o.scaleXTo(a||1);break;case"scaleY":o.scaleY(a||1);break;case"scaleYTo":o.scaleYTo(a||1);break;case"scaleZ":o.scaleZ(a||1);break;case"scaleZTo":o.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?o.scale3d(a||1):o.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?o.scale3dTo(a||1):o.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?o.skew(a||0):o.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?o.skewTo(a||0):o.skewTo(a[0]||0,a[1]||0);break;case"skewX":o.skewX(a||0);break;case"skewXTo":o.skewXTo(a||0);break;case"skewY":o.skewY(a||0);break;case"skewYTo":o.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":o.perspective(a||0);break;default:Object.prototype.hasOwnProperty.call(e,n)||(e[n]=br(s,n)),Object.assign(r,{[n]:`${a}`});break}}return Object.assign(r,{transform:o.toString()}),r}function Ls(s,t,e){if(t===void 0&&e===void 0)return Oh(s);if(typeof t=="string"&&e===void 0)return hy(s,t);let o={};typeof t=="object"?o=t:typeof t=="string"&&typeof e=="string"&&(o[t]=e),Th(s,r=>{Object.entries(o).forEach(([n,a])=>{r.props[n]=a})})}function Oh(s){const t={};for(let e=0,o=s.attributes,r=o.length;e<r;e++){const n=o[e];n.nodeName&&n.nodeValue&&(n.nodeName==="style"?t[n.nodeName]=Eh(s):t[n.nodeName]=n.nodeValue)}return t}function hy(s,t){return t==="style"?Eh(s):s.getAttribute(to(t))}function Ih(s,t,e){return s.setAttribute(to(t),e)}function Mi(s,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(s.className)||!1}function ds(s){return{el:s,isRoot:()=>/(html|body)/i.test(s.tagName)||s===document.documentElement,isActive:()=>s===document.activeElement&&(s.type||s.href),parent:()=>s.parentElement,parents:function(t=s,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,o=t.length;e<o;e++)if(/(auto|scroll)/.test(br(t[e],"overflow")+br(t[e],"overflow-y")+br(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>s.contains?s!=t&&s.contains(t):!!(s.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(s.parentElement?.children).filter(t=>t!==s),nextElementSibling:()=>s.nextElementSibling,previousElementSibling:()=>s.previousElementSibling,closest:t=>s.closest(t),shadowRoot:()=>s.shadowRoot,isInput:()=>s.tagName==="INPUT"||s instanceof HTMLInputElement,isSelect:()=>s.tagName==="SELECT"||s instanceof HTMLSelectElement,isTextArea:()=>s.tagName==="TEXTAREA"||s instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(s)&&s.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(s)&&s.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(s)&&s.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(s)&&s.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=s.options;for(let o=0,r=e.length;o<r;o++)e[o].selected=e[o].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(s.name);for(let o=0,r=e.length;o<r;o++){const n=e[o];n.checked=n.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(s.checked=t)},insert:(t,e="append")=>{typeof t=="string"?s[e](dy(t)):s[e](t)},html:function(t){if(typeof t=="string"){s.innerHTML=t;const e=Rh(s);e!=s&&(s=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{s.textContent=t},getInnerText:()=>{if(s instanceof SVGElement)return"";let t=s.innerText;if(!t){const e=s.querySelector("slot")?.assignedNodes()||[];let o=0;for(;!t&&o<=e.length-1;)"innerText"in e[o]&&(t=e[o].innerText),o++}return t},remove:()=>s.remove()}}function dy(s){const t=document.createElement("template");return t.innerHTML=s,t.content.childNodes.forEach(e=>{const o=Rh(e);o!=e&&t.content.replaceChild(o,e)}),t.content}function Rh(s){return s.tagName=="SCRIPT"&&(s=Fh(s)),s.querySelectorAll&&s.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(Fh(t),t)}),s}function Fh(s){const t=s.ownerDocument.createElement("script");t.text=s.text;const e=s.attributes;for(let o=0,r=e.length;o<r;o++)t.setAttribute(e[o].name,e[o].value);return t}async function Ai(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 fy(s,t={},e=[],o){return{tag:s,props:t,children:e,el:o}}function Ni(s){return fy(s.tagName,Oh(s),Array.from(s.children).map(t=>Ni(t)),s)}function Rn(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 o=s.props[e];e.startsWith("on")?s.el.addEventListener(e.slice(2).toLowerCase(),o):e==="style"?Li(s.el,s.props[e]):Ih(s.el,e,o)}return s.children&&(typeof s.children=="string"?s.el.appendChild(document.createTextNode(s.children)):s.children.forEach(e=>{Rn(e,s.el)})),t.appendChild(s.el),s.el}function $h(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(Rn(t),s.el);return}const e=t.el=s.el,o=s.props,r=t.props;for(const i in o)i in r||(i.startsWith("on")?e.removeEventListener(i.slice(2).toLowerCase(),o[i]):e.removeAttribute(i));for(const i in r){const l=o[i],c=r[i];if(c!=l)if(i.startsWith("on")){const u=i.slice(2).toLowerCase();e.removeEventListener(u,l),e.addEventListener(u,c)}else if(i==="style"){for(const u in l)u in c||Ph(e,u);Li(e,c)}else Ih(e,i,c)}const n=s.children||[],a=t.children||[];if(typeof a=="string")e.innerHTML=a;else if(typeof n=="string")e.innerHTML="",a.forEach(i=>{Rn(i,e)});else{const i=Math.min(n.length,a.length);for(let l=0;l<i;l++)$h(n[l],a[l]);a.length>n.length&&a.slice(n.length).forEach(l=>{Rn(l,e)}),a.length<n.length&&n.slice(a.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function py(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let o=100;const r=function(){const n=Math.min(t.clientWidth,s);t.dataset.width=n,t.dataset.rem=o=Math.round(100*(n/s)),t.style.fontSize=o+"px"};r(),window.rem2px=function(n){return n=parseFloat(n),n*o},window.px2rem=function(n){return n=parseFloat(n),n/o},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}class zi{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 vi(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:(o,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const o of this.shapes)if(this.currentMouseInShape==o){o.emit("clicked");let r=o.parent;for(;r;)r.emit("clicked",o),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(Yt(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 co&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),my(this.ctx,e.getAttrs()),e.followMouse&&(!ln(e.x,this.app.mousePoint.x,5)||!ln(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,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}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 o=this.ctx.currentPath2D;if(!this.currentMouseInShape){const r=this.ctx.isPointInPath(o,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(o,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 o=e?.brushSize??10,r=e?.brushDensity??50,n=e?.brushColor??"#000000",a=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),i=a.data,l=ge(n);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()*o,f=this.app.mousePoint.x+Math.cos(u)*h|0,p=this.app.mousePoint.y+Math.sin(u)*h|0,d=(f+p*a.width)*4;i[d]=l.r,i[d+1]=l.g,i[d+2]=l.b,i[d+3]=255}this.ctx.putImageData(a)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}function my(s,t){for(const e in t){const o=t[e];switch(e){case"fill":o!=="none"&&(s.fillStyle=o);break;case"stroke":o!=="none"&&(s.strokeStyle=o);break;case"stroke-width":case"strokeWidth":s.lineWidth=Number(o);break;case"stroke-linecap":case"strokeLinecap":s.lineCap=o;break;case"stroke-linejoin":case"strokeLinejoin":switch(o){case"round":case"bevel":case"miter":s.lineJoin=o;break;default:s.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":s.miterLimit=Number(o);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":s.lineDashOffset=Number(o);break;case"stroke-dasharray":case"strokeDasharray":typeof o=="string"&&s.setLineDash(o.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof o=="string"&&(s.font=o);break;case"font-size":case"fontSize":s.font+=` ${o}`;break;case"font-family":case"fontFamily":s.font+=` ${o}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(o){case"middle":s.textAlign="center";break;case"end":s.textAlign="end";break;case"start":s.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(o){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":s.textBaseline=o;break;default:s.textBaseline="alphabetic";break}break}}}class gy{map;constructor(t,e=120.619585,o=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,o),r)}}const yy=Q({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("span",{class:"icon",style:A(["color: "+e.color])},[lt(Et(Qu),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),vy=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
48
|
+
`,it=(s,t)=>{const e=s.__vccOpts||s;for(const[o,r]of t)e[o]=r;return e},Dh=it(yy,[["styles",[vy]],["__scopeId","data-v-b2d9b612"]]),by=Q({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("span",{class:"icon",style:A(["color: "+e.color])},[lt(Et(Qu),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),ux="",ho=it(by,[["__scopeId","data-v-8789b4ce"]]),_y={class:"loading-11",ref:"loading11"},xy={class:"container container-1"},wy={class:"container container-2"},ky={class:"container container-3"},Cy=Q({__name:"Loading11",props:{color:{default:vt.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,o)=>(L(),Y("div",_y,[E("div",{class:"loading-11-inner",style:A({width:t.width,height:t.width})},[E("div",xy,[E("div",{class:"dot dot-1",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:A({backgroundColor:t.color})},null,4)]),E("div",wy,[E("div",{class:"dot dot-1",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:A({backgroundColor:t.color})},null,4)]),E("div",ky,[E("div",{class:"dot dot-1",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:A({backgroundColor:t.color})},null,4)])],4)],512))}}),hx="",Fn=it(Cy,[["__scopeId","data-v-f95fac77"]]),Ty={key:0,class:"loading"},fs=it(Q({customOptions:{Loading11:Fn},inheritAttrs:!0,__name:"Button.ce",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 o=s,r=e,n=I(),a=I(o.borderColor),i=I(o.bgColor),l=I(o.fontColor),c=I(o.borderColor),u=I(o.bgColor);function h(m){switch(m){case"outline":a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorGrayFF,l.value=o.fontColor??vt.colorPrimary,c.value=a.value,u.value=i.value;break;case"fullfilled":default:a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorPrimary,l.value=o.fontColor??vt.colorGrayFF,c.value=a.value,u.value=i.value;break}}St(()=>o.stylePattern,()=>{h(o.stylePattern)},{immediate:!0});const f=I(o.disabled?"0.6":"1"),p=I(o.disabled?"not-allowed":"pointer");let d=!1;const b=()=>{o.disabled||(d=!0,a.value=ge(c.value).lighten(.05).toString(),i.value=ge(u.value).lighten(.05).toString())},_=()=>{o.disabled||(d=!1,a.value=c.value,i.value=u.value)},v=I(!1),g=vu(()=>{o.disabled||v.value||(a.value=ge(c.value).darken(.05).toString(),i.value=ge(u.value).darken(.05).toString(),setTimeout(()=>{d?b():_()},150),r("yz-click"),r("click"),o.asyncClick&&(v.value=!0,o.asyncClick().then(()=>{v.value=!1}).catch(()=>{v.value=!1})))},500);return t({el:n}),(m,k)=>(L(),Y("div",{ref_key:"el",ref:n,class:"button",style:A([`opacity: ${f.value}`,`border: 1px solid ${a.value}`,`background-color: ${i.value}`,`color: ${l.value}`,`border-radius: ${o.borderRadius}`,`height: ${o.height}`,`line-height: ${o.height}`,`font-size: ${o.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:b,onMouseleave:_,onClick:k[0]||(k[0]=(...C)=>Et(g)&&Et(g)(...C))},[E("label",{class:"label truncate",style:A({padding:"0 "+m.padding,cursor:p.value})},[v.value?(L(),Y("div",Ty,[lt(Fn,{color:l.value},null,8,["color"])])):Ot("",!0),kt(m.$slots,"default",{},()=>[m.icon&&m.iconPosition==="left"?(L(),Mt(ho,{key:0,icon:m.icon,color:l.value,style:A({marginRight:Et(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Ot("",!0),E("span",{style:A({cursor:p.value})},yt(m.label),5),m.icon&&m.iconPosition==="right"?(L(),Mt(ho,{key:1,icon:m.icon,color:l.value,style:A({marginLeft:Et(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Ot("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-42c4dc4c]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-42c4dc4c]{display:inline-flex;justify-content:center;align-items:center}.loading[data-v-42c4dc4c]{margin-right:6px}
|
|
49
|
+
`]],["__scopeId","data-v-42c4dc4c"]]),Sy={key:0,class:"loading"},Ey=Q({customOptions:{Loading11:Fn},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 o=s,r=e,n=I(),a=I(o.borderColor),i=I(o.bgColor),l=I(o.fontColor),c=I(o.borderColor),u=I(o.bgColor);function h(m){switch(m){case"outline":a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorGrayFF,l.value=o.fontColor??vt.colorPrimary,c.value=a.value,u.value=i.value;break;case"fullfilled":default:a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorPrimary,l.value=o.fontColor??vt.colorGrayFF,c.value=a.value,u.value=i.value;break}}St(()=>o.stylePattern,()=>{h(o.stylePattern)},{immediate:!0});const f=I(o.disabled?"0.6":"1"),p=I(o.disabled?"not-allowed":"pointer");let d=!1;const b=()=>{o.disabled||(d=!0,a.value=ge(c.value).lighten(.05).toString(),i.value=ge(u.value).lighten(.05).toString())},_=()=>{o.disabled||(d=!1,a.value=c.value,i.value=u.value)},v=I(!1),g=vu(()=>{o.disabled||v.value||(a.value=ge(c.value).darken(.05).toString(),i.value=ge(u.value).darken(.05).toString(),setTimeout(()=>{d?b():_()},150),r("yz-click"),r("click"),o.asyncClick&&(v.value=!0,o.asyncClick().then(()=>{v.value=!1}).catch(()=>{v.value=!1})))},500);return t({el:n}),(m,k)=>(L(),Y("div",{ref_key:"el",ref:n,class:"button",style:A([`opacity: ${f.value}`,`border: 1px solid ${a.value}`,`background-color: ${i.value}`,`color: ${l.value}`,`border-radius: ${o.borderRadius}`,`height: ${o.height}`,`line-height: ${o.height}`,`font-size: ${o.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:b,onMouseleave:_,onClick:k[0]||(k[0]=(...C)=>Et(g)&&Et(g)(...C))},[E("label",{class:"label truncate",style:A({padding:"0 "+m.padding,cursor:p.value})},[v.value?(L(),Y("div",Sy,[lt(Fn,{color:l.value},null,8,["color"])])):Ot("",!0),kt(m.$slots,"default",{},()=>[m.icon&&m.iconPosition==="left"?(L(),Mt(ho,{key:0,icon:m.icon,color:l.value,style:A({marginRight:Et(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Ot("",!0),E("span",{style:A({cursor:p.value})},yt(m.label),5),m.icon&&m.iconPosition==="right"?(L(),Mt(ho,{key:1,icon:m.icon,color:l.value,style:A({marginLeft:Et(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Ot("",!0)],!0)],4)],36))}}),px="",re=it(Ey,[["__scopeId","data-v-b3e1b144"]]),Py=["onClick","value"],Oy={class:"option-inner"},Iy=it(Q({customOptions:{Icon:ho,Button:re},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,o=t;Lo(()=>{ko(`
|
|
50
50
|
:root {
|
|
51
|
-
--select-option-bg-color: ${
|
|
52
|
-
--select-option-bg-color-hover: ${
|
|
51
|
+
--select-option-bg-color: ${vt.colorGrayFF};
|
|
52
|
+
--select-option-bg-color-hover: ${vt.colorGrayF5};
|
|
53
53
|
}
|
|
54
|
-
`)});const r=I(!1),n=I(e.initIndex);St(n,function(){o("change",n.value,e.options[n.value])});function a(){r.value=!r.value}function i(l){n.value=l,r.value=!1}return(l,c)=>(L(),
|
|
55
|
-
`]],["__scopeId","data-v-e2eda65b"]]),Ry=["width","height"],Fy=["fill"],$y=Q({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:
|
|
54
|
+
`)});const r=I(!1),n=I(e.initIndex);St(n,function(){o("change",n.value,e.options[n.value])});function a(){r.value=!r.value}function i(l){n.value=l,r.value=!1}return(l,c)=>(L(),Y("div",{class:"select",style:A(["font-size:"+l.fontSize])},[E("div",{onClick:a},[kt(l.$slots,"button",{selectedIndex:n.value},()=>[lt(re,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[n.value],style:{width:"100%"}},null,8,["label"])],!0)]),ns(E("div",{class:"options",style:A({border:"1px solid "+Et(vt).colorGrayCC})},[(L(!0),Y(Xt,null,ye(l.options,(u,h)=>(L(),Y("div",{onClick:f=>i(h),class:"option",key:h,value:h,style:A({borderTop:(h==0?"0":"1px")+" solid "+Et(vt).colorGrayCC})},[E("div",Oy,[kt(l.$slots,"default",{item:u,index:h},()=>[E("span",null,yt(u),1),h==n.value?(L(),Mt(ho,{key:0,icon:"mingcute:check-fill",class:"icon"})):Ot("",!0)],!0)])],12,Py))),128))],4),[[Bo,r.value]])],4))}}),[["styles",[`.select[data-v-e2eda65b]{display:inline-block;position:relative}.options[data-v-e2eda65b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-e2eda65b]{cursor:pointer}.option-inner[data-v-e2eda65b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-e2eda65b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-e2eda65b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
|
|
55
|
+
`]],["__scopeId","data-v-e2eda65b"]]),Ry=["width","height"],Fy=["fill"],$y=Q({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:vt.colorGrayCC}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,Fy)],8,Ry))}}),yx="",$n=it($y,[["__scopeId","data-v-b1f2ae20"]]),Dy={class:"button-default"},Ly={class:"truncate"},My=["onClick","value"],Ay=Q({customOptions:{SVGDown:$n},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:vt.colorGrayFF},hoverColor:{default:vt.colorGrayF5},selectedColor:{default:vt.colorPrimary},fontColor:{default:vt.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,o=t;Lo(()=>{ko(`
|
|
56
56
|
:root {
|
|
57
57
|
--select-option-bg-color: ${e.bgColor};
|
|
58
58
|
--select-option-bg-color-hover: ${e.hoverColor};
|
|
59
59
|
}
|
|
60
|
-
`)});const r=I(!1),n=I(e.initIndex);St(n,function(){o("change",n.value,e.options[n.value])});function a(){r.value=!r.value}function i(c){n.value=c,r.value=!1}const l=I("rotate(-180deg)");return uc(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(L(),
|
|
61
|
-
`]],["__scopeId","data-v-25297564"]]),Ny=it(Q({__name:"Switch.ce",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,o=io(e.width),r=io(e.height),n=io(e.padding),a=r.number-n.number*2+r.suffix,i=e.padding,l=o.number-io(i).number-io(a).number+o.suffix,c=t,u=I(e.init);St(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,p)=>(L(),
|
|
62
|
-
`]],["__scopeId","data-v-fedd031c"]]),zy=["stroke","fill"],By=["stroke","fill"],Yy=["stroke"],Bi=it(Q({customOptions:{},__name:"BooleanBox.ce",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 o=s,r=e;let n=I(o.selected),a=I(o.disabled),i=I(o.label);const l=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorDisabled:o.colorBackground;case"reverse":default:return a.value?o.colorDisabled:n.value?o.colorForeground:o.colorBackground}},c=()=>a.value?o.colorDisabled:ge(l()).darken(.2).toString(),u=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorBackground:o.colorForeground;case"reverse":default:return n.value?o.colorBackground:o.colorForeground}},h=()=>{a.value||(p(),r("change",n.value))},f=w=>{w!==n.value&&(n.value=w)},p=()=>{n.value=!n.value};return t({setValue:f,toggleValue:p,getValue:()=>n.value,enable:()=>{a.value=!1},disable:()=>{a.value=!0},setLabel:w=>{i.value=w}}),(w,g)=>(L(),
|
|
63
|
-
`]],["__scopeId","data-v-79270ea2"]]),Vy=["stroke","fill"],Xy=["stroke","fill"],Gy=["stroke"],Uy=Q({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 o=s,r=e;let n=I(o.selected),a=I(o.disabled),i=I(o.label);const l=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorDisabled:o.colorBackground;case"reverse":default:return a.value?o.colorDisabled:n.value?o.colorForeground:o.colorBackground}},c=()=>a.value?o.colorDisabled:ge(l()).darken(.2).toString(),u=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorBackground:o.colorForeground;case"reverse":default:return n.value?o.colorBackground:o.colorForeground}},h=()=>{a.value||(p(),r("change",n.value))},f=w=>{w!==n.value&&(n.value=w)},p=()=>{n.value=!n.value};return t({setValue:f,toggleValue:p,getValue:()=>n.value,enable:()=>{a.value=!1},disable:()=>{a.value=!0},setLabel:w=>{i.value=w}}),(w,g)=>(L(),
|
|
64
|
-
`]],["__scopeId","data-v-4793f58f"]]),Vi=it(Q({customOptions:{BooleanBox:Uo},__name:"CheckboxGroup.ce",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,o=t;let r=Zt(e.initIndexs??[]);const n=(a,i)=>{const l=r.findIndex(u=>u===a);let c=!1;l>=0&&!i?(r.splice(l,1),c=!0):l<0&&i&&(r.push(a),c=!0),c&&o("change",r.map(u=>e.options[u]))};return(a,i)=>(L(!0),
|
|
65
|
-
`]],["__scopeId","data-v-f267549e"]]),jy=["width","height"],Hy=["fill"],Wy=["fill"],Zy=["fill"],qy=Q({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:
|
|
60
|
+
`)});const r=I(!1),n=I(e.initIndex);St(n,function(){o("change",n.value,e.options[n.value])});function a(){r.value=!r.value}function i(c){n.value=c,r.value=!1}const l=I("rotate(-180deg)");return uc(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(L(),Y("div",{class:"select-absolute",style:A({fontSize:e.fontSize,backgroundColor:e.bgColor})},[E("div",{class:"select-absolute-button",onClick:a},[kt(c.$slots,"button",{selectedIndex:n.value},()=>[E("div",Dy,[E("div",Ly,yt(c.options[n.value]),1),lt($n,{class:"icon-down",width:"20px",style:A({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),E("div",{class:"options",style:A({maxHeight:r.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${r.value?1:0}px solid #e6e6e6`})},[(L(!0),Y(Xt,null,ye(c.options,(h,f)=>(L(),Y("div",{onClick:p=>i(f),class:"option",key:f,value:f},[kt(c.$slots,"default",{item:h,index:f},()=>[E("div",{class:"option-default",style:A({color:n.value==f?e.selectedColor:e.fontColor})},yt(h),5)],!0)],8,My))),128))],4)],4))}}),Lh=it(Ay,[["styles",[`.select-absolute[data-v-25297564]{display:block;position:relative;width:100%}.select-absolute-button[data-v-25297564]{overflow:hidden}.button-default[data-v-25297564]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-25297564]{flex:0 0 auto}.truncate[data-v-25297564]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-25297564]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-25297564]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-25297564]::-webkit-scrollbar:vertical{width:2px}.options[data-v-25297564]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-25297564]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-25297564]{cursor:pointer}.option-default[data-v-25297564]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-25297564]:hover{background-color:var(--select-option-bg-color-hover)}
|
|
61
|
+
`]],["__scopeId","data-v-25297564"]]),Ny=it(Q({__name:"Switch.ce",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,o=io(e.width),r=io(e.height),n=io(e.padding),a=r.number-n.number*2+r.suffix,i=e.padding,l=o.number-io(i).number-io(a).number+o.suffix,c=t,u=I(e.init);St(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,p)=>(L(),Y("div",{class:"switch",onClick:h,style:A(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[E("span",{class:"round",style:A(["width: "+a,"height: "+a,"background-color: "+(u.value?e.colorPrimary:Et(ge)(e.colorPrimary).lighten(.5).toString()),"transform: translate("+(u.value?l:Et(i))+", 0)"])},null,4)],4))}}),[["styles",[`.switch[data-v-fedd031c]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-fedd031c]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
|
|
62
|
+
`]],["__scopeId","data-v-fedd031c"]]),zy=["stroke","fill"],By=["stroke","fill"],Yy=["stroke"],Bi=it(Q({customOptions:{},__name:"BooleanBox.ce",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 o=s,r=e;let n=I(o.selected),a=I(o.disabled),i=I(o.label);const l=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorDisabled:o.colorBackground;case"reverse":default:return a.value?o.colorDisabled:n.value?o.colorForeground:o.colorBackground}},c=()=>a.value?o.colorDisabled:ge(l()).darken(.2).toString(),u=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorBackground:o.colorForeground;case"reverse":default:return n.value?o.colorBackground:o.colorForeground}},h=()=>{a.value||(p(),r("change",n.value))},f=w=>{w!==n.value&&(n.value=w)},p=()=>{n.value=!n.value};return t({setValue:f,toggleValue:p,getValue:()=>n.value,enable:()=>{a.value=!1},disable:()=>{a.value=!0},setLabel:w=>{i.value=w}}),(w,g)=>(L(),Y("div",{class:te(["boolean-box",Et(a)?"disabled":""]),onClick:h},[kt(w.$slots,"default",{selected:Et(n),disabled:Et(a),label:Et(i)},()=>[(L(),Y("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:A(["width:"+o.boxWidth])},[o.isRounded?Ot("",!0):(L(),Y("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,zy)),o.isRounded?(L(),Y("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,By)):Ot("",!0),Et(n)?(L(),Y("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Yy)):Ot("",!0)],4)),w.label?(L(),Y("span",{key:0,style:A(["font-size:"+o.fontSize,"margin-left:"+o.labelPadding])},yt(w.label),5)):Ot("",!0)],!0)],2))}}),[["styles",[`.boolean-box[data-v-79270ea2]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.boolean-box.disabled[data-v-79270ea2]{cursor:not-allowed}.icon[data-v-79270ea2]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
|
|
63
|
+
`]],["__scopeId","data-v-79270ea2"]]),Vy=["stroke","fill"],Xy=["stroke","fill"],Gy=["stroke"],Uy=Q({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 o=s,r=e;let n=I(o.selected),a=I(o.disabled),i=I(o.label);const l=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorDisabled:o.colorBackground;case"reverse":default:return a.value?o.colorDisabled:n.value?o.colorForeground:o.colorBackground}},c=()=>a.value?o.colorDisabled:ge(l()).darken(.2).toString(),u=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorBackground:o.colorForeground;case"reverse":default:return n.value?o.colorBackground:o.colorForeground}},h=()=>{a.value||(p(),r("change",n.value))},f=w=>{w!==n.value&&(n.value=w)},p=()=>{n.value=!n.value};return t({setValue:f,toggleValue:p,getValue:()=>n.value,enable:()=>{a.value=!1},disable:()=>{a.value=!0},setLabel:w=>{i.value=w}}),(w,g)=>(L(),Y("div",{class:te(["boolean-box",Et(a)?"disabled":""]),onClick:h},[kt(w.$slots,"default",{selected:Et(n),disabled:Et(a),label:Et(i)},()=>[(L(),Y("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:A(["width:"+o.boxWidth])},[o.isRounded?Ot("",!0):(L(),Y("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,Vy)),o.isRounded?(L(),Y("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,Xy)):Ot("",!0),Et(n)?(L(),Y("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Gy)):Ot("",!0)],4)),w.label?(L(),Y("span",{key:0,style:A(["font-size:"+o.fontSize,"margin-left:"+o.labelPadding])},yt(w.label),5)):Ot("",!0)],!0)],2))}}),kx="",Uo=it(Uy,[["__scopeId","data-v-3df94794"]]),Yi=it(Q({customOptions:{BooleanBox:Uo},__name:"RadioGroup.ce",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,o=t,r=I([]),n=(l,c)=>{l&&(r.value[c]=l)};let a=I(e.initIndex);const i=(l,c)=>{a.value!==l?(r.value[a.value].toggleValue(),c&&(a.value=l,o("change",e.options[a.value]))):c||r.value[a.value].setValue(!0)};return(l,c)=>(L(!0),Y(Xt,null,ye(l.options,(u,h)=>(L(),Y("div",{class:"radio-group",key:h,style:A(["margin-left:"+(h>0?e.itemPadding:0)])},[lt(Uo,{ref_for:!0,ref:f=>n(f,h),selected:Et(a)==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=>i(h,f)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),[["styles",[`.radio-group[data-v-4793f58f]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center}
|
|
64
|
+
`]],["__scopeId","data-v-4793f58f"]]),Vi=it(Q({customOptions:{BooleanBox:Uo},__name:"CheckboxGroup.ce",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,o=t;let r=Zt(e.initIndexs??[]);const n=(a,i)=>{const l=r.findIndex(u=>u===a);let c=!1;l>=0&&!i?(r.splice(l,1),c=!0):l<0&&i&&(r.push(a),c=!0),c&&o("change",r.map(u=>e.options[u]))};return(a,i)=>(L(!0),Y(Xt,null,ye(a.options,(l,c)=>(L(),Y("div",{class:"checkbox-group",key:c,style:A(["margin-left:"+(c>0?e.itemPadding:0)])},[lt(Uo,{selected:Et(r).findIndex(u=>u===c)>=0,disabled:a.disabledIndexs&&a.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=>n(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),[["styles",[`.checkbox-group[data-v-f267549e]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center}
|
|
65
|
+
`]],["__scopeId","data-v-f267549e"]]),jy=["width","height"],Hy=["fill"],Wy=["fill"],Zy=["fill"],qy=Q({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:vt.colorRed}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,Hy),E("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,Wy),E("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,Zy)],8,jy))}}),Px="",Mh=it(qy,[["__scopeId","data-v-41294f60"]]),Qy={class:"input"},Ky={class:"ellipsis"},Jy={class:"input-wrap"},t1=["type","required"],e1={key:0,style:{paddingLeft:"0.5em"}},o1={key:1},s1=it(Q({customOptions:{SVGPrompt:Mh},inheritAttrs:!0,__name:"Input.ce",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 o=s,r=e,n=o.placeholder.split(""),a=o.duration/n.length,i=I(),l=I(!1),c=I(""),u=I(o.defaultValue||"");function h(){l.value=!0,r("focus"),r("yz-focus")}function f(){l.value=!1,r("blur"),r("yz-blur"),d()}function p(b){u.value=b.target.value,d()}function d(){if(u.value&&o.validator){const b=o.validator(u.value);if(!b.valid){c.value=b.errors[0];return}}c.value="",u.value&&(r("input",u.value),r("yz-input",u.value))}return Lo(()=>{o.defaultValue&&(i.value.value=o.defaultValue)}),ee(()=>{}),t({}),(b,_)=>(L(),Y("div",Qy,[c.value?(L(),Y("div",{key:0,class:"error-text",style:A({color:o.errorColor})},[lt(Mh,{class:"icon"}),E("div",Ky,yt(c.value),1)],4)):Ot("",!0),E("div",Jy,[E("input",{ref_key:"inputEl",ref:i,class:te(["input-raw",l.value||u.value?"focus":""]),type:o.type,required:o.required,autocomplete:"off",style:A({height:o.height,lineHeight:o.height,borderRadius:o.borderRadius,color:o.fontColor,borderColor:c.value?o.errorColor:l.value?o.focusColor:u.value||o.placeholderType=="normal"?o.borderColor:"transparent",transition:o.duration+"ms"}),onFocus:h,onBlur:f,onInput:p,onChange:p},null,46,t1),E("div",{class:"placeholder",style:A({lineHeight:l.value||u.value?1.3:o.height,color:o.placeholderColor,transition:o.placeholderType=="normal"?"":o.duration+"ms",transform:o.placeholderType=="normal"?"":l.value||u.value?"translateY(-100%)":"none"})},[!c.value&&o.placeholderType=="normal"&&!l.value&&!u.value?(L(),Y("div",e1,yt(o.placeholder),1)):Ot("",!0),!c.value&&o.placeholderType=="jump"?(L(),Y("div",o1,yt(o.placeholder),1)):Ot("",!0),!c.value&&o.placeholderType=="jump-each"?(L(!0),Y(Xt,{key:2},ye(Et(n),(v,w)=>(L(),Y("span",{key:w,style:A({transition:o.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${a*w}ms`,transform:l.value||u.value?`translateX(${100*w}%) translateY(-100%)`:`translateX(${100*w}%)`}),class:"single"},yt(v),5))),128)):Ot("",!0)],4),E("div",{class:"background",style:A({transition:o.duration+"ms",backgroundColor:o.placeholderType=="normal"||l.value||u.value?"transparent":o.borderColor,height:o.placeholderType=="normal"||l.value||u.value?o.height:"2px",borderRadius:o.borderRadius})},null,4)])]))}}),[["styles",[`.input[data-v-812cd68c]{position:relative;box-sizing:border-box;font-size:1em}.error-text[data-v-812cd68c]{position:absolute;top:0;left:0;width:100%;font-size:.75em;display:flex;align-items:center;transform:translateY(-100%)}.icon[data-v-812cd68c]{flex:0 0 auto}.ellipsis[data-v-812cd68c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.input-wrap[data-v-812cd68c]{position:relative;box-sizing:border-box}.input-raw[data-v-812cd68c]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.background[data-v-812cd68c]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-812cd68c]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-812cd68c]{font-size:.75em}.placeholder>div[data-v-812cd68c]{width:100%;display:flex;justify-content:flex-start;align-items:center}.placeholder>span.single[data-v-812cd68c]{position:absolute;left:0;top:0}
|
|
66
66
|
`]],["__scopeId","data-v-812cd68c"]]),r1=["max","min","step","value","autofocus"],n1={key:0,class:"label"},Xi=it(Q({customOptions:{},inheritAttrs:!0,__name:"InputRange.ce",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 o=s,r=e,n=I(o.defaultValue),a=()=>xe((n.value-o.min)/(o.max-o.min),4)*100,i=I(a());function l(h){n.value=xe(h.target.value,2),i.value=a(),r("change",n.value)}const c=`
|
|
67
67
|
:root {
|
|
68
68
|
--input-range-color: ${o.color};
|
|
@@ -74,8 +74,8 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(s){retur
|
|
|
74
74
|
--input-range-thumb-size: ${o.handleSize};
|
|
75
75
|
--input-range-track-size: ${o.barHeight};
|
|
76
76
|
}
|
|
77
|
-
`,u=I();return St(u,()=>{u.value&&ko(c,u.value)}),
|
|
78
|
-
`]],["__scopeId","data-v-d547a5f1"]]),a1=["width","height"],i1=Q({__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 o=s,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;St(n,()=>{n.value&&(c=new We(n.value,!1),c.on("resize",(b,_)=>{const v=$s();i.value=Math.min(b,v.width),l.value=Math.min(_,v.height),p()}),c.start())}),St(a,()=>{a.value&&p()});let u,h,f;function p(){u||!a.value||!i.value||!l.value||(u=new We(a.value,!1),u.on("resize",(b,_)=>{r("resize",b,_),h=new zi(u,o.enableCustomContext),f?.(h),r("ready",h)}),u.start())}function d(){return new Promise(b=>{if(h)return b(h);f=b})}return
|
|
77
|
+
`,u=I();return St(u,()=>{u.value&&ko(c,u.value)}),ee(()=>{}),t({}),(h,f)=>(L(),Y("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[E("input",{type:"range",max:o.max,min:o.min,step:o.step,value:n.value,autofocus:o.autofocus,onInput:l,style:A({background:`linear-gradient(to right, ${o.color} 0%, ${o.color} ${i.value}%, ${o.barColor} ${i.value}%, ${o.barColor})`})},null,44,r1),kt(h.$slots,"default",{value:n.value},()=>[h.showValue?(L(),Y("label",n1,yt(n.value)+yt(o.unit),1)):Ot("",!0)],!0)],512))}}),[["styles",[`.input-range[data-v-d547a5f1]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.label[data-v-d547a5f1]{min-width:3em;text-align:right}input[type=range][data-v-d547a5f1]{flex:1 1 auto;-webkit-appearance:none;appearance:none;border-radius:9999px;margin:0;padding:0}input[type=range][data-v-d547a5f1]:focus{outline:none}input[type=range][data-v-d547a5f1]::-webkit-slider-runnable-track{height:var(--input-range-track-size);border-radius:9999px}input[type=range][data-v-d547a5f1]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:var(--input-range-thumb-size);width:var(--input-range-thumb-size);margin-top:-8px;background:var(--input-range-color);border-radius:50%;cursor:pointer}
|
|
78
|
+
`]],["__scopeId","data-v-d547a5f1"]]),a1=["width","height"],i1=Q({__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 o=s,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;St(n,()=>{n.value&&(c=new We(n.value,!1),c.on("resize",(b,_)=>{const v=$s();i.value=Math.min(b,v.width),l.value=Math.min(_,v.height),p()}),c.start())}),St(a,()=>{a.value&&p()});let u,h,f;function p(){u||!a.value||!i.value||!l.value||(u=new We(a.value,!1),u.on("resize",(b,_)=>{r("resize",b,_),h=new zi(u,o.enableCustomContext),f?.(h),r("ready",h)}),u.start())}function d(){return new Promise(b=>{if(h)return b(h);f=b})}return ee(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>a.value,getCanvas:d}),(b,_)=>(L(),Y("div",{class:"canvas",ref_key:"canvasOutterRef",ref:n},[E("canvas",{ref_key:"canvasRef",ref:a,width:i.value,height:l.value,style:A({backgroundColor:o.bgColor})},null,12,a1)],512))}}),$x="",Ye=it(i1,[["__scopeId","data-v-1fc03287"]]),l1={class:"input-range-canvas"},c1={key:0,class:"label"},Ah=it(Q({customOptions:{Canvas:Ye},inheritAttrs:!0,__name:"InputRangeCanvas.ce",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 o=s,r=e,n=I(o.defaultValue),a=p=>{n.value=p,r("change",p)},i=io(o.handleSize,20).number/2,l=io(o.barHeight,4).number;let c;const u=()=>{c=new bh({x:0,y:i-l/2,min:o.min,max:o.max,step:o.step,defaultValue:n.value,barWidth:h,handleRadius:i,barHeight:l}),c.on("change",a)};let h=0;const f=I();return St(f,()=>{f.value&&f.value.getCanvas().then(p=>{h=p.app.width,u(),p.app.on("resize",d=>{h=d,u()}),ae(()=>(p.ctx.clearRect(),p.draw(c),!0))})}),ee(()=>{}),t({}),(p,d)=>(L(),Y("div",l1,[E("div",{class:"input",style:A({height:o.handleSize})},[lt(Ye,{ref_key:"canvasRef",ref:f},null,512)],4),kt(p.$slots,"default",{value:n.value},()=>[p.showValue?(L(),Y("div",c1,yt(n.value)+yt(o.unit),1)):Ot("",!0)],!0)]))}}),[["styles",[`.input-range-canvas[data-v-14730339]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.input[data-v-14730339]{flex:1 1 auto;overflow:hidden}.label[data-v-14730339]{min-width:3em;text-align:right}
|
|
79
79
|
`]],["__scopeId","data-v-14730339"]]),xt=Q({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 o=s,r=e;let n="start";const a=()=>{n="start",r("start")},i=()=>{n="end",r("end")},l=()=>{n=="start"?i():a()},c=()=>{n=="start"?a():i()};let u=!1,h,f;const p=I();St(p,()=>{if(!(!p.value||h)){if(o.styleSheets){let _="";for(let v in o.styleSheets)_+=`${v}: ${o.styleSheets[v]};`;ko(`
|
|
80
80
|
:root {
|
|
81
81
|
${_}
|
|
@@ -83,14 +83,14 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(s){retur
|
|
|
83
83
|
:host {
|
|
84
84
|
${_}
|
|
85
85
|
}
|
|
86
|
-
`,p.value)}h=new We(p.value,!1),h.on("resize",(_,v)=>{r("resize",_,v,p.value.getBoundingClientRect()),f?.(h),u||(u=!0,o.effectTriggerTiming!=="manual"&&a(),r("ready",h),o.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{o.effectTriggerTiming=="click"&&l(),o.supportCopyText&&Ai(ds(p.value).getInnerText()).then(()=>{}).catch(_=>{})}),h.start()}});const d=()=>new Promise(_=>{if(h)return _(h);f=_}),b=()=>d().then(()=>p.value.getBoundingClientRect());return
|
|
87
|
-
`]],["__scopeId","data-v-b07b3c9b"]]),Ms=Q({customOptions:{Container:xt},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 o=s,r=e,n=Zt({}),a=Zt({});let i=o.name,l=o.duration,c=o.timingFunction,u=o.delay,h=o.repeat,f=o.direction;function p(){switch(i){case"superRainbow":l=o.duration||15e3;break;case"heartBeat":l=o.duration||1300;break;case"statusProcessing":l=o.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=o.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=o.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=o.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=o.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=o.duration||600;break;default:l=o.duration||500;break}switch(i){case"superRainbow":c=o.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=o.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=o.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=o.timingFunction||"ease-in-out";break;default:c=o.timingFunction||"ease";break}switch(i){default:u=o.delay||0;break}switch(i){case"superRainbow":case"statusProcessing":h=o.repeat||"infinite";break;default:h=o.repeat||1;break}switch(i){case"superRainbow":f=o.direction||"alternate";break;default:f=o.direction||"normal";break}switch(i){case"hinge":case"rotateFall":a.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":a.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":a.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":a.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":a.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":a.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":a.transformOrigin="right bottom";break;default:delete a.transformOrigin;break}switch(i){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":n.overflow="visible";break;default:n.overflow="hidden";break}switch(i){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":a.backfaceVisibility="visible";break;default:delete a.backfaceVisibility;break}}St(()=>o.name,()=>{i=o.name,p()},{immediate:!0});const d=I(),b=I(),_=z=>{n.perspective=o.perspective,z.on("animationstart",tt=>{r("cssanimationstart",tt.animationName)}),z.on("animationend",tt=>{r("cssanimationend",tt.animationName)})};function v(){b.value.style.animation="none",b.value.offsetHeight,b.value.style.animation=null}const w=()=>{a.animation="none"},g=()=>{v(),a.animation=`${l}ms ${c} ${u}ms ${h} ${f} ${o.fillMode} ${o.playState} ${i}`};return t({trigger:z=>{z&&(i=z,p()),d.value.startEffect(),f="normal",d.value.endEffect()},triggerReverse:z=>{z&&(i=z,p()),d.value.startEffect(),f="reverse",d.value.endEffect()},clear:()=>{a.animation="none"}}),(z,tt)=>(L(),Mt(xt,{class:"css-animation",ref_key:"containerRef",ref:d,type:o.containerType,supportCopyText:o.supportCopyText,effectTriggerTiming:o.effectTriggerTiming,style:A(n),onReady:_,onStart:w,onEnd:g},{default:bt(()=>[E("div",{class:"css-animation-inner",ref_key:"animationRef",ref:b,style:A({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[kt(z.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),Ax="",f1={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},zh=Q({customOptions:{CSSAnimation:Ms},__name:"Status.ce",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const o=s;let r="";switch(o.status){case"wait":r="#d9d9d9";break;case"success":r="#52c41a";break;case"error":r="#ff4d4f";break;case"processing":default:r="#1677ff";break}return o.color&&(r=o.color),t({}),(n,a)=>(L(),
|
|
88
|
-
`]],["__scopeId","data-v-141eb7ce"]]),m1=["width","height"],g1=["fill"],y1=Q({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:
|
|
86
|
+
`,p.value)}h=new We(p.value,!1),h.on("resize",(_,v)=>{r("resize",_,v,p.value.getBoundingClientRect()),f?.(h),u||(u=!0,o.effectTriggerTiming!=="manual"&&a(),r("ready",h),o.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{o.effectTriggerTiming=="click"&&l(),o.supportCopyText&&Ai(ds(p.value).getInnerText()).then(()=>{}).catch(_=>{})}),h.start()}});const d=()=>new Promise(_=>{if(h)return _(h);f=_}),b=()=>d().then(()=>p.value.getBoundingClientRect());return ee(()=>{h?.destroy()}),t({getElement:()=>p.value,getApp:d,getSize:b,getStatus:()=>n,startEffect:a,endEffect:i,nextEffect:l,repeatEffect:c}),(_,v)=>(L(),Y("div",{class:te(["container",[o.type]]),ref_key:"containerRef",ref:p,style:A({position:"relative",boxSizing:"border-box",display:o.type=="shrink"?"inline-block":"block",width:o.type=="full"?"100%":"auto",height:o.type=="full"?"100%":"auto"})},[kt(_.$slots,"default")],6))}}),u1={class:"input-range-box"},h1={key:0,class:"label"},d1=Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"InputRangeBox.ce",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!1},bgColor:{default:Go.inputColor},barColor:{default:Go.numberColor},barHeight:{default:"20px"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.defaultValue),a=()=>xe(mu(o.min,o.max,o.step)(n.value),2),i=()=>xe((n.value-o.min)/(o.max-o.min),4)*100;n.value=a();const l=I(i()),c={"--input-range-box-background-hover-color":ge(o.bgColor).lighten(.05).toString(),"--input-range-box-foreground-hover-color":ge(o.barColor).lighten(.05).toString()},u=I();function h(f){const p=async d=>{const b=await u.value.getSize();n.value=xe(jm(d,b.left,b.right,o.min,o.max),2),n.value=a(),l.value=i(),r("change",n.value)};f.captureDrag({start:d=>{p(d.clientX)},move:d=>{p(d.clientX)}})}return ee(()=>{}),t({}),(f,p)=>(L(),Y("div",u1,[E("div",{class:"box",style:A({height:o.barHeight,cursor:"ew-resize"})},[lt(xt,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:h},{default:bt(()=>[E("div",{class:"background",style:A({backgroundColor:o.bgColor,width:"100%",height:"100%"})},null,4),E("div",{class:"foreground",style:A({backgroundColor:o.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),kt(f.$slots,"default",{value:n.value},()=>[f.showValue?(L(),Y("label",h1,yt(n.value)+yt(o.unit),1)):Ot("",!0)],!0)]))}}),Nh=it(d1,[["styles",[`.input-range-box[data-v-b07b3c9b]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.label[data-v-b07b3c9b]{min-width:3em;text-align:right}.box[data-v-b07b3c9b]{flex:1 1 auto;position:relative}.foreground[data-v-b07b3c9b]{position:absolute;left:0;top:0}.box:hover .background[data-v-b07b3c9b]{background-color:var(--input-range-box-background-hover-color)!important}.box:hover .foreground[data-v-b07b3c9b]{background-color:var(--input-range-box-foreground-hover-color)!important}
|
|
87
|
+
`]],["__scopeId","data-v-b07b3c9b"]]),Ms=Q({customOptions:{Container:xt},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 o=s,r=e,n=Zt({}),a=Zt({});let i=o.name,l=o.duration,c=o.timingFunction,u=o.delay,h=o.repeat,f=o.direction;function p(){switch(i){case"superRainbow":l=o.duration||15e3;break;case"heartBeat":l=o.duration||1300;break;case"statusProcessing":l=o.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=o.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=o.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=o.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=o.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=o.duration||600;break;default:l=o.duration||500;break}switch(i){case"superRainbow":c=o.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=o.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=o.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=o.timingFunction||"ease-in-out";break;default:c=o.timingFunction||"ease";break}switch(i){default:u=o.delay||0;break}switch(i){case"superRainbow":case"statusProcessing":h=o.repeat||"infinite";break;default:h=o.repeat||1;break}switch(i){case"superRainbow":f=o.direction||"alternate";break;default:f=o.direction||"normal";break}switch(i){case"hinge":case"rotateFall":a.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":a.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":a.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":a.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":a.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":a.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":a.transformOrigin="right bottom";break;default:delete a.transformOrigin;break}switch(i){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":n.overflow="visible";break;default:n.overflow="hidden";break}switch(i){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":a.backfaceVisibility="visible";break;default:delete a.backfaceVisibility;break}}St(()=>o.name,()=>{i=o.name,p()},{immediate:!0});const d=I(),b=I(),_=z=>{n.perspective=o.perspective,z.on("animationstart",tt=>{r("cssanimationstart",tt.animationName)}),z.on("animationend",tt=>{r("cssanimationend",tt.animationName)})};function v(){b.value.style.animation="none",b.value.offsetHeight,b.value.style.animation=null}const w=()=>{a.animation="none"},g=()=>{v(),a.animation=`${l}ms ${c} ${u}ms ${h} ${f} ${o.fillMode} ${o.playState} ${i}`};return t({trigger:z=>{z&&(i=z,p()),d.value.startEffect(),f="normal",d.value.endEffect()},triggerReverse:z=>{z&&(i=z,p()),d.value.startEffect(),f="reverse",d.value.endEffect()},clear:()=>{a.animation="none"}}),(z,tt)=>(L(),Mt(xt,{class:"css-animation",ref_key:"containerRef",ref:d,type:o.containerType,supportCopyText:o.supportCopyText,effectTriggerTiming:o.effectTriggerTiming,style:A(n),onReady:_,onStart:w,onEnd:g},{default:bt(()=>[E("div",{class:"css-animation-inner",ref_key:"animationRef",ref:b,style:A({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[kt(z.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),Ax="",f1={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},zh=Q({customOptions:{CSSAnimation:Ms},__name:"Status.ce",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const o=s;let r="";switch(o.status){case"wait":r="#d9d9d9";break;case"success":r="#52c41a";break;case"error":r="#ff4d4f";break;case"processing":default:r="#1677ff";break}return o.color&&(r=o.color),t({}),(n,a)=>(L(),Y("div",f1,[n.status==="processing"?(L(),Mt(Ms,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:bt(()=>[E("div",{style:A({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Et(r)})},null,4)]),_:1})):Ot("",!0),E("div",{style:A({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Et(r)})},null,4)]))}}),p1=it(Q({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop.ce",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(!1);function i(){a.value=!0}function l(){a.value=!1}function c(h){h.preventDefault()}function u(h){h.preventDefault(),r("yz-drop",h.dataTransfer.files),l()}return ee(()=>{}),t({}),(h,f)=>(L(),Y("div",{class:te(["input-file-drop",[a.value?"over":""]]),ref_key:"zone",ref:n,onDragenter:i,onDragleave:l,onDragover:c,onDrop:u},[kt(h.$slots,"default",{},()=>[jt(yt(o.placeholder),1)],!0)],34))}}),[["styles",[`.input-file-drop[data-v-141eb7ce]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;border:2px dashed #ccc;color:#ccc}.input-file-drop.over[data-v-141eb7ce]{border-color:#000;color:#000}
|
|
88
|
+
`]],["__scopeId","data-v-141eb7ce"]]),m1=["width","height"],g1=["fill"],y1=Q({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[E("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,g1)],8,m1))}}),Bx="",Bh=it(y1,[["__scopeId","data-v-4747d4a7"]]),v1=Q({customOptions:{SVGDelete:Bh},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:vt.colorGrayFF},deleteColor:{default:vt.colorRed},fontColor:{default:vt.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(!1),a=()=>{r("delete"),n.value=!1};let i;const l=I();return St(l,()=>{l.value&&(i=new We(l.value),i.on("panLeft",()=>{n.value=!0}),i.on("panRight",()=>{n.value=!1}),i.on("tapOutSide",()=>{n.value=!1}))}),ee(()=>{i?.destroy()}),t({}),(c,u)=>(L(),Y("div",{class:"parent",ref_key:"item",ref:l,style:A({backgroundColor:o.bgColor,borderRadius:o.borderRadius})},[E("div",{class:"content",style:A({transition:"all ease-in "+o.transtionDuration,transform:n.value?"translate(-"+o.deleteWidth+", 0)":"translate(0, 0)"})},[kt(c.$slots,"default",{},void 0,!0)],4),E("div",{class:"delete",onClick:a,style:A({backgroundColor:o.deleteColor,width:o.deleteWidth,transition:"all ease-in "+o.transtionDuration,transform:n.value?"translate(0, 0)":"translate("+o.deleteWidth+", 0)"})},[lt(Bh,{color:o.fontColor},null,8,["color"])],4)],4))}}),Yh=it(v1,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
|
|
89
89
|
`]],["__scopeId","data-v-4ea80232"]]),b1=it(Q({customOptions:{Container:xt,SVGDown:$n},inheritAttrs:!0,__name:"Accordion.ce",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 o=s,r=e,n=(h,f)=>{r("resize",h,f)},a=I(Number.MAX_SAFE_INTEGER+"px"),i=I(),l=I(!0);St(i,()=>{i.value&&(a.value=i.value.getBoundingClientRect().height+"px",l.value=o.initOpen)});function c(){l.value=!l.value,l.value?r("open"):r("close")}const u=I(0);return uc(()=>{u.value=l.value?0:-90}),t({}),(h,f)=>(L(),Mt(xt,{onResize:n},{default:bt(()=>[E("div",{class:"accordion",style:A({background:o.bgColor,color:o.fontColor,borderRadius:o.borderRadius})},[E("div",{class:"accordion-title",onClick:c,style:A({height:o.titleHeight,lineHeight:o.titleHeight,margin:`0 ${o.padding}`,transitionDelay:`${l.value?0:o.duration}ms`,borderBottom:`${l.value?1:0}px solid ${o.borderColor}`})},[kt(h.$slots,"title",{},()=>[jt("title")],!0),lt($n,{class:"arrow",style:A({transition:`transform ${o.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),E("div",{class:"accordion-content",ref_key:"content",ref:i,style:A({margin:`0 ${o.padding}`,transition:`max-height ${o.duration}ms ease-in-out`,maxHeight:l.value?a.value:"0"})},[kt(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),[["styles",[`.accordion[data-v-33318c10]{width:100%;font-size:1em;position:relative;overflow:hidden}.accordion-title[data-v-33318c10]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.accordion-content[data-v-33318c10]{word-break:break-all;overflow:hidden}
|
|
90
|
-
`]],["__scopeId","data-v-33318c10"]]),_1=Q({__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 o=s,r=I(0);function n(a){r.value=Math.min(Math.max(0,a),100)}return t({goto:n}),(a,i)=>(L(),
|
|
91
|
-
`]],["__scopeId","data-v-b54fc81b"]]),jo=Q({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:ge("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const o=s,r=I(),n=document.documentElement.style.overflow,a=document.body.style.overflow;return St(()=>o.visible,()=>{o.isGlobal?o.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=n,document.body.style.overflow=a):r.value&&(o.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(i,l)=>o.visible?(L(),
|
|
92
|
-
`]],["__scopeId","data-v-892af4f0"]]),Ln=Q({customOptions:{Container:xt,CSSAnimation:Ms},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=Zt({}),i=()=>{r("ready",C,z)},l=()=>{b()},c=I();let u="rotateRightSideFirst",h=o.effect;function f(tt,R){switch(h){case"static":R();break;default:tt();break}}let p=!1;const d=new Oe,b=()=>{const tt={},R={};d.clear(),d.frameDuration=o.duration,f(()=>{u=h},()=>{d.addTween(tt,R,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:D=>{a.transform="","x"in D&&(a.transform+=` translateX(${D.x}%)`),"y"in D&&(a.transform+=` translateY(${D.y}%)`),"rx"in D&&(a.transform+=` rotateX(${D.rx}deg)`),"ry"in D&&(a.transform+=` rotateY(${D.ry}deg)`),"scale"in D&&(a.transform+=` scale(${D.scale})`),"opacity"in D&&(a.opacity=`${D.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{h=o.effect,b()},{immediate:!0});const _=()=>{r(p?"pageCloseStart":"pageOpenStart")},v=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},w=()=>{f(()=>{c.value.trigger(u)},()=>{d.play()})},g=()=>{f(()=>{c.value.triggerReverse(u)},()=>{d.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function k(){f(()=>{m()},()=>{c.value?.clear()})}const C=tt=>{tt&&(h=tt,b()),p=!1,k(),n.value.startEffect()},z=tt=>{tt&&(h=tt,b()),p=!0,k(),n.value.endEffect()};return t({open:C,close:z,clear:m,getElement:()=>n.value.getElement()}),(tt,R)=>(L(),Mt(xt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:w,onEnd:g},{default:bt(()=>[lt(Ms,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:_,onCssanimationend:v},{default:bt(()=>[E("div",{class:"page-inner",style:A({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(tt.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Ui=Q({customOptions:{Page:Ln,Container:xt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],h=[];function f(Y){return Y>=0&&Y<c.length}function p(){return a>n}function d(Y,P,Vt){switch(Y){case n:return p()?P:Vt;case a:return p()?Vt:P;default:return"static"}}function b(Y,P){switch(Y){case"moveToLeft":return d(P,"moveToLeft","moveFromRight");case"moveToRight":return d(P,"moveToRight","moveFromLeft");case"moveToTop":return d(P,"moveToTop","moveFromBottom");case"moveToBottom":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return d(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return d(P,"fade","moveFromRight");case"moveFromTopPrevFade":return d(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return d(P,"fade","moveFromBottom");case"moveToLeftFade":return d(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return d(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return d(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return d(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return d(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return d(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return d(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return d(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return d(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return d(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return d(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return d(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return d(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return d(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return d(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return d(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return d(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return d(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return d(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return d(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return d(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return d(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return d(P,"flipOutLeft","flipInRight");case"flipToRight":return d(P,"flipOutRight","flipInLeft");case"flipToTop":return d(P,"flipOutTop","flipInBottom");case"flipToBottom":return d(P,"flipOutBottom","flipInTop");case"rotateFall":return d(P,"rotateFall","scaleFromSmall");case"newspaper":return d(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return d(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return d(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return d(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return d(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return d(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return d(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return d(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return d(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return d(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return d(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return d(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return d(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return d(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return d(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return d(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return d(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return d(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return d(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return d(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return d(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return d(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return d(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return d(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return d(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return d(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return d(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return d(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return d(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return d(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return d(P,"rotateSlideOut","rotateSlideIn")}}function _(Y,P=600,Vt=600){switch(Y){case n:return P;case a:return Vt;default:return o.duration}}function v(Y,P){switch(Y){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return _(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return _(P,700,600);case"scaleSmall":return _(P,700,500);case"scaleLarge":return _(P,500,700);case"scaleToLargePrevScaleToSmall":return _(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return _(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return _(P,800,600);default:return o.duration}}let w=o.timingFunction;function g(Y){switch(Y){default:return o.easeFunction}}function m(Y,P){switch(Y){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:w=p()?"ease-in-out":"ease";break;case a:default:w=p()?"ease":"ease-in-out"}return g(P);default:return w=o.timingFunction,o.easeFunction}}function k(Y,P=300){switch(Y){case a:return o.delay+P;default:return o.delay}}function C(Y,P){switch(Y){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return k(P,500);case"scaleSmall":case"scaleLarge":return k(P,300);case"scaleToLargePrevScaleToSmall":return k(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return k(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return k(P,180);default:return o.delay}}let z=2,tt=2;const R=()=>{z=2,tt=2},D=()=>{z=2,tt=3},M=()=>{z=3,tt=2};function $(Y){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":M();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":p()?M():D();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":p()?D():M();break;default:R();break}f(n)&&n==Y&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="visible"),f(a)&&a==Y&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible")}function N(Y){D(),Y==n&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="hidden"),Y==a&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const G=I();function st(Y=0,P=!1){if(!G.value)return;let Vt=0;ir(qt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((Nt,Ct)=>{const Kt=b(o.effect,Ct);return qt("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:n==Ct?"visible":"hidden",zIndex:P?"1":"0"}},Nt.pageKey?{key:Nt.pageKey}:{}),qt(Ln,{effect:Kt,duration:v(o.effect,Ct),easeFunction:m(o.effect,Ct),timingFunction:w,delay:C(o.effect,Ct),onReady:(Gt,j)=>{u[Ct]={open:Gt,close:j},++Vt==Y&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{$(Ct)},onPageOpenEnd:()=>{N(Ct)},onPageCloseStart:()=>{$(Ct)},onPageCloseEnd:()=>{N(Ct)}},{default:()=>Nt.component instanceof HTMLElement?qt("div",{...Nt.attributes,innerHTML:Nt.component.innerHTML}):qt(Nt.component,Nt.attributes,()=>Nt.child)}))})),G.value),h=G.value.children[0].children}St(()=>o.effect,()=>{st()});function K(Y=[]){c=[...Y],c.forEach(P=>{P.pageKey=P.pageKey||Ps()}),i=()=>{n=-1,ft(0)},st(c.length,!0)}function q(Y){Y.pageKey=Y.pageKey||Ps(),c.push(Y),i=()=>{ft(c.length-1)},st(1,c.length==1)}function nt(){c.length<=1||ft(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,st()})}function U(){ft(n+1)}function H(){ft(n-1)}const gt=new un(1);function ft(Y,P){gt.addTask(()=>new Promise(Vt=>{const Nt=()=>{P?.(),Vt()};if(!f(Y)){Nt();return}if(a=Y,a==n){Nt();return}l.push(Nt),st(),r("routeChangeStart",n,a,c.length),p()?(f(n)&&u[n].open(),f(a)&&u[a].open()):(f(n)&&u[n].close(),f(a)&&u[a].close())}))}return t({reset:K,push:q,pop:nt,forward:U,back:H,goto:ft,currentPageIndex:()=>n,totalPages:()=>c.length}),(Y,P)=>(L(),V("div",{class:"routes",ref_key:"routesRef",ref:G,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),S1=Q({...{},name:"Image",customOptions:{Container:xt,Pop:be},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 o=s,r=e,n=new Oe({frameDuration:o.dur}),a=I(0),i=I(0),l=I(0),c=I(0),u=I(0),h=I(0),f=I(0),p=I(0),d=I(0),b=I(0);wh(o.src).then($=>{d.value=$.width,b.value=$.height,k()});const _=I(0),v=I(0),w=($,N)=>{_.value=$,v.value=N,k()},g=I(0),m=I(0);function k(){if(!_.value||!v.value||!d.value||!b.value)return;const $=bn(o.mode,d.value,b.value,_.value,v.value);g.value=$.width,m.value=$.height;const{width:N,height:G}=$s(),st=bn("aspectFit",d.value,b.value,N,G);f.value=st.width,p.value=st.height,u.value=(N-f.value)/2,h.value=(G-p.value)/2}const C=($,N,G)=>{r("settled",G.x,G.y,G.width,G.height)};let z=!1;const tt=I(),R=I();async function D(){if(!o.openImageDetailWhenClick)return;const $=await tt.value.getSize();n.clear(),n.addTween({left:$.x,top:$.y,width:$.width,height:$.height},{left:u.value,top:h.value,width:f.value,height:p.value},{easeFunction:ht.Quadratic.Out,onUpdate(N){a.value=N.left,i.value=N.top,l.value=N.width,c.value=N.height},onComplete(){z&&R.value.close(),z=!z}}),z||(R.value.open(),n.play())}function M(){z&&n.reverse()}return t({}),($,N)=>(L(),Mt(xt,{class:"image",type:"full",style:A({backgroundColor:o.bgColor}),onResize:w,onClick:D},{default:bt(()=>[lt(xt,{class:"image-inner",ref_key:"imageRef",ref:tt,type:"shrink",style:A({width:g.value+"px",height:m.value+"px",backgroundImage:`url(${o.src})`,backgroundSize:`${g.value}px ${m.value}px`}),onResize:C},null,8,["style"]),lt(be,{ref_key:"popRef",ref:R,"direction-from":"absolute","absolute-left":`${a.value}px`,"absolute-top":`${i.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:M},{default:bt(()=>[E("div",{class:"image-pop",style:A({width:"100%",height:"100%",backgroundImage:`url(${o.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),qx="",Xh=it(S1,[["__scopeId","data-v-4e9887dd"]]),E1={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Gh=Q({customOptions:{Image:Xh,Container:xt,Routes:Ui},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const o=s,r=I(0);function n(f,p){r.value=p}const a=I(),i=f=>{f.on("panLeft",()=>{a.value?.forward()}),f.on("panRight",()=>{a.value?.back()}),a.value.reset(o.urls.map(p=>({component:qt(Xh,{mode:"aspectFit",src:p,openImageDetailWhenClick:!1})})))},l=I();function c(){l.value?.open()}function u(){l.value?.close()}const h=f=>{f.target&&Mi(f.target,"image")&&u()};return t({open:c,close:u}),(f,p)=>(L(),Mt(be,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:bt(()=>[o.urls.length>1?(L(),V("div",E1,vt(r.value+1)+" / "+vt(o.urls.length),1)):Ft("",!0),lt(xt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:i},{default:bt(()=>[lt(Ui,{ref_key:"routesRef",ref:a,effect:o.effect,onRouteChangeEnd:n},null,8,["effect"])]),_:1})]),_:1},512))}}),Qx="",P1={class:"page"},O1={class:"header"},I1={class:"main"},R1={class:"main-scroll"},F1={class:"footer"},$1=it(Q({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return py(s.designWidth),t({}),(r,n)=>(L(),V("div",P1,[E("header",O1,[kt(r.$slots,"header",{},void 0,!0)]),E("div",I1,[E("div",R1,[kt(r.$slots,"main",{},void 0,!0)])]),E("footer",F1,[kt(r.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
|
|
93
|
-
`]],["__scopeId","data-v-20686fd2"]]),D1=it(Q({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const o=s,r=Zt({}),n=Zt({});function a(){switch(du(r),du(n),o.type){case"table":r.display="table",n.display="table-cell",n.verticalAlign="middle",n.textAlign="center";break;case"transform":n.position="absolute",n.top="50%",n.left="50%",n.transform="translate(-50%, -50%)";break;case"grid":r.display="grid",r.justifyContent="center",r.alignItems="center";break;case"flex":default:r.display="flex",n.margin="auto"}}return a(),
|
|
90
|
+
`]],["__scopeId","data-v-33318c10"]]),_1=Q({__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 o=s,r=I(0);function n(a){r.value=Math.min(Math.max(0,a),100)}return t({goto:n}),(a,i)=>(L(),Y("div",{class:"bar",style:A({border:`1px solid ${o.borderColor}`,borderRadius:o.borderRadius,backgroundColor:o.bgColor})},[E("div",{class:"bar-inner",style:A({width:r.value+"%",backgroundColor:o.progressColor})},yt(o.showText?r.value+"%":""),5)],4))}}),Gx="",Dn=it(_1,[["__scopeId","data-v-d986b312"]]),x1=["width","height"],w1=["src","type"],k1={class:"video-progress-bar"},Vh=it(Q({customOptions:{ProgressBar:Dn},inheritAttrs:!0,__name:"Video.ce",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n;function a(h){if(n){n.resume();return}n=new Oe({frameDuration:this.duration*1e3}),n.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"),n=null}}),n.play()}const i=I(),l=I();St(i,()=>{i.value&&(i.value.addEventListener("play",a),o.autoplay&&Pi.tryAutoPlayOrAutoPlayAfterClick(i.value))}),ee(()=>{i.value?.removeEventListener(a)});function c(){i.value?.play()}function u(){i.value?.pause(),n?.pause()}return t({play:c,pause:u}),(h,f)=>(L(),Y("div",{class:"video",style:A({width:o.width,height:o.height}),onClick:c},[E("video",{ref_key:"video",ref:i,width:o.width,height:o.height,preload:"metadata"},[E("source",{src:o.src,type:o.type},null,8,w1)],8,x1),E("div",k1,[lt(Dn,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),[["styles",[`.video[data-v-b54fc81b]{position:relative;overflow:hidden;background-color:#f5f5f5}.video-progress-bar[data-v-b54fc81b]{position:absolute;bottom:0;left:0;width:100%;height:6px}
|
|
91
|
+
`]],["__scopeId","data-v-b54fc81b"]]),jo=Q({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:ge("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const o=s,r=I(),n=document.documentElement.style.overflow,a=document.body.style.overflow;return St(()=>o.visible,()=>{o.isGlobal?o.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=n,document.body.style.overflow=a):r.value&&(o.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(i,l)=>o.visible?(L(),Y("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:A([`background-color: ${o.color}`,`position: ${o.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[kt(i.$slots,"default")],4)):Ot("",!0)}}),C1=E("div",null,null,-1),be=Q({customOptions:{Overlay:jo,Container:xt},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 o=s,r=e,n=new Oe({frameDuration:o.dur}),a=Zt({backgroundColor:o.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),i=I("full");St(()=>[o.directionFrom,o.popValue],()=>{n.clear();const b=o.popValue?o.popValue:o.popPercent,_=o.popValue?"px":"%";switch(o.directionFrom){case"left":a.height="100%",a.width=`${b}${_}`,a.top="0",a.bottom="0",delete a.right,n.addTween({left:b},{left:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.left=`-${v.left}${_}`},onComplete:u});break;case"right":a.height="100%",a.width=`${b}${_}`,a.top="0",a.bottom="0",delete a.left,n.addTween({right:b},{right:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.right=`-${v.right}${_}`},onComplete:u});break;case"top":a.width="100%",a.height=`${b}${_}`,a.left="0",a.right="0",delete a.bottom,n.addTween({top:b},{top:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.top=`-${v.top}${_}`},onComplete:u});break;case"bottom":a.width="100%",a.height=`${b}${_}`,a.left="0",a.right="0",delete a.top,n.addTween({bottom:b},{bottom:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.bottom=`-${v.bottom}${_}`},onComplete:u});break;case"center":delete a.width,delete a.height,a.left="50%",delete a.right,a.top="50%",delete a.bottom,n.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.transform=`translate(-50%, -50%) scale(${v.scale})`,a.opacity=`${v.opacity}`},onComplete:u});break;case"absolute":a.width=o.absoluteWidth,a.height=o.absoluteHeight,a.left=o.absoluteLeft,a.top=o.absoluteTop,delete a.right,delete a.bottom;break}switch(o.directionFrom){case"center":i.value="shrink",a.transform="translate(-50%, -50%)";break;case"absolute":i.value="shrink",delete a.transform,delete a.opacity;break;default:i.value="full",delete a.transform,delete a.opacity;break}},{immediate:!0}),St(()=>o.absoluteLeft,()=>{switch(o.directionFrom){case"absolute":a.left=o.absoluteLeft;break}}),St(()=>o.absoluteTop,()=>{switch(o.directionFrom){case"absolute":a.top=o.absoluteTop;break}}),St(()=>o.absoluteWidth,()=>{switch(o.directionFrom){case"absolute":a.width=o.absoluteWidth;break}}),St(()=>o.absoluteHeight,()=>{switch(o.directionFrom){case"absolute":a.height=o.absoluteHeight;break}});const l=(b,_,v)=>{r("resize",b,_,v)};let c="open";function u(){c=="open"?r("open"):(h.value=!1,r("close"))}const h=I(!1);function f(){h.value=!0,c="open",n.play()}function p(){switch(c="close",o.directionFrom){case"absolute":u();break;default:n.reverse();break}}function d(b){const _=o.directionFrom=="absolute"&&o.absoluteWidth=="100%"&&o.absoluteHeight=="100%"?"pop-content":"pop";b.target&&Mi(b.target,_)&&(o.closeWhenClickOverlay&&p(),r("clickOverlay"))}return t({open:f,close:p}),(b,_)=>(L(),Mt(jo,{visible:h.value,isGlobal:o.isGlobal,color:o.overlayBgColor},{default:bt(()=>[E("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:d},[lt(xt,{class:"pop-content",type:i.value,style:A(a),onResize:l},{default:bt(()=>[kt(b.$slots,"default",{},()=>[C1])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),T1=Q({...{},name:"Image",customOptions:{Container:xt,Pop:be},inheritAttrs:!0,__name:"Image.ce",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 o=s,r=e,n=new Oe({frameDuration:o.dur}),a=I(0),i=I(0),l=I(0),c=I(0),u=I(0),h=I(0),f=I(0),p=I(0),d=I(0),b=I(0);wh(o.src).then($=>{d.value=$.width,b.value=$.height,k()});const _=I(0),v=I(0),w=($,N)=>{_.value=$,v.value=N,k()},g=I(0),m=I(0);function k(){if(!_.value||!v.value||!d.value||!b.value)return;const $=bn(o.mode,d.value,b.value,_.value,v.value);g.value=$.width,m.value=$.height;const{width:N,height:G}=$s(),st=bn("aspectFit",d.value,b.value,N,G);f.value=st.width,p.value=st.height,u.value=(N-f.value)/2,h.value=(G-p.value)/2}const C=($,N,G)=>{r("settled",G.x,G.y,G.width,G.height)};let z=!1;const tt=I(),R=I();async function D(){if(!o.openImageDetailWhenClick)return;const $=await tt.value.getSize();n.clear(),n.addTween({left:$.x,top:$.y,width:$.width,height:$.height},{left:u.value,top:h.value,width:f.value,height:p.value},{easeFunction:ht.Quadratic.Out,onUpdate(N){a.value=N.left,i.value=N.top,l.value=N.width,c.value=N.height},onComplete(){z&&R.value.close(),z=!z}}),z||(R.value.open(),n.play())}function M(){z&&n.reverse()}return t({}),($,N)=>(L(),Mt(xt,{class:"image",type:"full",style:A({backgroundColor:o.bgColor}),onResize:w,onClick:D},{default:bt(()=>[lt(xt,{class:"image-inner",ref_key:"imageRef",ref:tt,type:"shrink",style:A({width:g.value+"px",height:m.value+"px",backgroundImage:`url(${o.src})`,backgroundSize:`${g.value}px ${m.value}px`}),onResize:C},null,8,["style"]),lt(be,{ref_key:"popRef",ref:R,"direction-from":"absolute","absolute-left":`${a.value}px`,"absolute-top":`${i.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:M},{default:bt(()=>[E("div",{class:"image-pop",style:A({width:"100%",height:"100%",backgroundImage:`url(${o.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Gi=it(T1,[["styles",[`.image[data-v-892af4f0]{overflow:hidden;display:flex!important;justify-content:center;align-items:center}.image-inner[data-v-892af4f0],.image-pop[data-v-892af4f0]{background-repeat:no-repeat;background-position:center center}
|
|
92
|
+
`]],["__scopeId","data-v-892af4f0"]]),Ln=Q({customOptions:{Container:xt,CSSAnimation:Ms},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=Zt({}),i=()=>{r("ready",C,z)},l=()=>{b()},c=I();let u="rotateRightSideFirst",h=o.effect;function f(tt,R){switch(h){case"static":R();break;default:tt();break}}let p=!1;const d=new Oe,b=()=>{const tt={},R={};d.clear(),d.frameDuration=o.duration,f(()=>{u=h},()=>{d.addTween(tt,R,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:D=>{a.transform="","x"in D&&(a.transform+=` translateX(${D.x}%)`),"y"in D&&(a.transform+=` translateY(${D.y}%)`),"rx"in D&&(a.transform+=` rotateX(${D.rx}deg)`),"ry"in D&&(a.transform+=` rotateY(${D.ry}deg)`),"scale"in D&&(a.transform+=` scale(${D.scale})`),"opacity"in D&&(a.opacity=`${D.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{h=o.effect,b()},{immediate:!0});const _=()=>{r(p?"pageCloseStart":"pageOpenStart")},v=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},w=()=>{f(()=>{c.value.trigger(u)},()=>{d.play()})},g=()=>{f(()=>{c.value.triggerReverse(u)},()=>{d.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function k(){f(()=>{m()},()=>{c.value?.clear()})}const C=tt=>{tt&&(h=tt,b()),p=!1,k(),n.value.startEffect()},z=tt=>{tt&&(h=tt,b()),p=!0,k(),n.value.endEffect()};return t({open:C,close:z,clear:m,getElement:()=>n.value.getElement()}),(tt,R)=>(L(),Mt(xt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:w,onEnd:g},{default:bt(()=>[lt(Ms,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:_,onCssanimationend:v},{default:bt(()=>[E("div",{class:"page-inner",style:A({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(tt.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Ui=Q({customOptions:{Page:Ln,Container:xt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],h=[];function f(V){return V>=0&&V<c.length}function p(){return a>n}function d(V,P,Vt){switch(V){case n:return p()?P:Vt;case a:return p()?Vt:P;default:return"static"}}function b(V,P){switch(V){case"moveToLeft":return d(P,"moveToLeft","moveFromRight");case"moveToRight":return d(P,"moveToRight","moveFromLeft");case"moveToTop":return d(P,"moveToTop","moveFromBottom");case"moveToBottom":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return d(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return d(P,"fade","moveFromRight");case"moveFromTopPrevFade":return d(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return d(P,"fade","moveFromBottom");case"moveToLeftFade":return d(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return d(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return d(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return d(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return d(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return d(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return d(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return d(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return d(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return d(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return d(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return d(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return d(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return d(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return d(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return d(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return d(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return d(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return d(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return d(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return d(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return d(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return d(P,"flipOutLeft","flipInRight");case"flipToRight":return d(P,"flipOutRight","flipInLeft");case"flipToTop":return d(P,"flipOutTop","flipInBottom");case"flipToBottom":return d(P,"flipOutBottom","flipInTop");case"rotateFall":return d(P,"rotateFall","scaleFromSmall");case"newspaper":return d(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return d(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return d(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return d(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return d(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return d(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return d(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return d(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return d(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return d(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return d(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return d(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return d(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return d(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return d(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return d(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return d(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return d(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return d(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return d(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return d(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return d(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return d(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return d(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return d(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return d(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return d(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return d(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return d(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return d(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return d(P,"rotateSlideOut","rotateSlideIn")}}function _(V,P=600,Vt=600){switch(V){case n:return P;case a:return Vt;default:return o.duration}}function v(V,P){switch(V){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return _(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return _(P,700,600);case"scaleSmall":return _(P,700,500);case"scaleLarge":return _(P,500,700);case"scaleToLargePrevScaleToSmall":return _(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return _(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return _(P,800,600);default:return o.duration}}let w=o.timingFunction;function g(V){switch(V){default:return o.easeFunction}}function m(V,P){switch(V){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:w=p()?"ease-in-out":"ease";break;case a:default:w=p()?"ease":"ease-in-out"}return g(P);default:return w=o.timingFunction,o.easeFunction}}function k(V,P=300){switch(V){case a:return o.delay+P;default:return o.delay}}function C(V,P){switch(V){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return k(P,500);case"scaleSmall":case"scaleLarge":return k(P,300);case"scaleToLargePrevScaleToSmall":return k(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return k(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return k(P,180);default:return o.delay}}let z=2,tt=2;const R=()=>{z=2,tt=2},D=()=>{z=2,tt=3},M=()=>{z=3,tt=2};function $(V){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":M();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":p()?M():D();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":p()?D():M();break;default:R();break}f(n)&&n==V&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="visible"),f(a)&&a==V&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible")}function N(V){D(),V==n&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="hidden"),V==a&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const G=I();function st(V=0,P=!1){if(!G.value)return;let Vt=0;ir(qt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((Nt,Ct)=>{const Kt=b(o.effect,Ct);return qt("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:n==Ct?"visible":"hidden",zIndex:P?"1":"0"}},Nt.pageKey?{key:Nt.pageKey}:{}),qt(Ln,{effect:Kt,duration:v(o.effect,Ct),easeFunction:m(o.effect,Ct),timingFunction:w,delay:C(o.effect,Ct),onReady:(Gt,j)=>{u[Ct]={open:Gt,close:j},++Vt==V&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{$(Ct)},onPageOpenEnd:()=>{N(Ct)},onPageCloseStart:()=>{$(Ct)},onPageCloseEnd:()=>{N(Ct)}},{default:()=>Nt.component instanceof HTMLElement?qt("div",{...Nt.attributes,innerHTML:Nt.component.innerHTML}):qt(Nt.component,Nt.attributes,()=>Nt.child)}))})),G.value),h=G.value.children[0].children}St(()=>o.effect,()=>{st()});function K(V=[]){c=[...V],c.forEach(P=>{P.pageKey=P.pageKey||Ps()}),i=()=>{n=-1,ft(0)},st(c.length,!0)}function q(V){V.pageKey=V.pageKey||Ps(),c.push(V),i=()=>{ft(c.length-1)},st(1,c.length==1)}function nt(){c.length<=1||ft(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,st()})}function U(){ft(n+1)}function H(){ft(n-1)}const gt=new un(1);function ft(V,P){gt.addTask(()=>new Promise(Vt=>{const Nt=()=>{P?.(),Vt()};if(!f(V)){Nt();return}if(a=V,a==n){Nt();return}l.push(Nt),st(),r("routeChangeStart",n,a,c.length),p()?(f(n)&&u[n].open(),f(a)&&u[a].open()):(f(n)&&u[n].close(),f(a)&&u[a].close())}))}return t({reset:K,push:q,pop:nt,forward:U,back:H,goto:ft,currentPageIndex:()=>n,totalPages:()=>c.length}),(V,P)=>(L(),Y("div",{class:"routes",ref_key:"routesRef",ref:G,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),S1=Q({...{},name:"Image",customOptions:{Container:xt,Pop:be},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 o=s,r=e,n=new Oe({frameDuration:o.dur}),a=I(0),i=I(0),l=I(0),c=I(0),u=I(0),h=I(0),f=I(0),p=I(0),d=I(0),b=I(0);wh(o.src).then($=>{d.value=$.width,b.value=$.height,k()});const _=I(0),v=I(0),w=($,N)=>{_.value=$,v.value=N,k()},g=I(0),m=I(0);function k(){if(!_.value||!v.value||!d.value||!b.value)return;const $=bn(o.mode,d.value,b.value,_.value,v.value);g.value=$.width,m.value=$.height;const{width:N,height:G}=$s(),st=bn("aspectFit",d.value,b.value,N,G);f.value=st.width,p.value=st.height,u.value=(N-f.value)/2,h.value=(G-p.value)/2}const C=($,N,G)=>{r("settled",G.x,G.y,G.width,G.height)};let z=!1;const tt=I(),R=I();async function D(){if(!o.openImageDetailWhenClick)return;const $=await tt.value.getSize();n.clear(),n.addTween({left:$.x,top:$.y,width:$.width,height:$.height},{left:u.value,top:h.value,width:f.value,height:p.value},{easeFunction:ht.Quadratic.Out,onUpdate(N){a.value=N.left,i.value=N.top,l.value=N.width,c.value=N.height},onComplete(){z&&R.value.close(),z=!z}}),z||(R.value.open(),n.play())}function M(){z&&n.reverse()}return t({}),($,N)=>(L(),Mt(xt,{class:"image",type:"full",style:A({backgroundColor:o.bgColor}),onResize:w,onClick:D},{default:bt(()=>[lt(xt,{class:"image-inner",ref_key:"imageRef",ref:tt,type:"shrink",style:A({width:g.value+"px",height:m.value+"px",backgroundImage:`url(${o.src})`,backgroundSize:`${g.value}px ${m.value}px`}),onResize:C},null,8,["style"]),lt(be,{ref_key:"popRef",ref:R,"direction-from":"absolute","absolute-left":`${a.value}px`,"absolute-top":`${i.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:M},{default:bt(()=>[E("div",{class:"image-pop",style:A({width:"100%",height:"100%",backgroundImage:`url(${o.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),qx="",Xh=it(S1,[["__scopeId","data-v-4e9887dd"]]),E1={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Gh=Q({customOptions:{Image:Xh,Container:xt,Routes:Ui},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const o=s,r=I(0);function n(f,p){r.value=p}const a=I(),i=f=>{f.on("panLeft",()=>{a.value?.forward()}),f.on("panRight",()=>{a.value?.back()}),a.value.reset(o.urls.map(p=>({component:qt(Xh,{mode:"aspectFit",src:p,openImageDetailWhenClick:!1})})))},l=I();function c(){l.value?.open()}function u(){l.value?.close()}const h=f=>{f.target&&Mi(f.target,"image")&&u()};return t({open:c,close:u}),(f,p)=>(L(),Mt(be,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:bt(()=>[o.urls.length>1?(L(),Y("div",E1,yt(r.value+1)+" / "+yt(o.urls.length),1)):Ot("",!0),lt(xt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:i},{default:bt(()=>[lt(Ui,{ref_key:"routesRef",ref:a,effect:o.effect,onRouteChangeEnd:n},null,8,["effect"])]),_:1})]),_:1},512))}}),Qx="",P1={class:"page"},O1={class:"header"},I1={class:"main"},R1={class:"main-scroll"},F1={class:"footer"},$1=it(Q({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return py(s.designWidth),t({}),(r,n)=>(L(),Y("div",P1,[E("header",O1,[kt(r.$slots,"header",{},void 0,!0)]),E("div",I1,[E("div",R1,[kt(r.$slots,"main",{},void 0,!0)])]),E("footer",F1,[kt(r.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
|
|
93
|
+
`]],["__scopeId","data-v-20686fd2"]]),D1=it(Q({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const o=s,r=Zt({}),n=Zt({});function a(){switch(du(r),du(n),o.type){case"table":r.display="table",n.display="table-cell",n.verticalAlign="middle",n.textAlign="center";break;case"transform":n.position="absolute",n.top="50%",n.left="50%",n.transform="translate(-50%, -50%)";break;case"grid":r.display="grid",r.justifyContent="center",r.alignItems="center";break;case"flex":default:r.display="flex",n.margin="auto"}}return a(),ee(()=>{}),t({}),(i,l)=>(L(),Y("div",{class:"layout-center",style:A(r)},[E("div",{style:A(n)},[kt(i.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-114afb17]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
|
|
94
94
|
`]],["__scopeId","data-v-114afb17"]]),ue=Q({customOptions:{},inheritAttrs:!0,__name:"Container.ce",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 o=s,r=e;let n="start";const a=()=>{n="start",r("start")},i=()=>{n="end",r("end")},l=()=>{n=="start"?i():a()},c=()=>{n=="start"?a():i()};let u=!1,h,f;const p=I();St(p,()=>{if(!(!p.value||h)){if(o.styleSheets){let _="";for(let v in o.styleSheets)_+=`${v}: ${o.styleSheets[v]};`;ko(`
|
|
95
95
|
:root {
|
|
96
96
|
${_}
|
|
@@ -98,16 +98,16 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(s){retur
|
|
|
98
98
|
:host {
|
|
99
99
|
${_}
|
|
100
100
|
}
|
|
101
|
-
`,p.value)}h=new We(p.value,!1),h.on("resize",(_,v)=>{r("resize",_,v,p.value.getBoundingClientRect()),f?.(h),u||(u=!0,o.effectTriggerTiming!=="manual"&&a(),r("ready",h),o.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{o.effectTriggerTiming=="click"&&l(),o.supportCopyText&&Ai(ds(p.value).getInnerText()).then(()=>{}).catch(_=>{})}),h.start()}});const d=()=>new Promise(_=>{if(h)return _(h);f=_}),b=()=>d().then(()=>p.value.getBoundingClientRect());return
|
|
102
|
-
`]],["__scopeId","data-v-061fc404"]]),X1={class:"dialog-parent"},G1={key:0,class:"title"},U1={key:0,class:"title-inner truncate"},j1={class:"custom-content"},H1={class:"custom-content-default"},W1={key:1,class:"btns"},Z1=Q({customOptions:{Overlay:jo,Pop:be,Icon:ho,Button:
|
|
103
|
-
`]],["__scopeId","data-v-2227dca8"]]),sv={class:"toast"},rv={class:"content"},Hh=it(Q({customOptions:{Overlay:jo,Pop:be,Dialog:Nn},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(""),i=()=>{r("open")},l=()=>{r("close")};function c(h,f=1500){a.value=h,n.value.open(),setTimeout(()=>{u()},f)}function u(){n.value.close()}return t({open:c,close:u}),(h,f)=>(L(),Mt(Nn,{ref_key:"dialogRef",ref:n,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:i,onClose:l},{default:bt(()=>[E("div",sv,[E("div",rv,
|
|
104
|
-
`]],["__scopeId","data-v-c02c226c"]]),Hi=Q({customOptions:{Container:xt,CSSAnimation:Ms},inheritAttrs:!0,__name:"Page.ce",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=Zt({}),i=()=>{r("ready",C,z)},l=()=>{b()},c=I();let u="rotateRightSideFirst",h=o.effect;function f(tt,R){switch(h){case"static":R();break;default:tt();break}}let p=!1;const d=new Oe,b=()=>{const tt={},R={};d.clear(),d.frameDuration=o.duration,f(()=>{u=h},()=>{d.addTween(tt,R,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:D=>{a.transform="","x"in D&&(a.transform+=` translateX(${D.x}%)`),"y"in D&&(a.transform+=` translateY(${D.y}%)`),"rx"in D&&(a.transform+=` rotateX(${D.rx}deg)`),"ry"in D&&(a.transform+=` rotateY(${D.ry}deg)`),"scale"in D&&(a.transform+=` scale(${D.scale})`),"opacity"in D&&(a.opacity=`${D.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{h=o.effect,b()},{immediate:!0});const _=()=>{r(p?"pageCloseStart":"pageOpenStart")},v=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},w=()=>{f(()=>{c.value.trigger(u)},()=>{d.play()})},g=()=>{f(()=>{c.value.triggerReverse(u)},()=>{d.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function k(){f(()=>{m()},()=>{c.value?.clear()})}const C=tt=>{tt&&(h=tt,b()),p=!1,k(),n.value.startEffect()},z=tt=>{tt&&(h=tt,b()),p=!0,k(),n.value.endEffect()};return t({open:C,close:z,clear:m,getElement:()=>n.value.getElement()}),(tt,R)=>(L(),Mt(xt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:w,onEnd:g},{default:bt(()=>[lt(Ms,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:_,onCssanimationend:v},{default:bt(()=>[E("div",{class:"page-inner",style:A({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(tt.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Wi=Q({customOptions:{Page:Ln,Container:xt},inheritAttrs:!0,__name:"Routes.ce",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],h=[];function f(Y){return Y>=0&&Y<c.length}function p(){return a>n}function d(Y,P,Vt){switch(Y){case n:return p()?P:Vt;case a:return p()?Vt:P;default:return"static"}}function b(Y,P){switch(Y){case"moveToLeft":return d(P,"moveToLeft","moveFromRight");case"moveToRight":return d(P,"moveToRight","moveFromLeft");case"moveToTop":return d(P,"moveToTop","moveFromBottom");case"moveToBottom":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return d(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return d(P,"fade","moveFromRight");case"moveFromTopPrevFade":return d(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return d(P,"fade","moveFromBottom");case"moveToLeftFade":return d(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return d(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return d(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return d(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return d(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return d(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return d(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return d(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return d(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return d(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return d(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return d(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return d(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return d(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return d(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return d(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return d(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return d(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return d(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return d(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return d(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return d(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return d(P,"flipOutLeft","flipInRight");case"flipToRight":return d(P,"flipOutRight","flipInLeft");case"flipToTop":return d(P,"flipOutTop","flipInBottom");case"flipToBottom":return d(P,"flipOutBottom","flipInTop");case"rotateFall":return d(P,"rotateFall","scaleFromSmall");case"newspaper":return d(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return d(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return d(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return d(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return d(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return d(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return d(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return d(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return d(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return d(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return d(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return d(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return d(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return d(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return d(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return d(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return d(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return d(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return d(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return d(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return d(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return d(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return d(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return d(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return d(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return d(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return d(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return d(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return d(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return d(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return d(P,"rotateSlideOut","rotateSlideIn")}}function _(Y,P=600,Vt=600){switch(Y){case n:return P;case a:return Vt;default:return o.duration}}function v(Y,P){switch(Y){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return _(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return _(P,700,600);case"scaleSmall":return _(P,700,500);case"scaleLarge":return _(P,500,700);case"scaleToLargePrevScaleToSmall":return _(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return _(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return _(P,800,600);default:return o.duration}}let w=o.timingFunction;function g(Y){switch(Y){default:return o.easeFunction}}function m(Y,P){switch(Y){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:w=p()?"ease-in-out":"ease";break;case a:default:w=p()?"ease":"ease-in-out"}return g(P);default:return w=o.timingFunction,o.easeFunction}}function k(Y,P=300){switch(Y){case a:return o.delay+P;default:return o.delay}}function C(Y,P){switch(Y){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return k(P,500);case"scaleSmall":case"scaleLarge":return k(P,300);case"scaleToLargePrevScaleToSmall":return k(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return k(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return k(P,180);default:return o.delay}}let z=2,tt=2;const R=()=>{z=2,tt=2},D=()=>{z=2,tt=3},M=()=>{z=3,tt=2};function $(Y){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":M();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":p()?M():D();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":p()?D():M();break;default:R();break}f(n)&&n==Y&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="visible"),f(a)&&a==Y&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible")}function N(Y){D(),Y==n&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="hidden"),Y==a&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const G=I();function st(Y=0,P=!1){if(!G.value)return;let Vt=0;ir(qt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((Nt,Ct)=>{const Kt=b(o.effect,Ct);return qt("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:n==Ct?"visible":"hidden",zIndex:P?"1":"0"}},Nt.pageKey?{key:Nt.pageKey}:{}),qt(Ln,{effect:Kt,duration:v(o.effect,Ct),easeFunction:m(o.effect,Ct),timingFunction:w,delay:C(o.effect,Ct),onReady:(Gt,j)=>{u[Ct]={open:Gt,close:j},++Vt==Y&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{$(Ct)},onPageOpenEnd:()=>{N(Ct)},onPageCloseStart:()=>{$(Ct)},onPageCloseEnd:()=>{N(Ct)}},{default:()=>Nt.component instanceof HTMLElement?qt("div",{...Nt.attributes,innerHTML:Nt.component.innerHTML}):qt(Nt.component,Nt.attributes,()=>Nt.child)}))})),G.value),h=G.value.children[0].children}St(()=>o.effect,()=>{st()});function K(Y=[]){c=[...Y],c.forEach(P=>{P.pageKey=P.pageKey||Ps()}),i=()=>{n=-1,ft(0)},st(c.length,!0)}function q(Y){Y.pageKey=Y.pageKey||Ps(),c.push(Y),i=()=>{ft(c.length-1)},st(1,c.length==1)}function nt(){c.length<=1||ft(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,st()})}function U(){ft(n+1)}function H(){ft(n-1)}const gt=new un(1);function ft(Y,P){gt.addTask(()=>new Promise(Vt=>{const Nt=()=>{P?.(),Vt()};if(!f(Y)){Nt();return}if(a=Y,a==n){Nt();return}l.push(Nt),st(),r("routeChangeStart",n,a,c.length),p()?(f(n)&&u[n].open(),f(a)&&u[a].open()):(f(n)&&u[n].close(),f(a)&&u[a].close())}))}return t({reset:K,push:q,pop:nt,forward:U,back:H,goto:ft,currentPageIndex:()=>n,totalPages:()=>c.length}),(Y,P)=>(L(),V("div",{class:"routes",ref_key:"routesRef",ref:G,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),nv={class:"tabs"},av=["onClick"],iv={class:"content"},lv=it(Q({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.initIndex),a=Zt([]),i=I(),l=I(0),c=I(0),u=I(0),h=I([]),f=[],p=Tp(),d=p.default&&p.default();d&&(lr(a,d),v(n.value));const b=(g,m)=>{if(g){if(f.push({index:m,el:g}),f.length<a.length)return;h.value=f}};St([i,h],()=>{_()});function _(){if(i.value&&h.value.length){const g=i.value.getBoundingClientRect(),m=h.value[n.value].el.getBoundingClientRect();l.value=m.x-g.x,c.value=m.y-g.y+m.height-2,u.value=m.width}}function v(g){n.value=g,r("changedIndex",g),_(),w.value.goto(g)}const w=I();return St(w,()=>{w.value&&w.value.reset(o.pages,()=>{w.value.goto(o.initIndex)})}),t({}),(g,m)=>(L(),V("div",nv,[E("div",{class:"header",ref_key:"headerRef",ref:i},[(L(!0),V(Xt,null,ye(o.labels,(k,C)=>(L(),V("div",{key:k,class:ae(C==n.value?"active":""),onClick:z=>v(C)},[E("div",{ref_for:!0,ref:z=>b(z,C)},vt(k),513)],10,av))),128)),E("div",{class:"indicator",style:A({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),E("div",iv,[lt(Ui,{ref_key:"routesRef",ref:w},null,512)])]))}}),[["styles",[`.tabs[data-v-a49dc86a]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-a49dc86a]{flex:1 1 auto}.header[data-v-a49dc86a]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-a49dc86a]{color:#5a82f0}.header>div[data-v-a49dc86a]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-a49dc86a]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-a49dc86a]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
|
|
105
|
-
`]],["__scopeId","data-v-a49dc86a"]]),cv=["width","height"],uv=Q({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const o=s;let r=()=>{};const n=I();return St(n,()=>{if(!n.value)return;const a=new We(n.value),i=new zi(a,!0);i.ctx.strokeStyle=o.brushColor,i.ctx.lineWidth=o.brushSize,i.drawMouseMoveLine("line"),r=()=>{me.downloadFromSVGString(i.ctx.toRawSVG().raw,o.downloadFileName)}}),t({download:()=>r()}),(a,i)=>(L(),
|
|
106
|
-
`]],["__scopeId","data-v-2492fe8d"]]),hv={class:"page-vertical-scroll-progress-bar"},Wh=it(Q({customOptions:{ProgressBar:Dn},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=pg();return a.on(()=>{const i=Gg();r("progress",i),n.value?.goto(i)}),
|
|
107
|
-
`]],["__scopeId","data-v-7a8e7518"]]),dv=["fill"],fv=["fill"],pv=Q({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:
|
|
108
|
-
`]],["__scopeId","data-v-8d96d860"]]),Lv=["data-number"],Mv=["data-number","data-unactive"],Av=["data-number"],Nv=["data-number","data-unactive"],Ki=it(Q({customOptions:{Pop:be,SVGCleanUp:Qi,Container:xt},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(0),i=Zt([]);function l(){i.length==0?a.value=0:i.length==1?a.value=1:a.value=2,i.length>=o.completePlateLength&&f()}St(()=>[...o.initPlates],()=>{lr(i,o.initPlates),l()},{immediate:!0});const c=I(0),u=(g,m)=>{c.value=m},h=()=>{n.value.open(),r("open")},f=()=>{n.value.close(),r("close")},p=()=>{i.pop(),l(),r("plates",i)},d=g=>{if(g.target.dataset.unactive||"")return;let k=g.target.dataset.number;k&&(i.push(k),l(),r("plates",i))};t({open:h,close:f});const b=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],_=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],w=["港","澳","学","警","使","领","挂","应","急"];return(g,m)=>(L(),Mt(be,{ref_key:"popRef",ref:n,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:bt(()=>[lt(xt,{class:"popup-plate",style:A({paddingBottom:
|
|
109
|
-
`]],["__scopeId","data-v-205c59a9"]]),zv={class:"parent"},Bv=it(Q({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const o=s,r=[{name:"蓝牌",style:"background-color:
|
|
110
|
-
`]],["__scopeId","data-v-
|
|
101
|
+
`,p.value)}h=new We(p.value,!1),h.on("resize",(_,v)=>{r("resize",_,v,p.value.getBoundingClientRect()),f?.(h),u||(u=!0,o.effectTriggerTiming!=="manual"&&a(),r("ready",h),o.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{o.effectTriggerTiming=="click"&&l(),o.supportCopyText&&Ai(ds(p.value).getInnerText()).then(()=>{}).catch(_=>{})}),h.start()}});const d=()=>new Promise(_=>{if(h)return _(h);f=_}),b=()=>d().then(()=>p.value.getBoundingClientRect());return ee(()=>{h?.destroy()}),t({getElement:()=>p.value,getApp:d,getSize:b,getStatus:()=>n,startEffect:a,endEffect:i,nextEffect:l,repeatEffect:c}),(_,v)=>(L(),Y("div",{class:te(["container",[o.type]]),ref_key:"containerRef",ref:p,style:A({position:"relative",boxSizing:"border-box",display:o.type=="shrink"?"inline-block":"block",width:o.type=="full"?"100%":"auto",height:o.type=="full"?"100%":"auto"})},[kt(_.$slots,"default")],6))}}),Mn=Q({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean,default:!1},color:{default:ge("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const o=s,r=I(),n=document.documentElement.style.overflow,a=document.body.style.overflow;return St(()=>o.visible,()=>{o.isGlobal?o.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=n,document.body.style.overflow=a):r.value&&(o.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(i,l)=>o.visible?(L(),Y("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:A([`background-color: ${o.color}`,`position: ${o.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[kt(i.$slots,"default")],4)):Ot("",!0)}}),L1=E("div",null,null,-1),ps=Q({customOptions:{Overlay:jo,Container:xt},inheritAttrs:!0,__name:"Pop.ce",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 o=s,r=e,n=new Oe({frameDuration:o.dur}),a=Zt({backgroundColor:o.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),i=I("full");St(()=>[o.directionFrom,o.popValue],()=>{n.clear();const b=o.popValue?o.popValue:o.popPercent,_=o.popValue?"px":"%";switch(o.directionFrom){case"left":a.height="100%",a.width=`${b}${_}`,a.top="0",a.bottom="0",delete a.right,n.addTween({left:b},{left:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.left=`-${v.left}${_}`},onComplete:u});break;case"right":a.height="100%",a.width=`${b}${_}`,a.top="0",a.bottom="0",delete a.left,n.addTween({right:b},{right:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.right=`-${v.right}${_}`},onComplete:u});break;case"top":a.width="100%",a.height=`${b}${_}`,a.left="0",a.right="0",delete a.bottom,n.addTween({top:b},{top:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.top=`-${v.top}${_}`},onComplete:u});break;case"bottom":a.width="100%",a.height=`${b}${_}`,a.left="0",a.right="0",delete a.top,n.addTween({bottom:b},{bottom:0},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.bottom=`-${v.bottom}${_}`},onComplete:u});break;case"center":delete a.width,delete a.height,a.left="50%",delete a.right,a.top="50%",delete a.bottom,n.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:ht.Quadratic.Out,onUpdate(v){a.transform=`translate(-50%, -50%) scale(${v.scale})`,a.opacity=`${v.opacity}`},onComplete:u});break;case"absolute":a.width=o.absoluteWidth,a.height=o.absoluteHeight,a.left=o.absoluteLeft,a.top=o.absoluteTop,delete a.right,delete a.bottom;break}switch(o.directionFrom){case"center":i.value="shrink",a.transform="translate(-50%, -50%)";break;case"absolute":i.value="shrink",delete a.transform,delete a.opacity;break;default:i.value="full",delete a.transform,delete a.opacity;break}},{immediate:!0}),St(()=>o.absoluteLeft,()=>{switch(o.directionFrom){case"absolute":a.left=o.absoluteLeft;break}}),St(()=>o.absoluteTop,()=>{switch(o.directionFrom){case"absolute":a.top=o.absoluteTop;break}}),St(()=>o.absoluteWidth,()=>{switch(o.directionFrom){case"absolute":a.width=o.absoluteWidth;break}}),St(()=>o.absoluteHeight,()=>{switch(o.directionFrom){case"absolute":a.height=o.absoluteHeight;break}});const l=(b,_,v)=>{r("resize",b,_,v)};let c="open";function u(){c=="open"?r("open"):(h.value=!1,r("close"))}const h=I(!1);function f(){h.value=!0,c="open",n.play()}function p(){switch(c="close",o.directionFrom){case"absolute":u();break;default:n.reverse();break}}function d(b){const _=o.directionFrom=="absolute"&&o.absoluteWidth=="100%"&&o.absoluteHeight=="100%"?"pop-content":"pop";b.target&&Mi(b.target,_)&&(o.closeWhenClickOverlay&&p(),r("clickOverlay"))}return t({open:f,close:p}),(b,_)=>(L(),Mt(jo,{visible:h.value,isGlobal:o.isGlobal,color:o.overlayBgColor},{default:bt(()=>[E("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:d},[lt(xt,{class:"pop-content",type:i.value,style:A(a),onResize:l},{default:bt(()=>[kt(b.$slots,"default",{},()=>[L1])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),M1=E("div",{style:{"background-color":"#ffffff"}},"...",-1),ji=Q({customOptions:{Pop:be,Button:re,Container:xt},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!0}},setup(s,{expose:t}){const e=s,o=I();function r(){o.value.open()}function n(){o.value.close()}const a=I(),i=I(0),l=I(0),c=I(0),u=I(0),h=(f,p)=>{if(c.value=f,u.value=p,!a.value)return;const d=$s(),b=a.value.getBoundingClientRect();i.value=Math.max(e.gap,Math.min(b.x+b.width+e.gap,d.width-f-e.gap)),l.value=Math.max(e.gap,Math.min(b.y,d.height-p-e.gap))};return t({open:r,close:n}),(f,p)=>(L(),Y(Xt,null,[E("div",{ref_key:"popoverButtonRef",ref:a,class:"popover-button",style:{display:"inline-block"},onClick:r},[kt(f.$slots,"button",{},()=>[lt(re,null,{default:bt(()=>[jt("popover")]),_:1})])],512),lt(be,{ref_key:"popRef",ref:o,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:bt(()=>[E("div",{style:A({position:"absolute",left:i.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[lt(xt,{type:"shrink",onResize:h},{default:bt(()=>[kt(f.$slots,"panel",{},()=>[M1])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),A1={class:"dialog-parent"},N1={key:0,class:"title"},z1={key:0,class:"title-inner truncate"},B1={class:"custom-content"},Y1={class:"custom-content-default"},V1={key:1,class:"btns"},An=it(Q({customOptions:{Overlay:jo,Pop:be,Icon:ho,Button:re},inheritAttrs:!0,__name:"Dialog.ce",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 o=s,r=e,n=I(),a=I(""),i=I(""),l=I(!1),c=I(""),u=I("");let h,f,p;const d=()=>{r("open")},b=()=>{h?.(),r("close")};function _(m){a.value=m?.title||"",i.value=m?.content||"",l.value=typeof m?.showClose=="boolean"?m?.showClose:!1,c.value=m?.cancelText||"",u.value=m?.confirmText||"",h=m?.onClose,f=m?.onCancel,p=m?.onConfirm,n.value.open()}function v(){n.value.close()}function w(){v(),f?.(),r("cancel")}function g(){v(),p?.(),r("confirm")}return t({open:_,close:v}),(m,k)=>(L(),Mt(be,{ref_key:"popRef",ref:n,directionFrom:"center",closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:o.overlayBgColor,onOpen:d,onClose:b},{default:bt(()=>[E("div",A1,[E("div",{class:"dialog",style:A({minWidth:o.minWidth,maxWidth:o.maxWidth})},[a.value||l.value?(L(),Y("div",N1,[a.value?(L(),Y("div",z1,yt(a.value),1)):Ot("",!0),l.value?(L(),Y("div",{key:1,class:"close",onClick:v},[lt(ho,{icon:"ic:baseline-close",color:Et(vt).colorGrayCC},null,8,["color"])])):Ot("",!0)])):Ot("",!0),E("div",B1,[kt(m.$slots,"default",{},()=>[E("div",Y1,yt(i.value),1)],!0)]),c.value||u.value?(L(),Y("div",V1,[c.value?(L(),Mt(re,{key:0,onClick:w,class:"btn",bgColor:Et(vt).colorGrayE6,borderColor:Et(vt).colorGrayE6,fontColor:Et(vt).colorGray33,borderRadius:"0"},{default:bt(()=>[jt(yt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ot("",!0),u.value?(L(),Mt(re,{key:1,onClick:g,class:"btn",borderRadius:"0"},{default:bt(()=>[jt(yt(u.value),1)]),_:1})):Ot("",!0)])):Ot("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-061fc404]{display:flex;justify-content:center;align-items:center}.dialog[data-v-061fc404]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-061fc404]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-061fc404]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-061fc404]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-061fc404]{font-size:16px;word-break:break-all}.custom-content-default[data-v-061fc404]{padding:1em}.btns[data-v-061fc404]{display:flex;justify-content:center}.btn[data-v-061fc404]{flex:1 1 auto;border-radius:0}
|
|
102
|
+
`]],["__scopeId","data-v-061fc404"]]),X1={class:"dialog-parent"},G1={key:0,class:"title"},U1={key:0,class:"title-inner truncate"},j1={class:"custom-content"},H1={class:"custom-content-default"},W1={key:1,class:"btns"},Z1=Q({customOptions:{Overlay:jo,Pop:be,Icon:ho,Button:re},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 o=s,r=e,n=I(),a=I(""),i=I(""),l=I(!1),c=I(""),u=I("");let h,f,p;const d=()=>{r("open")},b=()=>{h?.(),r("close")};function _(m){a.value=m?.title||"",i.value=m?.content||"",l.value=typeof m?.showClose=="boolean"?m?.showClose:!1,c.value=m?.cancelText||"",u.value=m?.confirmText||"",h=m?.onClose,f=m?.onCancel,p=m?.onConfirm,n.value.open()}function v(){n.value.close()}function w(){v(),f?.(),r("cancel")}function g(){v(),p?.(),r("confirm")}return t({open:_,close:v}),(m,k)=>(L(),Mt(be,{ref_key:"popRef",ref:n,directionFrom:"center",closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:o.overlayBgColor,onOpen:d,onClose:b},{default:bt(()=>[E("div",X1,[E("div",{class:"dialog",style:A({minWidth:o.minWidth,maxWidth:o.maxWidth})},[a.value||l.value?(L(),Y("div",G1,[a.value?(L(),Y("div",U1,yt(a.value),1)):Ot("",!0),l.value?(L(),Y("div",{key:1,class:"close",onClick:v},[lt(ho,{icon:"ic:baseline-close",color:Et(vt).colorGrayCC},null,8,["color"])])):Ot("",!0)])):Ot("",!0),E("div",j1,[kt(m.$slots,"default",{},()=>[E("div",H1,yt(i.value),1)],!0)]),c.value||u.value?(L(),Y("div",W1,[c.value?(L(),Mt(re,{key:0,onClick:w,class:"btn",bgColor:Et(vt).colorGrayE6,borderColor:Et(vt).colorGrayE6,fontColor:Et(vt).colorGray33,borderRadius:"0"},{default:bt(()=>[jt(yt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ot("",!0),u.value?(L(),Mt(re,{key:1,onClick:g,class:"btn",borderRadius:"0"},{default:bt(()=>[jt(yt(u.value),1)]),_:1})):Ot("",!0)])):Ot("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),r2="",Nn=it(Z1,[["__scopeId","data-v-f9df8635"]]),q1={class:"loading-8"},Q1={viewBox:"25 25 50 50"},K1=Q({__name:"Loading8",props:{color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("div",q1,[(L(),Y("svg",Q1,[E("circle",{cx:"50",cy:"50",r:"20",style:A(["stroke: "+t.color])},null,4)]))]))}}),n2="",Uh=it(K1,[["__scopeId","data-v-e5e3cf4c"]]),J1={class:"loading"},tv={class:"icon"},ev={style:{width:"8em"}},ov={key:0,class:"content"},jh=it(Q({customOptions:{Overlay:jo,Pop:be,Dialog:Nn,Loading8:Uh},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(""),i=()=>{r("open")},l=()=>{r("close")};function c(h){a.value=h||"",n.value.open()}function u(){n.value.close()}return t({open:c,close:u}),(h,f)=>(L(),Mt(Nn,{ref_key:"dialogRef",ref:n,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,onOpen:i,onClose:l},{default:bt(()=>[E("div",J1,[E("div",tv,[kt(h.$slots,"default",{},()=>[E("div",ev,[lt(Uh)])],!0)]),a.value?(L(),Y("div",ov,yt(a.value),1)):Ot("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),[["styles",[`.loading[data-v-2227dca8]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-2227dca8]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-2227dca8]{font-size:1em;margin-top:-1em;margin-bottom:1em}
|
|
103
|
+
`]],["__scopeId","data-v-2227dca8"]]),sv={class:"toast"},rv={class:"content"},Hh=it(Q({customOptions:{Overlay:jo,Pop:be,Dialog:Nn},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(""),i=()=>{r("open")},l=()=>{r("close")};function c(h,f=1500){a.value=h,n.value.open(),setTimeout(()=>{u()},f)}function u(){n.value.close()}return t({open:c,close:u}),(h,f)=>(L(),Mt(Nn,{ref_key:"dialogRef",ref:n,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:i,onClose:l},{default:bt(()=>[E("div",sv,[E("div",rv,yt(a.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),[["styles",[`.toast[data-v-c02c226c]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-c02c226c]{font-size:1em}
|
|
104
|
+
`]],["__scopeId","data-v-c02c226c"]]),Hi=Q({customOptions:{Container:xt,CSSAnimation:Ms},inheritAttrs:!0,__name:"Page.ce",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=Zt({}),i=()=>{r("ready",C,z)},l=()=>{b()},c=I();let u="rotateRightSideFirst",h=o.effect;function f(tt,R){switch(h){case"static":R();break;default:tt();break}}let p=!1;const d=new Oe,b=()=>{const tt={},R={};d.clear(),d.frameDuration=o.duration,f(()=>{u=h},()=>{d.addTween(tt,R,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:D=>{a.transform="","x"in D&&(a.transform+=` translateX(${D.x}%)`),"y"in D&&(a.transform+=` translateY(${D.y}%)`),"rx"in D&&(a.transform+=` rotateX(${D.rx}deg)`),"ry"in D&&(a.transform+=` rotateY(${D.ry}deg)`),"scale"in D&&(a.transform+=` scale(${D.scale})`),"opacity"in D&&(a.opacity=`${D.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{h=o.effect,b()},{immediate:!0});const _=()=>{r(p?"pageCloseStart":"pageOpenStart")},v=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},w=()=>{f(()=>{c.value.trigger(u)},()=>{d.play()})},g=()=>{f(()=>{c.value.triggerReverse(u)},()=>{d.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function k(){f(()=>{m()},()=>{c.value?.clear()})}const C=tt=>{tt&&(h=tt,b()),p=!1,k(),n.value.startEffect()},z=tt=>{tt&&(h=tt,b()),p=!0,k(),n.value.endEffect()};return t({open:C,close:z,clear:m,getElement:()=>n.value.getElement()}),(tt,R)=>(L(),Mt(xt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:w,onEnd:g},{default:bt(()=>[lt(Ms,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:_,onCssanimationend:v},{default:bt(()=>[E("div",{class:"page-inner",style:A({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(tt.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Wi=Q({customOptions:{Page:Ln,Container:xt},inheritAttrs:!0,__name:"Routes.ce",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],h=[];function f(V){return V>=0&&V<c.length}function p(){return a>n}function d(V,P,Vt){switch(V){case n:return p()?P:Vt;case a:return p()?Vt:P;default:return"static"}}function b(V,P){switch(V){case"moveToLeft":return d(P,"moveToLeft","moveFromRight");case"moveToRight":return d(P,"moveToRight","moveFromLeft");case"moveToTop":return d(P,"moveToTop","moveFromBottom");case"moveToBottom":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return d(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return d(P,"fade","moveFromRight");case"moveFromTopPrevFade":return d(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return d(P,"fade","moveFromBottom");case"moveToLeftFade":return d(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return d(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return d(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return d(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return d(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return d(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return d(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return d(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return d(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return d(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return d(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return d(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return d(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return d(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return d(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return d(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return d(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return d(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return d(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return d(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return d(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return d(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return d(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return d(P,"flipOutLeft","flipInRight");case"flipToRight":return d(P,"flipOutRight","flipInLeft");case"flipToTop":return d(P,"flipOutTop","flipInBottom");case"flipToBottom":return d(P,"flipOutBottom","flipInTop");case"rotateFall":return d(P,"rotateFall","scaleFromSmall");case"newspaper":return d(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return d(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return d(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return d(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return d(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return d(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return d(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return d(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return d(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return d(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return d(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return d(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return d(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return d(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return d(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return d(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return d(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return d(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return d(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return d(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return d(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return d(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return d(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return d(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return d(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return d(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return d(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return d(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return d(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return d(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return d(P,"rotateSlideOut","rotateSlideIn")}}function _(V,P=600,Vt=600){switch(V){case n:return P;case a:return Vt;default:return o.duration}}function v(V,P){switch(V){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return _(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return _(P,700,600);case"scaleSmall":return _(P,700,500);case"scaleLarge":return _(P,500,700);case"scaleToLargePrevScaleToSmall":return _(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return _(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return _(P,800,600);default:return o.duration}}let w=o.timingFunction;function g(V){switch(V){default:return o.easeFunction}}function m(V,P){switch(V){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:w=p()?"ease-in-out":"ease";break;case a:default:w=p()?"ease":"ease-in-out"}return g(P);default:return w=o.timingFunction,o.easeFunction}}function k(V,P=300){switch(V){case a:return o.delay+P;default:return o.delay}}function C(V,P){switch(V){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return k(P,500);case"scaleSmall":case"scaleLarge":return k(P,300);case"scaleToLargePrevScaleToSmall":return k(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return k(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return k(P,180);default:return o.delay}}let z=2,tt=2;const R=()=>{z=2,tt=2},D=()=>{z=2,tt=3},M=()=>{z=3,tt=2};function $(V){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":M();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":p()?M():D();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":p()?D():M();break;default:R();break}f(n)&&n==V&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="visible"),f(a)&&a==V&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible")}function N(V){D(),V==n&&(h[n].style.zIndex=`${z}`,h[n].style.visibility="hidden"),V==a&&(h[a].style.zIndex=`${tt}`,h[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const G=I();function st(V=0,P=!1){if(!G.value)return;let Vt=0;ir(qt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((Nt,Ct)=>{const Kt=b(o.effect,Ct);return qt("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:n==Ct?"visible":"hidden",zIndex:P?"1":"0"}},Nt.pageKey?{key:Nt.pageKey}:{}),qt(Ln,{effect:Kt,duration:v(o.effect,Ct),easeFunction:m(o.effect,Ct),timingFunction:w,delay:C(o.effect,Ct),onReady:(Gt,j)=>{u[Ct]={open:Gt,close:j},++Vt==V&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{$(Ct)},onPageOpenEnd:()=>{N(Ct)},onPageCloseStart:()=>{$(Ct)},onPageCloseEnd:()=>{N(Ct)}},{default:()=>Nt.component instanceof HTMLElement?qt("div",{...Nt.attributes,innerHTML:Nt.component.innerHTML}):qt(Nt.component,Nt.attributes,()=>Nt.child)}))})),G.value),h=G.value.children[0].children}St(()=>o.effect,()=>{st()});function K(V=[]){c=[...V],c.forEach(P=>{P.pageKey=P.pageKey||Ps()}),i=()=>{n=-1,ft(0)},st(c.length,!0)}function q(V){V.pageKey=V.pageKey||Ps(),c.push(V),i=()=>{ft(c.length-1)},st(1,c.length==1)}function nt(){c.length<=1||ft(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,st()})}function U(){ft(n+1)}function H(){ft(n-1)}const gt=new un(1);function ft(V,P){gt.addTask(()=>new Promise(Vt=>{const Nt=()=>{P?.(),Vt()};if(!f(V)){Nt();return}if(a=V,a==n){Nt();return}l.push(Nt),st(),r("routeChangeStart",n,a,c.length),p()?(f(n)&&u[n].open(),f(a)&&u[a].open()):(f(n)&&u[n].close(),f(a)&&u[a].close())}))}return t({reset:K,push:q,pop:nt,forward:U,back:H,goto:ft,currentPageIndex:()=>n,totalPages:()=>c.length}),(V,P)=>(L(),Y("div",{class:"routes",ref_key:"routesRef",ref:G,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),nv={class:"tabs"},av=["onClick"],iv={class:"content"},lv=it(Q({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.initIndex),a=Zt([]),i=I(),l=I(0),c=I(0),u=I(0),h=I([]),f=[],p=Tp(),d=p.default&&p.default();d&&(lr(a,d),v(n.value));const b=(g,m)=>{if(g){if(f.push({index:m,el:g}),f.length<a.length)return;h.value=f}};St([i,h],()=>{_()});function _(){if(i.value&&h.value.length){const g=i.value.getBoundingClientRect(),m=h.value[n.value].el.getBoundingClientRect();l.value=m.x-g.x,c.value=m.y-g.y+m.height-2,u.value=m.width}}function v(g){n.value=g,r("changedIndex",g),_(),w.value.goto(g)}const w=I();return St(w,()=>{w.value&&w.value.reset(o.pages,()=>{w.value.goto(o.initIndex)})}),t({}),(g,m)=>(L(),Y("div",nv,[E("div",{class:"header",ref_key:"headerRef",ref:i},[(L(!0),Y(Xt,null,ye(o.labels,(k,C)=>(L(),Y("div",{key:k,class:te(C==n.value?"active":""),onClick:z=>v(C)},[E("div",{ref_for:!0,ref:z=>b(z,C)},yt(k),513)],10,av))),128)),E("div",{class:"indicator",style:A({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),E("div",iv,[lt(Ui,{ref_key:"routesRef",ref:w},null,512)])]))}}),[["styles",[`.tabs[data-v-a49dc86a]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-a49dc86a]{flex:1 1 auto}.header[data-v-a49dc86a]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-a49dc86a]{color:#5a82f0}.header>div[data-v-a49dc86a]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-a49dc86a]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-a49dc86a]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
|
|
105
|
+
`]],["__scopeId","data-v-a49dc86a"]]),cv=["width","height"],uv=Q({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const o=s;let r=()=>{};const n=I();return St(n,()=>{if(!n.value)return;const a=new We(n.value),i=new zi(a,!0);i.ctx.strokeStyle=o.brushColor,i.ctx.lineWidth=o.brushSize,i.drawMouseMoveLine("line"),r=()=>{me.downloadFromSVGString(i.ctx.toRawSVG().raw,o.downloadFileName)}}),t({download:()=>r()}),(a,i)=>(L(),Y("canvas",{ref_key:"panelRef",ref:n,width:o.canvasWidth,height:o.canvasHeight,style:A([`border: 1px solid ${a.borderColor}`])},null,12,cv))}}),Zi=it(Q({__name:"ProgressBar.ce",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 o=s,r=I(0);function n(a){r.value=Math.min(Math.max(0,a),100)}return t({goto:n}),(a,i)=>(L(),Y("div",{class:"bar",style:A({border:`1px solid ${o.borderColor}`,borderRadius:o.borderRadius,backgroundColor:o.bgColor})},[E("div",{class:"bar-inner",style:A({width:r.value+"%",backgroundColor:o.progressColor})},yt(o.showText?r.value+"%":""),5)],4))}}),[["styles",[`.bar[data-v-2492fe8d]{position:relative;overflow:hidden;width:100%;height:100%}.bar-inner[data-v-2492fe8d]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
|
|
106
|
+
`]],["__scopeId","data-v-2492fe8d"]]),hv={class:"page-vertical-scroll-progress-bar"},Wh=it(Q({customOptions:{ProgressBar:Dn},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=pg();return a.on(()=>{const i=Gg();r("progress",i),n.value?.goto(i)}),ee(()=>{a.remove()}),t({}),(i,l)=>(L(),Y("div",hv,[lt(Dn,{ref_key:"bar",ref:n,bgColor:o.bgColor,progressColor:o.progressColor,borderColor:o.borderColor,borderRadius:o.borderRadius,duringTimeGap:o.duringTimeGap,showText:o.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.page-vertical-scroll-progress-bar[data-v-7a8e7518]{position:relative;overflow:hidden;width:100%;height:100%}
|
|
107
|
+
`]],["__scopeId","data-v-7a8e7518"]]),dv=["fill"],fv=["fill"],pv=Q({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{style:A(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,dv),E("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,fv)],4))}}),g2="",Zh=it(pv,[["__scopeId","data-v-987aed3d"]]),mv=s=>{const t={};if(s.attributes)for(let e=0,o=s.attributes,r=o.length;e<r;e++){const n=o[e];n.nodeName&&n.nodeValue&&(t[n.nodeName]=n.nodeValue)}return t},qi=s=>(Ts("data-v-85491020"),s=s(),Ss(),s),gv=[qi(()=>E("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)),qi(()=>E("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)),qi(()=>E("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))],yv=Q({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{style:A(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},gv,4))}}),_2="",Qi=it(yv,[["__scopeId","data-v-85491020"]]);function x2(s){return s}document.getElementById("teleport")||document.documentElement;function vv(s,t){{const e=document.querySelector("yz-dialog-toast#globalDialogToast");e&&"_instance"in e&&e._instance.exposed.open(s,t)}}function bv(s){{const t=document.querySelector("yz-dialog-loading#globalDialogLoading");return t&&"_instance"in t&&t._instance.exposed.open(s),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function _v(s){{const t=document.querySelector("yz-dialog#globalDialog");return t&&"_instance"in t&&t._instance.exposed.open(s),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function As(s,t="bottom",e){let o;s instanceof HTMLElement?o=qt(be,{directionFrom:t,popBgColor:e?.popBgColor||"#ffffff",absoluteLeft:e?.absoluteLeft,absoluteTop:e?.absoluteTop,absoluteWidth:e?.absoluteWidth,absoluteHeight:e?.absoluteHeight},()=>qt("div",{...mv(s),innerHTML:s.innerHTML})):o=qt(be,{directionFrom:t,popBgColor:e?.popBgColor||"#ffffff",absoluteLeft:e?.absoluteLeft,absoluteTop:e?.absoluteTop,absoluteWidth:e?.absoluteWidth,absoluteHeight:e?.absoluteHeight},()=>s),ir(o,document.getElementById("teleport")||document.documentElement),o.component?.exposed?.open();const r=()=>{o.component?.exposed?.close()};return r.vnode=o,r}function qh(s,t){return As(s,"bottom",t)}function Qh(s,t){return As(s,"top",t)}function Kh(s,t){return As(s,"left",t)}function Jh(s,t){return As(s,"right",t)}function td(s,t){return As(s,"center",t)}function ed(s,t){return As(s,"absolute",t)}const xv=()=>qh(qt("div",{style:"padding: 30px;"},qt("yz-input",{placeholder:"请输入邮箱",validator:Os}))),wv=()=>Qh(qt("div",{style:"padding: 30px;"},qt("yz-input",{placeholder:"请输入邮箱",validator:Os}))),kv=()=>Kh(qt("div",{style:"padding: 30px;"},qt("yz-input",{placeholder:"请输入邮箱",validator:Os}))),Cv=()=>Jh(qt("div",{style:"padding: 30px;"},qt("yz-input",{placeholder:"请输入邮箱",validator:Os}))),Tv=()=>td(qt("div",{style:"width: 200px;height: 200px;padding: 30px;"},qt("yz-input",{placeholder:"请输入邮箱",validator:Os}))),Sv=()=>ed(qt("div",{style:"width: 200px;height: 200px;padding: 30px;"},qt("yz-input",{placeholder:"请输入邮箱",validator:Os})),{absoluteLeft:"50%",absoluteTop:"50%",absoluteWidth:"200px",absoluteHeight:"200px"});let zn;function od(s){{const t=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return t&&"_instance"in t&&(zn&&t.removeEventListener("plates",zn),zn=e=>{"detail"in e&&s?.onPlates?.(e.detail[0])},t.addEventListener("plates",zn),t.initPlates=s?.initPlates,t.completePlateLength=s?.completePlateLength,t._instance.exposed.open()),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}const Bn=s=>(Ts("data-v-8d96d860"),s=s(),Ss(),s),Ev=Bn(()=>E("div",{class:"title"},"车牌颜色",-1)),Pv={class:"plate-types"},Ov=["onClick"],Iv=Bn(()=>E("div",{class:"title"},"车牌号码",-1)),Rv={class:"plate-numbers"},Fv=Bn(()=>E("div",{class:"dot"},"·",-1)),$v=["onClick"],Dv=Bn(()=>E("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),sd=it(Q({customOptions:{SVGCheck:Zh},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=[{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}],a=I(0),i=Zt([]),l=I(-1);function c(){od({initPlates:i,completePlateLength:n[a.value].completePlateLength,onPlates:f=>{lr(i,f),l.value=i.length,i.length===n[a.value].completePlateLength&&r("complete",n[a.value].name,i.join(""))}})}const u=f=>{a.value=f,l.value<=n[f].completePlateLength&&i.length<n[f].completePlateLength?(l.value=i.length,c(),r("clear")):lr(i,i.slice(0,n[f].completePlateLength)),n[f].completePlateLength===i.length&&r("complete",n[a.value].name,i.join(""))},h=f=>{lr(i,i.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),r("clear")};return t({}),(f,p)=>(L(),Y("div",Aa(f.$attrs,{class:"plate-mobile",style:{maxWidth:o.maxWidth}}),[Ev,E("div",Pv,[(L(),Y(Xt,null,ye(n,(d,b)=>E("div",{key:b,class:te(b==a.value?"checked":""),onClick:_=>u(b)},[E("div",{style:A(d.style)},null,4),E("div",null,yt(d.name),1),E("div",null,[lt(Zh,{color:"#ffffff",width:"0.14rem"})])],10,Ov)),64))]),Iv,E("div",Rv,[E("div",{onClick:p[0]||(p[0]=d=>h(0)),class:te(l.value==0?"current":"")},yt(i[0]),3),E("div",{onClick:p[1]||(p[1]=d=>h(1)),class:te(l.value==1?"current":"")},yt(i[1]),3),Fv,(L(!0),Y(Xt,null,ye(n[a.value].completePlateLength-2,d=>(L(),Y("div",{key:d,class:te(d+1==l.value?"current":""),onClick:b=>h(d+1)},yt(i[d+1]),11,$v))),128))]),Dv],16))}}),[["styles",[`.plate-mobile[data-v-8d96d860]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-8d96d860]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-8d96d860]{display:flex;justify-content:center}.plate-types>div[data-v-8d96d860]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-8d96d860]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-8d96d860]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-8d96d860]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-8d96d860]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-8d96d860]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-8d96d860]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-8d96d860]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-8d96d860]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-8d96d860]{margin-left:.1rem}.plate-types>div.checked[data-v-8d96d860]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-8d96d860]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-8d96d860]:nth-child(3){display:block}.plate-numbers[data-v-8d96d860]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-8d96d860]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-8d96d860]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-8d96d860]{margin-left:.1rem}.plate-numbers>div.dot[data-v-8d96d860]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-8d96d860]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
|
|
108
|
+
`]],["__scopeId","data-v-8d96d860"]]),Lv=["data-number"],Mv=["data-number","data-unactive"],Av=["data-number"],Nv=["data-number","data-unactive"],Ki=it(Q({customOptions:{Pop:be,SVGCleanUp:Qi,Container:xt},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(0),i=Zt([]);function l(){i.length==0?a.value=0:i.length==1?a.value=1:a.value=2,i.length>=o.completePlateLength&&f()}St(()=>[...o.initPlates],()=>{lr(i,o.initPlates),l()},{immediate:!0});const c=I(0),u=(g,m)=>{c.value=m},h=()=>{n.value.open(),r("open")},f=()=>{n.value.close(),r("close")},p=()=>{i.pop(),l(),r("plates",i)},d=g=>{if(g.target.dataset.unactive||"")return;let k=g.target.dataset.number;k&&(i.push(k),l(),r("plates",i))};t({open:h,close:f});const b=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],_=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],w=["港","澳","学","警","使","领","挂","应","急"];return(g,m)=>(L(),Mt(be,{ref_key:"popRef",ref:n,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:bt(()=>[lt(xt,{class:"popup-plate",style:A({paddingBottom:Et(vt).safeAreaBottom}),onResize:u},{default:bt(()=>[E("div",null,[E("div",{onClick:f},"关闭")]),E("div",{class:te(["step",a.value==0?"":"hide"])},[(L(),Y(Xt,null,ye(b,k=>E("div",{key:k,class:"popitem",onClick:d,"data-number":k},yt(k),9,Lv)),64)),E("div",{class:"popitem popitem-clear",onClick:p},[lt(Qi,{width:"16px"})])],2),E("div",{class:te(["step",a.value!=0?"":"hide"])},[(L(),Y(Xt,null,ye(_,k=>E("div",{key:k,class:te(["popitem",a.value!=2?"unactive":""]),onClick:d,"data-number":k,"data-unactive":a.value!=2?"unactive":""},yt(k),11,Mv)),64)),(L(),Y(Xt,null,ye(v,k=>E("div",{key:k,class:"popitem",onClick:d,"data-number":k},yt(k),9,Av)),64)),(L(),Y(Xt,null,ye(w,k=>E("div",{key:k,class:te(["popitem",a.value!=2?"unactive":""]),onClick:d,"data-number":k,"data-unactive":a.value!=2?"unactive":""},yt(k),11,Nv)),64)),E("div",{class:"popitem popitem-clear",onClick:p},[lt(Qi,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),[["styles",[`.popup-plate[data-v-205c59a9]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-205c59a9]{display:none!important}.popup-plate>div[data-v-205c59a9]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-205c59a9]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-205c59a9]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-205c59a9]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-205c59a9]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-205c59a9]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-205c59a9]{background-color:#eee;display:flex;justify-content:center;align-items:center}
|
|
109
|
+
`]],["__scopeId","data-v-205c59a9"]]),zv={class:"parent"},Bv=it(Q({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const o=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":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function n(c){switch(c){case"b":case"蓝牌":c="蓝牌";break;case"g":case"绿牌":c="绿牌";break;case"y":case"黄牌":c="黄牌";break;case"q":case"黄绿":c="黄绿";break;case"d":case"黑牌":c="黑牌";break;case"w":case"白牌":c="白牌";break;default:c="未知";break}const u=r.filter(h=>h.name===c);return u.length?u[0]:n("未知")}const a=I(n(o.plateType||""));let i=o.fontColor,l=o.fontSize;switch(o.displayType){case"dot":i=i||"#999999",l=l||"14px";break;case"chinese":i=i||"#333333",l=l||"14px";break;case"plaintext":i=i||"#333333",l=l||"14px";break}return t({}),(c,u)=>(L(),Y("div",zv,[c.displayType=="dot"&&c.plate!=="无牌车"?(L(),Y("div",{key:0,class:te(["leading",c.displayType]),style:A({...a.value.style,width:Et(l),height:Et(l)})},yt(a.value.name),7)):Ot("",!0),c.displayType=="chinese"&&c.plate!=="无牌车"?(L(),Y("div",{key:1,class:te(["leading",c.displayType]),style:A(a.value.style)},yt(a.value.name),7)):Ot("",!0),c.displayType=="plaintext"&&c.plate!=="无牌车"?(L(),Y("div",{key:2,class:te(["leading",c.displayType]),style:A({color:Et(i),fontSize:Et(l)})},yt(a.value.name),7)):Ot("",!0),E("div",{class:"text",style:A({color:Et(i),"font-size":Et(l)})},yt(c.plate),5)]))}}),[["styles",[`.parent[data-v-49a2baa1]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-49a2baa1]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:4px;margin-right:5px}.leading.chinese[data-v-49a2baa1]{padding:4px}.leading.dot[data-v-49a2baa1]{font-size:0;border-radius:50%}.leading.plaintext[data-v-49a2baa1]{padding-right:5px;border-right:1px solid #e6e6e6;border-radius:0}.text[data-v-49a2baa1]{line-height:1}
|
|
110
|
+
`]],["__scopeId","data-v-49a2baa1"]]),Yv=E("div",{style:{"background-color":"#ffffff"}},"...",-1),rd=Q({customOptions:{Pop:be,Button:re,Container:xt},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,o=I();function r(){o.value.open()}function n(){o.value.close()}const a=I(),i=I(0),l=I(0),c=I(0),u=I(0),h=(f,p)=>{if(c.value=f,u.value=p,!a.value)return;const d=$s(),b=a.value.getBoundingClientRect();i.value=Math.max(e.gap,Math.min(b.x+b.width+e.gap,d.width-f-e.gap)),l.value=Math.max(e.gap,Math.min(b.y,d.height-p-e.gap))};return t({open:r,close:n}),(f,p)=>(L(),Y(Xt,null,[E("div",{ref_key:"popoverButtonRef",ref:a,class:"popover-button",style:{display:"inline-block"},onClick:r},[kt(f.$slots,"button",{},()=>[lt(re,null,{default:bt(()=>[jt("popover")]),_:1})])],512),lt(be,{ref_key:"popRef",ref:o,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:bt(()=>[E("div",{style:A({position:"absolute",left:i.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[lt(xt,{type:"shrink",onResize:h},{default:bt(()=>[kt(f.$slots,"panel",{},()=>[Yv])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),Vv={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},Xv=E("div",{style:{width:"100%",height:"100%",background:`linear-gradient(
|
|
111
111
|
to bottom,
|
|
112
112
|
rgba(0, 0, 0, 0) 0%,
|
|
113
113
|
rgb(0, 0, 0) 100%
|
|
@@ -120,18 +120,18 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(s){retur
|
|
|
120
120
|
rgb(0, 255, 0) 67%,
|
|
121
121
|
rgb(255, 255, 0) 84%,
|
|
122
122
|
rgb(255, 0, 0) 100%
|
|
123
|
-
)`,"box-sizing":"border-box"}},nd=Q({customOptions:{Popover:rd,Container:xt},__name:"ColorPicker.ce",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=new
|
|
123
|
+
)`,"box-sizing":"border-box"}},nd=Q({customOptions:{Popover:rd,Container:xt},__name:"ColorPicker.ce",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=new It(o.color),i=new It(o.color),l=I(a.toString()),c=I(a.opposite(!0).toString()),u=I(i.toString()),h=I(i.opposite(!0).toString()),f=I(i.h),p=I(a.s),d=I(a.v);function b(w){w&&(a.setColor(w),i.setColor(w)),l.value=a.toString(),c.value=a.opposite(!0).toString(),u.value=i.toString(),h.value=i.opposite(!0).toString(),f.value=i.h,p.value=a.s,d.value=a.v}const _=w=>{const g=(m,k)=>{i.h=(1-k.y/w.height)*360,a.h=i.h,b()};w.captureDrag({start:g,move:g})},v=w=>{const g=(m,k)=>{a.s=k.x/w.width,a.v=1-k.y/w.height,b()};w.captureDrag({start:g,move:g,end:()=>{r("change",l.value),n.value.close(),Ai(l.value).then(()=>{})}})};return t({setColor:b}),(w,g)=>(L(),Mt(rd,{ref_key:"popover",ref:n,closeWhenClickOverlay:!1},{button:bt(()=>[kt(w.$slots,"default",{},()=>[E("span",{style:A([{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}])},yt(l.value),5)])]),panel:bt(()=>[E("div",Vv,[E("div",{class:"saturation-field",style:A([{position:"relative",width:"100px",height:"100px",display:"inline-block",cursor:"pointer","box-sizing":"border-box"},{background:`linear-gradient(
|
|
124
124
|
to right,
|
|
125
125
|
rgb(255, 255, 255) 0%,
|
|
126
126
|
${u.value} 100%
|
|
127
127
|
)`}])},[lt(xt,{type:"full",onReady:v},{default:bt(()=>[Xv,E("div",{class:"field-knob",style:A([{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*p.value-6+"px",top:100*(1-d.value)-6+"px",backgroundColor:l.value,border:`2px solid ${c.value}`}])},null,4)]),_:1})],4),E("div",Gv,[lt(xt,{type:"full",onReady:_},{default:bt(()=>[E("div",{class:"hue-knob",style:A([{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))}}),Uv=`.resize-observer[data-v-16da9fc4]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-16da9fc4] object{position:absolute;top:0;left:0;height:100%;width:100%;display:block;overflow:hidden;pointer-events:none;z-index:-1}
|
|
128
|
-
`,jv={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",fi&&this.$el.appendChild(s),s.data="about:blank",fi||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&&(!fi&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Hv={class:"resize-observer",tabindex:"-1"};function Wv(s,t,e,o,r,n){return L(),
|
|
129
|
-
`]],["__scopeId","data-v-24e42cfa"]]);var _r=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(),o(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function o(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(),n=r,a=0,i=e(new _r.Panel("FPS","#0ff","#002")),l=e(new _r.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new _r.Panel("MB","#f08","#201"));return o(0),{REVISION:16,dom:t,addPanel:e,showPanel:o,begin:function(){r=(performance||Date).now()},end:function(){a++;var u=(performance||Date).now();if(l.update(u-r,200),u>n+1e3&&(i.update(a*1e3/(u-n),100),n=u,a=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:t,setMode:o}};_r.Panel=function(s,t,e){var o=1/0,r=0,n=Math.round,a=n(window.devicePixelRatio||1),i=80*a,l=48*a,c=3*a,u=2*a,h=3*a,f=15*a,p=74*a,d=30*a,b=document.createElement("canvas");b.width=i,b.height=l,b.style.cssText="width:80px;height:48px";var _=b.getContext("2d");return _.font="bold "+9*a+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=e,_.fillRect(0,0,i,l),_.fillStyle=t,_.fillText(s,c,u),_.fillRect(h,f,p,d),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h,f,p,d),{dom:b,update:function(v,w){o=Math.min(o,v),r=Math.max(r,v),_.fillStyle=e,_.globalAlpha=1,_.fillRect(0,0,i,f),_.fillStyle=t,_.fillText(n(v)+" "+s+" ("+n(o)+"-"+n(r)+")",c,u),_.drawImage(b,h+a,f,p-a,d,h,f,p-a,d),_.fillRect(h+p-a,f,a,d),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h+p-a,f,a,n((1-v/w)*d))}}};const Qv=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(s,{expose:t}){const e=I();return Lo(()=>{const o=new _r;o.domElement.style.margin="1em",e.value.appendChild(o.domElement),
|
|
130
|
-
`]],["__scopeId","data-v-00a87d30"]]),Jv={class:"ease-graph"},tb=Q({customOptions:{Button:
|
|
131
|
-
`]],["__scopeId","data-v-b3ce4b26"]]),ob={class:"interpolation-graph"},ld=1/6,cd=5/6,tl=it(Q({customOptions:{Button:
|
|
132
|
-
`]],["__scopeId","data-v-82139a83"]]),sb={class:"interpolation-graph"},ud=1/6,hd=5/6,rb=Q({customOptions:{Button:
|
|
133
|
-
`]],["__scopeId","data-v-7128e350"]]),ab=it(Q({__name:"SVG.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n,a,i;const l=I();St(l,()=>{n||!l.value||(n=new We(l.value,!1),n.on("resize",(u,h)=>{r("resize",u,h),a=new mh(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return
|
|
134
|
-
`]],["__scopeId","data-v-4e16ec5b"]]),ib=["width","height"],xr=it(Q({__name:"Canvas.ce",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;St(n,()=>{n.value&&(c=new We(n.value,!1),c.on("resize",(b,_)=>{const v=$s();i.value=Math.min(b,v.width),l.value=Math.min(_,v.height),p()}),c.start())}),St(a,()=>{a.value&&p()});let u,h,f;function p(){u||!a.value||!i.value||!l.value||(u=new We(a.value,!1),u.on("resize",(b,_)=>{r("resize",b,_),h=new zi(u,o.enableCustomContext),f?.(h),r("ready",h)}),u.start())}function d(){return new Promise(b=>{if(h)return b(h);f=b})}return
|
|
128
|
+
`,jv={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",fi&&this.$el.appendChild(s),s.data="about:blank",fi||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&&(!fi&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Hv={class:"resize-observer",tabindex:"-1"};function Wv(s,t,e,o,r,n){return L(),Y("div",Hv)}const Zv=it(jv,[["render",Wv],["styles",[Uv]],["__scopeId","data-v-16da9fc4"]]),qv=it(Q({__name:"MapTianditu.ce",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const o=s,r=I(o.mapWidth),n=I(o.mapHeight);let a;const i=I();return St(i,()=>{i.value&&(a=new We(i.value,!1),a.on("resize",(l,c)=>{r.value=l+"px",n.value=c+"px"}),a.start())}),Lo(()=>{iy(`http://api.tianditu.gov.cn/api?v=4.0&tk=${o.mapKey}`).then(()=>{new gy(o.mapContainerID,o.mapCenterLng,o.mapCenterLat,o.mapZoom)}).catch(l=>{console.log("error",l)})}),ee(()=>{a.destroy()}),t({}),(l,c)=>(L(),Y("div",Aa({class:"mapDivWrap",ref_key:"mapWrap",ref:i},l.$attrs),[kt(l.$slots,"default",{width:r.value,height:n.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-24e42cfa]{position:relative;width:100%;height:100%}
|
|
129
|
+
`]],["__scopeId","data-v-24e42cfa"]]);var _r=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(),o(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function o(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(),n=r,a=0,i=e(new _r.Panel("FPS","#0ff","#002")),l=e(new _r.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new _r.Panel("MB","#f08","#201"));return o(0),{REVISION:16,dom:t,addPanel:e,showPanel:o,begin:function(){r=(performance||Date).now()},end:function(){a++;var u=(performance||Date).now();if(l.update(u-r,200),u>n+1e3&&(i.update(a*1e3/(u-n),100),n=u,a=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:t,setMode:o}};_r.Panel=function(s,t,e){var o=1/0,r=0,n=Math.round,a=n(window.devicePixelRatio||1),i=80*a,l=48*a,c=3*a,u=2*a,h=3*a,f=15*a,p=74*a,d=30*a,b=document.createElement("canvas");b.width=i,b.height=l,b.style.cssText="width:80px;height:48px";var _=b.getContext("2d");return _.font="bold "+9*a+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=e,_.fillRect(0,0,i,l),_.fillStyle=t,_.fillText(s,c,u),_.fillRect(h,f,p,d),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h,f,p,d),{dom:b,update:function(v,w){o=Math.min(o,v),r=Math.max(r,v),_.fillStyle=e,_.globalAlpha=1,_.fillRect(0,0,i,f),_.fillStyle=t,_.fillText(n(v)+" "+s+" ("+n(o)+"-"+n(r)+")",c,u),_.drawImage(b,h+a,f,p-a,d,h,f,p-a,d),_.fillRect(h+p-a,f,a,d),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h+p-a,f,a,n((1-v/w)*d))}}};const Qv=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(s,{expose:t}){const e=I();return Lo(()=>{const o=new _r;o.domElement.style.margin="1em",e.value.appendChild(o.domElement),ae(()=>(o.update(),!0))}),t({}),(o,r)=>(L(),Y("div",{ref_key:"containerRef",ref:e},null,512))}}),Kv={class:"ease-graph"},Ji=it(Q({customOptions:{Button:re,Canvas:Ye},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I();let a;St(n,()=>{n.value&&n.value.getCanvas().then(u=>{a=u,r("onMounted",o.easeName),a.app.on("showInParent",l)})});let i=!1;const l=()=>{if(!a||i)return;i=!0,r("onStart",o.easeName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.lineWidth=.5,a.ctx.strokeStyle="rgb(230,230,230)",a.ctx.beginPath(),a.ctx.moveTo(0,o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.graphVerticalGap),a.ctx.moveTo(0,o.canvasHeight-o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.canvasHeight-o.graphVerticalGap),a.ctx.closePath(),a.ctx.stroke(),a.ctx.lineWidth=2,a.ctx.strokeStyle="rgb(255,127,127)";const u={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},h={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},f=()=>{a.ctx.beginPath(),a.ctx.moveTo(h.x,h.y),a.ctx.lineTo(u.x,u.y),a.ctx.closePath(),a.ctx.stroke(),h.x=u.x,h.y=u.y},p=new Oe({frameDuration:o.easeDuration});p.addTween(u,{x:o.canvasWidth-o.graphHorizontalGap},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,onUpdate:d=>{u.x=d.x},onComplete:()=>{}}),p.addTween(u,{y:o.graphVerticalGap},{frames:1,delay:0,easeFunction:o.easeFunction,onUpdate:d=>{u.y=d.y,f()},onComplete:()=>{r("onCompleted",o.easeName),i=!1}}),p.play()},c=()=>{r("onSelected",o.easeName,o.easeFunction)};return ee(()=>{a.app.off("showInParent",l)}),t({start:l}),(u,h)=>(L(),Y("div",Kv,[E("div",null,"缓动:"+yt(u.easeName),1),E("div",null,[E("div",null,[lt(re,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:bt(()=>[jt(" 开始 ")]),_:1})]),E("div",null,[lt(re,{stylePattern:o.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:bt(()=>[jt(" 选择 ")]),_:1},8,["stylePattern"])])]),E("div",{style:A({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[lt(Ye,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-00a87d30]{display:inline-block}.ease-graph>div[data-v-00a87d30]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-00a87d30]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-00a87d30]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-00a87d30]{margin-left:10px}
|
|
130
|
+
`]],["__scopeId","data-v-00a87d30"]]),Jv={class:"ease-graph"},tb=Q({customOptions:{Button:re,Canvas:Ye},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 o=s,r=e,n=I();let a;St(n,()=>{n.value&&n.value.getCanvas().then(u=>{a=u,r("onMounted",o.easeName),a.app.on("showInParent",l)})});let i=!1;const l=()=>{if(!a||i)return;i=!0,r("onStart",o.easeName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.lineWidth=.5,a.ctx.strokeStyle="rgb(230,230,230)",a.ctx.beginPath(),a.ctx.moveTo(0,o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.graphVerticalGap),a.ctx.moveTo(0,o.canvasHeight-o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.canvasHeight-o.graphVerticalGap),a.ctx.closePath(),a.ctx.stroke(),a.ctx.lineWidth=2,a.ctx.strokeStyle="rgb(255,127,127)";const u={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},h={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},f=()=>{a.ctx.beginPath(),a.ctx.moveTo(h.x,h.y),a.ctx.lineTo(u.x,u.y),a.ctx.closePath(),a.ctx.stroke(),h.x=u.x,h.y=u.y},p=new Oe({frameDuration:o.easeDuration});p.addTween(u,{x:o.canvasWidth-o.graphHorizontalGap},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,onUpdate:d=>{u.x=d.x},onComplete:()=>{}}),p.addTween(u,{y:o.graphVerticalGap},{frames:1,delay:0,easeFunction:o.easeFunction,onUpdate:d=>{u.y=d.y,f()},onComplete:()=>{r("onCompleted",o.easeName),i=!1}}),p.play()},c=()=>{r("onSelected",o.easeName,o.easeFunction)};return ee(()=>{a.app.off("showInParent",l)}),t({start:l}),(u,h)=>(L(),Y("div",Jv,[E("div",null,"缓动:"+yt(u.easeName),1),E("div",null,[E("div",null,[lt(re,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:bt(()=>[jt(" 开始 ")]),_:1})]),E("div",null,[lt(re,{stylePattern:o.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:bt(()=>[jt(" 选择 ")]),_:1},8,["stylePattern"])])]),E("div",{style:A({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[lt(Ye,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),$2="",ad=it(tb,[["__scopeId","data-v-e8afe7ba"]]),eb=2e3,id=it(Q({customOptions:{EaseGraphDisplay:ad},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:_t.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:_t.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:_t.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:_t.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:_t.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:_t.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:_t.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:_t.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:_t.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:_t.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:_t.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:_t.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:_t.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:_t.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:_t.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:_t.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:_t.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:_t.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:_t.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:_t.Easing.Circular.In},{easeName:"CircularOut",easeFunction:_t.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:_t.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:_t.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:_t.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:_t.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:_t.Easing.Back.In},{easeName:"BackOut",easeFunction:_t.Easing.Back.Out},{easeName:"BackInOut",easeFunction:_t.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:_t.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:_t.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:_t.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:_t.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:_t.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:_t.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:_t.Easing.createStep(4)},{easeName:"8 steps",easeFunction:_t.Easing.createStep(8)},{easeName:"12 steps",easeFunction:_t.Easing.createStep(12)},{easeName:"16 steps",easeFunction:_t.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:_t.Easing.createNoisyEasing(_t.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:_t.Easing.swing},{easeName:"causeSeizures",easeFunction:_t.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const o=s,r=e,n={};function a(f,p){f&&(n[p]={el:f})}const i=new un(10);function l(f){i.addTask(()=>(n[f].el.start(),new Promise(p=>{n[f].resolve=p})))}function c(f){n[f].resolve?.()}const u=I("Linear");function h(f,p){u.value=f,r("selectedEaseFunction",f,p)}return h("Linear",_t.Easing.Linear.None),t({}),(f,p)=>(L(),Y("div",null,[(L(!0),Y(Xt,null,ye(o.easeList,d=>(L(),Y("div",{key:d.easeName,class:"ease-graph-wrap"},[d.easeFunction?(L(),Mt(ad,{key:0,easeName:d.easeName,easeFunction:d.easeFunction,easeDuration:eb,isSelected:u.value==d.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:b=>a(b,d.easeName)},null,8,["easeName","easeFunction","isSelected"])):Ot("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
|
|
131
|
+
`]],["__scopeId","data-v-b3ce4b26"]]),ob={class:"interpolation-graph"},ld=1/6,cd=5/6,tl=it(Q({customOptions:{Button:re,Canvas:Ye},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I();let a;St(n,()=>{n.value&&n.value.getCanvas().then(b=>{a=b,r("onMounted",o.interpolationName),a.app.on("showInParent",d)})});const i=o.canvasWidth*ld,l=o.canvasHeight/2,c=[o.canvasWidth*cd,o.canvasWidth/2],u=[o.canvasHeight*ld,o.canvasHeight*cd],h=[...c,i],f=[...u,l];let p=!1;const d=()=>{if(!a||p)return;p=!0,r("onStart",o.interpolationName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.fillStyle="rgb(200,200,200)",a.ctx.fillRect(i-3,l-3,6,6),a.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var b=0;b<c.length;b++)a.ctx.fillRect(c[b]-2,u[b]-2,4,4);const _=new Oe({frameDuration:o.interpolationDuration});_.addTween({x:i,y:l,old:{x:i,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.9)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{}}),_.addTween({x:i,y:l,old:{x:i,y:l}},{x:h,y:f},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.5)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{r("onCompleted",o.interpolationName),p=!1}}),_.play()};return ee(()=>{a.app.off("showInParent",d)}),t({start:d}),(b,_)=>(L(),Y("div",ob,[E("div",null,[jt(" 插值:"+yt(b.interpolationName)+" ",1),lt(re,{stylePattern:"outline",height:"32px",onClick:d},{default:bt(()=>[jt(" 开始 ")]),_:1})]),E("div",{style:A({width:b.canvasWidth+"px",height:b.canvasHeight+"px"})},[lt(Ye,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-82139a83]{display:inline-block}.interpolation-graph>div[data-v-82139a83]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
|
|
132
|
+
`]],["__scopeId","data-v-82139a83"]]),sb={class:"interpolation-graph"},ud=1/6,hd=5/6,rb=Q({customOptions:{Button:re,Canvas:Ye},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 o=s,r=e,n=I();let a;St(n,()=>{n.value&&n.value.getCanvas().then(b=>{a=b,r("onMounted",o.interpolationName),a.app.on("showInParent",d)})});const i=o.canvasWidth*ud,l=o.canvasHeight/2,c=[o.canvasWidth*hd,o.canvasWidth/2],u=[o.canvasHeight*ud,o.canvasHeight*hd],h=[...c,i],f=[...u,l];let p=!1;const d=()=>{if(!a||p)return;p=!0,r("onStart",o.interpolationName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.fillStyle="rgb(200,200,200)",a.ctx.fillRect(i-3,l-3,6,6),a.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var b=0;b<c.length;b++)a.ctx.fillRect(c[b]-2,u[b]-2,4,4);const _=new Oe({frameDuration:o.interpolationDuration});_.addTween({x:i,y:l,old:{x:i,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.9)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{}}),_.addTween({x:i,y:l,old:{x:i,y:l}},{x:h,y:f},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.5)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{r("onCompleted",o.interpolationName),p=!1}}),_.play()};return ee(()=>{a.app.off("showInParent",d)}),t({start:d}),(b,_)=>(L(),Y("div",sb,[E("div",null,[jt(" 插值:"+yt(b.interpolationName)+" ",1),lt(re,{stylePattern:"outline",height:"32px",onClick:d},{default:bt(()=>[jt(" 开始 ")]),_:1})]),E("div",{style:A({width:b.canvasWidth+"px",height:b.canvasHeight+"px"})},[lt(Ye,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),N2="",dd=it(rb,[["__scopeId","data-v-17bd4dde"]]),nb=2e3,fd=it(Q({customOptions:{InterpolationGraphDisplay:dd},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:_t.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:_t.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:_t.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const o=s,r={};function n(c,u){c&&(r[u]={el:c})}const a=new un(1);function i(c){a.addTask(()=>(r[c].el.start(),new Promise(u=>{r[c].resolve=u})))}function l(c){r[c].resolve?.()}return t({}),(c,u)=>(L(),Y("div",null,[(L(!0),Y(Xt,null,ye(o.interpolationList,h=>(L(),Y("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[lt(dd,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:nb,onOnMounted:i,onOnCompleted:l,ref_for:!0,ref:f=>n(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
|
|
133
|
+
`]],["__scopeId","data-v-7128e350"]]),ab=it(Q({__name:"SVG.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n,a,i;const l=I();St(l,()=>{n||!l.value||(n=new We(l.value,!1),n.on("resize",(u,h)=>{r("resize",u,h),a=new mh(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return ee(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(L(),Y("div",{class:"svg",ref_key:"svgRef",ref:l,style:A({backgroundColor:o.bgColor})},null,4))}}),[["styles",[`.svg[data-v-4e16ec5b]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
134
|
+
`]],["__scopeId","data-v-4e16ec5b"]]),ib=["width","height"],xr=it(Q({__name:"Canvas.ce",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;St(n,()=>{n.value&&(c=new We(n.value,!1),c.on("resize",(b,_)=>{const v=$s();i.value=Math.min(b,v.width),l.value=Math.min(_,v.height),p()}),c.start())}),St(a,()=>{a.value&&p()});let u,h,f;function p(){u||!a.value||!i.value||!l.value||(u=new We(a.value,!1),u.on("resize",(b,_)=>{r("resize",b,_),h=new zi(u,o.enableCustomContext),f?.(h),r("ready",h)}),u.start())}function d(){return new Promise(b=>{if(h)return b(h);f=b})}return ee(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>a.value,getCanvas:d}),(b,_)=>(L(),Y("div",{class:"canvas",ref_key:"canvasOutterRef",ref:n},[E("canvas",{ref_key:"canvasRef",ref:a,width:i.value,height:l.value,style:A({backgroundColor:o.bgColor})},null,12,ib)],512))}}),[["styles",[`.canvas[data-v-e0bc94d8]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
135
135
|
`]],["__scopeId","data-v-e0bc94d8"]]),lb=["max","min","step","value","autofocus"],cb={key:0,class:"label"},ub=Q({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 o=s,r=e,n=I(o.defaultValue),a=()=>xe((n.value-o.min)/(o.max-o.min),4)*100,i=I(a());function l(h){n.value=xe(h.target.value,2),i.value=a(),r("change",n.value)}const c=`
|
|
136
136
|
:root {
|
|
137
137
|
--input-range-color: ${o.color};
|
|
@@ -143,15 +143,15 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(s){retur
|
|
|
143
143
|
--input-range-thumb-size: ${o.handleSize};
|
|
144
144
|
--input-range-track-size: ${o.barHeight};
|
|
145
145
|
}
|
|
146
|
-
`,u=I();return St(u,()=>{u.value&&ko(c,u.value)}),te(()=>{}),t({}),(h,f)=>(L(),V("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[E("input",{type:"range",max:o.max,min:o.min,step:o.step,value:n.value,autofocus:o.autofocus,onInput:l,style:A({background:`linear-gradient(to right, ${o.color} 0%, ${o.color} ${i.value}%, ${o.barColor} ${i.value}%, ${o.barColor})`})},null,44,lb),kt(h.$slots,"default",{value:n.value},()=>[h.showValue?(L(),V("label",cb,vt(n.value)+vt(o.unit),1)):Ft("",!0)],!0)],512))}}),U2="",ms=it(ub,[["__scopeId","data-v-cab67db2"]]),hb=Q({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n,a,i;const l=I();St(l,()=>{n||!l.value||(n=new We(l.value,!1),n.on("resize",(u,h)=>{r("resize",u,h),a=new mh(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return te(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(L(),V("div",{class:"svg",ref_key:"svgRef",ref:l,style:A({backgroundColor:o.bgColor})},null,4))}}),j2="",pd=it(hb,[["__scopeId","data-v-132e642b"]]),db='<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>',fb={class:"btns"},pb={class:"btns"},mb={class:"btns sub-btns"},gb={class:"btns sub-btns"},yb={style:{width:"100%"}},vb={style:{width:"100%"}},bb={style:{height:"400px"}},_b={style:{height:"400px"}},xb=Q({customOptions:{Button:se,InputRange:ms,SVG:pd,Canvas:Ye},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:_t.Easing.Linear.None}},setup(s,{expose:t}){const e=s,o=I();let r=0,n=0;St(o,()=>{o.value&&o.value.getSVG().then(R=>{r=R.app.width,n=R.app.height,R.app.on("resize",(D,M)=>{r=D,n=M})})});const a=I(),i=I(),l=I(),c=I(""),u=I("");let h;function f(R){switch(u.value=R,c.value){case"AnimateToTweenCSS":z();break}}const p=new Zg({svg:db,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),d=new ee({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"}),b=+d.getTotalLength().toFixed(0),_=I(b),v=I(Math.floor(b/2));function w(R){_.value=R,d.setAttr("strokeDasharray",`${_.value} ${_.value}`)}function g(R){v.value=R,d.setAttr("strokeDashoffset",`${v.value}`)}const m=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new Ds({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Ot.random().toString()},enableDrag:!0});R.clear(),h=ne(()=>(D.ctx.clearRect(),R.path([M]),D.draw([M]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!o.value||!a.value)return;h?.();const R=new ve({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),D=new ve({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),M=Qt(0,r-100),$=Qt(0,n-100),N=new ve({attrs:{stroke:"#666666"}});N.x=M,N.y=$,N.toX=M+100,N.toY=$+100;const G=new ve({attrs:{stroke:"#666666"}});G.x=M+100,G.y=$,G.toX=M,G.toY=$+100;const st=N.intersection(G),K=new oe({x:0,y:0,radius:10,attrs:{fill:Ot.random().toString()}});st&&(K.x=st.x,K.y=st.y);const q=new Pn({x:Qt(0,r),y:Qt(0,n),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new Te({x:Qt(0,r),y:Qt(0,n),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),U=new qg({x:Qt(0,r),y:Qt(0,n),scalar:.99,degree:-1,attrs:{fill:Ot.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),H=new Qg({x:Qt(0,r),y:Qt(0,n),scalar:.99,degree:-1,attrs:{fill:Ot.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),gt=new Kg({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:Ot.random().toString()},enableDrag:!0}),ft=new $i({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Y=new Jg({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:Ot.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),P=new ty({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:Ot.random().toString()},enableDrag:!0}),Vt=new ey({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Ot.random().toString(),fill:"none"},enableDrag:!0}),Nt=new ry({x:Qt(0,r),y:Qt(0,n),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Ot.random().toString()},enableDrag:!0}),Ct=new Ds({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Ot.random().toString()},enableDrag:!0}),Kt=new bh({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});Kt.on("change",Ie=>{console.log(`slider change: ${Ie}`)});const Gt=new Di({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ot.random().toString(),enableDrag:!0}),j=new _h({x:Qt(0,r),y:Qt(0,n),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),$e=new yh({x:Qt(0,r),y:Qt(0,n),rx:50,ry:10,enableDrag:!0,attrs:{fill:Ot.random().toString()}}),Ve=[R,D,N,G,K,q,nt,U,H,gt,ft,Y,P,Vt,Nt,Ct,Kt,Gt,j,$e];o.value.getSVG().then(Ie=>{a.value.getCanvas().then(S=>{Ie.clear(),h=ne(()=>(Ie.path(Ve),S.ctx.clearRect(),S.draw(Ve),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new Pn({scalar:.5,followMouse:!0,attrs:{fill:Ot.random().toString()}}),$=M.clone(),N=new ve({x:R.app.width/2,y:R.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),G=N.clone();R.clear(),h=ne(()=>(D.ctx.clearRect(),N.toX=M.x,N.toY=M.y,G.toX=$.x,G.toY=$.y,R.path([N,M]),D.draw([G,$]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new oe({x:R.app.width/2,y:R.app.height/2,radius:30,attrs:{fill:Ot.random().toString()}});M.enableDrag=!0,M.targetToAfterDragFree={targetX:R.app.width/2,targetY:R.app.height/2};const $=M.clone();R.clear(),h=ne(()=>(R.path(M),D.ctx.clearRect(),D.draw($),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new oe({x:50,y:R.app.height/2,radius:30,attrs:{fill:Ot.random().toString()}});M.mass=2,M.vx=2;const $=new oe({x:R.app.width-50,y:R.app.height/2,radius:30,attrs:{fill:Ot.random().toString()}});$.mass=1,$.vx=-2,R.clear(),h=ne(()=>(M.checkCollision($),M.run(),$.run(),R.path([M,$]),D.ctx.clearRect(),D.draw([M,$]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const $=[];for(let st=0;st<15;st++){const K=Math.random()*20+15,q=new oe({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:K,attrs:{fill:Ot.random().toString()}});q.mass=K,q.vx=Math.random()*10-5,q.vy=Math.random()*10-5,$.push(q)}const N=new Te({x:0,y:0,width:R.app.width,height:R.app.height}),G=new Be($);R.clear(),h=ne(()=>(G.run({wall:N}),R.path($),D.ctx.clearRect(),D.draw($),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const $=[];for(let G=0;G<30;G++){const st=Math.random()*25+5,K=new oe({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:st,attrs:{fill:Ot.random().toString()}});K.mass=st,$.push(K)}const N=new Be($);R.clear(),h=ne(()=>(N.gravitate(),R.path($),D.ctx.clearRect(),D.draw($),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new oe({x:R.app.width*.5,y:R.app.height*.5,radius:50,attrs:{fill:Ot.random().toString()}});M.mass=1e4;const $=new oe({x:R.app.width*.5+200,y:R.app.height*.5,radius:10,attrs:{fill:Ot.random().toString()}});$.mass=1,$.vy=7;const N=[M,$],G=new Be(N);R.clear(),h=ne(()=>(G.gravitate(),R.path(N),D.ctx.clearRect(),D.draw(N),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[];for(let q=0;q<30;q++){const nt=Math.random()*10+2,U=new oe({x:Math.random()*D.app.width,y:Math.random()*D.app.height,radius:nt,attrs:{fill:Ot.random().toString()}});U.vx=Math.random()*6-3,U.vy=Math.random()*6-3,U.mass=nt,M.push(U)}const N=new Be(M),G=new Te({x:0,y:0,width:D.app.width,height:D.app.height}),st=new Ot("#666666");let K=[];R.clear(),h=ne(()=>(R.delete(K),K=[],N.springMass(G,{spring:5e-4}).forEach(([q,nt,U,H,gt])=>{gt>0&&K.push(new ve({x:q,y:nt,toX:U,toY:H,attrs:{strokeWidth:"1",stroke:st.setAlpha(gt).toString()}}))}),R.path(K),R.path(M),D.ctx.clearRect(),D.draw(K),D.draw(M),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new oe({x:0,y:0,radius:8,attrs:{fill:Ot.random().toString()}}),$=new oe({x:0,y:0,radius:5,attrs:{fill:Ot.random().toString()}});let N=[p,M,$],G,st;p.on("clicked",H=>{st&&R.delete(st),G&&G.restore(),G=H,H.save(),H.setAttr({fill:"pink",stroke:"green"}),N=[p,M,$];const gt=H.getBoundingClientRect();gt&&(st=new Te(gt),st.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),N.push(st))});let K=0,q=p.shapes[K].getTotalLength(),nt=0;const U=.01;R.clear(),h=ne(()=>{nt>1&&(K++,nt=0,K>p.shapes.length-1&&(K=0),q=p.shapes[K].getTotalLength()),D.ctx.clearRect();let{x:H,y:gt}=p.shapes[K].interpolate(nt);M.x=H,M.y=gt;let{x:ft,y:Y}=p.shapes[K].getPointAtLength(nt*q);return $.x=ft,$.y=Y,R.path(N),D.draw(N),nt+=U,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new Ds({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),$=new Ds({width:50,height:10,attrs:{stroke:"#666666"}}),N=new Ds({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),G=new Ds({width:50,height:10,attrs:{stroke:"#666666"}});let st=0,K=0;function q(){K+=.2,M.x+=st,M.y+=K,N.x+=st,N.y+=K}const nt=-Math.PI/2;function U(Y,P,Vt){const Nt=Math.sin(Vt)*45+90,Ct=Math.sin(Vt+nt)*45+45,Kt=P.getPin();Y.degree=Nt,P.degree=Y.degree+Ct,P.x=Y.getPin().x,P.y=Y.getPin().y,P.vx=P.getPin().x-Kt.x,P.vy=P.getPin().y-Kt.y}function H(Y){const P=Y.getPin().y+Y.height/2;if(P>D.app.height){const Vt=P-D.app.height;M.y-=Vt,$.y-=Vt,N.y-=Vt,G.y-=Vt,st-=Y.vx,K-=Y.vy}}function gt(){const Y=D.app.width+200;M.x>D.app.width+100?(M.x-=Y,$.x-=Y,N.x-=Y,G.x-=Y):M.x<-100&&(M.x+=Y,$.x+=Y,N.x+=Y,G.x+=Y)}let ft=0;R.clear(),h=ne(()=>(D.ctx.clearRect(),ft+=.06,q(),U(M,$,ft),U(N,G,ft+Math.PI),H($),H(G),gt(),R.path([M,$,N,G]),D.draw([M,$,N,G]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!o.value||!a.value)return;h?.();function R(G){return new Te({x:Math.random()*G,y:0,width:50,height:50,attrs:{fill:Ot.random().toString()},enableDrag:!0})}const D=.2,M=[];function $(){const G=R(r);return M.push(G),G}let N=$();o.value.getSVG().then(G=>{a.value.getCanvas().then(st=>{G.clear(),h=ne(()=>(st.ctx.clearRect(),G.isMouseDown||st.isMouseDown?(G.path(M),st.draw(M)):(N&&N.run({gravity:D}),N&&N.y+N.height>=st.ctx.canvas.height&&(N.y=st.ctx.canvas.height-N.height,N=$()),M.forEach(K=>(N&&N!==K&&N.isIntersectRect(K)&&(N.y=K.y-N.height,N.y>=N.height?N=$():N=null),K)),G.path(M),st.draw(M)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[];for(let $=0;$<80;$++){const N=new oe({x:R.app.width/2,y:R.app.height,radius:2,attrs:{fill:Ot.random().toString()}});N.vx=Math.random()*2-1,N.vy=Math.random()*-10-10,M.push(N)}R.clear(),h=ne(()=>(M.forEach($=>{$.run({gravity:.5}),($.x-$.radius>R.app.width||$.x+$.radius<0||$.y-$.radius>R.app.height||$.y+$.radius<0)&&($.x=R.app.width/2,$.y=R.app.height,$.vx=Math.random()*2-1,$.vy=Math.random()*-10-10)}),R.path(M),D.ctx.clearRect(),D.draw(M),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!o.value||!a.value)return;h?.();function R($,N){const G=[];for(let st=0;st<3;st++)G.push(new oe({x:$,y:N,radius:20,attrs:{fill:Ot.random().toString()}}));return G}function D(){const $=[];for(let N=0;N<3;N++)$.push(new ve({attrs:{"stroke-width":"1",stroke:"#666666"}}));return $}const M={spring:.03,friction:.9,gravity:2};o.value.getSVG().then($=>{a.value.getCanvas().then(N=>{const G=D(),st=R($.app.width/2,$.app.height/2),K=new oe({x:0,y:0}),q=D(),nt=R(N.app.width/2,N.app.height/2),U=new oe({x:0,y:0}),H=new Be([K,...st]),gt=new Be([U,...nt]);$.clear(),h=ne(()=>(N.ctx.clearRect(),K.x=$.app.mousePoint.x,K.y=$.app.mousePoint.y,H.springChain(M),st.forEach((ft,Y)=>{if(Y===0)G[Y].x=$.app.mousePoint.x,G[Y].y=$.app.mousePoint.y,G[Y].toX=ft.x,G[Y].toY=ft.y;else{const P=st[Y-1];G[Y].x=P.x,G[Y].y=P.y,G[Y].toX=ft.x,G[Y].toY=ft.y}}),$.path(G),$.path(st),U.x=N.app.mousePoint.x,U.y=N.app.mousePoint.y,gt.springChain(M),nt.forEach((ft,Y)=>{if(Y===0)q[Y].x=N.app.mousePoint.x,q[Y].y=N.app.mousePoint.y,q[Y].toX=ft.x,q[Y].toY=ft.y;else{const P=nt[Y-1];q[Y].x=P.x,q[Y].y=P.y,q[Y].toX=ft.x,q[Y].toY=ft.y}}),N.draw(q),N.draw(nt),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}})],$=[];for(let G=0;G<3;G++)$.push(new oe({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:10,attrs:{fill:Ot.random().toString()},enableDrag:!0}));const N=new oe({radius:20,attrs:{fill:"#ff0000"}});R.clear(),h=ne(()=>(D.ctx.clearRect(),N.runSpringTo($,{spring:.03}),$.forEach((G,st)=>{M[st].x=N.x,M[st].y=N.y,M[st].toX=G.x,M[st].toY=G.y}),R.path([...M,...$,N]),D.draw([...M,...$,N]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}})],$=[];for(let G=0;G<3;G++)$.push(new oe({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:10,attrs:{fill:Ot.random().toString()},enableDrag:!0}));const N=new Be($);R.clear(),h=ne(()=>(N.springConnect({springLength:120}),M[0].x=$[0].x,M[0].y=$[0].y,M[0].toX=$[1].x,M[0].toY=$[1].y,M[1].x=$[1].x,M[1].y=$[1].y,M[1].toX=$[2].x,M[1].toY=$[2].y,M[2].x=$[2].x,M[2].y=$[2].y,M[2].toX=$[0].x,M[2].toY=$[0].y,R.path([...M,...$]),D.ctx.clearRect(),D.draw([...M,...$]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const $=new En({x:50,y:R.app.height-50,toX:R.app.width-50,toY:R.app.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),N=new En({x:50,y:R.app.height-50,toX:R.app.width-50,toY:R.app.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),G=new En({x:50,y:D.ctx.canvas.height-50,toX:D.ctx.canvas.width-50,toY:D.ctx.canvas.height-50,cx:D.app.mousePoint.x,cy:D.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),st=new En({x:50,y:D.ctx.canvas.height-50,toX:D.ctx.canvas.width-50,toY:D.ctx.canvas.height-50,cx:D.app.mousePoint.x,cy:D.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});R.clear(),h=ne(()=>(D.ctx.clearRect(),N.cx=$.cx=R.app.mousePoint.x,N.cy=$.cy=R.app.mousePoint.y,R.path($),R.path(N),st.cx=G.cx=D.app.mousePoint.x,st.cy=G.cy=D.app.mousePoint.y,D.draw([G,st]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),D.ctx.clearRect();const M=[];for(let G=0;G<10;G++)M.push({x:Math.random()*R.app.width,y:Math.random()*R.app.height});const $=M.map((G,st)=>new Te({x:G.x,y:G.y,width:6,height:6,attrs:{fill:st==0?"#ff0000":st==M.length-1?"#00ff00":"#666666"}})),N=new gh({points:M,attrs:{stroke:"#ff0000"},isStraight:!0});N.isStraight=!0,R.path($),R.path(N),N.isStraight=!1,D.draw([...$,N])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!o.value||!a.value)return;h?.();const R=new vh({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),D=new vh({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});o.value.getSVG().then(M=>{a.value.getCanvas().then($=>{M.clear(),h=ne(()=>($.ctx.clearRect(),M.path(R),$.draw(D),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!o.value||!a.value)&&(h?.(),d.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${_.value} ${_.value}`,strokeDashoffset:`${v.value}`}),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),h=ne(()=>(D.ctx.clearRect(),R.path(d),D.draw(d),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!o.value||!a.value)&&(h?.(),d.setAttr({stroke:"#ff0000",strokeWidth:"4"}),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),d.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{R.path(d),D.ctx.clearRect(),D.draw(d)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),D.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Ot.random().toString()})},onGroupUpdate:()=>{R.path(p),D.ctx.clearRect(),D.draw(p)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),D.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Ot.random().toString()})},onGroupUpdate:()=>{R.path(p),D.ctx.clearRect(),D.draw(p)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!o.value||!a.value)return;h?.();const R=new Pn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),D=new Te({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),M=new $i({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),$=Be.generatePointsShape(100,100,100,3);$.x=100,$.y=100,$.setAttr({stroke:"#666666"});const N=Be.generatePointsShape(100,100,100,6);N.x=50,N.y=50,N.setAttr({stroke:"#7EEDFF"});const G=new Be([$,N,R,D,M]);o.value.getSVG().then(st=>{a.value.getCanvas().then(K=>{st.clear(),G.polymorphTween(6e3,{draw:q=>{st.path(q),K.ctx.clearRect(),K.draw(q)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!o.value||!a.value)return;h?.();const R=new Pn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),D=new Te({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),M=new $i({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),$=new Be([R,D,p,M]);o.value.getSVG().then(N=>{a.value.getCanvas().then(G=>{N.clear(),$.polymorphTween(6e3,{draw:st=>{N.path(st),G.ctx.clearRect(),G.draw(st)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!o.value||!a.value)&&(h?.(),Sh(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=Be.generateRosettaShape(120,120,55,35,6);M.setAttr({stroke:"none",fill:"none"});const $=new Te({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),N=new ee({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});R.clear(),D.ctx.clearRect();const G=new Oe({frameDuration:15e3});G.addTween({progress:0},{progress:1},{onUpdate:st=>{const K=M.trailPath(N,st.progress);$.x=K.x,$.y=K.y,$.degree=K.alpha+90,R.path([N,$]),D.ctx.clearRect(),D.draw([N,$])}}),G.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new ny(D.app.width,D.app.height,{angle:Qt(55,125),spread:Qt(50,70),particleCount:Qt(50,100)});R.clear(),h=ne(()=>(D.ctx.clearRect(),R.path(M),D.draw(M),!0))})}))}}],k=[{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 C;function z(){C||(C=new We(i.value));const R=50,D=0,M=0,$=0,N=C.width-R,G=C.height-R,st=C.height-R,K=C.width/2-R/2,q=C.height/2-R/2,nt={},U={};switch(u.value){case"translateTo":Object.assign(nt,{translateTo:[D,M]}),Object.assign(U,{translateTo:[N,G]});break;case"translateXTo":Object.assign(nt,{translateXTo:D}),Object.assign(U,{translateXTo:N});break;case"translateYTo":Object.assign(nt,{translateYTo:M}),Object.assign(U,{translateYTo:G});break;case"translateZTo":Object.assign(nt,{translateTo:[K,q],translateZTo:$}),Object.assign(U,{translateTo:[K,q],translateZTo:st});break;case"translate3dTo":Object.assign(nt,{translate3dTo:[K-50,q-50,$]}),Object.assign(U,{translate3dTo:[K+50,q+50,st]});break;case"rotateTo":Object.assign(nt,{translateTo:[K,q],rotateTo:0}),Object.assign(U,{translateTo:[K,q],rotateTo:360});break;case"rotateXTo":Object.assign(nt,{translateTo:[K,q],rotateXTo:0}),Object.assign(U,{translateTo:[K,q],rotateXTo:180});break;case"rotateYTo":Object.assign(nt,{translateTo:[K,q],rotateYTo:0}),Object.assign(U,{translateTo:[K,q],rotateYTo:180});break;case"rotateZTo":Object.assign(nt,{translateTo:[K,q],rotateZTo:0}),Object.assign(U,{translateTo:[K,q],rotateZTo:360});break;case"rotate3dTo":Object.assign(nt,{translateTo:[K,q],rotate3dTo:[0,0,0]}),Object.assign(U,{translateTo:[K,q],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(nt,{translateTo:[K,q],scaleTo:1}),Object.assign(U,{translateTo:[K,q],scaleTo:3});break;case"scaleXTo":Object.assign(nt,{translateTo:[K,q],scaleXTo:1}),Object.assign(U,{translateTo:[K,q],scaleXTo:3});break;case"scaleYTo":Object.assign(nt,{translateTo:[K,q],scaleYTo:1}),Object.assign(U,{translateTo:[K,q],scaleYTo:3});break;case"scaleZTo":Object.assign(nt,{translateTo:[K,q],scaleZTo:1}),Object.assign(U,{translateTo:[K,q],scaleZTo:3});break;case"scale3dTo":Object.assign(nt,{translateTo:[K,q],scale3dTo:[1,1,1]}),Object.assign(U,{translateTo:[K,q],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(nt,{translateTo:[K,q],skewTo:0}),Object.assign(U,{translateTo:[K,q],skewTo:30});break;case"skewXTo":Object.assign(nt,{translateTo:[K,q],skewXTo:0}),Object.assign(U,{translateTo:[K,q],skewXTo:30});break;case"skewYTo":Object.assign(nt,{translateTo:[K,q],skewYTo:0}),Object.assign(U,{translateTo:[K,q],skewYTo:30});break;case"perspective":Object.assign(nt,{translateTo:[K,q],perspective:0}),Object.assign(U,{translateTo:[K,q],perspective:1e3});break}const H=new Oe({frameDuration:2e3});H.addTween(nt,U,{easeFunction:e.easeFunction,onUpdate:gt=>{Sh(l.value,uy(l.value,gt))}}),H.play()}function tt(){return new Promise(R=>{a.value.getCanvas().then(D=>{me.downloadFromSVGString(D.ctx.toRawSVG().raw,"CanvasToSVG"),R()})})}return te(()=>{}),t({}),(R,D)=>(L(),V(Xt,null,[E("div",fb,[lt(se,{asyncClick:tt},{default:bt(()=>[jt(" downloadFromCanvasToSVG ")]),_:1})]),E("div",pb,[(L(),V(Xt,null,ye(m,M=>lt(se,{key:M.type,item:M,onClick:M.onClick,stylePattern:c.value==M.type?"fullfilled":"outline"},{default:bt(()=>[jt(vt(M.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),ns(E("div",null," 当前缓动函数:"+vt(e.easeName),513),[[Bo,c.value=="AnimateToTweenCSS"]]),ns(E("div",mb,[(L(),V(Xt,null,ye(k,M=>lt(se,{key:M.type,item:M,onClick:M.onClick,stylePattern:u.value==M.type?"fullfilled":"outline"},{default:bt(()=>[jt(vt(M.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Bo,c.value=="AnimateToTweenCSS"]]),ns(E("div",gb,[E("div",yb,[E("div",null,"stroke-dasharray: "+vt(_.value)+","+vt(_.value),1),lt(ms,{max:988,defaultValue:_.value,onChange:w},null,8,["defaultValue"])]),E("div",vb,[E("div",null,"stroke-dashoffset: "+vt(v.value),1),lt(ms,{max:988,defaultValue:v.value,onChange:g},null,8,["defaultValue"])])],512),[[Bo,c.value=="StrokeDash"]]),ns(E("div",bb,[lt(pd,{ref_key:"svgRef",ref:o,bgColor:"#ffffff"},null,512)],512),[[Bo,c.value!=="AnimateToTweenCSS"]]),ns(E("div",_b,[lt(Ye,{ref_key:"canvasRef",ref:a,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Bo,c.value!=="AnimateToTweenCSS"]]),ns(E("div",{ref_key:"tweenCSSContainerRef",ref:i,style:{height:"400px"},class:"css-area"},[E("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[Bo,c.value=="AnimateToTweenCSS"]])],64))}}),md=it(xb,[["styles",[`.btns[data-v-0155e0d3]{display:flex;flex-wrap:wrap}.btns>*[data-v-0155e0d3]{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-0155e0d3]{padding-top:10px;background-color:#dbffff}.css-area[data-v-0155e0d3]{background-color:#fff}.tween-css-target[data-v-0155e0d3]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
|
|
147
|
-
`]],["__scopeId","data-v-0155e0d3"]]),wb=["fill"],kb=["fill"],Cb=Q({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:
|
|
148
|
-
`]],["__scopeId","data-v-8fe3f9fd"]]),el=s=>(Ts("data-v-7aebdea0"),s=s(),Ss(),s),Sb=[el(()=>E("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)),el(()=>E("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)),el(()=>E("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))],Eb=Q({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:
|
|
149
|
-
`]],["__scopeId","data-v-7aebdea0"]]),Ob=["width","height"],Ib=["fill"],Rb=Q({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:
|
|
150
|
-
`]],["__scopeId","data-v-8745630f"]]),$b=["width","height"],Db=["fill"],Lb=Q({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:
|
|
151
|
-
`]],["__scopeId","data-v-0e77f86d"]]),Ab={class:"svg"},Nb=[zc('<defs data-v-ba0e36ce><mask id="mask" maskContentUnits="objectBoundingBox" data-v-ba0e36ce><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-ba0e36ce></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-ba0e36ce></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-ba0e36ce></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-ba0e36ce></rect></mask></defs>',1)],zb=it(Q({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin.ce",setup(s){return(t,e)=>(L(),
|
|
152
|
-
`]],["__scopeId","data-v-ba0e36ce"]]),Bb={class:"loading-1"},Yb=Q({__name:"Loading1.ce",props:{color:{default:
|
|
153
|
-
`]],["__scopeId","data-v-f7deb691"]]),Xb={class:"loading-2"},Gb=Q({__name:"Loading2.ce",props:{color:{default:
|
|
154
|
-
`]],["__scopeId","data-v-945f5b2e"]]),jb=Q({__name:"Loading3.ce",props:{fromColor:{default:
|
|
146
|
+
`,u=I();return St(u,()=>{u.value&&ko(c,u.value)}),ee(()=>{}),t({}),(h,f)=>(L(),Y("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[E("input",{type:"range",max:o.max,min:o.min,step:o.step,value:n.value,autofocus:o.autofocus,onInput:l,style:A({background:`linear-gradient(to right, ${o.color} 0%, ${o.color} ${i.value}%, ${o.barColor} ${i.value}%, ${o.barColor})`})},null,44,lb),kt(h.$slots,"default",{value:n.value},()=>[h.showValue?(L(),Y("label",cb,yt(n.value)+yt(o.unit),1)):Ot("",!0)],!0)],512))}}),U2="",ms=it(ub,[["__scopeId","data-v-cab67db2"]]),hb=Q({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n,a,i;const l=I();St(l,()=>{n||!l.value||(n=new We(l.value,!1),n.on("resize",(u,h)=>{r("resize",u,h),a=new mh(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return ee(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(L(),Y("div",{class:"svg",ref_key:"svgRef",ref:l,style:A({backgroundColor:o.bgColor})},null,4))}}),j2="",pd=it(hb,[["__scopeId","data-v-132e642b"]]),db='<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>',fb={class:"btns"},pb={class:"btns"},mb={class:"btns sub-btns"},gb={class:"btns sub-btns"},yb={style:{width:"100%"}},vb={style:{width:"100%"}},bb={style:{height:"400px"}},_b={style:{height:"400px"}},xb=Q({customOptions:{Button:re,InputRange:ms,SVG:pd,Canvas:Ye},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:_t.Easing.Linear.None}},setup(s,{expose:t}){const e=s,o=I();let r=0,n=0;St(o,()=>{o.value&&o.value.getSVG().then(R=>{r=R.app.width,n=R.app.height,R.app.on("resize",(D,M)=>{r=D,n=M})})});const a=I(),i=I(),l=I(),c=I(""),u=I("");let h;function f(R){switch(u.value=R,c.value){case"AnimateToTweenCSS":z();break}}const p=new Zg({svg:db,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),d=new oe({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"}),b=+d.getTotalLength().toFixed(0),_=I(b),v=I(Math.floor(b/2));function w(R){_.value=R,d.setAttr("strokeDasharray",`${_.value} ${_.value}`)}function g(R){v.value=R,d.setAttr("strokeDashoffset",`${v.value}`)}const m=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new Ds({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:It.random().toString()},enableDrag:!0});R.clear(),h=ae(()=>(D.ctx.clearRect(),R.path([M]),D.draw([M]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!o.value||!a.value)return;h?.();const R=new ve({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),D=new ve({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),M=Qt(0,r-100),$=Qt(0,n-100),N=new ve({attrs:{stroke:"#666666"}});N.x=M,N.y=$,N.toX=M+100,N.toY=$+100;const G=new ve({attrs:{stroke:"#666666"}});G.x=M+100,G.y=$,G.toX=M,G.toY=$+100;const st=N.intersection(G),K=new se({x:0,y:0,radius:10,attrs:{fill:It.random().toString()}});st&&(K.x=st.x,K.y=st.y);const q=new Pn({x:Qt(0,r),y:Qt(0,n),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new Te({x:Qt(0,r),y:Qt(0,n),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),U=new qg({x:Qt(0,r),y:Qt(0,n),scalar:.99,degree:-1,attrs:{fill:It.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),H=new Qg({x:Qt(0,r),y:Qt(0,n),scalar:.99,degree:-1,attrs:{fill:It.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),gt=new Kg({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:It.random().toString()},enableDrag:!0}),ft=new $i({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new Jg({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:It.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),P=new ty({x:Qt(0,r),y:Qt(0,n),scalar:1,degree:0,attrs:{fill:It.random().toString()},enableDrag:!0}),Vt=new ey({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:It.random().toString(),fill:"none"},enableDrag:!0}),Nt=new ry({x:Qt(0,r),y:Qt(0,n),degree:30,scalar:2,showFlame:!0,attrs:{stroke:It.random().toString()},enableDrag:!0}),Ct=new Ds({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:It.random().toString()},enableDrag:!0}),Kt=new bh({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});Kt.on("change",Ie=>{console.log(`slider change: ${Ie}`)});const Gt=new Di({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:It.random().toString(),enableDrag:!0}),j=new _h({x:Qt(0,r),y:Qt(0,n),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),$e=new yh({x:Qt(0,r),y:Qt(0,n),rx:50,ry:10,enableDrag:!0,attrs:{fill:It.random().toString()}}),Ve=[R,D,N,G,K,q,nt,U,H,gt,ft,V,P,Vt,Nt,Ct,Kt,Gt,j,$e];o.value.getSVG().then(Ie=>{a.value.getCanvas().then(S=>{Ie.clear(),h=ae(()=>(Ie.path(Ve),S.ctx.clearRect(),S.draw(Ve),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new Pn({scalar:.5,followMouse:!0,attrs:{fill:It.random().toString()}}),$=M.clone(),N=new ve({x:R.app.width/2,y:R.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),G=N.clone();R.clear(),h=ae(()=>(D.ctx.clearRect(),N.toX=M.x,N.toY=M.y,G.toX=$.x,G.toY=$.y,R.path([N,M]),D.draw([G,$]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new se({x:R.app.width/2,y:R.app.height/2,radius:30,attrs:{fill:It.random().toString()}});M.enableDrag=!0,M.targetToAfterDragFree={targetX:R.app.width/2,targetY:R.app.height/2};const $=M.clone();R.clear(),h=ae(()=>(R.path(M),D.ctx.clearRect(),D.draw($),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new se({x:50,y:R.app.height/2,radius:30,attrs:{fill:It.random().toString()}});M.mass=2,M.vx=2;const $=new se({x:R.app.width-50,y:R.app.height/2,radius:30,attrs:{fill:It.random().toString()}});$.mass=1,$.vx=-2,R.clear(),h=ae(()=>(M.checkCollision($),M.run(),$.run(),R.path([M,$]),D.ctx.clearRect(),D.draw([M,$]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const $=[];for(let st=0;st<15;st++){const K=Math.random()*20+15,q=new se({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:K,attrs:{fill:It.random().toString()}});q.mass=K,q.vx=Math.random()*10-5,q.vy=Math.random()*10-5,$.push(q)}const N=new Te({x:0,y:0,width:R.app.width,height:R.app.height}),G=new Be($);R.clear(),h=ae(()=>(G.run({wall:N}),R.path($),D.ctx.clearRect(),D.draw($),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const $=[];for(let G=0;G<30;G++){const st=Math.random()*25+5,K=new se({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:st,attrs:{fill:It.random().toString()}});K.mass=st,$.push(K)}const N=new Be($);R.clear(),h=ae(()=>(N.gravitate(),R.path($),D.ctx.clearRect(),D.draw($),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new se({x:R.app.width*.5,y:R.app.height*.5,radius:50,attrs:{fill:It.random().toString()}});M.mass=1e4;const $=new se({x:R.app.width*.5+200,y:R.app.height*.5,radius:10,attrs:{fill:It.random().toString()}});$.mass=1,$.vy=7;const N=[M,$],G=new Be(N);R.clear(),h=ae(()=>(G.gravitate(),R.path(N),D.ctx.clearRect(),D.draw(N),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[];for(let q=0;q<30;q++){const nt=Math.random()*10+2,U=new se({x:Math.random()*D.app.width,y:Math.random()*D.app.height,radius:nt,attrs:{fill:It.random().toString()}});U.vx=Math.random()*6-3,U.vy=Math.random()*6-3,U.mass=nt,M.push(U)}const N=new Be(M),G=new Te({x:0,y:0,width:D.app.width,height:D.app.height}),st=new It("#666666");let K=[];R.clear(),h=ae(()=>(R.delete(K),K=[],N.springMass(G,{spring:5e-4}).forEach(([q,nt,U,H,gt])=>{gt>0&&K.push(new ve({x:q,y:nt,toX:U,toY:H,attrs:{strokeWidth:"1",stroke:st.setAlpha(gt).toString()}}))}),R.path(K),R.path(M),D.ctx.clearRect(),D.draw(K),D.draw(M),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new se({x:0,y:0,radius:8,attrs:{fill:It.random().toString()}}),$=new se({x:0,y:0,radius:5,attrs:{fill:It.random().toString()}});let N=[p,M,$],G,st;p.on("clicked",H=>{st&&R.delete(st),G&&G.restore(),G=H,H.save(),H.setAttr({fill:"pink",stroke:"green"}),N=[p,M,$];const gt=H.getBoundingClientRect();gt&&(st=new Te(gt),st.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),N.push(st))});let K=0,q=p.shapes[K].getTotalLength(),nt=0;const U=.01;R.clear(),h=ae(()=>{nt>1&&(K++,nt=0,K>p.shapes.length-1&&(K=0),q=p.shapes[K].getTotalLength()),D.ctx.clearRect();let{x:H,y:gt}=p.shapes[K].interpolate(nt);M.x=H,M.y=gt;let{x:ft,y:V}=p.shapes[K].getPointAtLength(nt*q);return $.x=ft,$.y=V,R.path(N),D.draw(N),nt+=U,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new Ds({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),$=new Ds({width:50,height:10,attrs:{stroke:"#666666"}}),N=new Ds({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),G=new Ds({width:50,height:10,attrs:{stroke:"#666666"}});let st=0,K=0;function q(){K+=.2,M.x+=st,M.y+=K,N.x+=st,N.y+=K}const nt=-Math.PI/2;function U(V,P,Vt){const Nt=Math.sin(Vt)*45+90,Ct=Math.sin(Vt+nt)*45+45,Kt=P.getPin();V.degree=Nt,P.degree=V.degree+Ct,P.x=V.getPin().x,P.y=V.getPin().y,P.vx=P.getPin().x-Kt.x,P.vy=P.getPin().y-Kt.y}function H(V){const P=V.getPin().y+V.height/2;if(P>D.app.height){const Vt=P-D.app.height;M.y-=Vt,$.y-=Vt,N.y-=Vt,G.y-=Vt,st-=V.vx,K-=V.vy}}function gt(){const V=D.app.width+200;M.x>D.app.width+100?(M.x-=V,$.x-=V,N.x-=V,G.x-=V):M.x<-100&&(M.x+=V,$.x+=V,N.x+=V,G.x+=V)}let ft=0;R.clear(),h=ae(()=>(D.ctx.clearRect(),ft+=.06,q(),U(M,$,ft),U(N,G,ft+Math.PI),H($),H(G),gt(),R.path([M,$,N,G]),D.draw([M,$,N,G]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!o.value||!a.value)return;h?.();function R(G){return new Te({x:Math.random()*G,y:0,width:50,height:50,attrs:{fill:It.random().toString()},enableDrag:!0})}const D=.2,M=[];function $(){const G=R(r);return M.push(G),G}let N=$();o.value.getSVG().then(G=>{a.value.getCanvas().then(st=>{G.clear(),h=ae(()=>(st.ctx.clearRect(),G.isMouseDown||st.isMouseDown?(G.path(M),st.draw(M)):(N&&N.run({gravity:D}),N&&N.y+N.height>=st.ctx.canvas.height&&(N.y=st.ctx.canvas.height-N.height,N=$()),M.forEach(K=>(N&&N!==K&&N.isIntersectRect(K)&&(N.y=K.y-N.height,N.y>=N.height?N=$():N=null),K)),G.path(M),st.draw(M)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[];for(let $=0;$<80;$++){const N=new se({x:R.app.width/2,y:R.app.height,radius:2,attrs:{fill:It.random().toString()}});N.vx=Math.random()*2-1,N.vy=Math.random()*-10-10,M.push(N)}R.clear(),h=ae(()=>(M.forEach($=>{$.run({gravity:.5}),($.x-$.radius>R.app.width||$.x+$.radius<0||$.y-$.radius>R.app.height||$.y+$.radius<0)&&($.x=R.app.width/2,$.y=R.app.height,$.vx=Math.random()*2-1,$.vy=Math.random()*-10-10)}),R.path(M),D.ctx.clearRect(),D.draw(M),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!o.value||!a.value)return;h?.();function R($,N){const G=[];for(let st=0;st<3;st++)G.push(new se({x:$,y:N,radius:20,attrs:{fill:It.random().toString()}}));return G}function D(){const $=[];for(let N=0;N<3;N++)$.push(new ve({attrs:{"stroke-width":"1",stroke:"#666666"}}));return $}const M={spring:.03,friction:.9,gravity:2};o.value.getSVG().then($=>{a.value.getCanvas().then(N=>{const G=D(),st=R($.app.width/2,$.app.height/2),K=new se({x:0,y:0}),q=D(),nt=R(N.app.width/2,N.app.height/2),U=new se({x:0,y:0}),H=new Be([K,...st]),gt=new Be([U,...nt]);$.clear(),h=ae(()=>(N.ctx.clearRect(),K.x=$.app.mousePoint.x,K.y=$.app.mousePoint.y,H.springChain(M),st.forEach((ft,V)=>{if(V===0)G[V].x=$.app.mousePoint.x,G[V].y=$.app.mousePoint.y,G[V].toX=ft.x,G[V].toY=ft.y;else{const P=st[V-1];G[V].x=P.x,G[V].y=P.y,G[V].toX=ft.x,G[V].toY=ft.y}}),$.path(G),$.path(st),U.x=N.app.mousePoint.x,U.y=N.app.mousePoint.y,gt.springChain(M),nt.forEach((ft,V)=>{if(V===0)q[V].x=N.app.mousePoint.x,q[V].y=N.app.mousePoint.y,q[V].toX=ft.x,q[V].toY=ft.y;else{const P=nt[V-1];q[V].x=P.x,q[V].y=P.y,q[V].toX=ft.x,q[V].toY=ft.y}}),N.draw(q),N.draw(nt),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}})],$=[];for(let G=0;G<3;G++)$.push(new se({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:10,attrs:{fill:It.random().toString()},enableDrag:!0}));const N=new se({radius:20,attrs:{fill:"#ff0000"}});R.clear(),h=ae(()=>(D.ctx.clearRect(),N.runSpringTo($,{spring:.03}),$.forEach((G,st)=>{M[st].x=N.x,M[st].y=N.y,M[st].toX=G.x,M[st].toY=G.y}),R.path([...M,...$,N]),D.draw([...M,...$,N]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=[new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}}),new ve({attrs:{stroke:"#666666"}})],$=[];for(let G=0;G<3;G++)$.push(new se({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:10,attrs:{fill:It.random().toString()},enableDrag:!0}));const N=new Be($);R.clear(),h=ae(()=>(N.springConnect({springLength:120}),M[0].x=$[0].x,M[0].y=$[0].y,M[0].toX=$[1].x,M[0].toY=$[1].y,M[1].x=$[1].x,M[1].y=$[1].y,M[1].toX=$[2].x,M[1].toY=$[2].y,M[2].x=$[2].x,M[2].y=$[2].y,M[2].toX=$[0].x,M[2].toY=$[0].y,R.path([...M,...$]),D.ctx.clearRect(),D.draw([...M,...$]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const $=new En({x:50,y:R.app.height-50,toX:R.app.width-50,toY:R.app.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),N=new En({x:50,y:R.app.height-50,toX:R.app.width-50,toY:R.app.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),G=new En({x:50,y:D.ctx.canvas.height-50,toX:D.ctx.canvas.width-50,toY:D.ctx.canvas.height-50,cx:D.app.mousePoint.x,cy:D.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),st=new En({x:50,y:D.ctx.canvas.height-50,toX:D.ctx.canvas.width-50,toY:D.ctx.canvas.height-50,cx:D.app.mousePoint.x,cy:D.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});R.clear(),h=ae(()=>(D.ctx.clearRect(),N.cx=$.cx=R.app.mousePoint.x,N.cy=$.cy=R.app.mousePoint.y,R.path($),R.path(N),st.cx=G.cx=D.app.mousePoint.x,st.cy=G.cy=D.app.mousePoint.y,D.draw([G,st]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),D.ctx.clearRect();const M=[];for(let G=0;G<10;G++)M.push({x:Math.random()*R.app.width,y:Math.random()*R.app.height});const $=M.map((G,st)=>new Te({x:G.x,y:G.y,width:6,height:6,attrs:{fill:st==0?"#ff0000":st==M.length-1?"#00ff00":"#666666"}})),N=new gh({points:M,attrs:{stroke:"#ff0000"},isStraight:!0});N.isStraight=!0,R.path($),R.path(N),N.isStraight=!1,D.draw([...$,N])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!o.value||!a.value)return;h?.();const R=new vh({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),D=new vh({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});o.value.getSVG().then(M=>{a.value.getCanvas().then($=>{M.clear(),h=ae(()=>($.ctx.clearRect(),M.path(R),$.draw(D),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!o.value||!a.value)&&(h?.(),d.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${_.value} ${_.value}`,strokeDashoffset:`${v.value}`}),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),h=ae(()=>(D.ctx.clearRect(),R.path(d),D.draw(d),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!o.value||!a.value)&&(h?.(),d.setAttr({stroke:"#ff0000",strokeWidth:"4"}),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),d.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{R.path(d),D.ctx.clearRect(),D.draw(d)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),D.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:It.random().toString()})},onGroupUpdate:()=>{R.path(p),D.ctx.clearRect(),D.draw(p)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{R.clear(),D.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:It.random().toString()})},onGroupUpdate:()=>{R.path(p),D.ctx.clearRect(),D.draw(p)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!o.value||!a.value)return;h?.();const R=new Pn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),D=new Te({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),M=new $i({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),$=Be.generatePointsShape(100,100,100,3);$.x=100,$.y=100,$.setAttr({stroke:"#666666"});const N=Be.generatePointsShape(100,100,100,6);N.x=50,N.y=50,N.setAttr({stroke:"#7EEDFF"});const G=new Be([$,N,R,D,M]);o.value.getSVG().then(st=>{a.value.getCanvas().then(K=>{st.clear(),G.polymorphTween(6e3,{draw:q=>{st.path(q),K.ctx.clearRect(),K.draw(q)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!o.value||!a.value)return;h?.();const R=new Pn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),D=new Te({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),M=new $i({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),$=new Be([R,D,p,M]);o.value.getSVG().then(N=>{a.value.getCanvas().then(G=>{N.clear(),$.polymorphTween(6e3,{draw:st=>{N.path(st),G.ctx.clearRect(),G.draw(st)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!o.value||!a.value)&&(h?.(),Sh(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=Be.generateRosettaShape(120,120,55,35,6);M.setAttr({stroke:"none",fill:"none"});const $=new Te({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),N=new oe({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});R.clear(),D.ctx.clearRect();const G=new Oe({frameDuration:15e3});G.addTween({progress:0},{progress:1},{onUpdate:st=>{const K=M.trailPath(N,st.progress);$.x=K.x,$.y=K.y,$.degree=K.alpha+90,R.path([N,$]),D.ctx.clearRect(),D.draw([N,$])}}),G.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!o.value||!a.value)&&(h?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then(D=>{const M=new ny(D.app.width,D.app.height,{angle:Qt(55,125),spread:Qt(50,70),particleCount:Qt(50,100)});R.clear(),h=ae(()=>(D.ctx.clearRect(),R.path(M),D.draw(M),!0))})}))}}],k=[{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 C;function z(){C||(C=new We(i.value));const R=50,D=0,M=0,$=0,N=C.width-R,G=C.height-R,st=C.height-R,K=C.width/2-R/2,q=C.height/2-R/2,nt={},U={};switch(u.value){case"translateTo":Object.assign(nt,{translateTo:[D,M]}),Object.assign(U,{translateTo:[N,G]});break;case"translateXTo":Object.assign(nt,{translateXTo:D}),Object.assign(U,{translateXTo:N});break;case"translateYTo":Object.assign(nt,{translateYTo:M}),Object.assign(U,{translateYTo:G});break;case"translateZTo":Object.assign(nt,{translateTo:[K,q],translateZTo:$}),Object.assign(U,{translateTo:[K,q],translateZTo:st});break;case"translate3dTo":Object.assign(nt,{translate3dTo:[K-50,q-50,$]}),Object.assign(U,{translate3dTo:[K+50,q+50,st]});break;case"rotateTo":Object.assign(nt,{translateTo:[K,q],rotateTo:0}),Object.assign(U,{translateTo:[K,q],rotateTo:360});break;case"rotateXTo":Object.assign(nt,{translateTo:[K,q],rotateXTo:0}),Object.assign(U,{translateTo:[K,q],rotateXTo:180});break;case"rotateYTo":Object.assign(nt,{translateTo:[K,q],rotateYTo:0}),Object.assign(U,{translateTo:[K,q],rotateYTo:180});break;case"rotateZTo":Object.assign(nt,{translateTo:[K,q],rotateZTo:0}),Object.assign(U,{translateTo:[K,q],rotateZTo:360});break;case"rotate3dTo":Object.assign(nt,{translateTo:[K,q],rotate3dTo:[0,0,0]}),Object.assign(U,{translateTo:[K,q],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(nt,{translateTo:[K,q],scaleTo:1}),Object.assign(U,{translateTo:[K,q],scaleTo:3});break;case"scaleXTo":Object.assign(nt,{translateTo:[K,q],scaleXTo:1}),Object.assign(U,{translateTo:[K,q],scaleXTo:3});break;case"scaleYTo":Object.assign(nt,{translateTo:[K,q],scaleYTo:1}),Object.assign(U,{translateTo:[K,q],scaleYTo:3});break;case"scaleZTo":Object.assign(nt,{translateTo:[K,q],scaleZTo:1}),Object.assign(U,{translateTo:[K,q],scaleZTo:3});break;case"scale3dTo":Object.assign(nt,{translateTo:[K,q],scale3dTo:[1,1,1]}),Object.assign(U,{translateTo:[K,q],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(nt,{translateTo:[K,q],skewTo:0}),Object.assign(U,{translateTo:[K,q],skewTo:30});break;case"skewXTo":Object.assign(nt,{translateTo:[K,q],skewXTo:0}),Object.assign(U,{translateTo:[K,q],skewXTo:30});break;case"skewYTo":Object.assign(nt,{translateTo:[K,q],skewYTo:0}),Object.assign(U,{translateTo:[K,q],skewYTo:30});break;case"perspective":Object.assign(nt,{translateTo:[K,q],perspective:0}),Object.assign(U,{translateTo:[K,q],perspective:1e3});break}const H=new Oe({frameDuration:2e3});H.addTween(nt,U,{easeFunction:e.easeFunction,onUpdate:gt=>{Sh(l.value,uy(l.value,gt))}}),H.play()}function tt(){return new Promise(R=>{a.value.getCanvas().then(D=>{me.downloadFromSVGString(D.ctx.toRawSVG().raw,"CanvasToSVG"),R()})})}return ee(()=>{}),t({}),(R,D)=>(L(),Y(Xt,null,[E("div",fb,[lt(re,{asyncClick:tt},{default:bt(()=>[jt(" downloadFromCanvasToSVG ")]),_:1})]),E("div",pb,[(L(),Y(Xt,null,ye(m,M=>lt(re,{key:M.type,item:M,onClick:M.onClick,stylePattern:c.value==M.type?"fullfilled":"outline"},{default:bt(()=>[jt(yt(M.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),ns(E("div",null," 当前缓动函数:"+yt(e.easeName),513),[[Bo,c.value=="AnimateToTweenCSS"]]),ns(E("div",mb,[(L(),Y(Xt,null,ye(k,M=>lt(re,{key:M.type,item:M,onClick:M.onClick,stylePattern:u.value==M.type?"fullfilled":"outline"},{default:bt(()=>[jt(yt(M.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Bo,c.value=="AnimateToTweenCSS"]]),ns(E("div",gb,[E("div",yb,[E("div",null,"stroke-dasharray: "+yt(_.value)+","+yt(_.value),1),lt(ms,{max:988,defaultValue:_.value,onChange:w},null,8,["defaultValue"])]),E("div",vb,[E("div",null,"stroke-dashoffset: "+yt(v.value),1),lt(ms,{max:988,defaultValue:v.value,onChange:g},null,8,["defaultValue"])])],512),[[Bo,c.value=="StrokeDash"]]),ns(E("div",bb,[lt(pd,{ref_key:"svgRef",ref:o,bgColor:"#ffffff"},null,512)],512),[[Bo,c.value!=="AnimateToTweenCSS"]]),ns(E("div",_b,[lt(Ye,{ref_key:"canvasRef",ref:a,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Bo,c.value!=="AnimateToTweenCSS"]]),ns(E("div",{ref_key:"tweenCSSContainerRef",ref:i,style:{height:"400px"},class:"css-area"},[E("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[Bo,c.value=="AnimateToTweenCSS"]])],64))}}),md=it(xb,[["styles",[`.btns[data-v-0155e0d3]{display:flex;flex-wrap:wrap}.btns>*[data-v-0155e0d3]{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-0155e0d3]{padding-top:10px;background-color:#dbffff}.css-area[data-v-0155e0d3]{background-color:#fff}.tween-css-target[data-v-0155e0d3]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
|
|
147
|
+
`]],["__scopeId","data-v-0155e0d3"]]),wb=["fill"],kb=["fill"],Cb=Q({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{style:A(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,wb),E("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,kb)],4))}}),Tb=it(Cb,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
|
|
148
|
+
`]],["__scopeId","data-v-8fe3f9fd"]]),el=s=>(Ts("data-v-7aebdea0"),s=s(),Ss(),s),Sb=[el(()=>E("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)),el(()=>E("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)),el(()=>E("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))],Eb=Q({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{style:A(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Sb,4))}}),Pb=it(Eb,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
|
|
149
|
+
`]],["__scopeId","data-v-7aebdea0"]]),Ob=["width","height"],Ib=["fill"],Rb=Q({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[E("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,Ib)],8,Ob))}}),Fb=it(Rb,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
|
|
150
|
+
`]],["__scopeId","data-v-8745630f"]]),$b=["width","height"],Db=["fill"],Lb=Q({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:vt.colorGrayCC}},setup(s){const t=s;return(e,o)=>(L(),Y("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,Db)],8,$b))}}),Mb=it(Lb,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
|
|
151
|
+
`]],["__scopeId","data-v-0e77f86d"]]),Ab={class:"svg"},Nb=[zc('<defs data-v-ba0e36ce><mask id="mask" maskContentUnits="objectBoundingBox" data-v-ba0e36ce><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-ba0e36ce></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-ba0e36ce></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-ba0e36ce></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-ba0e36ce></rect></mask></defs>',1)],zb=it(Q({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin.ce",setup(s){return(t,e)=>(L(),Y("svg",Ab,Nb))}}),[["styles",[`.svg[data-v-ba0e36ce]{position:absolute;width:0;height:0}
|
|
152
|
+
`]],["__scopeId","data-v-ba0e36ce"]]),Bb={class:"loading-1"},Yb=Q({__name:"Loading1.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),Y("div",Bb,[E("div",{class:"rect1",style:e}),E("div",{class:"rect2",style:e}),E("div",{class:"rect3",style:e}),E("div",{class:"rect4",style:e}),E("div",{class:"rect5",style:e})]))}}),Vb=it(Yb,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
|
|
153
|
+
`]],["__scopeId","data-v-f7deb691"]]),Xb={class:"loading-2"},Gb=Q({__name:"Loading2.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),Y("div",Xb,[E("div",{class:"dot1",style:e}),E("div",{class:"dot2",style:e})]))}}),Ub=it(Gb,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
|
|
154
|
+
`]],["__scopeId","data-v-945f5b2e"]]),jb=Q({__name:"Loading3.ce",props:{fromColor:{default:vt.colorPrimary},toColor:{default:vt.colorRed}},setup(s){const t=s,e=`
|
|
155
155
|
@keyframes snake {
|
|
156
156
|
0% {
|
|
157
157
|
opacity: 0.3;
|
|
@@ -170,40 +170,40 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(s){retur
|
|
|
170
170
|
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
`,o={backgroundColor:t.fromColor,width:"20%"},r=I();return St(r,()=>{r.value&&ko(e,r.value)}),Lo(()=>{}),
|
|
174
|
-
`]],["__scopeId","data-v-edc89186"]]),Wb={class:"loading-4"},Zb=Q({__name:"Loading4.ce",props:{color:{default:
|
|
175
|
-
`]],["__scopeId","data-v-b2b74418"]]),Qb={class:"loading-5"},Kb=Q({__name:"Loading5.ce",props:{color:{default:
|
|
176
|
-
`]],["__scopeId","data-v-2e49b1eb"]]),t_={class:"loading-6"},e_=Q({__name:"Loading6.ce",props:{color:{default:
|
|
177
|
-
`]],["__scopeId","data-v-0e771b32"]]),s_=[(s=>(Ts("data-v-bb5e2767"),s=s(),Ss(),s))(()=>E("div",null,null,-1))],r_=Q({__name:"Loading7.ce",props:{color:{default:
|
|
173
|
+
`,o={backgroundColor:t.fromColor,width:"20%"},r=I();return St(r,()=>{r.value&&ko(e,r.value)}),Lo(()=>{}),ee(()=>{}),(n,a)=>(L(),Y("div",{class:"loading-3",ref_key:"loading3",ref:r},[E("div",{class:"dot",style:A({...o,left:"0"})},null,4),E("div",{class:"dot",style:A({...o,left:"20%"})},null,4),E("div",{class:"dot",style:A({...o,left:"40%"})},null,4),E("div",{class:"dot",style:A({...o,left:"60%"})},null,4),E("div",{class:"dot",style:A({...o,left:"80%"})},null,4)],512))}}),Hb=it(jb,[["styles",[`.loading-3[data-v-edc89186]{position:relative;display:inline-block;width:100%;height:100%;text-align:center}.dot[data-v-edc89186]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-edc89186]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-edc89186]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-edc89186]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-edc89186]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-edc89186]:nth-child(5){animation-delay:.8s}
|
|
174
|
+
`]],["__scopeId","data-v-edc89186"]]),Wb={class:"loading-4"},Zb=Q({__name:"Loading4.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),Y("div",Wb,[E("div",{class:"rect",style:e})]))}}),qb=it(Zb,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
|
|
175
|
+
`]],["__scopeId","data-v-b2b74418"]]),Qb={class:"loading-5"},Kb=Q({__name:"Loading5.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),Y("div",Qb,[E("div",{class:"cube1",style:e}),E("div",{class:"cube2",style:e})]))}}),Jb=it(Kb,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
|
|
176
|
+
`]],["__scopeId","data-v-2e49b1eb"]]),t_={class:"loading-6"},e_=Q({__name:"Loading6.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),Y("div",t_,[E("div",{style:e}),E("div",{style:e}),E("div",{style:e})]))}}),o_=it(e_,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
|
|
177
|
+
`]],["__scopeId","data-v-0e771b32"]]),s_=[(s=>(Ts("data-v-bb5e2767"),s=s(),Ss(),s))(()=>E("div",null,null,-1))],r_=Q({__name:"Loading7.ce",props:{color:{default:vt.colorPrimary}},setup(s){const t=s,e=`
|
|
178
178
|
:root {
|
|
179
179
|
--loading-7-bg-color: ${t.color}
|
|
180
180
|
}
|
|
181
181
|
:host {
|
|
182
182
|
--loading-7-bg-color: ${t.color}
|
|
183
183
|
}
|
|
184
|
-
`,o=I();return St(o,()=>{o.value&&ko(e,o.value)}),Lo(()=>{}),
|
|
185
|
-
`]],["__scopeId","data-v-bb5e2767"]]),a_={class:"loading-8"},i_={viewBox:"25 25 50 50"},l_=Q({__name:"Loading8.ce",props:{color:{default:
|
|
186
|
-
`]],["__scopeId","data-v-51a259a7"]]),c_={class:"loading-9"},u_=Q({__name:"Loading9.ce",props:{color:{default:
|
|
187
|
-
`]],["__scopeId","data-v-ee782ac8"]]),d_={class:"loading-10"},f_={viewBox:"0 0 50 50"},p_=Q({__name:"Loading10.ce",props:{color:{default:
|
|
188
|
-
`]],["__scopeId","data-v-984ad184"]]),g_={class:"loading-11",ref:"loading11"},y_={class:"container container-1"},v_={class:"container container-2"},b_={class:"container container-3"},__=Q({__name:"Loading11.ce",props:{color:{default:
|
|
189
|
-
`]],["__scopeId","data-v-7fb118c9"]]),x_={class:"face front"},w_={class:"face back"},k_=it(Q({customOptions:{},inheritAttrs:!0,__name:"CardFlip.ce",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(!1),a=()=>{n.value=!n.value,r("click",n.value)};return t({}),(i,l)=>(L(),
|
|
190
|
-
`]],["__scopeId","data-v-1ee90a6e"]]),C_=Q({customOptions:{BooleanBox:Uo},__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,o=t,r=I([]),n=(l,c)=>{l&&(r.value[c]=l)};let a=I(e.initIndex);const i=(l,c)=>{a.value!==l?(r.value[a.value].toggleValue(),c&&(a.value=l,o("change",e.options[a.value]))):c||r.value[a.value].setValue(!0)};return(l,c)=>(L(!0),
|
|
184
|
+
`,o=I();return St(o,()=>{o.value&&ko(e,o.value)}),Lo(()=>{}),ee(()=>{}),(r,n)=>(L(),Y("div",{class:"loading-7",ref_key:"loading7",ref:o},s_,512))}}),n_=it(r_,[["styles",[`.loading-7[data-v-bb5e2767]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-bb5e2767]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-bb5e2767]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-bb5e2767 .5s linear infinite}.loading-7>div[data-v-bb5e2767]:after{content:"";width:100%;height:100%;animation:animate-bb5e2767 .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-bb5e2767{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-bb5e2767{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
|
|
185
|
+
`]],["__scopeId","data-v-bb5e2767"]]),a_={class:"loading-8"},i_={viewBox:"25 25 50 50"},l_=Q({__name:"Loading8.ce",props:{color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("div",a_,[(L(),Y("svg",i_,[E("circle",{cx:"50",cy:"50",r:"20",style:A(["stroke: "+t.color])},null,4)]))]))}}),gd=it(l_,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
|
|
186
|
+
`]],["__scopeId","data-v-51a259a7"]]),c_={class:"loading-9"},u_=Q({__name:"Loading9.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(o,r)=>(L(),Y("div",c_,[E("div",{style:e})]))}}),h_=it(u_,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
|
|
187
|
+
`]],["__scopeId","data-v-ee782ac8"]]),d_={class:"loading-10"},f_={viewBox:"0 0 50 50"},p_=Q({__name:"Loading10.ce",props:{color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),Y("div",d_,[(L(),Y("svg",f_,[E("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:A(["stroke: rgba(0,0,0,0.1)"])},null,4),E("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:A(["fill: "+t.color])},null,4)]))]))}}),m_=it(p_,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
|
|
188
|
+
`]],["__scopeId","data-v-984ad184"]]),g_={class:"loading-11",ref:"loading11"},y_={class:"container container-1"},v_={class:"container container-2"},b_={class:"container container-3"},__=Q({__name:"Loading11.ce",props:{color:{default:vt.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,o)=>(L(),Y("div",g_,[E("div",{class:"loading-11-inner",style:A({width:t.width,height:t.width})},[E("div",y_,[E("div",{class:"dot dot-1",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:A({backgroundColor:t.color})},null,4)]),E("div",v_,[E("div",{class:"dot dot-1",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:A({backgroundColor:t.color})},null,4)]),E("div",b_,[E("div",{class:"dot dot-1",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:A({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:A({backgroundColor:t.color})},null,4)])],4)],512))}}),yd=it(__,[["styles",[`.loading-11[data-v-7fb118c9]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-11-inner[data-v-7fb118c9]{position:relative}.loading-11-inner .container[data-v-7fb118c9]{position:absolute;width:100%;height:100%}.loading-11-inner .container .dot[data-v-7fb118c9]{width:20%;height:20%;border-radius:100%;position:absolute;animation:bouncedelay-7fb118c9 1.2s infinite ease-in-out;animation-fill-mode:both}.loading-11-inner .container .dot-1[data-v-7fb118c9]{top:0;left:0}.loading-11-inner .container .dot-2[data-v-7fb118c9]{top:0;right:0}.loading-11-inner .container .dot-3[data-v-7fb118c9]{right:0;bottom:0}.loading-11-inner .container .dot-4[data-v-7fb118c9]{left:0;bottom:0}.loading-11-inner .container-1 .dot-2[data-v-7fb118c9]{animation-delay:-.9s}.loading-11-inner .container-1 .dot-3[data-v-7fb118c9]{animation-delay:-.6s}.loading-11-inner .container-1 .dot-4[data-v-7fb118c9]{animation-delay:-.3s}.loading-11-inner .container-2[data-v-7fb118c9]{transform:rotate(45deg)}.loading-11-inner .container-2 .dot-1[data-v-7fb118c9]{animation-delay:-1.1s}.loading-11-inner .container-2 .dot-2[data-v-7fb118c9]{animation-delay:-.8s}.loading-11-inner .container-2 .dot-3[data-v-7fb118c9]{animation-delay:-.5s}.loading-11-inner .container-2 .dot-4[data-v-7fb118c9]{animation-delay:-.2s}.loading-11-inner .container-3[data-v-7fb118c9]{transform:rotate(90deg)}.loading-11-inner .container-3 .dot-1[data-v-7fb118c9]{animation-delay:-1s}.loading-11-inner .container-3 .dot-2[data-v-7fb118c9]{animation-delay:-.7s}.loading-11-inner .container-3 .dot-3[data-v-7fb118c9]{animation-delay:-.4s}.loading-11-inner .container-3 .dot-4[data-v-7fb118c9]{animation-delay:-.1s}@keyframes bouncedelay-7fb118c9{0%,80%,to{transform:scale(.3)}40%{transform:scale(1)}}
|
|
189
|
+
`]],["__scopeId","data-v-7fb118c9"]]),x_={class:"face front"},w_={class:"face back"},k_=it(Q({customOptions:{},inheritAttrs:!0,__name:"CardFlip.ce",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(!1),a=()=>{n.value=!n.value,r("click",n.value)};return t({}),(i,l)=>(L(),Y("div",{class:"card-flip-scene",style:A({perspective:o.perspective})},[E("div",{class:te(["card",[o.type,{flip:n.value}]]),style:A({transition:`transform ${o.dur}ms`}),onClick:a},[E("div",x_,[kt(i.$slots,"front",{},()=>[jt("front")],!0)]),E("div",w_,[kt(i.$slots,"back",{},()=>[jt("back")],!0)])],6)],4))}}),[["styles",[`.card-flip-scene[data-v-1ee90a6e]{width:100%;height:100%;cursor:pointer}.card[data-v-1ee90a6e]{width:100%;height:100%;position:relative;transform-style:preserve-3d}.card.slide[data-v-1ee90a6e]{transform-origin:center right}.card.flip[data-v-1ee90a6e]{transform:rotateY(180deg)}.card.slide.flip[data-v-1ee90a6e]{transform:translate(-100%) rotateY(-180deg)}.face[data-v-1ee90a6e]{position:absolute;height:100%;width:100%;backface-visibility:hidden}.face[data-v-1ee90a6e]>:nth-child(1){display:block;width:100%;height:100%}.back[data-v-1ee90a6e]{transform:rotateY(180deg)}
|
|
190
|
+
`]],["__scopeId","data-v-1ee90a6e"]]),C_=Q({customOptions:{BooleanBox:Uo},__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,o=t,r=I([]),n=(l,c)=>{l&&(r.value[c]=l)};let a=I(e.initIndex);const i=(l,c)=>{a.value!==l?(r.value[a.value].toggleValue(),c&&(a.value=l,o("change",e.options[a.value]))):c||r.value[a.value].setValue(!0)};return(l,c)=>(L(!0),Y(Xt,null,ye(l.options,(u,h)=>(L(),Y("div",{class:"radio-group",key:h,style:A(["margin-left:"+(h>0?e.itemPadding:0)])},[lt(Uo,{ref_for:!0,ref:f=>n(f,h),selected:Et(a)==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=>i(h,f)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),bw="",vd=it(C_,[["__scopeId","data-v-308d559c"]]),T_=Q({customOptions:{BooleanBox:Uo},__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,o=t;let r=Zt(e.initIndexs??[]);const n=(a,i)=>{const l=r.findIndex(u=>u===a);let c=!1;l>=0&&!i?(r.splice(l,1),c=!0):l<0&&i&&(r.push(a),c=!0),c&&o("change",r.map(u=>e.options[u]))};return(a,i)=>(L(!0),Y(Xt,null,ye(a.options,(l,c)=>(L(),Y("div",{class:"checkbox-group",key:c,style:A(["margin-left:"+(c>0?e.itemPadding:0)])},[lt(Uo,{selected:Et(r).findIndex(u=>u===c)>=0,disabled:a.disabledIndexs&&a.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=>n(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),_w="",ol=it(T_,[["__scopeId","data-v-4c28fda3"]]),bd=it(Q({customOptions:{RadioGroup:vd,CheckboxGroup:ol,InputRange:ms},inheritAttrs:!0,__name:"Cube.ce",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const o=s,r=I(Math.floor(o.width/2)),n=`
|
|
191
191
|
:root {
|
|
192
192
|
--spin-cube-z: -${r.value}px;
|
|
193
193
|
}
|
|
194
194
|
:host {
|
|
195
195
|
--spin-cube-z: -${r.value}px;
|
|
196
196
|
}
|
|
197
|
-
`,a=I();St(a,()=>{a.value&&ko(n,a.value)});const i=I(o.perspective+"px"),l=m=>{i.value=m==2e3?"none":m+"px"},c=I("50%"),u=m=>{c.value=m+"%"},h=I("50%"),f=m=>{h.value=m+"%"},p=`translateZ(-${r.value}px)`,d=I(p),b=m=>{switch(m){case"front":d.value=p+" rotateY(0deg)";break;case"right":d.value=p+" rotateY(-90deg)";break;case"back":d.value=p+" rotateY(-180deg)";break;case"left":d.value=p+" rotateY(90deg)";break;case"top":d.value=p+" rotateX(-90deg)";break;case"bottom":d.value=p+" rotateX(90deg)";break;default:d.value=p;break}},_=I(!1),v=m=>{m.length?_.value=!0:_.value=!1},w=I("visible"),g=m=>{m.length?w.value="visible":w.value="hidden"};return t({}),(m,k)=>(L(),
|
|
198
|
-
`]],["__scopeId","data-v-d77b4117"]]),S_=s=>(Ts("data-v-57b7fa75"),s=s(),Ss(),s),E_={class:"ring-indicator"},P_={class:"ring-text"},O_=S_(()=>E("span",null,"%",-1)),_d=it(Q({customOptions:{Canvas:Ye},inheritAttrs:!0,__name:"RingIndicator.ce",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let o=I(0);const r=Sg(()=>{const c=
|
|
199
|
-
`]],["__scopeId","data-v-57b7fa75"]]),xd=s=>(Ts("data-v-8b4a3cb1"),s=s(),Ss(),s),I_=[xd(()=>E("div",{class:"left"},null,-1)),xd(()=>E("div",{class:"right"},null,-1))],R_={key:0},F_={key:1},gs=10,Ns=4,wd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"RingText.ce",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,o=I(0),r=(n,a)=>{o.value=Math.floor(Math.min(n,a))};return t({}),(n,a)=>(L(),Mt(xt,{onResize:r,type:"full"},{default:bt(()=>[E("div",{class:"ring",style:A({width:o.value+"px",height:o.value+"px",padding:gs+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[E("div",{class:"ring-rotate",style:A({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${o.value/2-gs-Ns}px, #000 ${o.value/2-gs-Ns}px)`})},I_,4),E("div",{class:"ring-content",style:A({top:gs+Ns+"px",left:gs+Ns+"px",width:o.value-(gs+Ns)*2+"px",height:o.value-(gs+Ns)*2+"px"})},[e.text?(L(),V("div",R_,vt(e.text),1)):Ft("",!0),e.secondText?(L(),V("div",F_,vt(e.secondText),1)):Ft("",!0)],4)],4)]),_:1}))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutRight{to{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipInLeft{0%{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipOutLeft{to{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipInRight{0%{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipOutTop{to{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes flipInBottom{0%{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipOutBottom{to{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipInTop{0%{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes rotateFall{0%{transform:rotate(0)}20%{transform:rotate(10deg);animation-timing-function:ease-out}40%{transform:rotate(17deg)}60%{transform:rotate(16deg)}to{transform:translateY(100%) rotate(17deg)}}@keyframes rotateOutNewspaper{to{transform:translateZ(-3000px) rotate(360deg);opacity:0}}@keyframes rotateInNewspaper{0%{transform:translateZ(-3000px) rotate(-360deg);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}@keyframes rotateRightSideFirst{40%{transform:rotateY(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateLeftSideFirst{40%{transform:rotateY(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateTopSideFirst{40%{transform:rotateX(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateBottomSideFirst{40%{transform:rotateX(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotatePushLeft{to{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePushRight{to{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePushTop{to{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePushBottom{to{opacity:0;transform:rotateX(90deg)}}@keyframes rotatePullRight{0%{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePullLeft{0%{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePullTop{0%{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePullBottom{0%{opacity:0;transform:rotateX(90deg)}}@keyframes rotateFoldRight{to{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateFoldLeft{to{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateFoldTop{to{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateFoldBottom{to{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateUnfoldLeft{0%{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateUnfoldRight{0%{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateUnfoldTop{0%{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateUnfoldBottom{0%{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes moveToLeft{to{transform:translate(-100%)}}@keyframes moveFromLeft{0%{transform:translate(-100%)}}@keyframes moveToRight{to{transform:translate(100%)}}@keyframes moveFromRight{0%{transform:translate(100%)}}@keyframes moveToTop{to{transform:translateY(-100%)}}@keyframes moveFromTop{0%{transform:translateY(-100%)}}@keyframes moveToBottom{to{transform:translateY(100%)}}@keyframes moveFromBottom{0%{transform:translateY(100%)}}@keyframes fade{to{opacity:.3}}@keyframes moveToLeftFade{to{opacity:.3;transform:translate(-100%)}}@keyframes moveFromLeftFade{0%{opacity:.3;transform:translate(-100%)}}@keyframes moveToRightFade{to{opacity:.3;transform:translate(100%)}}@keyframes moveFromRightFade{0%{opacity:.3;transform:translate(100%)}}@keyframes moveToTopFade{to{opacity:.3;transform:translateY(-100%)}}@keyframes moveFromTopFade{0%{opacity:.3;transform:translateY(-100%)}}@keyframes moveToBottomFade{to{opacity:.3;transform:translateY(100%)}}@keyframes moveFromBottomFade{0%{opacity:.3;transform:translateY(100%)}}@keyframes scaleToSmall{to{opacity:0;transform:scale(.8)}}@keyframes scaleFromSmall{0%{opacity:0;transform:scale(.8)}}@keyframes scaleFromLarge{0%{opacity:0;transform:scale(1.2)}}@keyframes scaleToLarge{to{opacity:0;transform:scale(1.2)}}@keyframes scaleToSmallCenter{to{opacity:0;transform:scale(.7)}}@keyframes scaleFromSmallCenter{0%{opacity:0;transform:scale(.7)}}@keyframes rotateRoomLeftOut{to{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightOut{to{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomTopOut{to{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateRoomTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomOut{to{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateCubeLeftOut{50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}to{opacity:.3;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateCubeLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(90deg)}50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}}@keyframes rotateCubeRightOut{50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}to{opacity:.3;transform:translate(100%) rotateY(90deg)}}@keyframes rotateCubeRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(-90deg)}50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}}@keyframes rotateCubeTopOut{50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}to{opacity:.3;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateCubeTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(-90deg)}50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}}@keyframes rotateCubeBottomOut{50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}to{opacity:.3;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateCubeBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(90deg)}50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}}@keyframes rotateCarouselLeftOut{to{opacity:.3;transform:translate(-150%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselLeftIn{0%{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightOut{to{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightIn{0%{opacity:.3;transform:translate(-200%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselTopOut{to{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateCarouselTopIn{0%{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomOut{to{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomIn{0%{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateSidesOut{to{opacity:0;transform:translateZ(-500px) rotateY(90deg)}}@keyframes rotateSidesIn{0%{opacity:0;transform:translateZ(-500px) rotateY(-90deg)}}@keyframes rotateSlideOut{25%{opacity:.5;transform:translateZ(-500px)}75%{opacity:.5;transform:translateZ(-500px) translate(-200%)}to{opacity:.5;transform:translateZ(-500px) translate(-200%)}}@keyframes rotateSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translate(200%)}75%{opacity:.5;transform:translateZ(-500px)}to{opacity:1;transform:translateZ(0) translate(0)}}@keyframes superRainbow{0%{background:red}20%{background:orange}40%{background:yellow}60%{background:green}80%{background:blue}to{background:violet}}.superRainbow{background-position:0 0;background-size:200% 100%;background-image:linear-gradient(90deg,red,orange,yellow,green,blue,violet)}.superRainbow:hover{background-position:-100% 100%}@keyframes statusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}
|
|
197
|
+
`,a=I();St(a,()=>{a.value&&ko(n,a.value)});const i=I(o.perspective+"px"),l=m=>{i.value=m==2e3?"none":m+"px"},c=I("50%"),u=m=>{c.value=m+"%"},h=I("50%"),f=m=>{h.value=m+"%"},p=`translateZ(-${r.value}px)`,d=I(p),b=m=>{switch(m){case"front":d.value=p+" rotateY(0deg)";break;case"right":d.value=p+" rotateY(-90deg)";break;case"back":d.value=p+" rotateY(-180deg)";break;case"left":d.value=p+" rotateY(90deg)";break;case"top":d.value=p+" rotateX(-90deg)";break;case"bottom":d.value=p+" rotateX(90deg)";break;default:d.value=p;break}},_=I(!1),v=m=>{m.length?_.value=!0:_.value=!1},w=I("visible"),g=m=>{m.length?w.value="visible":w.value="hidden"};return t({}),(m,k)=>(L(),Y("div",{ref_key:"container",ref:a},[E("div",{class:"cube-scene",style:A({width:`${o.width}px`,height:`${o.height}px`,perspective:`${i.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[E("div",{class:te(["cube",{spinning:_.value}]),style:A({transformStyle:"preserve-3d",transform:d.value,transition:`transform ${o.dur}ms`})},[E("div",{class:"face front",style:A({transform:`rotateY(0deg) translateZ(${r.value}px)`,backfaceVisibility:w.value})},[kt(m.$slots,"front",{},()=>[jt("front")],!0)],4),E("div",{class:"face back",style:A({transform:`rotateY(180deg) translateZ(${r.value}px)`,backfaceVisibility:w.value})},[kt(m.$slots,"back",{},()=>[jt("back")],!0)],4),E("div",{class:"face right",style:A({transform:`rotateY(90deg) translateZ(${r.value}px)`,backfaceVisibility:w.value})},[kt(m.$slots,"right",{},()=>[jt("right")],!0)],4),E("div",{class:"face left",style:A({transform:`rotateY(-90deg) translateZ(${r.value}px)`,backfaceVisibility:w.value})},[kt(m.$slots,"left",{},()=>[jt("left")],!0)],4),E("div",{class:"face top",style:A({transform:`rotateX(90deg) translateZ(${r.value}px)`,backfaceVisibility:w.value})},[kt(m.$slots,"top",{},()=>[jt("top")],!0)],4),E("div",{class:"face bottom",style:A({transform:`rotateX(-90deg) translateZ(${r.value}px)`,backfaceVisibility:w.value})},[kt(m.$slots,"bottom",{},()=>[jt("bottom")],!0)],4)],6)],4),E("div",null,[lt(vd,{options:["front","right","back","left","top","bottom"],onChange:b})]),E("div",null,[lt(ol,{options:["Backface visible"],onChange:g})]),E("div",null,[lt(ol,{options:["spin cube"],onChange:v})]),E("div",null,[jt(" perspective: "),lt(ms,{min:1,max:2e3,defaultValue:o.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),E("div",null,[jt(" perspective-origin x: "),lt(ms,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),E("div",null,[jt(" perspective-origin y: "),lt(ms,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),[["styles",[`.cube[data-v-d77b4117]{position:relative;width:100%;height:100%}.face[data-v-d77b4117]{position:absolute;width:100%;height:100%}.front[data-v-d77b4117]{background:hsla(0,100%,50%,.7)}.right[data-v-d77b4117]{background:hsla(60,100%,50%,.7)}.back[data-v-d77b4117]{background:hsla(120,100%,50%,.7)}.left[data-v-d77b4117]{background:hsla(180,100%,50%,.7)}.top[data-v-d77b4117]{background:hsla(240,100%,50%,.7)}.bottom[data-v-d77b4117]{background:hsla(300,100%,50%,.7)}.spinning[data-v-d77b4117]{animation:spinCube-d77b4117 8s infinite ease-in-out}@keyframes spinCube-d77b4117{0%{transform:translateZ(var(--spin-cube-z)) rotateX(0) rotateY(0)}to{transform:translateZ(var(--spin-cube-z)) rotateX(360deg) rotateY(360deg)}}
|
|
198
|
+
`]],["__scopeId","data-v-d77b4117"]]),S_=s=>(Ts("data-v-57b7fa75"),s=s(),Ss(),s),E_={class:"ring-indicator"},P_={class:"ring-text"},O_=S_(()=>E("span",null,"%",-1)),_d=it(Q({customOptions:{Canvas:Ye},inheritAttrs:!0,__name:"RingIndicator.ce",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let o=I(0);const r=Sg(()=>{const c=ne(Math.floor(e.percent),0,100);return o.value<c?o.value=Math.min(o.value+1,c):o.value>c&&(o.value=Math.max(o.value-1,c)),xe(o.value/100,2)},20),n=I(0),a=I(0),i=(c,u)=>{n.value=c,a.value=u},l=I();return St(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new _h({width:n.value,height:a.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});ae(()=>(c.ctx.clearRect(),u.setPercent(r()),c.draw(u),!0))})}),t({}),(c,u)=>(L(),Y("div",E_,[lt(Ye,{ref_key:"canvasRef",ref:l,onResize:i},null,512),E("div",P_,[E("span",null,yt(Et(o)),1),O_])]))}}),[["styles",[`.ring-indicator[data-v-57b7fa75]{position:relative;width:100%;height:100%}.ring-text[data-v-57b7fa75]{position:absolute;bottom:0;left:0;width:100%;text-align:center;font-family:D-DINExp;color:#333;padding-bottom:20px}.ring-text>span[data-v-57b7fa75]:nth-child(1){font-size:64px}.ring-text>span[data-v-57b7fa75]:nth-child(2){font-size:20px}
|
|
199
|
+
`]],["__scopeId","data-v-57b7fa75"]]),xd=s=>(Ts("data-v-8b4a3cb1"),s=s(),Ss(),s),I_=[xd(()=>E("div",{class:"left"},null,-1)),xd(()=>E("div",{class:"right"},null,-1))],R_={key:0},F_={key:1},gs=10,Ns=4,wd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"RingText.ce",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,o=I(0),r=(n,a)=>{o.value=Math.floor(Math.min(n,a))};return t({}),(n,a)=>(L(),Mt(xt,{onResize:r,type:"full"},{default:bt(()=>[E("div",{class:"ring",style:A({width:o.value+"px",height:o.value+"px",padding:gs+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[E("div",{class:"ring-rotate",style:A({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${o.value/2-gs-Ns}px, #000 ${o.value/2-gs-Ns}px)`})},I_,4),E("div",{class:"ring-content",style:A({top:gs+Ns+"px",left:gs+Ns+"px",width:o.value-(gs+Ns)*2+"px",height:o.value-(gs+Ns)*2+"px"})},[e.text?(L(),Y("div",R_,yt(e.text),1)):Ot("",!0),e.secondText?(L(),Y("div",F_,yt(e.secondText),1)):Ot("",!0)],4)],4)]),_:1}))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutRight{to{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipInLeft{0%{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipOutLeft{to{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipInRight{0%{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipOutTop{to{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes flipInBottom{0%{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipOutBottom{to{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipInTop{0%{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes rotateFall{0%{transform:rotate(0)}20%{transform:rotate(10deg);animation-timing-function:ease-out}40%{transform:rotate(17deg)}60%{transform:rotate(16deg)}to{transform:translateY(100%) rotate(17deg)}}@keyframes rotateOutNewspaper{to{transform:translateZ(-3000px) rotate(360deg);opacity:0}}@keyframes rotateInNewspaper{0%{transform:translateZ(-3000px) rotate(-360deg);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}@keyframes rotateRightSideFirst{40%{transform:rotateY(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateLeftSideFirst{40%{transform:rotateY(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateTopSideFirst{40%{transform:rotateX(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateBottomSideFirst{40%{transform:rotateX(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotatePushLeft{to{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePushRight{to{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePushTop{to{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePushBottom{to{opacity:0;transform:rotateX(90deg)}}@keyframes rotatePullRight{0%{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePullLeft{0%{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePullTop{0%{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePullBottom{0%{opacity:0;transform:rotateX(90deg)}}@keyframes rotateFoldRight{to{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateFoldLeft{to{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateFoldTop{to{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateFoldBottom{to{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateUnfoldLeft{0%{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateUnfoldRight{0%{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateUnfoldTop{0%{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateUnfoldBottom{0%{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes moveToLeft{to{transform:translate(-100%)}}@keyframes moveFromLeft{0%{transform:translate(-100%)}}@keyframes moveToRight{to{transform:translate(100%)}}@keyframes moveFromRight{0%{transform:translate(100%)}}@keyframes moveToTop{to{transform:translateY(-100%)}}@keyframes moveFromTop{0%{transform:translateY(-100%)}}@keyframes moveToBottom{to{transform:translateY(100%)}}@keyframes moveFromBottom{0%{transform:translateY(100%)}}@keyframes fade{to{opacity:.3}}@keyframes moveToLeftFade{to{opacity:.3;transform:translate(-100%)}}@keyframes moveFromLeftFade{0%{opacity:.3;transform:translate(-100%)}}@keyframes moveToRightFade{to{opacity:.3;transform:translate(100%)}}@keyframes moveFromRightFade{0%{opacity:.3;transform:translate(100%)}}@keyframes moveToTopFade{to{opacity:.3;transform:translateY(-100%)}}@keyframes moveFromTopFade{0%{opacity:.3;transform:translateY(-100%)}}@keyframes moveToBottomFade{to{opacity:.3;transform:translateY(100%)}}@keyframes moveFromBottomFade{0%{opacity:.3;transform:translateY(100%)}}@keyframes scaleToSmall{to{opacity:0;transform:scale(.8)}}@keyframes scaleFromSmall{0%{opacity:0;transform:scale(.8)}}@keyframes scaleFromLarge{0%{opacity:0;transform:scale(1.2)}}@keyframes scaleToLarge{to{opacity:0;transform:scale(1.2)}}@keyframes scaleToSmallCenter{to{opacity:0;transform:scale(.7)}}@keyframes scaleFromSmallCenter{0%{opacity:0;transform:scale(.7)}}@keyframes rotateRoomLeftOut{to{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightOut{to{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomTopOut{to{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateRoomTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomOut{to{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateCubeLeftOut{50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}to{opacity:.3;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateCubeLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(90deg)}50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}}@keyframes rotateCubeRightOut{50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}to{opacity:.3;transform:translate(100%) rotateY(90deg)}}@keyframes rotateCubeRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(-90deg)}50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}}@keyframes rotateCubeTopOut{50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}to{opacity:.3;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateCubeTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(-90deg)}50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}}@keyframes rotateCubeBottomOut{50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}to{opacity:.3;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateCubeBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(90deg)}50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}}@keyframes rotateCarouselLeftOut{to{opacity:.3;transform:translate(-150%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselLeftIn{0%{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightOut{to{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightIn{0%{opacity:.3;transform:translate(-200%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselTopOut{to{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateCarouselTopIn{0%{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomOut{to{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomIn{0%{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateSidesOut{to{opacity:0;transform:translateZ(-500px) rotateY(90deg)}}@keyframes rotateSidesIn{0%{opacity:0;transform:translateZ(-500px) rotateY(-90deg)}}@keyframes rotateSlideOut{25%{opacity:.5;transform:translateZ(-500px)}75%{opacity:.5;transform:translateZ(-500px) translate(-200%)}to{opacity:.5;transform:translateZ(-500px) translate(-200%)}}@keyframes rotateSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translate(200%)}75%{opacity:.5;transform:translateZ(-500px)}to{opacity:1;transform:translateZ(0) translate(0)}}@keyframes superRainbow{0%{background:red}20%{background:orange}40%{background:yellow}60%{background:green}80%{background:blue}to{background:violet}}.superRainbow{background-position:0 0;background-size:200% 100%;background-image:linear-gradient(90deg,red,orange,yellow,green,blue,violet)}.superRainbow:hover{background-position:-100% 100%}@keyframes statusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}
|
|
200
200
|
`,`.ring[data-v-8b4a3cb1]{position:relative;display:block;margin:0 auto;border-radius:50%;overflow:hidden;box-sizing:border-box}.ring-rotate[data-v-8b4a3cb1]{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box;border-radius:50%}.ring-content[data-v-8b4a3cb1]{position:absolute;overflow:hidden;box-sizing:border-box;border-radius:50%;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.ring-content>div[data-v-8b4a3cb1]:nth-child(1){font-size:20px;font-weight:700}.ring-content>div[data-v-8b4a3cb1]:nth-child(2){font-size:14px;margin-top:6px}.left[data-v-8b4a3cb1],.right[data-v-8b4a3cb1]{position:absolute;top:0;width:50%;height:100%;z-index:0}.left[data-v-8b4a3cb1]{left:0;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.5))}.right[data-v-8b4a3cb1]{right:0;background:linear-gradient(180deg,rgba(255,255,255,1),rgba(255,255,255,.5))}
|
|
201
|
-
`]],["__scopeId","data-v-8b4a3cb1"]]),kd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"ClockFlipper.ce",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,o=I(),r=I(40),n=I(20),a=I(20),i=(v,w)=>{r.value=Math.floor(v/(6+1)),n.value=Math.floor(w),a.value=Math.max(12,n.value)},l=()=>{e.initStart&&b(e.startTime)};let c;const u=()=>{c?.()},h=Zt([0,0,0,0,0,0]),f=Zt([0,0,0,0,0,0]),p=[0,0,0,0,0,0];let d=0;const b=v=>{v&&(Km(Qm(v),p),p.forEach((w,g)=>{h[g]=w,f[g]=w})),u(),d=0,_(pe(),0,!1),c=Tg((w,g,m)=>{_(w,g,m)},1e3)},_=(v,w,g)=>{if(g)d=w;else{if(d>0){p.forEach((k,C)=>{h[C]=k,f[C]=k});const m=d+1;e.creaseType=="increase"?(Ha(h,m),Ha(f,m+1)):(Wa(h,m),Wa(f,m+1)),d=0}else e.creaseType=="increase"?Ha(f,1):Wa(f,1);xi(()=>{f.forEach((m,k)=>{h[k]=m})},e.dur)}};return t({start:b,pause:u}),(v,w)=>(L(),Mt(xt,{ref_key:"containerRef",ref:o,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:i,onReady:l},{default:bt(()=>[E("div",{class:"clock-flipper",style:A({fontSize:a.value+"px",lineHeight:n.value+"px"})},[(L(!0),
|
|
201
|
+
`]],["__scopeId","data-v-8b4a3cb1"]]),kd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"ClockFlipper.ce",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,o=I(),r=I(40),n=I(20),a=I(20),i=(v,w)=>{r.value=Math.floor(v/(6+1)),n.value=Math.floor(w),a.value=Math.max(12,n.value)},l=()=>{e.initStart&&b(e.startTime)};let c;const u=()=>{c?.()},h=Zt([0,0,0,0,0,0]),f=Zt([0,0,0,0,0,0]),p=[0,0,0,0,0,0];let d=0;const b=v=>{v&&(Km(Qm(v),p),p.forEach((w,g)=>{h[g]=w,f[g]=w})),u(),d=0,_(pe(),0,!1),c=Tg((w,g,m)=>{_(w,g,m)},1e3)},_=(v,w,g)=>{if(g)d=w;else{if(d>0){p.forEach((k,C)=>{h[C]=k,f[C]=k});const m=d+1;e.creaseType=="increase"?(Ha(h,m),Ha(f,m+1)):(Wa(h,m),Wa(f,m+1)),d=0}else e.creaseType=="increase"?Ha(f,1):Wa(f,1);xi(()=>{f.forEach((m,k)=>{h[k]=m})},e.dur)}};return t({start:b,pause:u}),(v,w)=>(L(),Mt(xt,{ref_key:"containerRef",ref:o,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:i,onReady:l},{default:bt(()=>[E("div",{class:"clock-flipper",style:A({fontSize:a.value+"px",lineHeight:n.value+"px"})},[(L(!0),Y(Xt,null,ye(h,(g,m)=>(L(),Y(Xt,{key:m},[E("div",{class:te(["flip",[e.flipDirection,f[m]!=g?"go":""]]),style:A({width:r.value+"px"})},[E("div",{class:te(["front digital",[`flipper_${m}`,`number_${g}`]])},null,2),E("div",{class:te(["back digital",[`number_${f[m]}`]])},null,2)],6),m==1||m==3?(L(),Y("div",{key:0,class:"gap",style:A({fontSize:Math.floor(a.value*.6)+"px",lineHeight:0})}," : ",4)):Ot("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),[["styles",[`@keyframes frontFlipDown{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}}@keyframes backFlipDown{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}}@keyframes frontFlipUp{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}}@keyframes backFlipUp{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}}
|
|
202
202
|
`,`.clock-flipper[data-v-0a7bd62f]{position:relative;margin:0 auto;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;height:100%;font-family:D-DINCondensed-number}.flip[data-v-0a7bd62f]{position:relative;height:100%;box-sizing:border-box;color:var(--yz-clock-flipper-text-color)}.flip+.flip[data-v-0a7bd62f]{margin-left:var(--yz-clock-flipper-gap-double)}.flip.down .front[data-v-0a7bd62f]:after,.flip.down .back[data-v-0a7bd62f]:before{z-index:1}.flip.down .front[data-v-0a7bd62f]:before{z-index:3}.flip.down .back[data-v-0a7bd62f]:after{z-index:2;transform-origin:50% 0%;transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}.flip.down.go .front[data-v-0a7bd62f]:before{transform-origin:50% 100%;animation:frontFlipDown var(--yz-clock-flipper-animation-duration) ease-in-out both;backface-visibility:hidden;box-shadow:0 -2px 6px #ffffff4d}.flip.down.go .back[data-v-0a7bd62f]:after{animation:backFlipDown var(--yz-clock-flipper-animation-duration) ease-in-out both}.flip.up .front[data-v-0a7bd62f]:before,.flip.up .back[data-v-0a7bd62f]:after{z-index:1}.flip.up .front[data-v-0a7bd62f]:after{z-index:3}.flip.up .back[data-v-0a7bd62f]:before{z-index:2;transform-origin:50% 100%;transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}.flip.up.go .front[data-v-0a7bd62f]:after{transform-origin:50% 0;animation:frontFlipUp var(--yz-clock-flipper-animation-duration) ease-in-out both;backface-visibility:hidden;box-shadow:0 -2px 6px #ffffff4d}.flip.up.go .back[data-v-0a7bd62f]:before{animation:backFlipUp var(--yz-clock-flipper-animation-duration) ease-in-out both}.gap[data-v-0a7bd62f]{margin:0 var(--yz-clock-flipper-gap-four);color:var(--yz-clock-flipper-bg-color)}.digital[data-v-0a7bd62f]:before,.digital[data-v-0a7bd62f]:after{content:"";position:absolute;left:0;right:0;height:50%;box-sizing:border-box;background:var(--yz-clock-flipper-bg-color);overflow:hidden}.digital[data-v-0a7bd62f]:before{top:0;bottom:50%;border-radius:var(--yz-clock-flipper-border-radius) var(--yz-clock-flipper-border-radius) 0 0;border-bottom:solid var(--yz-clock-flipper-gap) var(--yz-clock-flipper-text-color)}.digital[data-v-0a7bd62f]:after{top:50%;bottom:0;border-radius:0 0 var(--yz-clock-flipper-border-radius) var(--yz-clock-flipper-border-radius);border-top:solid var(--yz-clock-flipper-gap) var(--yz-clock-flipper-text-color);line-height:0}.digital.number_0[data-v-0a7bd62f]:before,.digital.number_0[data-v-0a7bd62f]:after{content:"0"}.digital.number_1[data-v-0a7bd62f]:before,.digital.number_1[data-v-0a7bd62f]:after{content:"1"}.digital.number_2[data-v-0a7bd62f]:before,.digital.number_2[data-v-0a7bd62f]:after{content:"2"}.digital.number_3[data-v-0a7bd62f]:before,.digital.number_3[data-v-0a7bd62f]:after{content:"3"}.digital.number_4[data-v-0a7bd62f]:before,.digital.number_4[data-v-0a7bd62f]:after{content:"4"}.digital.number_5[data-v-0a7bd62f]:before,.digital.number_5[data-v-0a7bd62f]:after{content:"5"}.digital.number_6[data-v-0a7bd62f]:before,.digital.number_6[data-v-0a7bd62f]:after{content:"6"}.digital.number_7[data-v-0a7bd62f]:before,.digital.number_7[data-v-0a7bd62f]:after{content:"7"}.digital.number_8[data-v-0a7bd62f]:before,.digital.number_8[data-v-0a7bd62f]:after{content:"8"}.digital.number_9[data-v-0a7bd62f]:before,.digital.number_9[data-v-0a7bd62f]:after{content:"9"}
|
|
203
|
-
`]],["__scopeId","data-v-0a7bd62f"]]),Cd=Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"TextBackgroundClip.ce",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({}),(o,r)=>(L(),Mt(xt,null,{default:bt(()=>[E("div",{style:A({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},
|
|
204
|
-
`]],["__scopeId","data-v-370e136b"]]),D_={class:"slide-corner"},Sd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"SlideCorner.ce",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,o=Zt({});let r=1,n=r*2;const a=(c,u)=>{r=Math.ceil(Math.max(c,u)/Math.min(c,u)),n=r*2,o.width=o.height=Math.ceil(Math.min(c,u))+"px"},i=()=>{switch(e.direction){case"fromBottomLeft":o.top="100%",o.right="100%",o.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":o.top="100%",o.left="100%",o.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":o.bottom="100%",o.right="100%",o.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":o.bottom="100%",o.left="100%",o.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":o.top="50%",o.left="50%",o.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":o.top="100%",o.right="100%",o.transform=`translate(50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromBottomRight":o.top="100%",o.left="100%",o.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopLeft":o.bottom="100%",o.right="100%",o.transform=`translate(50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopRight":o.bottom="100%",o.left="100%",o.transform=`translate(-50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromCenter":o.top="50%",o.left="50%",o.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break}};return t({}),(c,u)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:l,onResize:a,style:{overflow:"hidden"}},{default:bt(()=>[E("div",{class:"slide-corner-before",style:A({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*
|
|
205
|
-
`]],["__scopeId","data-v-6065adbb"]]),L_={class:"line-single"},Ed=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"LineSingle.ce",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 o=1;const r=(l,c)=>{o=Math.ceil(Math.max(l,c)/Math.min(l,c))},n=Zt({});switch(e.location){case"underline":n.bottom="0";break;case"overline":n.top="0";break;case"through":n.top="50%";break}const a=()=>{switch(e.direction){case"right":n.transformOrigin="bottom right",n.transform="scaleX(0)";break;case"left":n.transformOrigin="bottom left",n.transform="scaleX(0)";break;case"fromCenter":n.transformOrigin="center",n.transform="scaleX(0)";break}},i=()=>{switch(e.direction){case"right":n.transformOrigin="bottom left",n.transform="scaleX(1)";break;case"left":n.transformOrigin="bottom right",n.transform="scaleX(1)";break;case"fromCenter":n.transformOrigin="center",n.transform="scaleX(1)";break}};return t({}),(l,c)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:i,onResize:r},{default:bt(()=>[E("div",{class:"line-single-before",style:A({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*
|
|
206
|
-
`]],["__scopeId","data-v-f6ff8ebf"]]),M_={class:"line-double"},Pd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"LineDouble.ce",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 o=1;const r=(u,h)=>{o=Math.ceil(Math.max(u,h)/Math.min(u,h))},n=Zt({}),a=Zt({}),i=Zt({});switch(e.location){case"horizontal":n.width="100%",n.height=e.lineHeight+"px",a.top="0",i.bottom="0";break;case"vertical":n.width=e.lineHeight+"px",n.height="100%",a.left="0",i.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":a.right="0",i.right="0",n.transformOrigin="center right",n.transform="scaleX(0)";break;case"vertical":a.bottom="0",i.bottom="0",n.transformOrigin="center bottom",n.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":a.left="0",i.left="0",n.transformOrigin="center left",n.transform="scaleX(0)";break;case"vertical":a.top="0",i.top="0",n.transformOrigin="center top",n.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":a.right="0",a.transformOrigin="center right",i.left="0",i.transformOrigin="center left",n.transform="scaleX(0)";break;case"vertical":a.bottom="0",a.transformOrigin="center bottom",i.top="0",i.transformOrigin="center top",n.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":a.left="50%",i.left="50%",n.transformOrigin="center",n.transform="translateX(-50%) scaleX(0)";break;case"vertical":a.top="50%",i.top="50%",n.transformOrigin="center",n.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":a.left="0",i.left="0",n.transformOrigin="center left",n.transform="scaleX(1)";break;case"vertical":a.top="0",i.top="0",n.transformOrigin="center top",n.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":a.right="0",i.right="0",n.transformOrigin="center right",n.transform="scaleX(1)";break;case"vertical":a.bottom="0",i.bottom="0",n.transformOrigin="center bottom",n.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":a.left="0",a.transformOrigin="center left",i.right="0",i.transformOrigin="center right",n.transform="scaleX(1)";break;case"vertical":a.top="0",a.transformOrigin="center top",i.bottom="0",i.transformOrigin="center bottom",n.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":a.left="50%",i.left="50%",n.transformOrigin="center",n.transform="translateX(-50%) scaleX(1)";break;case"vertical":a.top="50%",i.top="50%",n.transformOrigin="center",n.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:r},{default:bt(()=>[E("div",{class:"line-double-before",style:A({backgroundColor:e.color,transition:`transform ${e.timeGap*
|
|
203
|
+
`]],["__scopeId","data-v-0a7bd62f"]]),Cd=Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"TextBackgroundClip.ce",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({}),(o,r)=>(L(),Mt(xt,null,{default:bt(()=>[E("div",{style:A({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},yt(e.text),5)]),_:1}))}}),$_={class:"slide"},Td=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"Slide.ce",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,o=Zt({}),r=()=>{switch(e.direction){case"left":o.transformOrigin="center left",o.transform="scaleX(0)";break;case"right":o.transformOrigin="center right",o.transform="scaleX(0)";break;case"down":o.transformOrigin="center bottom",o.transform="scaleY(0)";break;case"up":o.transformOrigin="center top",o.transform="scaleY(0)";break}},n=()=>{switch(e.direction){case"left":o.transformOrigin="center right",o.transform="scaleX(1)";break;case"right":o.transformOrigin="center left",o.transform="scaleX(1)";break;case"down":o.transformOrigin="center top",o.transform="scaleY(1)";break;case"up":o.transformOrigin="center bottom",o.transform="scaleY(1)";break}};return t({}),(a,i)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n,style:{overflow:"hidden"}},{default:bt(()=>[E("div",{class:"slide-before",style:A({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...o})},null,4),E("div",$_,[kt(a.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.slide-before[data-v-370e136b]{position:absolute;z-index:0;inset:0;width:100%;height:100%}.slide[data-v-370e136b]{position:relative;z-index:1;cursor:pointer}
|
|
204
|
+
`]],["__scopeId","data-v-370e136b"]]),D_={class:"slide-corner"},Sd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"SlideCorner.ce",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,o=Zt({});let r=1,n=r*2;const a=(c,u)=>{r=Math.ceil(Math.max(c,u)/Math.min(c,u)),n=r*2,o.width=o.height=Math.ceil(Math.min(c,u))+"px"},i=()=>{switch(e.direction){case"fromBottomLeft":o.top="100%",o.right="100%",o.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":o.top="100%",o.left="100%",o.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":o.bottom="100%",o.right="100%",o.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":o.bottom="100%",o.left="100%",o.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":o.top="50%",o.left="50%",o.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":o.top="100%",o.right="100%",o.transform=`translate(50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromBottomRight":o.top="100%",o.left="100%",o.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopLeft":o.bottom="100%",o.right="100%",o.transform=`translate(50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopRight":o.bottom="100%",o.left="100%",o.transform=`translate(-50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromCenter":o.top="50%",o.left="50%",o.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break}};return t({}),(c,u)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:l,onResize:a,style:{overflow:"hidden"}},{default:bt(()=>[E("div",{class:"slide-corner-before",style:A({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Et(r)}ms ease-in-out`,transformOrigin:"center",...o})},null,4),E("div",D_,[kt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.slide-corner-before[data-v-6065adbb]{position:absolute;z-index:0}.slide-corner[data-v-6065adbb]{position:relative;z-index:1;cursor:pointer}
|
|
205
|
+
`]],["__scopeId","data-v-6065adbb"]]),L_={class:"line-single"},Ed=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"LineSingle.ce",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 o=1;const r=(l,c)=>{o=Math.ceil(Math.max(l,c)/Math.min(l,c))},n=Zt({});switch(e.location){case"underline":n.bottom="0";break;case"overline":n.top="0";break;case"through":n.top="50%";break}const a=()=>{switch(e.direction){case"right":n.transformOrigin="bottom right",n.transform="scaleX(0)";break;case"left":n.transformOrigin="bottom left",n.transform="scaleX(0)";break;case"fromCenter":n.transformOrigin="center",n.transform="scaleX(0)";break}},i=()=>{switch(e.direction){case"right":n.transformOrigin="bottom left",n.transform="scaleX(1)";break;case"left":n.transformOrigin="bottom right",n.transform="scaleX(1)";break;case"fromCenter":n.transformOrigin="center",n.transform="scaleX(1)";break}};return t({}),(l,c)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:i,onResize:r},{default:bt(()=>[E("div",{class:"line-single-before",style:A({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Et(o)}ms ease-in-out`,...n})},null,4),E("div",L_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.line-single-before[data-v-f6ff8ebf]{position:absolute;z-index:0}.line-single[data-v-f6ff8ebf]{position:relative;z-index:1;cursor:pointer}
|
|
206
|
+
`]],["__scopeId","data-v-f6ff8ebf"]]),M_={class:"line-double"},Pd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"LineDouble.ce",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 o=1;const r=(u,h)=>{o=Math.ceil(Math.max(u,h)/Math.min(u,h))},n=Zt({}),a=Zt({}),i=Zt({});switch(e.location){case"horizontal":n.width="100%",n.height=e.lineHeight+"px",a.top="0",i.bottom="0";break;case"vertical":n.width=e.lineHeight+"px",n.height="100%",a.left="0",i.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":a.right="0",i.right="0",n.transformOrigin="center right",n.transform="scaleX(0)";break;case"vertical":a.bottom="0",i.bottom="0",n.transformOrigin="center bottom",n.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":a.left="0",i.left="0",n.transformOrigin="center left",n.transform="scaleX(0)";break;case"vertical":a.top="0",i.top="0",n.transformOrigin="center top",n.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":a.right="0",a.transformOrigin="center right",i.left="0",i.transformOrigin="center left",n.transform="scaleX(0)";break;case"vertical":a.bottom="0",a.transformOrigin="center bottom",i.top="0",i.transformOrigin="center top",n.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":a.left="50%",i.left="50%",n.transformOrigin="center",n.transform="translateX(-50%) scaleX(0)";break;case"vertical":a.top="50%",i.top="50%",n.transformOrigin="center",n.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":a.left="0",i.left="0",n.transformOrigin="center left",n.transform="scaleX(1)";break;case"vertical":a.top="0",i.top="0",n.transformOrigin="center top",n.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":a.right="0",i.right="0",n.transformOrigin="center right",n.transform="scaleX(1)";break;case"vertical":a.bottom="0",i.bottom="0",n.transformOrigin="center bottom",n.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":a.left="0",a.transformOrigin="center left",i.right="0",i.transformOrigin="center right",n.transform="scaleX(1)";break;case"vertical":a.top="0",a.transformOrigin="center top",i.bottom="0",i.transformOrigin="center bottom",n.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":a.left="50%",i.left="50%",n.transformOrigin="center",n.transform="translateX(-50%) scaleX(1)";break;case"vertical":a.top="50%",i.top="50%",n.transformOrigin="center",n.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:r},{default:bt(()=>[E("div",{class:"line-double-before",style:A({backgroundColor:e.color,transition:`transform ${e.timeGap*Et(o)}ms ease-in-out`,...n,...a})},null,4),E("div",M_,[kt(u.$slots,"default",{},void 0,!0)]),E("div",{class:"line-double-after",style:A({backgroundColor:e.color,transition:`transform ${e.timeGap*Et(o)}ms ease-in-out`,...n,...i})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.line-double-before[data-v-dcf10fee],.line-double-after[data-v-dcf10fee]{position:absolute;z-index:0}.line-double[data-v-dcf10fee]{position:relative;z-index:1;cursor:pointer}
|
|
207
207
|
`]],["__scopeId","data-v-dcf10fee"]]),Od=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"Float.ce",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,o=Zt({willChange:"box-shadow, transform"}),r=()=>{switch(o.boxShadow="none",e.direction){case"left":o.transform="translateX(0)";break;case"right":o.transform="translateX(0)";break;case"down":o.transform="translateY(0)";break;case"up":o.transform="translateY(0)";break}},n=()=>{switch(o.boxShadow=e.boxShadow,e.direction){case"left":o.transform=`translateX(-${e.distance}px)`;break;case"right":o.transform=`translateX(${e.distance}px)`;break;case"down":o.transform=`translateY(${e.distance}px)`;break;case"up":o.transform=`translateY(-${e.distance}px)`;break}};return t({}),(a,i)=>(L(),Mt(xt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n},{default:bt(()=>[E("div",{class:"float",style:A({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...o})},[kt(a.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.float[data-v-e9e9dadd]{position:relative;z-index:1;cursor:pointer}
|
|
208
208
|
`]],["__scopeId","data-v-e9e9dadd"]]),Yn=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"CSSAnimation.ce",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 o=s,r=e,n=Zt({}),a=Zt({});let i=o.name,l=o.duration,c=o.timingFunction,u=o.delay,h=o.repeat,f=o.direction;function p(){switch(i){case"superRainbow":l=o.duration||15e3;break;case"heartBeat":l=o.duration||1300;break;case"statusProcessing":l=o.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=o.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=o.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=o.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=o.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=o.duration||600;break;default:l=o.duration||500;break}switch(i){case"superRainbow":c=o.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=o.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=o.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=o.timingFunction||"ease-in-out";break;default:c=o.timingFunction||"ease";break}switch(i){default:u=o.delay||0;break}switch(i){case"superRainbow":case"statusProcessing":h=o.repeat||"infinite";break;default:h=o.repeat||1;break}switch(i){case"superRainbow":f=o.direction||"alternate";break;default:f=o.direction||"normal";break}switch(i){case"hinge":case"rotateFall":a.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":a.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":a.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":a.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":a.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":a.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":a.transformOrigin="right bottom";break;default:delete a.transformOrigin;break}switch(i){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":n.overflow="visible";break;default:n.overflow="hidden";break}switch(i){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":a.backfaceVisibility="visible";break;default:delete a.backfaceVisibility;break}}St(()=>o.name,()=>{i=o.name,p()},{immediate:!0});const d=I(),b=I(),_=z=>{n.perspective=o.perspective,z.on("animationstart",tt=>{r("cssanimationstart",tt.animationName)}),z.on("animationend",tt=>{r("cssanimationend",tt.animationName)})};function v(){b.value.style.animation="none",b.value.offsetHeight,b.value.style.animation=null}const w=()=>{a.animation="none"},g=()=>{v(),a.animation=`${l}ms ${c} ${u}ms ${h} ${f} ${o.fillMode} ${o.playState} ${i}`};return t({trigger:z=>{z&&(i=z,p()),d.value.startEffect(),f="normal",d.value.endEffect()},triggerReverse:z=>{z&&(i=z,p()),d.value.startEffect(),f="reverse",d.value.endEffect()},clear:()=>{a.animation="none"}}),(z,tt)=>(L(),Mt(xt,{class:"css-animation",ref_key:"containerRef",ref:d,type:o.containerType,supportCopyText:o.supportCopyText,effectTriggerTiming:o.effectTriggerTiming,style:A(n),onReady:_,onStart:w,onEnd:g},{default:bt(()=>[E("div",{class:"css-animation-inner",ref_key:"animationRef",ref:b,style:A({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[kt(z.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutRight{to{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipInLeft{0%{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipOutLeft{to{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipInRight{0%{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipOutTop{to{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes flipInBottom{0%{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipOutBottom{to{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipInTop{0%{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes rotateFall{0%{transform:rotate(0)}20%{transform:rotate(10deg);animation-timing-function:ease-out}40%{transform:rotate(17deg)}60%{transform:rotate(16deg)}to{transform:translateY(100%) rotate(17deg)}}@keyframes rotateOutNewspaper{to{transform:translateZ(-3000px) rotate(360deg);opacity:0}}@keyframes rotateInNewspaper{0%{transform:translateZ(-3000px) rotate(-360deg);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}@keyframes rotateRightSideFirst{40%{transform:rotateY(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateLeftSideFirst{40%{transform:rotateY(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateTopSideFirst{40%{transform:rotateX(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateBottomSideFirst{40%{transform:rotateX(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotatePushLeft{to{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePushRight{to{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePushTop{to{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePushBottom{to{opacity:0;transform:rotateX(90deg)}}@keyframes rotatePullRight{0%{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePullLeft{0%{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePullTop{0%{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePullBottom{0%{opacity:0;transform:rotateX(90deg)}}@keyframes rotateFoldRight{to{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateFoldLeft{to{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateFoldTop{to{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateFoldBottom{to{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateUnfoldLeft{0%{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateUnfoldRight{0%{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateUnfoldTop{0%{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateUnfoldBottom{0%{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes moveToLeft{to{transform:translate(-100%)}}@keyframes moveFromLeft{0%{transform:translate(-100%)}}@keyframes moveToRight{to{transform:translate(100%)}}@keyframes moveFromRight{0%{transform:translate(100%)}}@keyframes moveToTop{to{transform:translateY(-100%)}}@keyframes moveFromTop{0%{transform:translateY(-100%)}}@keyframes moveToBottom{to{transform:translateY(100%)}}@keyframes moveFromBottom{0%{transform:translateY(100%)}}@keyframes fade{to{opacity:.3}}@keyframes moveToLeftFade{to{opacity:.3;transform:translate(-100%)}}@keyframes moveFromLeftFade{0%{opacity:.3;transform:translate(-100%)}}@keyframes moveToRightFade{to{opacity:.3;transform:translate(100%)}}@keyframes moveFromRightFade{0%{opacity:.3;transform:translate(100%)}}@keyframes moveToTopFade{to{opacity:.3;transform:translateY(-100%)}}@keyframes moveFromTopFade{0%{opacity:.3;transform:translateY(-100%)}}@keyframes moveToBottomFade{to{opacity:.3;transform:translateY(100%)}}@keyframes moveFromBottomFade{0%{opacity:.3;transform:translateY(100%)}}@keyframes scaleToSmall{to{opacity:0;transform:scale(.8)}}@keyframes scaleFromSmall{0%{opacity:0;transform:scale(.8)}}@keyframes scaleFromLarge{0%{opacity:0;transform:scale(1.2)}}@keyframes scaleToLarge{to{opacity:0;transform:scale(1.2)}}@keyframes scaleToSmallCenter{to{opacity:0;transform:scale(.7)}}@keyframes scaleFromSmallCenter{0%{opacity:0;transform:scale(.7)}}@keyframes rotateRoomLeftOut{to{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightOut{to{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomTopOut{to{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateRoomTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomOut{to{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateCubeLeftOut{50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}to{opacity:.3;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateCubeLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(90deg)}50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}}@keyframes rotateCubeRightOut{50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}to{opacity:.3;transform:translate(100%) rotateY(90deg)}}@keyframes rotateCubeRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(-90deg)}50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}}@keyframes rotateCubeTopOut{50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}to{opacity:.3;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateCubeTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(-90deg)}50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}}@keyframes rotateCubeBottomOut{50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}to{opacity:.3;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateCubeBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(90deg)}50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}}@keyframes rotateCarouselLeftOut{to{opacity:.3;transform:translate(-150%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselLeftIn{0%{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightOut{to{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightIn{0%{opacity:.3;transform:translate(-200%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselTopOut{to{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateCarouselTopIn{0%{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomOut{to{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomIn{0%{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateSidesOut{to{opacity:0;transform:translateZ(-500px) rotateY(90deg)}}@keyframes rotateSidesIn{0%{opacity:0;transform:translateZ(-500px) rotateY(-90deg)}}@keyframes rotateSlideOut{25%{opacity:.5;transform:translateZ(-500px)}75%{opacity:.5;transform:translateZ(-500px) translate(-200%)}to{opacity:.5;transform:translateZ(-500px) translate(-200%)}}@keyframes rotateSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translate(200%)}75%{opacity:.5;transform:translateZ(-500px)}to{opacity:1;transform:translateZ(0) translate(0)}}@keyframes superRainbow{0%{background:red}20%{background:orange}40%{background:yellow}60%{background:green}80%{background:blue}to{background:violet}}.superRainbow{background-position:0 0;background-size:200% 100%;background-image:linear-gradient(90deg,red,orange,yellow,green,blue,violet)}.superRainbow:hover{background-position:-100% 100%}@keyframes statusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}
|
|
209
209
|
`]]]),A_={class:"circle"},Id=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"Circle.ce",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,o=I(),r=Zt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),n=(l,c)=>{r.width=r.height=Math.ceil(Math.max(l,c))+"px",o.value?.repeatEffect?.()},a=()=>{const l=ge(e.color,.2).toString();r.boxShadow=`
|
|
@@ -217,6 +217,6 @@ Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function em(s){retur
|
|
|
217
217
|
inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
|
|
218
218
|
inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
|
|
219
219
|
`};return t({}),(l,c)=>(L(),Mt(xt,{ref_key:"containerRef",ref:o,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:i,onResize:n},{default:bt(()=>[E("div",{class:"circle-before",style:A(r)},null,4),E("div",A_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.circle-before[data-v-1c3f9baa]{position:absolute;z-index:2}.circle[data-v-1c3f9baa]{position:relative;z-index:1;cursor:pointer}
|
|
220
|
-
`]],["__scopeId","data-v-1c3f9baa"]]),Rd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"BorderFocusText.ce",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,o=I(!0),r=()=>{o.value=!0},n=()=>{o.value=!1};return t({}),(a,i)=>(L(),Mt(xt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n},{default:bt(()=>[o.value?(L(),
|
|
221
|
-
`]],["__scopeId","data-v-45681ed0"]]),N_={class:"svg"},z_=[zc('<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)],B_=Q({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(L(),
|
|
220
|
+
`]],["__scopeId","data-v-1c3f9baa"]]),Rd=it(Q({customOptions:{Container:xt},inheritAttrs:!0,__name:"BorderFocusText.ce",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,o=I(!0),r=()=>{o.value=!0},n=()=>{o.value=!1};return t({}),(a,i)=>(L(),Mt(xt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n},{default:bt(()=>[o.value?(L(),Y("div",{key:0,class:"text",style:A({fontSize:`${a.textSize}px`,top:`${-Math.ceil(a.textSize/2)-4}px`,padding:"4px 12px",backgroundColor:a.borderColor,borderRadius:`${a.textSize}px 0 ${a.textSize}px 0`,color:Et(ge)(a.borderColor).opposite(!0,"#333333","#ffffff").toString()})},yt(e.text),5)):Ot("",!0),E("div",{class:"inner",style:A(o.value?{border:`${a.borderWidth}px solid ${a.borderColor}`,borderRadius:`${a.borderRadius}px`}:{})},[kt(a.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.text[data-v-45681ed0]{position:absolute;top:0;left:0;z-index:1}.inner[data-v-45681ed0]{position:relative;overflow:hidden;box-sizing:border-box}
|
|
221
|
+
`]],["__scopeId","data-v-45681ed0"]]),N_={class:"svg"},z_=[zc('<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)],B_=Q({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(L(),Y("svg",N_,z_))}}),qw="",Fd=it(B_,[["__scopeId","data-v-7ee5c19e"]]),$d=Q({customOptions:{Container:xt,SVGMaskNapkin:Fd},inheritAttrs:!0,__name:"ImageMask.ce",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,o=I(0),r=I(0),n=(a,i)=>{o.value=a,r.value=i};return t({}),(a,i)=>(L(),Y("div",{style:A({width:`${o.value}px`,height:`${r.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[kt(a.$slots,"mask",{},()=>[lt(Fd)]),lt(xt,{type:"shrink",onResize:n},{default:bt(()=>[kt(a.$slots,"default")]),_:3})],4))}});class Y_ extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(t=>{if(t.media){const e=()=>{(t.media===this.video.currentSrc||!this.previousSiblingIsPlaying(t,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:t.media,handler:e}),window.matchMedia(t.media).addEventListener("change",e)}})}unbindMediaListeners(){this.listenedMedia.forEach(t=>{window.matchMedia(t.media).removeEventListener("change",t.handler)})}previousSiblingIsPlaying(t,e){const o=t;for(;t.previousElementSibling;)if(o.src===e)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const t=this.video.currentTime,e=this.video.playState;this.video.load();const o=()=>{this.video.playState=e,this.video.currentTime=t.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",o)};this.video.addEventListener("loadeddata",o)}}const V_=Y_;function X_(s,t="style.css"){for(let e of s){const o=document.querySelector(e)?.shadowRoot;if(o){const r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("href",t),o.appendChild(r)}}}const sl={},rl={},$t=(s,t,e=!0)=>{const o=s.__name;sl[o]=[];let r=[...s.styles||[]],n=0;for(let a in s.customOptions)sl[o].push(a),`${s.customOptions[a].__scopeId}`,r=[...(sl[a]||[]).reduce((i,l)=>(i.push(...(rl[l]||[]).map(c=>uu(c))),i),[]),...(t[n++]?.styles||[]).map(i=>uu(i)),...r],rl[a]=r;if(e)s.styles=r;else for(let a of s.styles){const i=document.createElement("style");i.innerHTML=a,document.head.insertBefore(i,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return rl[o]=r,s},G_=()=>{customElements.define("yz-loading-1",pt(Vb)),customElements.define("yz-loading-2",pt(Ub)),customElements.define("yz-loading-3",pt(Hb)),customElements.define("yz-loading-4",pt(qb)),customElements.define("yz-loading-5",pt(Jb)),customElements.define("yz-loading-6",pt(o_)),customElements.define("yz-loading-7",pt(n_)),customElements.define("yz-loading-8",pt(gd)),customElements.define("yz-loading-9",pt(h_)),customElements.define("yz-loading-10",pt(m_)),customElements.define("yz-loading-11",pt(yd));const s=pt(Dh);customElements.define("yz-icon",s),$t(fs,[yd]);const t=pt(fs);customElements.define("yz-button",t);const e=pt($1);customElements.define("yz-layout-mobile",e);const o=pt(D1);customElements.define("yz-layout-center",o),$t(ps,[Mn,ue]);const r=pt(ps);customElements.define("yz-pop",r),$t(An,[Mn,ps,Dh,fs]);const n=pt(An);customElements.define("yz-dialog",n),$t(jh,[Mn,ps,An,gd]);const a=pt(jh);customElements.define("yz-dialog-loading",a),$t(Hh,[Mn,ps,An]);const i=pt(Hh);customElements.define("yz-dialog-toast",i);const l=pt(Iy);customElements.define("yz-select",l),$t(Lh,[Mb]);const c=pt(Lh);customElements.define("yz-select-absolute",c);const u=pt(Ny);customElements.define("yz-switch",u);const h=pt(Bi);customElements.define("yz-boolean-box",h),$t(Yi,[Bi]);const f=pt(Yi);customElements.define("yz-radio-group",f),$t(Vi,[Bi]);const p=pt(Vi);customElements.define("yz-checkbox-group",p),$t(ji,[ps,fs,ue]);const d=pt(ji);customElements.define("yz-popover",d),$t(nd,[ji,ue]);const b=pt(nd);customElements.define("yz-color-picker",b);const _=pt(Zv);customElements.define("yz-resize-observer",_);const v=pt(qv);customElements.define("yz-map-tianditu",v),$t(Ki,[ps,Pb,ue]);const w=pt(Ki);customElements.define("yz-plate-keyboard",w),$t(sd,[Tb,Ki]);const g=pt(sd);customElements.define("yz-plate-mobile",g),$t(Yh,[Fb]);const m=pt(Yh);customElements.define("yz-slide-left-item",m);const k=pt(Bv);customElements.define("yz-plate-display",k);const C=pt(lv);customElements.define("yz-tabs",C);const z=pt(Qv);customElements.define("yz-fps-stats",z),$t(Ji,[fs,xr]);const tt=pt(Ji);customElements.define("yz-ease-graph-display",tt),$t(id,[Ji]);const R=pt(id);customElements.define("yz-ease-group-graph-display",R),$t(tl,[fs,xr]);const D=pt(tl);customElements.define("yz-interpolation-graph-display",D),$t(fd,[tl]);const M=pt(fd);customElements.define("yz-interpolation-group-graph-display",M);const $=pt(Zi);customElements.define("yz-progress-bar",$),$t(Wh,[Zi]);const N=pt(Wh);customElements.define("yz-page-vertical-scroll-progress-bar",N),$t(md,[fs,Xi,ab,xr]);const G=pt(md);customElements.define("yz-svg-and-canvas",G),customElements.define("yz-hand-write-panel",pt(uv)),$t(Vh,[Zi]);const st=pt(Vh);customElements.define("yz-video",st),customElements.define("yz-input",pt(s1)),customElements.define("yz-input-range",pt(Xi)),$t(Nh,[ue]);const K=pt(Nh);customElements.define("yz-input-range-box",K),$t(Ah,[xr]),customElements.define("yz-input-range-canvas",pt(Ah)),$t(zh,[Yn]);const q=pt(zh);customElements.define("yz-status",q),customElements.define("yz-input-file-drop",pt(p1)),customElements.define("yz-accordion",pt(b1)),$t(Gi,[ue]);const nt=pt(Gi);customElements.define("yz-image",nt);const U=pt(ue);customElements.define("yz-container",U),$t(Yn,[ue]);const H=pt(Yn);customElements.define("yz-effect-css-animation",H),$t(Hi,[ue,Yn]);const gt=pt(Hi);customElements.define("yz-page",gt),$t(Wi,[Hi,ue]);const ft=pt(Wi);customElements.define("yz-routes",ft),$t(Gh,[Gi,ue,Wi]);const V=pt(Gh);customElements.define("yz-image-view",V);const P=pt(k_);customElements.define("yz-card-flip",P),$t(bd,[Yi,Vi,Xi]);const Vt=pt(bd);customElements.define("yz-cube",Vt),$t(_d,[xr]);const Nt=pt(_d);customElements.define("yz-chat-ring-indicator",Nt),$t(wd,[ue]);const Ct=pt(wd);customElements.define("yz-chat-ring-text",Ct),$t(kd,[ue]);const Kt=pt(kd);customElements.define("yz-chat-clock-flipper",Kt),$t(Cd,[ue]);const Gt=pt(Cd);customElements.define("yz-effect-text-background-clip",Gt),$t(Td,[ue]);const j=pt(Td);customElements.define("yz-effect-slide",j),$t(Sd,[ue]);const $e=pt(Sd);customElements.define("yz-effect-slide-corner",$e),$t(Ed,[ue]);const Ve=pt(Ed);customElements.define("yz-effect-line-single",Ve),$t(Pd,[ue]);const Ie=pt(Pd);customElements.define("yz-effect-line-double",Ie),$t(Od,[ue]);const S=pt(Od);customElements.define("yz-effect-float",S),$t(Id,[ue]);const F=pt(Id);customElements.define("yz-effect-circle",F),$t(Rd,[ue]);const X=pt(Rd);customElements.define("yz-effect-border-focus-text",X),$t($d,[ue,zb]);const W=pt($d);customElements.define("yz-effect-image-mask",W),customElements.define("yz-responsive-video",V_);const Z=document.getElementById("teleport")||document.documentElement,rt=document.createElement("yz-dialog-toast");rt.id="globalDialogToast",Z?.appendChild(rt);const ct=document.createElement("yz-dialog-loading");ct.id="globalDialogLoading",Z?.appendChild(ct);const J=document.createElement("yz-dialog");J.id="globalDialog",Z?.appendChild(J);const at=document.createElement("yz-plate-keyboard");at.id="globalPlateKeyboard",Z?.appendChild(at)};return he.dialog=_v,he.install=G_,he.linkChildrenComponentsStyles=X_,he.loading=bv,he.mergeChildComponentCSS=$t,he.plateKeyboard=od,he.popAbsolute=ed,he.popAbsoluteSample=Sv,he.popBottom=qh,he.popBottomSample=xv,he.popCenter=td,he.popCenterSample=Tv,he.popLeft=Kh,he.popLeftSample=kv,he.popRight=Jh,he.popRightSample=Cv,he.popTop=Qh,he.popTopSample=wv,he.toast=vv,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"}),he}({});
|
|
222
222
|
//# sourceMappingURL=yz_custom_element.iife.js.map
|