@zyzgroup/core-vue 0.0.21 → 0.0.23
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/style.css +1 -1
- package/ce/yz_custom_element.iife.js +139 -146
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +21754 -18479
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +139 -146
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +46 -54
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +17892 -15890
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +46 -54
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/components/Accordion.ce.vue.d.ts +6 -6
- package/types/components/Accordion.vue.d.ts +6 -6
- package/types/components/Canvas.ce.vue.d.ts +7 -0
- package/types/components/Canvas.vue.d.ts +7 -0
- package/types/components/CardFlip.ce.vue.d.ts +1 -1
- package/types/components/CardFlip.vue.d.ts +1 -1
- package/types/components/Container.ce.vue.d.ts +69 -0
- package/types/components/Container.vue.d.ts +69 -0
- package/types/components/Cube.ce.vue.d.ts +1 -1
- package/types/components/Cube.vue.d.ts +1 -1
- package/types/components/Dialog.ce.vue.d.ts +5 -10
- package/types/components/Dialog.vue.d.ts +5 -10
- package/types/components/DialogLoading.ce.vue.d.ts +5 -10
- package/types/components/DialogLoading.vue.d.ts +5 -10
- package/types/components/DialogToast.ce.vue.d.ts +5 -10
- package/types/components/DialogToast.vue.d.ts +5 -10
- package/types/components/EaseGraphDisplay.ce.vue.d.ts +1 -1
- package/types/components/EaseGraphDisplay.vue.d.ts +1 -1
- package/types/components/Icon.ce.vue.d.ts +1 -1
- package/types/components/Icon.vue.d.ts +1 -1
- package/types/components/Image.ce.vue.d.ts +14 -8
- package/types/components/Image.vue.d.ts +14 -8
- package/types/components/ImageView.ce.vue.d.ts +6 -0
- package/types/components/ImageView.vue.d.ts +6 -0
- package/types/components/InterpolationGraphDisplay.ce.vue.d.ts +6 -6
- package/types/components/InterpolationGraphDisplay.vue.d.ts +6 -6
- package/types/components/Overlay.ce.vue.d.ts +8 -7
- package/types/components/Overlay.vue.d.ts +8 -7
- package/types/components/Page.ce.vue.d.ts +75 -0
- package/types/components/Page.vue.d.ts +75 -0
- package/types/components/PageVerticalScrollProgressBar.ce.vue.d.ts +1 -1
- package/types/components/PageVerticalScrollProgressBar.vue.d.ts +1 -1
- package/types/components/Pop.ce.vue.d.ts +41 -10
- package/types/components/Pop.vue.d.ts +41 -10
- package/types/components/ProgressBar.ce.vue.d.ts +1 -3
- package/types/components/ProgressBar.vue.d.ts +1 -3
- package/types/components/Routes.ce.vue.d.ts +45 -17
- package/types/components/Routes.vue.d.ts +45 -17
- package/types/components/SVG.ce.vue.d.ts +2 -0
- package/types/components/SVG.vue.d.ts +2 -0
- package/types/components/SVGAndCanvas.ce.vue.d.ts +1 -1
- package/types/components/SVGAndCanvas.vue.d.ts +1 -1
- package/types/components/SlideLeftItem.ce.vue.d.ts +1 -1
- package/types/components/SlideLeftItem.vue.d.ts +1 -1
- package/types/components/Tabs.ce.vue.d.ts +3 -13
- package/types/components/Tabs.vue.d.ts +3 -13
- package/types/components/Video.ce.vue.d.ts +1 -1
- package/types/components/Video.vue.d.ts +1 -1
- package/types/components/chat/ClockFlipper.ce.vue.d.ts +77 -0
- package/types/components/chat/ClockFlipper.vue.d.ts +77 -0
- package/types/components/chat/RingText.ce.vue.d.ts +49 -0
- package/types/components/chat/RingText.vue.d.ts +49 -0
- package/types/components/effect/BorderFocusText.ce.vue.d.ts +72 -0
- package/types/components/effect/BorderFocusText.vue.d.ts +72 -0
- package/types/components/effect/CSSAnimation.ce.vue.d.ts +89 -0
- package/types/components/effect/CSSAnimation.vue.d.ts +89 -0
- package/types/components/effect/CSSTransition.ce.vue.d.ts +68 -0
- package/types/components/effect/CSSTransition.vue.d.ts +68 -0
- package/types/components/effect/Circle.ce.vue.d.ts +59 -0
- package/types/components/effect/Circle.vue.d.ts +59 -0
- package/types/components/effect/Float.ce.vue.d.ts +67 -0
- package/types/components/effect/Float.vue.d.ts +67 -0
- package/types/components/effect/ImageMask.ce.vue.d.ts +42 -0
- package/types/components/effect/ImageMask.vue.d.ts +42 -0
- package/types/components/effect/LineDouble.ce.vue.d.ts +72 -0
- package/types/components/effect/LineDouble.vue.d.ts +72 -0
- package/types/components/effect/LineSingle.ce.vue.d.ts +72 -0
- package/types/components/effect/LineSingle.vue.d.ts +72 -0
- package/types/components/effect/Slide.ce.vue.d.ts +62 -0
- package/types/components/effect/Slide.vue.d.ts +62 -0
- package/types/components/effect/SlideCorner.ce.vue.d.ts +62 -0
- package/types/components/effect/SlideCorner.vue.d.ts +62 -0
- package/types/components/effect/TextBackgroundClip.ce.vue.d.ts +34 -0
- package/types/components/effect/TextBackgroundClip.vue.d.ts +34 -0
- package/types/components/form/CheckboxGroup.ce.vue.d.ts +94 -0
- package/types/components/form/CheckboxGroup.vue.d.ts +94 -0
- package/types/components/form/Input.ce.vue.d.ts +98 -0
- package/types/components/form/Input.vue.d.ts +98 -0
- package/types/components/form/RadioGroup.ce.vue.d.ts +94 -0
- package/types/components/form/RadioGroup.vue.d.ts +94 -0
- package/types/components/layout/LayoutCenter.ce.vue.d.ts +3 -3
- package/types/components/layout/LayoutCenter.vue.d.ts +3 -3
- package/types/components/loading/Loading11.ce.vue.d.ts +1 -1
- package/types/components/loading/Loading11.vue.d.ts +1 -1
- package/types/components/svg/SVGCheck.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGCheck.vue.d.ts +1 -1
- package/types/components/svg/SVGCleanUp.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGCleanUp.vue.d.ts +1 -1
- package/types/components/svg/SVGDelete.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGDelete.vue.d.ts +1 -1
- package/types/components/svg/SVGDown.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGDown.vue.d.ts +1 -1
- package/types/components/svg/SVGElement.ce.vue.d.ts +65 -0
- package/types/components/svg/SVGElement.vue.d.ts +65 -0
- package/types/components/svg/SVGFail.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGFail.vue.d.ts +1 -1
- package/types/components/svg/SVGHome.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGHome.vue.d.ts +1 -1
- package/types/components/svg/SVGLock.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGLock.vue.d.ts +1 -1
- package/types/components/svg/SVGMaskNapkin.ce.vue.d.ts +2 -0
- package/types/components/svg/SVGMaskNapkin.vue.d.ts +2 -0
- package/types/components/svg/SVGPrompt.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGPrompt.vue.d.ts +1 -1
- package/types/components/svg/SVGQuestion.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGQuestion.vue.d.ts +1 -1
- package/types/components/svg/SVGReturn.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGReturn.vue.d.ts +1 -1
- package/types/components/svg/SVGSuccess.vue.d.ts +1 -1
- package/types/components/svg/SVGWaiting.ce.vue.d.ts +1 -1
- package/types/components/svg/SVGWaiting.vue.d.ts +1 -1
- package/types/globalTeleport.d.ts +42 -6
- package/types/lib.d.ts +20 -5
- package/types/types.d.ts +3 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var YZCustomElement=function(
|
|
1
|
+
var YZCustomElement=function(ce){"use strict";/**
|
|
2
2
|
* @vue/shared v3.4.25
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function _o(o,t){const e=new Set(o.split(","));return t?s=>e.has(s.toLowerCase()):s=>e.has(s)}const Ht={}.NODE_ENV!=="production"?Object.freeze({}):{},xo={}.NODE_ENV!=="production"?Object.freeze([]):[],ue=()=>{},Dh=()=>!1,No=o=>o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&(o.charCodeAt(2)>122||o.charCodeAt(2)<97),wr=o=>o.startsWith("onUpdate:"),se=Object.assign,Kn=(o,t)=>{const e=o.indexOf(t);e>-1&&o.splice(e,1)},$h=Object.prototype.hasOwnProperty,$t=(o,t)=>$h.call(o,t),kt=Array.isArray,Hs=o=>kr(o)==="[object Map]",nl=o=>kr(o)==="[object Set]",Ot=o=>typeof o=="function",le=o=>typeof o=="string",Zs=o=>typeof o=="symbol",Ut=o=>o!==null&&typeof o=="object",Qn=o=>(Ut(o)||Ot(o))&&Ot(o.then)&&Ot(o.catch),al=Object.prototype.toString,kr=o=>al.call(o),Jn=o=>kr(o).slice(8,-1),il=o=>kr(o)==="[object Object]",ta=o=>le(o)&&o!=="NaN"&&o[0]!=="-"&&""+parseInt(o,10)===o,Ao=_o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Lh=_o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Cr=o=>{const t=Object.create(null);return e=>t[e]||(t[e]=o(e))},Mh=/-(\w)/g,fs=Cr(o=>o.replace(Mh,(t,e)=>e?e.toUpperCase():"")),Nh=/\B([A-Z])/g,Be=Cr(o=>o.replace(Nh,"-$1").toLowerCase()),Tr=Cr(o=>o.charAt(0).toUpperCase()+o.slice(1)),Ws=Cr(o=>o?`on${Tr(o)}`:""),Is=(o,t)=>!Object.is(o,t),zo=(o,t)=>{for(let e=0;e<o.length;e++)o[e](t)},ll=(o,t,e)=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!1,value:e})},Ah=o=>{const t=parseFloat(o);return isNaN(t)?o:t},cl=o=>{const t=le(o)?Number(o):NaN;return isNaN(t)?o:t};let ul;const ea=()=>ul||(ul=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function D(o){if(kt(o)){const t={};for(let e=0;e<o.length;e++){const s=o[e],r=le(s)?Bh(s):D(s);if(r)for(const n in r)t[n]=r[n]}return t}else if(le(o)||Ut(o))return o}const zh=/;(?![^(]*\))/g,Vh=/:([^]+)/,Yh=/\/\*[^]*?\*\//g;function Bh(o){const t={};return o.replace(Yh,"").split(zh).forEach(e=>{if(e){const s=e.split(Vh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function te(o){let t="";if(le(o))t=o;else if(kt(o))for(let e=0;e<o.length;e++){const s=te(o[e]);s&&(t+=s+" ")}else if(Ut(o))for(const e in o)o[e]&&(t+=e+" ");return t.trim()}const Xh=_o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function dl(o){return!!o||o===""}const vt=o=>le(o)?o:o==null?"":kt(o)||Ut(o)&&(o.toString===al||!Ot(o.toString))?JSON.stringify(o,hl,2):String(o),hl=(o,t)=>t&&t.__v_isRef?hl(o,t.value):Hs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[s,r],n)=>(e[sa(s,n)+" =>"]=r,e),{})}:nl(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>sa(e))}:Zs(t)?sa(t):Ut(t)&&!kt(t)&&!il(t)?String(t):t,sa=(o,t="")=>{var e;return Zs(o)?`Symbol(${(e=o.description)!=null?e:t})`:o};/**
|
|
6
6
|
* @vue/reactivity v3.4.25
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/function Bs(s,...e){console.warn(`[Vue warn] ${s}`,...e)}let is;class fd{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=is,!e&&is&&(this.index=(is.scopes||(is.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=is;try{return is=this,e()}finally{is=t}}else({}).NODE_ENV!=="production"&&Bs("cannot run an inactive effect scope.")}on(){is=this}off(){is=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function pd(s,e=is){e&&e.active&&e.effects.push(s)}function md(){return is}let un;class io{constructor(e,t,n,i){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,pd(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ss();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(gd(t.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ks()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=js,t=un;try{return js=!0,un=this,this._runnings++,cl(this),this.fn()}finally{ul(this),this._runnings--,un=t,js=e}}stop(){var e;this.active&&(cl(this),ul(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function gd(s){return s.value}function cl(s){s._trackId++,s._depsLength=0}function ul(s){if(s.deps.length>s._depsLength){for(let e=s._depsLength;e<s.deps.length;e++)hl(s.deps[e],s);s.deps.length=s._depsLength}}function hl(s,e){const t=s.get(e);t!==void 0&&e._trackId!==t&&(s.delete(e),s.size===0&&s.cleanup())}let js=!0,ro=0;const dl=[];function Ss(){dl.push(js),js=!1}function ks(){const s=dl.pop();js=s===void 0?!0:s}function oo(){ro++}function ao(){for(ro--;!ro&&lo.length;)lo.shift()()}function fl(s,e,t){var n;if(e.get(s)!==s._trackId){e.set(s,s._trackId);const i=s.deps[s._depsLength];i!==e?(i&&hl(i,s),s.deps[s._depsLength++]=e):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,lt({effect:s},t)))}}const lo=[];function pl(s,e,t){var n;oo();for(const i of s.keys()){let r;i._dirtyLevel<e&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,lt({effect:i},t))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&lo.push(i.scheduler)))}ao()}const ml=(s,e)=>{const t=new Map;return t.cleanup=s,t.computed=e,t},co=new WeakMap,hn=Symbol({}.NODE_ENV!=="production"?"iterate":""),uo=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Pt(s,e,t){if(js&&un){let n=co.get(s);n||co.set(s,n=new Map);let i=n.get(t);i||n.set(t,i=ml(()=>n.delete(t))),fl(un,i,{}.NODE_ENV!=="production"?{target:s,type:e,key:t}:void 0)}}function ds(s,e,t,n,i,r){const o=co.get(s);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(t==="length"&&ve(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!ln(u)&&u>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(o.get(t)),e){case"add":ve(s)?to(t)&&a.push(o.get("length")):(a.push(o.get(hn)),an(s)&&a.push(o.get(uo)));break;case"delete":ve(s)||(a.push(o.get(hn)),an(s)&&a.push(o.get(uo)));break;case"set":an(s)&&a.push(o.get(hn));break}oo();for(const l of a)l&&pl(l,4,{}.NODE_ENV!=="production"?{target:s,type:e,key:t,newValue:n,oldValue:i,oldTarget:r}:void 0);ao()}const vd=In("__proto__,__v_isRef,__isVue"),gl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(ln)),vl=yd();function yd(){const s={};return["includes","indexOf","lastIndexOf"].forEach(e=>{s[e]=function(...t){const n=Ne(this);for(let r=0,o=this.length;r<o;r++)Pt(n,"get",r+"");const i=n[e](...t);return i===-1||i===!1?n[e](...t.map(Ne)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{s[e]=function(...t){Ss(),oo();const n=Ne(this)[e].apply(this,t);return ao(),ks(),n}}),s}function bd(s){ln(s)||(s=String(s));const e=Ne(this);return Pt(e,"has",s),e.hasOwnProperty(s)}class yl{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const i=this._isReadonly,r=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return r;if(t==="__v_raw")return n===(i?r?Pl:Ol:r?Tl:El).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=ve(e);if(!i){if(o&&Ve(vl,t))return Reflect.get(vl,t,n);if(t==="hasOwnProperty")return bd}const a=Reflect.get(e,t,n);return(ln(t)?gl.has(t):vd(t))||(i||Pt(e,"get",t),r)?a:It(a)?o&&to(t)?a:a.value:Xe(a)?i?Il(a):kt(a):a}}class bl extends yl{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];if(!this._isShallow){const l=dn(r);if(!fn(n)&&!dn(n)&&(r=Ne(r),n=Ne(n)),!ve(e)&&It(r)&&!It(n))return l?!1:(r.value=n,!0)}const o=ve(e)&&to(t)?Number(t)<e.length:Ve(e,t),a=Reflect.set(e,t,n,i);return e===Ne(i)&&(o?Gs(n,r)&&ds(e,"set",t,n,r):ds(e,"add",t,n)),a}deleteProperty(e,t){const n=Ve(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&ds(e,"delete",t,void 0,i),r}has(e,t){const n=Reflect.has(e,t);return(!ln(t)||!gl.has(t))&&Pt(e,"has",t),n}ownKeys(e){return Pt(e,"iterate",ve(e)?"length":hn),Reflect.ownKeys(e)}}class _l extends yl{constructor(e=!1){super(!0,e)}set(e,t){return{}.NODE_ENV!=="production"&&Bs(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return{}.NODE_ENV!=="production"&&Bs(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const _d=new bl,xd=new _l,wd=new bl(!0),Cd=new _l(!0),ho=s=>s,Ri=s=>Reflect.getPrototypeOf(s);function Vi(s,e,t=!1,n=!1){s=s.__v_raw;const i=Ne(s),r=Ne(e);t||(Gs(e,r)&&Pt(i,"get",e),Pt(i,"get",r));const{has:o}=Ri(i),a=n?ho:t?po:qn;if(o.call(i,e))return a(s.get(e));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(e)}function Li(s,e=!1){const t=this.__v_raw,n=Ne(t),i=Ne(s);return e||(Gs(s,i)&&Pt(n,"has",s),Pt(n,"has",i)),s===i?t.has(s):t.has(s)||t.has(i)}function zi(s,e=!1){return s=s.__v_raw,!e&&Pt(Ne(s),"iterate",hn),Reflect.get(s,"size",s)}function xl(s){s=Ne(s);const e=Ne(this);return Ri(e).has.call(e,s)||(e.add(s),ds(e,"add",s,s)),this}function wl(s,e){e=Ne(e);const t=Ne(this),{has:n,get:i}=Ri(t);let r=n.call(t,s);r?{}.NODE_ENV!=="production"&&kl(t,n,s):(s=Ne(s),r=n.call(t,s));const o=i.call(t,s);return t.set(s,e),r?Gs(e,o)&&ds(t,"set",s,e,o):ds(t,"add",s,e),this}function Cl(s){const e=Ne(this),{has:t,get:n}=Ri(e);let i=t.call(e,s);i?{}.NODE_ENV!=="production"&&kl(e,t,s):(s=Ne(s),i=t.call(e,s));const r=n?n.call(e,s):void 0,o=e.delete(s);return i&&ds(e,"delete",s,void 0,r),o}function Sl(){const s=Ne(this),e=s.size!==0,t={}.NODE_ENV!=="production"?an(s)?new Map(s):new Set(s):void 0,n=s.clear();return e&&ds(s,"clear",void 0,void 0,t),n}function Fi(s,e){return function(n,i){const r=this,o=r.__v_raw,a=Ne(o),l=e?ho:s?po:qn;return!s&&Pt(a,"iterate",hn),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Gi(s,e,t){return function(...n){const i=this.__v_raw,r=Ne(i),o=an(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=t?ho:e?po:qn;return!e&&Pt(r,"iterate",l?uo:hn),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Ys(s){return function(...e){if({}.NODE_ENV!=="production"){const t=e[0]?`on key "${e[0]}" `:"";Bs(`${Ai(s)} operation ${t}failed: target is readonly.`,Ne(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Sd(){const s={get(r){return Vi(this,r)},get size(){return zi(this)},has:Li,add:xl,set:wl,delete:Cl,clear:Sl,forEach:Fi(!1,!1)},e={get(r){return Vi(this,r,!1,!0)},get size(){return zi(this)},has:Li,add:xl,set:wl,delete:Cl,clear:Sl,forEach:Fi(!1,!0)},t={get(r){return Vi(this,r,!0)},get size(){return zi(this,!0)},has(r){return Li.call(this,r,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Fi(!0,!1)},n={get(r){return Vi(this,r,!0,!0)},get size(){return zi(this,!0)},has(r){return Li.call(this,r,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Fi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Gi(r,!1,!1),t[r]=Gi(r,!0,!1),e[r]=Gi(r,!1,!0),n[r]=Gi(r,!0,!0)}),[s,t,e,n]}const[kd,Ed,Td,Od]=Sd();function Bi(s,e){const t=e?s?Od:Td:s?Ed:kd;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(Ve(t,i)&&i in n?t:n,i,r)}const Pd={get:Bi(!1,!1)},Id={get:Bi(!1,!0)},Dd={get:Bi(!0,!1)},Nd={get:Bi(!0,!0)};function kl(s,e,t){const n=Ne(t);if(n!==t&&e.call(s,n)){const i=eo(s);Bs(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const El=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Pl=new WeakMap;function $d(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Md(s){return s.__v_skip||!Object.isExtensible(s)?0:$d(eo(s))}function kt(s){return dn(s)?s:ji(s,!1,_d,Pd,El)}function Ad(s){return ji(s,!1,wd,Id,Tl)}function Il(s){return ji(s,!0,xd,Dd,Ol)}function Es(s){return ji(s,!0,Cd,Nd,Pl)}function ji(s,e,t,n,i){if(!Xe(s))return{}.NODE_ENV!=="production"&&Bs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(e&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=Md(s);if(o===0)return s;const a=new Proxy(s,o===2?n:t);return i.set(s,a),a}function Nn(s){return dn(s)?Nn(s.__v_raw):!!(s&&s.__v_isReactive)}function dn(s){return!!(s&&s.__v_isReadonly)}function fn(s){return!!(s&&s.__v_isShallow)}function fo(s){return s?!!s.__v_raw:!1}function Ne(s){const e=s&&s.__v_raw;return e?Ne(e):s}function Rd(s){return Object.isExtensible(s)&&il(s,"__v_skip",!0),s}const qn=s=>Xe(s)?kt(s):s,po=s=>Xe(s)?Il(s):s,Vd="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 Dl{constructor(e,t,n,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new io(()=>e(this._value),()=>Yi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Ne(this);return(!e._cacheable||e.effect.dirty)&&Gs(e._value,e._value=e.effect.run())&&Yi(e,4),Nl(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Bs(Vd,`
|
|
9
|
+
**/function Rs(o,...t){console.warn(`[Vue warn] ${o}`,...t)}let Qe;class Gh{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"&&Rs("cannot run an inactive effect scope.")}on(){Qe=this}off(){Qe=this.parent}stop(t){if(this._active){let e,s;for(e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.scopes)for(e=0,s=this.scopes.length;e<s;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 Uh(o,t=Qe){t&&t.active&&t.effects.push(o)}function jh(){return Qe}let qs;class oa{constructor(t,e,s,r){this.fn=t,this.trigger=e,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Uh(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,ps();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(Hh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ms()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Fs,e=qs;try{return Fs=!0,qs=this,this._runnings++,fl(this),this.fn()}finally{pl(this),this._runnings--,qs=e,Fs=t}}stop(){var t;this.active&&(fl(this),pl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Hh(o){return o.value}function fl(o){o._trackId++,o._depsLength=0}function pl(o){if(o.deps.length>o._depsLength){for(let t=o._depsLength;t<o.deps.length;t++)ml(o.deps[t],o);o.deps.length=o._depsLength}}function ml(o,t){const e=o.get(t);e!==void 0&&t._trackId!==e&&(o.delete(t),o.size===0&&o.cleanup())}let Fs=!0,ra=0;const gl=[];function ps(){gl.push(Fs),Fs=!1}function ms(){const o=gl.pop();Fs=o===void 0?!0:o}function na(){ra++}function aa(){for(ra--;!ra&&ia.length;)ia.shift()()}function yl(o,t,e){var s;if(t.get(o)!==o._trackId){t.set(o,o._trackId);const r=o.deps[o._depsLength];r!==t?(r&&ml(r,o),o.deps[o._depsLength++]=t):o._depsLength++,{}.NODE_ENV!=="production"&&((s=o.onTrack)==null||s.call(o,se({effect:o},e)))}}const ia=[];function vl(o,t,e){var s;na();for(const r of o.keys()){let n;r._dirtyLevel<t&&(n??(n=o.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(n??(n=o.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((s=r.onTrigger)==null||s.call(r,se({effect:r},e))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&ia.push(r.scheduler)))}aa()}const bl=(o,t)=>{const e=new Map;return e.cleanup=o,e.computed=t,e},la=new WeakMap,Ks=Symbol({}.NODE_ENV!=="production"?"iterate":""),ca=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function _e(o,t,e){if(Fs&&qs){let s=la.get(o);s||la.set(o,s=new Map);let r=s.get(e);r||s.set(e,r=bl(()=>s.delete(e))),yl(qs,r,{}.NODE_ENV!=="production"?{target:o,type:t,key:e}:void 0)}}function os(o,t,e,s,r,n){const a=la.get(o);if(!a)return;let i=[];if(t==="clear")i=[...a.values()];else if(e==="length"&&kt(o)){const l=Number(s);a.forEach((c,u)=>{(u==="length"||!Zs(u)&&u>=l)&&i.push(c)})}else switch(e!==void 0&&i.push(a.get(e)),t){case"add":kt(o)?ta(e)&&i.push(a.get("length")):(i.push(a.get(Ks)),Hs(o)&&i.push(a.get(ca)));break;case"delete":kt(o)||(i.push(a.get(Ks)),Hs(o)&&i.push(a.get(ca)));break;case"set":Hs(o)&&i.push(a.get(Ks));break}na();for(const l of i)l&&vl(l,4,{}.NODE_ENV!=="production"?{target:o,type:t,key:e,newValue:s,oldValue:r,oldTarget:n}:void 0);aa()}const Zh=_o("__proto__,__v_isRef,__isVue"),_l=new Set(Object.getOwnPropertyNames(Symbol).filter(o=>o!=="arguments"&&o!=="caller").map(o=>Symbol[o]).filter(Zs)),xl=Wh();function Wh(){const o={};return["includes","indexOf","lastIndexOf"].forEach(t=>{o[t]=function(...e){const s=Ft(this);for(let n=0,a=this.length;n<a;n++)_e(s,"get",n+"");const r=s[t](...e);return r===-1||r===!1?s[t](...e.map(Ft)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{o[t]=function(...e){ps(),na();const s=Ft(this)[t].apply(this,e);return aa(),ms(),s}}),o}function qh(o){Zs(o)||(o=String(o));const t=Ft(this);return _e(t,"has",o),t.hasOwnProperty(o)}class wl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,s){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 s===(r?n?Dl:Fl:n?Rl:Il).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=kt(t);if(!r){if(a&&$t(xl,e))return Reflect.get(xl,e,s);if(e==="hasOwnProperty")return qh}const i=Reflect.get(t,e,s);return(Zs(e)?_l.has(e):Zh(e))||(r||_e(t,"get",e),n)?i:xe(i)?a&&ta(e)?i:i.value:Ut(i)?r?$l(i):Zt(i):i}}class kl extends wl{constructor(t=!1){super(!1,t)}set(t,e,s,r){let n=t[e];if(!this._isShallow){const l=Qs(n);if(!Js(s)&&!Qs(s)&&(n=Ft(n),s=Ft(s)),!kt(t)&&xe(n)&&!xe(s))return l?!1:(n.value=s,!0)}const a=kt(t)&&ta(e)?Number(e)<t.length:$t(t,e),i=Reflect.set(t,e,s,r);return t===Ft(r)&&(a?Is(s,n)&&os(t,"set",e,s,n):os(t,"add",e,s)),i}deleteProperty(t,e){const s=$t(t,e),r=t[e],n=Reflect.deleteProperty(t,e);return n&&s&&os(t,"delete",e,void 0,r),n}has(t,e){const s=Reflect.has(t,e);return(!Zs(e)||!_l.has(e))&&_e(t,"has",e),s}ownKeys(t){return _e(t,"iterate",kt(t)?"length":Ks),Reflect.ownKeys(t)}}class Cl extends wl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Rs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Rs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Kh=new kl,Qh=new Cl,Jh=new kl(!0),tf=new Cl(!0),ua=o=>o,Sr=o=>Reflect.getPrototypeOf(o);function Er(o,t,e=!1,s=!1){o=o.__v_raw;const r=Ft(o),n=Ft(t);e||(Is(t,n)&&_e(r,"get",t),_e(r,"get",n));const{has:a}=Sr(r),i=s?ua:e?ha:Vo;if(a.call(r,t))return i(o.get(t));if(a.call(r,n))return i(o.get(n));o!==r&&o.get(t)}function Pr(o,t=!1){const e=this.__v_raw,s=Ft(e),r=Ft(o);return t||(Is(o,r)&&_e(s,"has",o),_e(s,"has",r)),o===r?e.has(o):e.has(o)||e.has(r)}function Or(o,t=!1){return o=o.__v_raw,!t&&_e(Ft(o),"iterate",Ks),Reflect.get(o,"size",o)}function Tl(o){o=Ft(o);const t=Ft(this);return Sr(t).has.call(t,o)||(t.add(o),os(t,"add",o,o)),this}function Sl(o,t){t=Ft(t);const e=Ft(this),{has:s,get:r}=Sr(e);let n=s.call(e,o);n?{}.NODE_ENV!=="production"&&Ol(e,s,o):(o=Ft(o),n=s.call(e,o));const a=r.call(e,o);return e.set(o,t),n?Is(t,a)&&os(e,"set",o,t,a):os(e,"add",o,t),this}function El(o){const t=Ft(this),{has:e,get:s}=Sr(t);let r=e.call(t,o);r?{}.NODE_ENV!=="production"&&Ol(t,e,o):(o=Ft(o),r=e.call(t,o));const n=s?s.call(t,o):void 0,a=t.delete(o);return r&&os(t,"delete",o,void 0,n),a}function Pl(){const o=Ft(this),t=o.size!==0,e={}.NODE_ENV!=="production"?Hs(o)?new Map(o):new Set(o):void 0,s=o.clear();return t&&os(o,"clear",void 0,void 0,e),s}function Ir(o,t){return function(s,r){const n=this,a=n.__v_raw,i=Ft(a),l=t?ua:o?ha:Vo;return!o&&_e(i,"iterate",Ks),a.forEach((c,u)=>s.call(r,l(c),l(u),n))}}function Rr(o,t,e){return function(...s){const r=this.__v_raw,n=Ft(r),a=Hs(n),i=o==="entries"||o===Symbol.iterator&&a,l=o==="keys"&&a,c=r[o](...s),u=e?ua:t?ha:Vo;return!t&&_e(n,"iterate",l?ca:Ks),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:i?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Ds(o){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Rs(`${Tr(o)} operation ${e}failed: target is readonly.`,Ft(this))}return o==="delete"?!1:o==="clear"?void 0:this}}function ef(){const o={get(n){return Er(this,n)},get size(){return Or(this)},has:Pr,add:Tl,set:Sl,delete:El,clear:Pl,forEach:Ir(!1,!1)},t={get(n){return Er(this,n,!1,!0)},get size(){return Or(this)},has:Pr,add:Tl,set:Sl,delete:El,clear:Pl,forEach:Ir(!1,!0)},e={get(n){return Er(this,n,!0)},get size(){return Or(this,!0)},has(n){return Pr.call(this,n,!0)},add:Ds("add"),set:Ds("set"),delete:Ds("delete"),clear:Ds("clear"),forEach:Ir(!0,!1)},s={get(n){return Er(this,n,!0,!0)},get size(){return Or(this,!0)},has(n){return Pr.call(this,n,!0)},add:Ds("add"),set:Ds("set"),delete:Ds("delete"),clear:Ds("clear"),forEach:Ir(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Rr(n,!1,!1),e[n]=Rr(n,!0,!1),t[n]=Rr(n,!1,!0),s[n]=Rr(n,!0,!0)}),[o,e,t,s]}const[sf,of,rf,nf]=ef();function Fr(o,t){const e=t?o?nf:rf:o?of:sf;return(s,r,n)=>r==="__v_isReactive"?!o:r==="__v_isReadonly"?o:r==="__v_raw"?s:Reflect.get($t(e,r)&&r in s?e:s,r,n)}const af={get:Fr(!1,!1)},lf={get:Fr(!1,!0)},cf={get:Fr(!0,!1)},uf={get:Fr(!0,!0)};function Ol(o,t,e){const s=Ft(e);if(s!==e&&t.call(o,s)){const r=Jn(o);Rs(`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 Il=new WeakMap,Rl=new WeakMap,Fl=new WeakMap,Dl=new WeakMap;function df(o){switch(o){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function hf(o){return o.__v_skip||!Object.isExtensible(o)?0:df(Jn(o))}function Zt(o){return Qs(o)?o:Dr(o,!1,Kh,af,Il)}function ff(o){return Dr(o,!1,Jh,lf,Rl)}function $l(o){return Dr(o,!0,Qh,cf,Fl)}function gs(o){return Dr(o,!0,tf,uf,Dl)}function Dr(o,t,e,s,r){if(!Ut(o))return{}.NODE_ENV!=="production"&&Rs(`value cannot be made reactive: ${String(o)}`),o;if(o.__v_raw&&!(t&&o.__v_isReactive))return o;const n=r.get(o);if(n)return n;const a=hf(o);if(a===0)return o;const i=new Proxy(o,a===2?s:e);return r.set(o,i),i}function wo(o){return Qs(o)?wo(o.__v_raw):!!(o&&o.__v_isReactive)}function Qs(o){return!!(o&&o.__v_isReadonly)}function Js(o){return!!(o&&o.__v_isShallow)}function da(o){return o?!!o.__v_raw:!1}function Ft(o){const t=o&&o.__v_raw;return t?Ft(t):o}function pf(o){return Object.isExtensible(o)&&ll(o,"__v_skip",!0),o}const Vo=o=>Ut(o)?Zt(o):o,ha=o=>Ut(o)?$l(o):o,mf="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 Ll{constructor(t,e,s,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new oa(()=>t(this._value),()=>$r(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Ft(this);return(!t._cacheable||t.effect.dirty)&&Is(t._value,t._value=t.effect.run())&&$r(t,4),Ml(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Rs(mf,`
|
|
10
10
|
|
|
11
|
-
getter: `,this.getter)
|
|
11
|
+
getter: `,this.getter),$r(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function gf(o,t,e=!1){let s,r;const n=Ot(o);n?(s=o,r={}.NODE_ENV!=="production"?()=>{Rs("Write operation failed: computed value is readonly")}:ue):(s=o.get,r=o.set);const a=new Ll(s,r,n||!r,e);return{}.NODE_ENV!=="production"&&t&&!e&&(a.effect.onTrack=t.onTrack,a.effect.onTrigger=t.onTrigger),a}function Ml(o){var t;Fs&&qs&&(o=Ft(o),yl(qs,(t=o.dep)!=null?t:o.dep=bl(()=>o.dep=void 0,o instanceof Ll?o:void 0),{}.NODE_ENV!=="production"?{target:o,type:"get",key:"value"}:void 0))}function $r(o,t=4,e){o=Ft(o);const s=o.dep;s&&vl(s,t,{}.NODE_ENV!=="production"?{target:o,type:"set",key:"value",newValue:e}:void 0)}function xe(o){return!!(o&&o.__v_isRef===!0)}function I(o){return yf(o,!1)}function yf(o,t){return xe(o)?o:new vf(o,t)}class vf{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Ft(t),this._value=e?t:Vo(t)}get value(){return Ml(this),this._value}set value(t){const e=this.__v_isShallow||Js(t)||Qs(t);t=e?t:Ft(t),Is(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Vo(t),$r(this,4,t))}}function Ct(o){return xe(o)?o.value:o}const bf={get:(o,t,e)=>Ct(Reflect.get(o,t,e)),set:(o,t,e,s)=>{const r=o[t];return xe(r)&&!xe(e)?(r.value=e,!0):Reflect.set(o,t,e,s)}};function Nl(o){return wo(o)?o:new Proxy(o,bf)}/**
|
|
12
12
|
* @vue/runtime-core v3.4.25
|
|
13
13
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
14
|
* @license MIT
|
|
15
|
-
**/const
|
|
16
|
-
`),
|
|
17
|
-
`,...
|
|
18
|
-
`],...Yd(t))}),e}function Yd({vnode:s,recurseCount:e}){const t=e>0?`... (${e} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${ur(s.component,s.type,n)}`,r=">"+t;return s.props?[i,...Hd(s.props),r]:[i+r]}function Hd(s){const e=[],t=Object.keys(s);return t.slice(0,3).forEach(n=>{e.push(...Ml(n,s[n]))}),t.length>3&&e.push(" ..."),e}function Ml(s,e,t){return mt(e)?(e=JSON.stringify(e),t?e:[`${s}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${s}=${e}`]:It(e)?(e=Ml(s,Ne(e.value),!0),t?e:[`${s}=Ref<`,e,">"]):Oe(e)?[`${s}=fn${e.name?`<${e.name}>`:""}`]:(e=Ne(e),t?e:[`${s}=`,e])}const mo={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 Ts(s,e,t,n){try{return n?s(...n):s()}catch(i){Zn(i,e,t)}}function rs(s,e,t,n){if(Oe(s)){const i=Ts(s,e,t,n);return i&&Jr(i)&&i.catch(r=>{Zn(r,e,t)}),i}if(ve(s)){const i=[];for(let r=0;r<s.length;r++)i.push(rs(s[r],e,t,n));return i}else({}).NODE_ENV!=="production"&&re(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Zn(s,e,t,n=!0){const i=e?e.vnode:null;if(e){let r=e.parent;const o=e.proxy,a={}.NODE_ENV!=="production"?mo[t]:`https://vuejs.org/error-reference/#runtime-${t}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=e.appContext.config.errorHandler;if(l){Ss(),Ts(l,null,10,[s,o,a]),ks();return}}Wd(s,t,i,n)}function Wd(s,e,t,n=!0){if({}.NODE_ENV!=="production"){const i=mo[e];if(t&&Hi(t),re(`Unhandled error${i?` during execution of ${i}`:""}`),t&&Wi(),n)throw s;console.error(s)}else console.error(s)}let Kn=!1,go=!1;const Mt=[];let fs=0;const $n=[];let Os=null,Hs=0;const Al=Promise.resolve();let vo=null;const Xd=100;function Xi(s){const e=vo||Al;return s?e.then(this?s.bind(this):s):e}function Ud(s){let e=fs+1,t=Mt.length;for(;e<t;){const n=e+t>>>1,i=Mt[n],r=Qn(i);r<s||r===s&&i.pre?e=n+1:t=n}return e}function Ui(s){(!Mt.length||!Mt.includes(s,Kn&&s.allowRecurse?fs+1:fs))&&(s.id==null?Mt.push(s):Mt.splice(Ud(s.id),0,s),Rl())}function Rl(){!Kn&&!go&&(go=!0,vo=Al.then(Fl))}function qd(s){const e=Mt.indexOf(s);e>fs&&Mt.splice(e,1)}function Vl(s){ve(s)?$n.push(...s):(!Os||!Os.includes(s,s.allowRecurse?Hs+1:Hs))&&$n.push(s),Rl()}function Ll(s,e,t=Kn?fs+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);t<Mt.length;t++){const n=Mt[t];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&yo(e,n))continue;Mt.splice(t,1),t--,n()}}}function zl(s){if($n.length){const e=[...new Set($n)].sort((t,n)=>Qn(t)-Qn(n));if($n.length=0,Os){Os.push(...e);return}for(Os=e,{}.NODE_ENV!=="production"&&(s=s||new Map),Hs=0;Hs<Os.length;Hs++)({}).NODE_ENV!=="production"&&yo(s,Os[Hs])||Os[Hs]();Os=null,Hs=0}}const Qn=s=>s.id==null?1/0:s.id,Zd=(s,e)=>{const t=Qn(s)-Qn(e);if(t===0){if(s.pre&&!e.pre)return-1;if(e.pre&&!s.pre)return 1}return t};function Fl(s){go=!1,Kn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Mt.sort(Zd);const e={}.NODE_ENV!=="production"?t=>yo(s,t):bt;try{for(fs=0;fs<Mt.length;fs++){const t=Mt[fs];if(t&&t.active!==!1){if({}.NODE_ENV!=="production"&&e(t))continue;Ts(t,null,14)}}}finally{fs=0,Mt.length=0,zl(s),Kn=!1,vo=null,(Mt.length||$n.length)&&Fl(s)}}function yo(s,e){if(!s.has(e))s.set(e,1);else{const t=s.get(e);if(t>Xd){const n=e.ownerInstance,i=n&&Ac(n.type);return Zn(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else s.set(e,t+1)}}let mn=!1;const Mn=new Set;({}).NODE_ENV!=="production"&&(so().__VUE_HMR_RUNTIME__={createRecord:bo(Gl),rerender:bo(Jd),reload:bo(ef)});const gn=new Map;function Kd(s){const e=s.type.__hmrId;let t=gn.get(e);t||(Gl(e,s.type),t=gn.get(e)),t.instances.add(s)}function Qd(s){gn.get(s.type.__hmrId).instances.delete(s)}function Gl(s,e){return gn.has(s)?!1:(gn.set(s,{initialDef:Jn(e),instances:new Set}),!0)}function Jn(s){return Rc(s)?s.__vccOpts:s}function Jd(s,e){const t=gn.get(s);t&&(t.initialDef.render=e,[...t.instances].forEach(n=>{e&&(n.render=e,Jn(n.type).render=e),n.renderCache=[],mn=!0,n.effect.dirty=!0,n.update(),mn=!1}))}function ef(s,e){const t=gn.get(s);if(!t)return;e=Jn(e),Bl(t.initialDef,e);const n=[...t.instances];for(const i of n){const r=Jn(i.type);Mn.has(r)||(r!==t.initialDef&&Bl(r,e),Mn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Mn.add(r),i.ceReload(e.styles),Mn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ui(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Vl(()=>{for(const i of n)Mn.delete(Jn(i.type))})}function Bl(s,e){lt(s,e);for(const t in s)t!=="__file"&&!(t in e)&&delete s[t]}function bo(s){return(e,t)=>{try{return s(e,t)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ps,ei=[],_o=!1;function ti(s,...e){ps?ps.emit(s,...e):_o||ei.push({event:s,args:e})}function jl(s,e){var t,n;ps=s,ps?(ps.enabled=!0,ei.forEach(({event:i,args:r})=>ps.emit(i,...r)),ei=[]):typeof window<"u"&&window.HTMLElement&&!((n=(t=window.navigator)==null?void 0:t.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{jl(r,e)}),setTimeout(()=>{ps||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_o=!0,ei=[])},3e3)):(_o=!0,ei=[])}function tf(s,e){ti("app:init",s,e,{Fragment:je,Text:oi,Comment:Bt,Static:rr})}function sf(s){ti("app:unmount",s)}const nf=xo("component:added"),Yl=xo("component:updated"),rf=xo("component:removed"),of=s=>{ps&&typeof ps.cleanupBuffer=="function"&&!ps.cleanupBuffer(s)&&rf(s)};/*! #__NO_SIDE_EFFECTS__ */function xo(s){return e=>{ti(s,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const af=Hl("perf:start"),lf=Hl("perf:end");function Hl(s){return(e,t,n)=>{ti(s,e.appContext.app,e.uid,e,t,n)}}function cf(s,e,t){ti("component:emit",s.appContext.app,s,e,t)}function uf(s,e,...t){if(s.isUnmounted)return;const n=s.vnode.props||Ke;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(e in u))(!h||!(cn(e)in h))&&re(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${cn(e)}" prop.`);else{const f=u[e];Oe(f)&&(f(...t)||re(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=t;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Ke;f&&(i=t.map(d=>mt(d)?d.trim():d)),h&&(i=t.map(ad))}if({}.NODE_ENV!=="production"&&cf(s,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&n[cn(u)]&&re(`Event "${u}" is emitted in component ${ur(s,s.type)} but the handler is registered for "${e}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Wt(e)}" instead of "${e}".`)}let a,l=n[a=cn(e)]||n[a=cn(Cs(e))];!l&&r&&(l=n[a=cn(Wt(e))]),l&&rs(l,s,6,i);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,rs(c,s,6,i)}}function Wl(s,e,t=!1){const n=e.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!Oe(s)){const l=c=>{const u=Wl(c,e,!0);u&&(a=!0,lt(o,u))};!t&&e.mixins.length&&e.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Xe(s)&&n.set(s,null),null):(ve(r)?r.forEach(l=>o[l]=null):lt(o,r),Xe(s)&&n.set(s,o),o)}function qi(s,e){return!s||!Wn(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ve(s,e[0].toLowerCase()+e.slice(1))||Ve(s,Wt(e))||Ve(s,e))}let xt=null,Zi=null;function Ki(s){const e=xt;return xt=s,Zi=s&&s.type.__scopeId||null,e}function Ws(s){Zi=s}function Xs(){Zi=null}function nt(s,e=xt,t){if(!e||s._n)return s;const n=(...i)=>{n._d&&Cc(-1);const r=Ki(e);let o;try{o=s(...i)}finally{Ki(r),n._d&&Cc(1)}return{}.NODE_ENV!=="production"&&Yl(e),o};return n._n=!0,n._c=!0,n._d=!0,n}let wo=!1;function Qi(){wo=!0}function Co(s){const{type:e,vnode:t,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:v}=s,b=Ki(s);let C,O;({}).NODE_ENV!=="production"&&(wo=!1);try{if(t.shapeFlag&4){const Y=i||n,L={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(Y,{get(H,fe,ye){return re(`Property '${String(fe)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(H,fe,ye)}}):Y;C=as(c.call(L,Y,u,{}.NODE_ENV!=="production"?Es(h):h,d,f,m)),O=a}else{const Y=e;({}).NODE_ENV!=="production"&&a===h&&Qi(),C=as(Y.length>1?Y({}.NODE_ENV!=="production"?Es(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Qi(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):Y({}.NODE_ENV!=="production"?Es(h):h,null)),O=e.props?a:hf(a)}}catch(Y){ai.length=0,Zn(Y,s,1),C=ue(Bt)}let $=C,S;if({}.NODE_ENV!=="production"&&C.patchFlag>0&&C.patchFlag&2048&&([$,S]=Xl(C)),O&&v!==!1){const Y=Object.keys(O),{shapeFlag:L}=$;if(Y.length){if(L&7)r&&Y.some(Ni)&&(O=df(O,r)),$=Zs($,O);else if({}.NODE_ENV!=="production"&&!wo&&$.type!==Bt){const H=Object.keys(a),fe=[],ye=[];for(let ge=0,Me=H.length;ge<Me;ge++){const Ae=H[ge];Wn(Ae)?Ni(Ae)||fe.push(Ae[2].toLowerCase()+Ae.slice(3)):ye.push(Ae)}ye.length&&re(`Extraneous non-props attributes (${ye.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),fe.length&&re(`Extraneous non-emits event listeners (${fe.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return t.dirs&&({}.NODE_ENV!=="production"&&!Ul($)&&re("Runtime directive used on component with non-element root node. The directives will not function as intended."),$=Zs($),$.dirs=$.dirs?$.dirs.concat(t.dirs):t.dirs),t.transition&&({}.NODE_ENV!=="production"&&!Ul($)&&re("Component inside <Transition> renders non-element root node that cannot be animated."),$.transition=t.transition),{}.NODE_ENV!=="production"&&S?S($):C=$,Ki(b),C}const Xl=s=>{const e=s.children,t=s.dynamicChildren,n=So(e,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Xl(n)}else return[s,void 0];const i=e.indexOf(n),r=t?t.indexOf(n):-1,o=a=>{e[i]=a,t&&(r>-1?t[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...t,a]))};return[as(n),o]};function So(s,e=!0){let t;for(let n=0;n<s.length;n++){const i=s[n];if(An(i)){if(i.type!==Bt||i.children==="v-if"){if(t)return;if(t=i,{}.NODE_ENV!=="production"&&e&&t.patchFlag>0&&t.patchFlag&2048)return So(t.children)}}else return}return t}const hf=s=>{let e;for(const t in s)(t==="class"||t==="style"||Wn(t))&&((e||(e={}))[t]=s[t]);return e},df=(s,e)=>{const t={};for(const n in s)(!Ni(n)||!(n.slice(9)in e))&&(t[n]=s[n]);return t},Ul=s=>s.shapeFlag&7||s.type===Bt;function ff(s,e,t){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&mn||e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return n?ql(n,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!qi(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?ql(n,o,c):!0:!!o;return!1}function ql(s,e,t){const n=Object.keys(e);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(e[r]!==s[r]&&!qi(t,r))return!0}return!1}function pf({vnode:s,parent:e},t){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=e.vnode).el=t,e=e.parent;else break}}const mf=Symbol.for("v-ndc"),gf=s=>s.__isSuspense;function vf(s,e){e&&e.pendingBranch?ve(s)?e.effects.push(...s):e.effects.push(s):Vl(s)}const yf=Symbol.for("v-scx"),bf=()=>{{const s=sr(yf);return s||{}.NODE_ENV!=="production"&&re("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Zl(s,e){return ko(s,null,e)}const Ji={};function Ee(s,e,t){return{}.NODE_ENV!=="production"&&!Oe(e)&&re("`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."),ko(s,e,t)}function ko(s,e,{immediate:t,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Ke){if(e&&r){const H=e;e=(...fe)=>{H(...fe),L()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&re('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!e&&(t!==void 0&&re('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&re('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&re('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=H=>{re("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Et,u=H=>n===!0?H:vn(H,n===!1?1:void 0);let h,f=!1,d=!1;if(It(s)?(h=()=>s.value,f=fn(s)):Nn(s)?(h=()=>u(s),f=!0):ve(s)?(d=!0,f=s.some(H=>Nn(H)||fn(H)),h=()=>s.map(H=>{if(It(H))return H.value;if(Nn(H))return u(H);if(Oe(H))return Ts(H,c,2);({}).NODE_ENV!=="production"&&l(H)})):Oe(s)?e?h=()=>Ts(s,c,2):h=()=>(m&&m(),rs(s,c,3,[v])):(h=bt,{}.NODE_ENV!=="production"&&l(s)),e&&n){const H=h;h=()=>vn(H())}let m,v=H=>{m=S.onStop=()=>{Ts(H,c,4),m=S.onStop=void 0}},b;if(lr)if(v=bt,e?t&&rs(e,c,3,[h(),d?[]:void 0,v]):h(),i==="sync"){const H=bf();b=H.__watcherHandles||(H.__watcherHandles=[])}else return bt;let C=d?new Array(s.length).fill(Ji):Ji;const O=()=>{if(!(!S.active||!S.dirty))if(e){const H=S.run();(n||f||(d?H.some((fe,ye)=>Gs(fe,C[ye])):Gs(H,C)))&&(m&&m(),rs(e,c,3,[H,C===Ji?void 0:d&&C[0]===Ji?[]:C,v]),C=H)}else S.run()};O.allowRecurse=!!e;let $;i==="sync"?$=O:i==="post"?$=()=>Gt(O,c&&c.suspense):(O.pre=!0,c&&(O.id=c.uid),$=()=>Ui(O));const S=new io(h,bt,$),Y=md(),L=()=>{S.stop(),Y&&Qr(Y.effects,S)};return{}.NODE_ENV!=="production"&&(S.onTrack=o,S.onTrigger=a),e?t?O():C=S.run():i==="post"?Gt(S.run.bind(S),c&&c.suspense):S.run(),b&&b.push(L),L}function _f(s,e,t){const n=this.proxy,i=mt(s)?s.includes(".")?Kl(n,s):()=>n[s]:s.bind(n,n);let r;Oe(e)?r=e:(r=e.handler,t=e);const o=ui(this),a=ko(i,r.bind(n),t);return o(),a}function Kl(s,e){const t=e.split(".");return()=>{let n=s;for(let i=0;i<t.length&&n;i++)n=n[t[i]];return n}}function vn(s,e,t=0,n){if(!Xe(s)||s.__v_skip)return s;if(e&&e>0){if(t>=e)return s;t++}if(n=n||new Set,n.has(s))return s;if(n.add(s),It(s))vn(s.value,e,t,n);else if(ve(s))for(let i=0;i<s.length;i++)vn(s[i],e,t,n);else if(tl(s)||an(s))s.forEach(i=>{vn(i,e,t,n)});else if(nl(s))for(const i in s)vn(s[i],e,t,n);return s}function Ql(s){id(s)&&re("Do not use built-in directive ids as custom directive id: "+s)}function Ps(s,e){if(xt===null)return{}.NODE_ENV!=="production"&&re("withDirectives can only be used inside render functions."),s;const t=cr(xt)||xt.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<e.length;i++){let[r,o,a,l=Ke]=e[i];r&&(Oe(r)&&(r={mounted:r,updated:r}),r.deep&&vn(o),n.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function yn(s,e,t,n){const i=s.dirs,r=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(Ss(),rs(l,t,8,[s.el,a,s,e]),ks())}}/*! #__NO_SIDE_EFFECTS__ */function oe(s,e){return Oe(s)?(()=>lt({name:s.name},e,{setup:s}))():s}const si=s=>!!s.type.__asyncLoader,Eo=s=>s.type.__isKeepAlive;function xf(s,e){Jl(s,"a",e)}function wf(s,e){Jl(s,"da",e)}function Jl(s,e,t=Et){const n=s.__wdc||(s.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(er(e,n,t),t){let i=t.parent;for(;i&&i.parent;)Eo(i.parent.vnode)&&Cf(n,e,t,i),i=i.parent}}function Cf(s,e,t,n){const i=er(e,s,n,!0);Qe(()=>{Qr(n[e],i)},t)}function er(s,e,t=Et,n=!1){if(t){const i=t[s]||(t[s]=[]),r=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Ss();const a=ui(t),l=rs(e,t,s,o);return a(),ks(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=cn(mo[s].replace(/ hook$/,""));re(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Is=s=>(e,t=Et)=>(!lr||s==="sp")&&er(s,(...n)=>e(...n),t),Sf=Is("bm"),Us=Is("m"),kf=Is("bu"),Ef=Is("u"),Tf=Is("bum"),Qe=Is("um"),Of=Is("sp"),Pf=Is("rtg"),If=Is("rtc");function Df(s,e=Et){er("ec",s,e)}function St(s,e,t,n){let i;const r=t&&t[n];if(ve(s)||mt(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=e(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&re(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=e(o+1,o,void 0,r&&r[o])}else if(Xe(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>e(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=e(s[c],c,a,r&&r[a])}}else i=[];return t&&(t[n]=i),i}function ze(s,e,t={},n,i){if(xt.isCE||xt.parent&&si(xt.parent)&&xt.parent.isCE)return e!=="default"&&(t.name=e),ue("slot",t,n&&n());let r=s[e];({}).NODE_ENV!=="production"&&r&&r.length>1&&(re("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),I();const o=r&&ec(r(t)),a=wt(je,{key:t.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function ec(s){return s.some(e=>An(e)?!(e.type===Bt||e.type===je&&!ec(e.children)):!0)?s:null}const To=s=>s?Ic(s)?cr(s)||s.proxy:To(s.parent):null,bn=lt(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?Es(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?Es(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?Es(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?Es(s.refs):s.refs,$parent:s=>To(s.parent),$root:s=>To(s.root),$emit:s=>s.emit,$options:s=>Do(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ui(s.update)}),$nextTick:s=>s.n||(s.n=Xi.bind(s.proxy)),$watch:s=>_f.bind(s)}),Oo=s=>s==="_"||s==="$",Po=(s,e)=>s!==Ke&&!s.__isScriptSetup&&Ve(s,e),tc={get({_:s},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return r[e]}else{if(Po(n,e))return o[e]=1,n[e];if(i!==Ke&&Ve(i,e))return o[e]=2,i[e];if((c=s.propsOptions[0])&&Ve(c,e))return o[e]=3,r[e];if(t!==Ke&&Ve(t,e))return o[e]=4,t[e];Io&&(o[e]=0)}}const u=bn[e];let h,f;if(u)return e==="$attrs"?(Pt(s.attrs,"get",""),{}.NODE_ENV!=="production"&&Qi()):{}.NODE_ENV!=="production"&&e==="$slots"&&Pt(s,"get",e),u(s);if((h=a.__cssModules)&&(h=h[e]))return h;if(t!==Ke&&Ve(t,e))return o[e]=4,t[e];if(f=l.config.globalProperties,Ve(f,e))return f[e];({}).NODE_ENV!=="production"&&xt&&(!mt(e)||e.indexOf("__v")!==0)&&(i!==Ke&&Oo(e[0])&&Ve(i,e)?re(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===xt&&re(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:s},e,t){const{data:n,setupState:i,ctx:r}=s;return Po(i,e)?(i[e]=t,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Ve(i,e)?(re(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):n!==Ke&&Ve(n,e)?(n[e]=t,!0):Ve(s.props,e)?({}.NODE_ENV!=="production"&&re(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in s?({}.NODE_ENV!=="production"&&re(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in s.appContext.config.globalProperties?Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:t}):r[e]=t,!0)},has({_:{data:s,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!t[o]||s!==Ke&&Ve(s,o)||Po(e,o)||(a=r[0])&&Ve(a,o)||Ve(n,o)||Ve(bn,o)||Ve(i.config.globalProperties,o)},defineProperty(s,e,t){return t.get!=null?s._.accessCache[e]=0:Ve(t,"value")&&this.set(s,e,t.value,null),Reflect.defineProperty(s,e,t)}};({}).NODE_ENV!=="production"&&(tc.ownKeys=s=>(re("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 Nf(s){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(bn).forEach(t=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:()=>bn[t](s),set:bt})}),e}function $f(s){const{ctx:e,propsOptions:[t]}=s;t&&Object.keys(t).forEach(n=>{Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:bt})})}function Mf(s){const{ctx:e,setupState:t}=s;Object.keys(Ne(t)).forEach(n=>{if(!t.__isScriptSetup){if(Oo(n[0])){re(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>t[n],set:bt})}})}function Af(){return Rf().slots}function Rf(){const s=Oc();return{}.NODE_ENV!=="production"&&!s&&re("useContext() called without active instance."),s.setupContext||(s.setupContext=Mc(s))}function sc(s){return ve(s)?s.reduce((e,t)=>(e[t]=null,e),{}):s}function Vf(){const s=Object.create(null);return(e,t)=>{s[t]?re(`${e} property "${t}" is already defined in ${s[t]}.`):s[t]=e}}let Io=!0;function Lf(s){const e=Do(s),t=s.proxy,n=s.ctx;Io=!1,e.beforeCreate&&nc(e.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:m,activated:v,deactivated:b,beforeDestroy:C,beforeUnmount:O,destroyed:$,unmounted:S,render:Y,renderTracked:L,renderTriggered:H,errorCaptured:fe,serverPrefetch:ye,expose:ge,inheritAttrs:Me,components:Ae,directives:Ue,filters:qe}=e,et={}.NODE_ENV!=="production"?Vf():null;if({}.NODE_ENV!=="production"){const[be]=s.propsOptions;if(be)for(const _e in be)et("Props",_e)}if(c&&zf(c,n,et),o)for(const be in o){const _e=o[be];Oe(_e)?({}.NODE_ENV!=="production"?Object.defineProperty(n,be,{value:_e.bind(t),configurable:!0,enumerable:!0,writable:!0}):n[be]=_e.bind(t),{}.NODE_ENV!=="production"&&et("Methods",be)):{}.NODE_ENV!=="production"&&re(`Method "${be}" has type "${typeof _e}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Oe(i)&&re("The data option must be a function. Plain object usage is no longer supported.");const be=i.call(t,t);if({}.NODE_ENV!=="production"&&Jr(be)&&re("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Xe(be))({}).NODE_ENV!=="production"&&re("data() should return an object.");else if(s.data=kt(be),{}.NODE_ENV!=="production")for(const _e in be)et("Data",_e),Oo(_e[0])||Object.defineProperty(n,_e,{configurable:!0,enumerable:!0,get:()=>be[_e],set:bt})}if(Io=!0,r)for(const be in r){const _e=r[be],te=Oe(_e)?_e.bind(t,t):Oe(_e.get)?_e.get.bind(t,t):bt;({}).NODE_ENV!=="production"&&te===bt&&re(`Computed property "${be}" has no getter.`);const U=!Oe(_e)&&Oe(_e.set)?_e.set.bind(t):{}.NODE_ENV!=="production"?()=>{re(`Write operation failed: computed property "${be}" is readonly.`)}:bt,Ce=wp({get:te,set:U});Object.defineProperty(n,be,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:A=>Ce.value=A}),{}.NODE_ENV!=="production"&&et("Computed",be)}if(a)for(const be in a)ic(a[be],n,t,be);if(l){const be=Oe(l)?l.call(t):l;Reflect.ownKeys(be).forEach(_e=>{Hf(_e,be[_e])})}u&&nc(u,s,"c");function Ge(be,_e){ve(_e)?_e.forEach(te=>be(te.bind(t))):_e&&be(_e.bind(t))}if(Ge(Sf,h),Ge(Us,f),Ge(kf,d),Ge(Ef,m),Ge(xf,v),Ge(wf,b),Ge(Df,fe),Ge(If,L),Ge(Pf,H),Ge(Tf,O),Ge(Qe,S),Ge(Of,ye),ve(ge))if(ge.length){const be=s.exposed||(s.exposed={});ge.forEach(_e=>{Object.defineProperty(be,_e,{get:()=>t[_e],set:te=>t[_e]=te})})}else s.exposed||(s.exposed={});Y&&s.render===bt&&(s.render=Y),Me!=null&&(s.inheritAttrs=Me),Ae&&(s.components=Ae),Ue&&(s.directives=Ue)}function zf(s,e,t=bt){ve(s)&&(s=No(s));for(const n in s){const i=s[n];let r;Xe(i)?"default"in i?r=sr(i.from||n,i.default,!0):r=sr(i.from||n):r=sr(i),It(r)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[n]=r,{}.NODE_ENV!=="production"&&t("Inject",n)}}function nc(s,e,t){rs(ve(s)?s.map(n=>n.bind(e.proxy)):s.bind(e.proxy),e,t)}function ic(s,e,t,n){const i=n.includes(".")?Kl(t,n):()=>t[n];if(mt(s)){const r=e[s];Oe(r)?Ee(i,r):{}.NODE_ENV!=="production"&&re(`Invalid watch handler specified by key "${s}"`,r)}else if(Oe(s))Ee(i,s.bind(t));else if(Xe(s))if(ve(s))s.forEach(r=>ic(r,e,t,n));else{const r=Oe(s.handler)?s.handler.bind(t):e[s.handler];Oe(r)?Ee(i,r,s):{}.NODE_ENV!=="production"&&re(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&re(`Invalid watch option: "${n}"`,s)}function Do(s){const e=s.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(e);let l;return a?l=a:!i.length&&!t&&!n?l=e:(l={},i.length&&i.forEach(c=>tr(l,c,o,!0)),tr(l,e,o)),Xe(e)&&r.set(e,l),l}function tr(s,e,t,n=!1){const{mixins:i,extends:r}=e;r&&tr(s,r,t,!0),i&&i.forEach(o=>tr(s,o,t,!0));for(const o in e)if(n&&o==="expose")({}).NODE_ENV!=="production"&&re('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Ff[o]||t&&t[o];s[o]=a?a(s[o],e[o]):e[o]}return s}const Ff={data:rc,props:oc,emits:oc,methods:ni,computed:ni,beforeCreate:At,created:At,beforeMount:At,mounted:At,beforeUpdate:At,updated:At,beforeDestroy:At,beforeUnmount:At,destroyed:At,unmounted:At,activated:At,deactivated:At,errorCaptured:At,serverPrefetch:At,components:ni,directives:ni,watch:Bf,provide:rc,inject:Gf};function rc(s,e){return e?s?function(){return lt(Oe(s)?s.call(this,this):s,Oe(e)?e.call(this,this):e)}:e:s}function Gf(s,e){return ni(No(s),No(e))}function No(s){if(ve(s)){const e={};for(let t=0;t<s.length;t++)e[s[t]]=s[t];return e}return s}function At(s,e){return s?[...new Set([].concat(s,e))]:e}function ni(s,e){return s?lt(Object.create(null),s,e):e}function oc(s,e){return s?ve(s)&&ve(e)?[...new Set([...s,...e])]:lt(Object.create(null),sc(s),sc(e??{})):e}function Bf(s,e){if(!s)return e;if(!e)return s;const t=lt(Object.create(null),s);for(const n in e)t[n]=At(s[n],e[n]);return t}function ac(){return{app:null,config:{isNativeTag:sd,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 jf=0;function Yf(s,e){return function(n,i=null){Oe(n)||(n=lt({},n)),i!=null&&!Xe(i)&&({}.NODE_ENV!=="production"&&re("root props passed to app.mount() must be an object."),i=null);const r=ac(),o=new WeakSet;let a=!1;const l=r.app={_uid:jf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Vc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&re("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&re("Plugin has already been applied to target app."):c&&Oe(c.install)?(o.add(c),c.install(l,...u)):Oe(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&re('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&re("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Go(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&re(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Ql(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&re(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&re("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__&&re("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=ue(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Zs(f),c,h)}),u&&e?e(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,tf(l,Vc)),cr(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,sf(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&re("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&re(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=ii;ii=l;try{return c()}finally{ii=u}}};return l}}let ii=null;function Hf(s,e){if(!Et)({}).NODE_ENV!=="production"&&re("provide() can only be used inside setup().");else{let t=Et.provides;const n=Et.parent&&Et.parent.provides;n===t&&(t=Et.provides=Object.create(n)),t[s]=e}}function sr(s,e,t=!1){const n=Et||xt;if(n||ii){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:ii._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return t&&Oe(e)?e.call(n&&n.proxy):e;({}).NODE_ENV!=="production"&&re(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&re("inject() can only be used inside setup() or functional components.")}const lc={},cc=()=>Object.create(lc),uc=s=>Object.getPrototypeOf(s)===lc;function Wf(s,e,t,n=!1){const i={},r=cc();s.propsDefaults=Object.create(null),hc(s,e,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&gc(e||{},i,s),t?s.props=n?i:Ad(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function Xf(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function Uf(s,e,t,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Ne(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Xf(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(qi(s.emitsOptions,f))continue;const d=e[f];if(l)if(Ve(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=Cs(f);i[m]=$o(l,a,m,d,s,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{hc(s,e,i,r)&&(c=!0);let u;for(const h in a)(!e||!Ve(e,h)&&((u=Wt(h))===h||!Ve(e,u)))&&(l?t&&(t[h]!==void 0||t[u]!==void 0)&&(i[h]=$o(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!e||!Ve(e,h))&&(delete r[h],c=!0)}c&&ds(s.attrs,"set",""),{}.NODE_ENV!=="production"&&gc(e||{},i,s)}function hc(s,e,t,n){const[i,r]=s.propsOptions;let o=!1,a;if(e)for(let l in e){if(Xn(l))continue;const c=e[l];let u;i&&Ve(i,u=Cs(l))?!r||!r.includes(u)?t[u]=c:(a||(a={}))[u]=c:qi(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Ne(t),c=a||Ke;for(let u=0;u<r.length;u++){const h=r[u];t[h]=$o(i,l,h,c[h],s,!Ve(c,h))}}return o}function $o(s,e,t,n,i,r){const o=s[t];if(o!=null){const a=Ve(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Oe(l)){const{propsDefaults:c}=i;if(t in c)n=c[t];else{const u=ui(i);n=c[t]=l.call(null,e),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Wt(t))&&(n=!0))}return n}function dc(s,e,t=!1){const n=e.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!Oe(s)){const u=h=>{l=!0;const[f,d]=dc(h,e,!0);lt(o,f),d&&a.push(...d)};!t&&e.mixins.length&&e.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Xe(s)&&n.set(s,Dn),Dn;if(ve(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!mt(r[u])&&re("props must be strings when using array syntax.",r[u]);const h=Cs(r[u]);fc(h)&&(o[h]=Ke)}else if(r){({}).NODE_ENV!=="production"&&!Xe(r)&&re("invalid props options",r);for(const u in r){const h=Cs(u);if(fc(h)){const f=r[u],d=o[h]=ve(f)||Oe(f)?{type:f}:lt({},f);if(d){const m=mc(Boolean,d.type),v=mc(String,d.type);d[0]=m>-1,d[1]=v<0||m<v,(m>-1||Ve(d,"default"))&&a.push(h)}}}}const c=[o,a];return Xe(s)&&n.set(s,c),c}function fc(s){return s[0]!=="$"&&!Xn(s)?!0:({}.NODE_ENV!=="production"&&re(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Mo(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function pc(s,e){return Mo(s)===Mo(e)}function mc(s,e){return ve(e)?e.findIndex(t=>pc(t,s)):Oe(e)&&pc(e,s)?0:-1}function gc(s,e,t){const n=Ne(e),i=t.propsOptions[0];for(const r in i){let o=i[r];o!=null&&qf(r,n[r],o,{}.NODE_ENV!=="production"?Es(n):n,!Ve(s,r)&&!Ve(s,Wt(r)))}}function qf(s,e,t,n,i){const{type:r,required:o,validator:a,skipCheck:l}=t;if(o&&i){re('Missing required prop: "'+s+'"');return}if(!(e==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=ve(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=Kf(e,u[f]);h.push(m||""),c=d}if(!c){re(Qf(s,e,h));return}}a&&!a(e,n)&&re('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Zf=In("String,Number,Boolean,Function,Symbol,BigInt");function Kf(s,e){let t;const n=Mo(e);if(Zf(n)){const i=typeof s;t=i===n.toLowerCase(),!t&&i==="object"&&(t=s instanceof e)}else n==="Object"?t=Xe(s):n==="Array"?t=ve(s):n==="null"?t=s===null:t=s instanceof e;return{valid:t,expectedType:n}}function Qf(s,e,t){if(t.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${t.map(Ai).join(" | ")}`;const i=t[0],r=eo(e),o=vc(e,i),a=vc(e,r);return t.length===1&&yc(i)&&!Jf(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,yc(r)&&(n+=`with value ${a}.`),n}function vc(s,e){return e==="String"?`"${s}"`:e==="Number"?`${Number(s)}`:`${s}`}function yc(s){return["string","number","boolean"].some(t=>s.toLowerCase()===t)}function Jf(...s){return s.some(e=>e.toLowerCase()==="boolean")}const bc=s=>s[0]==="_"||s==="$stable",Ao=s=>ve(s)?s.map(as):[as(s)],ep=(s,e,t)=>{if(e._n)return e;const n=nt((...i)=>({}.NODE_ENV!=="production"&&Et&&(!t||t.root===Et.root)&&re(`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.`),Ao(e(...i))),t);return n._c=!1,n},_c=(s,e,t)=>{const n=s._ctx;for(const i in s){if(bc(i))continue;const r=s[i];if(Oe(r))e[i]=ep(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&re(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Ao(r);e[i]=()=>o}}},xc=(s,e)=>{({}).NODE_ENV!=="production"&&!Eo(s.vnode)&&re("Non-function value encountered for default slot. Prefer function slots for better performance.");const t=Ao(e);s.slots.default=()=>t},tp=(s,e)=>{const t=s.slots=cc();if(s.vnode.shapeFlag&32){const n=e._;n?(lt(t,e),il(t,"_",n)):_c(e,t)}else e&&xc(s,e)},sp=(s,e,t)=>{const{vnode:n,slots:i}=s;let r=!0,o=Ke;if(n.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&mn?(lt(i,e),ds(s,"set","$slots")):t&&a===1?r=!1:(lt(i,e),!t&&a===1&&delete i._):(r=!e.$stable,_c(e,i)),o=e}else e&&(xc(s,e),o={default:1});if(r)for(const a in i)!bc(a)&&o[a]==null&&delete i[a]};function Ro(s,e,t,n,i=!1){if(ve(s)){s.forEach((f,d)=>Ro(f,e&&(ve(e)?e[d]:e),t,n,i));return}if(si(n)&&!i)return;const r=n.shapeFlag&4?cr(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){re("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=e&&e.r,u=a.refs===Ke?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(mt(c)?(u[c]=null,Ve(h,c)&&(h[c]=null)):It(c)&&(c.value=null)),Oe(l))Ts(l,a,12,[o,u]);else{const f=mt(l),d=It(l);if(f||d){const m=()=>{if(s.f){const v=f?Ve(h,l)?h[l]:u[l]:l.value;i?ve(v)&&Qr(v,r):ve(v)?v.includes(r)||v.push(r):f?(u[l]=[r],Ve(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,Ve(h,l)&&(h[l]=o)):d?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&re("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Gt(m,t)):m()}else({}).NODE_ENV!=="production"&&re("Invalid template ref type:",l,`(${typeof l})`)}}let ri,qs;function Ds(s,e){s.appContext.config.performance&&nr()&&qs.mark(`vue-${e}-${s.uid}`),{}.NODE_ENV!=="production"&&af(s,e,nr()?qs.now():Date.now())}function Ns(s,e){if(s.appContext.config.performance&&nr()){const t=`vue-${e}-${s.uid}`,n=t+":end";qs.mark(n),qs.measure(`<${ur(s,s.type)}> ${e}`,t,n),qs.clearMarks(t),qs.clearMarks(n)}({}).NODE_ENV!=="production"&&lf(s,e,nr()?qs.now():Date.now())}function nr(){return ri!==void 0||(typeof window<"u"&&window.performance?(ri=!0,qs=window.performance):ri=!1),ri}function np(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const e=s.length>1;console.warn(`Feature flag${e?"s":""} ${s.join(", ")} ${e?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
15
|
+
**/const to=[];function Lr(o){to.push(o)}function Mr(){to.pop()}function ut(o,...t){ps();const e=to.length?to[to.length-1].component:null,s=e&&e.appContext.config.warnHandler,r=_f();if(s)ys(s,e,11,[o+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 <${Qr(e,n.type)}>`).join(`
|
|
16
|
+
`),r]);else{const n=[`[Vue warn]: ${o}`,...t];r.length&&n.push(`
|
|
17
|
+
`,...xf(r)),console.warn(...n)}ms()}function _f(){let o=to[to.length-1];if(!o)return[];const t=[];for(;o;){const e=t[0];e&&e.vnode===o?e.recurseCount++:t.push({vnode:o,recurseCount:0});const s=o.component&&o.component.parent;o=s&&s.vnode}return t}function xf(o){const t=[];return o.forEach((e,s)=>{t.push(...s===0?[]:[`
|
|
18
|
+
`],...wf(e))}),t}function wf({vnode:o,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",s=o.component?o.component.parent==null:!1,r=` at <${Qr(o.component,o.type,s)}`,n=">"+e;return o.props?[r,...kf(o.props),n]:[r+n]}function kf(o){const t=[],e=Object.keys(o);return e.slice(0,3).forEach(s=>{t.push(...Al(s,o[s]))}),e.length>3&&t.push(" ..."),t}function Al(o,t,e){return le(t)?(t=JSON.stringify(t),e?t:[`${o}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${o}=${t}`]:xe(t)?(t=Al(o,Ft(t.value),!0),e?t:[`${o}=Ref<`,t,">"]):Ot(t)?[`${o}=fn${t.name?`<${t.name}>`:""}`]:(t=Ft(t),e?t:[`${o}=`,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 ys(o,t,e,s){try{return s?o(...s):o()}catch(r){Yo(r,t,e)}}function Je(o,t,e,s){if(Ot(o)){const r=ys(o,t,e,s);return r&&Qn(r)&&r.catch(n=>{Yo(n,t,e)}),r}if(kt(o)){const r=[];for(let n=0;n<o.length;n++)r.push(Je(o[n],t,e,s));return r}else({}).NODE_ENV!=="production"&&ut(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof o}`)}function Yo(o,t,e,s=!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](o,a,i)===!1)return}n=n.parent}const l=t.appContext.config.errorHandler;if(l){ps(),ys(l,null,10,[o,a,i]),ms();return}}Cf(o,e,r,s)}function Cf(o,t,e,s=!0){if({}.NODE_ENV!=="production"){const r=fa[t];if(e&&Lr(e),ut(`Unhandled error${r?` during execution of ${r}`:""}`),e&&Mr(),s)throw o;console.error(o)}else console.error(o)}let Bo=!1,pa=!1;const Se=[];let rs=0;const ko=[];let vs=null,$s=0;const zl=Promise.resolve();let ma=null;const Tf=100;function Vl(o){const t=ma||zl;return o?t.then(this?o.bind(this):o):t}function Sf(o){let t=rs+1,e=Se.length;for(;t<e;){const s=t+e>>>1,r=Se[s],n=Xo(r);n<o||n===o&&r.pre?t=s+1:e=s}return t}function Nr(o){(!Se.length||!Se.includes(o,Bo&&o.allowRecurse?rs+1:rs))&&(o.id==null?Se.push(o):Se.splice(Sf(o.id),0,o),Yl())}function Yl(){!Bo&&!pa&&(pa=!0,ma=zl.then(Ul))}function Ef(o){const t=Se.indexOf(o);t>rs&&Se.splice(t,1)}function Bl(o){kt(o)?ko.push(...o):(!vs||!vs.includes(o,o.allowRecurse?$s+1:$s))&&ko.push(o),Yl()}function Xl(o,t,e=Bo?rs+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Se.length;e++){const s=Se[e];if(s&&s.pre){if(o&&s.id!==o.uid||{}.NODE_ENV!=="production"&&ga(t,s))continue;Se.splice(e,1),e--,s()}}}function Gl(o){if(ko.length){const t=[...new Set(ko)].sort((e,s)=>Xo(e)-Xo(s));if(ko.length=0,vs){vs.push(...t);return}for(vs=t,{}.NODE_ENV!=="production"&&(o=o||new Map),$s=0;$s<vs.length;$s++)({}).NODE_ENV!=="production"&&ga(o,vs[$s])||vs[$s]();vs=null,$s=0}}const Xo=o=>o.id==null?1/0:o.id,Pf=(o,t)=>{const e=Xo(o)-Xo(t);if(e===0){if(o.pre&&!t.pre)return-1;if(t.pre&&!o.pre)return 1}return e};function Ul(o){pa=!1,Bo=!0,{}.NODE_ENV!=="production"&&(o=o||new Map),Se.sort(Pf);const t={}.NODE_ENV!=="production"?e=>ga(o,e):ue;try{for(rs=0;rs<Se.length;rs++){const e=Se[rs];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;ys(e,null,14)}}}finally{rs=0,Se.length=0,Gl(o),Bo=!1,ma=null,(Se.length||ko.length)&&Ul(o)}}function ga(o,t){if(!o.has(t))o.set(t,1);else{const e=o.get(t);if(e>Tf){const s=t.ownerInstance,r=s&&Yc(s.type);return Yo(`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 o.set(t,e+1)}}let eo=!1;const Co=new Set;({}).NODE_ENV!=="production"&&(ea().__VUE_HMR_RUNTIME__={createRecord:ya(jl),rerender:ya(Rf),reload:ya(Ff)});const so=new Map;function Of(o){const t=o.type.__hmrId;let e=so.get(t);e||(jl(t,o.type),e=so.get(t)),e.instances.add(o)}function If(o){so.get(o.type.__hmrId).instances.delete(o)}function jl(o,t){return so.has(o)?!1:(so.set(o,{initialDef:Go(t),instances:new Set}),!0)}function Go(o){return Bc(o)?o.__vccOpts:o}function Rf(o,t){const e=so.get(o);e&&(e.initialDef.render=t,[...e.instances].forEach(s=>{t&&(s.render=t,Go(s.type).render=t),s.renderCache=[],eo=!0,s.effect.dirty=!0,s.update(),eo=!1}))}function Ff(o,t){const e=so.get(o);if(!e)return;t=Go(t),Hl(e.initialDef,t);const s=[...e.instances];for(const r of s){const n=Go(r.type);Co.has(n)||(n!==e.initialDef&&Hl(n,t),Co.add(n)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(Co.add(n),r.ceReload(t.styles),Co.delete(n)):r.parent?(r.parent.effect.dirty=!0,Nr(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.")}Bl(()=>{for(const r of s)Co.delete(Go(r.type))})}function Hl(o,t){se(o,t);for(const e in o)e!=="__file"&&!(e in t)&&delete o[e]}function ya(o){return(t,e)=>{try{return o(t,e)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ns,Uo=[],va=!1;function jo(o,...t){ns?ns.emit(o,...t):va||Uo.push({event:o,args:t})}function Zl(o,t){var e,s;ns=o,ns?(ns.enabled=!0,Uo.forEach(({event:r,args:n})=>ns.emit(r,...n)),Uo=[]):typeof window<"u"&&window.HTMLElement&&!((s=(e=window.navigator)==null?void 0:e.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{Zl(n,t)}),setTimeout(()=>{ns||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,va=!0,Uo=[])},3e3)):(va=!0,Uo=[])}function Df(o,t){jo("app:init",o,t,{Fragment:Vt,Text:Ko,Comment:Ae,Static:Qo})}function $f(o){jo("app:unmount",o)}const Lf=ba("component:added"),Wl=ba("component:updated"),Mf=ba("component:removed"),Nf=o=>{ns&&typeof ns.cleanupBuffer=="function"&&!ns.cleanupBuffer(o)&&Mf(o)};/*! #__NO_SIDE_EFFECTS__ */function ba(o){return t=>{jo(o,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Af=ql("perf:start"),zf=ql("perf:end");function ql(o){return(t,e,s)=>{jo(o,t.appContext.app,t.uid,t,e,s)}}function Vf(o,t,e){jo("component:emit",o.appContext.app,o,t,e)}function Yf(o,t,...e){if(o.isUnmounted)return;const s=o.vnode.props||Ht;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[d]}=o;if(u)if(!(t in u))(!d||!(Ws(t)in d))&&ut(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ws(t)}" prop.`);else{const f=u[t];Ot(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 s){const u=`${a==="modelValue"?"model":a}Modifiers`,{number:d,trim:f}=s[u]||Ht;f&&(r=e.map(p=>le(p)?p.trim():p)),d&&(r=e.map(Ah))}if({}.NODE_ENV!=="production"&&Vf(o,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&s[Ws(u)]&&ut(`Event "${u}" is emitted in component ${Qr(o,o.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 "${Be(t)}" instead of "${t}".`)}let i,l=s[i=Ws(t)]||s[i=Ws(fs(t))];!l&&n&&(l=s[i=Ws(Be(t))]),l&&Je(l,o,6,r);const c=s[i+"Once"];if(c){if(!o.emitted)o.emitted={};else if(o.emitted[i])return;o.emitted[i]=!0,Je(c,o,6,r)}}function Kl(o,t,e=!1){const s=t.emitsCache,r=s.get(o);if(r!==void 0)return r;const n=o.emits;let a={},i=!1;if(!Ot(o)){const l=c=>{const u=Kl(c,t,!0);u&&(i=!0,se(a,u))};!e&&t.mixins.length&&t.mixins.forEach(l),o.extends&&l(o.extends),o.mixins&&o.mixins.forEach(l)}return!n&&!i?(Ut(o)&&s.set(o,null),null):(kt(n)?n.forEach(l=>a[l]=null):se(a,n),Ut(o)&&s.set(o,a),a)}function Ar(o,t){return!o||!No(t)?!1:(t=t.slice(2).replace(/Once$/,""),$t(o,t[0].toLowerCase()+t.slice(1))||$t(o,Be(t))||$t(o,t))}let de=null,zr=null;function Vr(o){const t=de;return de=o,zr=o&&o.type.__scopeId||null,t}function To(o){zr=o}function So(){zr=null}function St(o,t=de,e){if(!t||o._n)return o;const s=(...r)=>{s._d&&Pc(-1);const n=Vr(t);let a;try{a=o(...r)}finally{Vr(n),s._d&&Pc(1)}return{}.NODE_ENV!=="production"&&Wl(t),a};return s._n=!0,s._c=!0,s._d=!0,s}let _a=!1;function Yr(){_a=!0}function xa(o){const{type:t,vnode:e,proxy:s,withProxy:r,propsOptions:[n],slots:a,attrs:i,emit:l,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:h,inheritAttrs:y}=o,v=Vr(o);let _,z;({}).NODE_ENV!=="production"&&(_a=!1);try{if(e.shapeFlag&4){const G=r||s,J={}.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(G,{get(H,it,w){return ut(`Property '${String(it)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(H,it,w)}}):G;_=es(c.call(J,G,u,{}.NODE_ENV!=="production"?gs(d):d,p,f,h)),z=i}else{const G=t;({}).NODE_ENV!=="production"&&i===d&&Yr(),_=es(G.length>1?G({}.NODE_ENV!=="production"?gs(d):d,{}.NODE_ENV!=="production"?{get attrs(){return Yr(),i},slots:a,emit:l}:{attrs:i,slots:a,emit:l}):G({}.NODE_ENV!=="production"?gs(d):d,null)),z=t.props?i:Bf(i)}}catch(G){Jo.length=0,Yo(G,o,1),_=ft(Ae)}let Y=_,O;if({}.NODE_ENV!=="production"&&_.patchFlag>0&&_.patchFlag&2048&&([Y,O]=Ql(_)),z&&y!==!1){const G=Object.keys(z),{shapeFlag:J}=Y;if(G.length){if(J&7)n&&G.some(wr)&&(z=Xf(z,n)),Y=Ms(Y,z);else if({}.NODE_ENV!=="production"&&!_a&&Y.type!==Ae){const H=Object.keys(i),it=[],w=[];for(let E=0,F=H.length;E<F;E++){const P=H[E];No(P)?wr(P)||it.push(P[2].toLowerCase()+P.slice(3)):w.push(P)}w.length&&ut(`Extraneous non-props attributes (${w.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),it.length&&ut(`Extraneous non-emits event listeners (${it.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"&&!Jl(Y)&&ut("Runtime directive used on component with non-element root node. The directives will not function as intended."),Y=Ms(Y),Y.dirs=Y.dirs?Y.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Jl(Y)&&ut("Component inside <Transition> renders non-element root node that cannot be animated."),Y.transition=e.transition),{}.NODE_ENV!=="production"&&O?O(Y):_=Y,Vr(v),_}const Ql=o=>{const t=o.children,e=o.dynamicChildren,s=wa(t,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return Ql(s)}else return[o,void 0];const r=t.indexOf(s),n=e?e.indexOf(s):-1,a=i=>{t[r]=i,e&&(n>-1?e[n]=i:i.patchFlag>0&&(o.dynamicChildren=[...e,i]))};return[es(s),a]};function wa(o,t=!0){let e;for(let s=0;s<o.length;s++){const r=o[s];if(Eo(r)){if(r.type!==Ae||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 Bf=o=>{let t;for(const e in o)(e==="class"||e==="style"||No(e))&&((t||(t={}))[e]=o[e]);return t},Xf=(o,t)=>{const e={};for(const s in o)(!wr(s)||!(s.slice(9)in t))&&(e[s]=o[s]);return e},Jl=o=>o.shapeFlag&7||o.type===Ae;function Gf(o,t,e){const{props:s,children:r,component:n}=o,{props:a,children:i,patchFlag:l}=t,c=n.emitsOptions;if({}.NODE_ENV!=="production"&&(r||i)&&eo||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return s?tc(s,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(a[f]!==s[f]&&!Ar(c,f))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===a?!1:s?a?tc(s,a,c):!0:!!a;return!1}function tc(o,t,e){const s=Object.keys(t);if(s.length!==Object.keys(o).length)return!0;for(let r=0;r<s.length;r++){const n=s[r];if(t[n]!==o[n]&&!Ar(e,n))return!0}return!1}function Uf({vnode:o,parent:t},e){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===o&&(s.el=o.el),s===o)(o=t.vnode).el=e,t=t.parent;else break}}const jf=Symbol.for("v-ndc"),Hf=o=>o.__isSuspense;function Zf(o,t){t&&t.pendingBranch?kt(o)?t.effects.push(...o):t.effects.push(o):Bl(o)}const Wf=Symbol.for("v-scx"),qf=()=>{{const o=Ur(Wf);return o||{}.NODE_ENV!=="production"&&ut("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),o}};function ec(o,t){return ka(o,null,t)}const Br={};function bt(o,t,e){return{}.NODE_ENV!=="production"&&!Ot(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(o,t,e)}function ka(o,t,{immediate:e,deep:s,flush:r,once:n,onTrack:a,onTrigger:i}=Ht){if(t&&n){const H=t;t=(...it)=>{H(...it),J()}}({}).NODE_ENV!=="production"&&s!==void 0&&typeof s=="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.'),s!==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=H=>{ut("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ge,u=H=>s===!0?H:oo(H,s===!1?1:void 0);let d,f=!1,p=!1;if(xe(o)?(d=()=>o.value,f=Js(o)):wo(o)?(d=()=>u(o),f=!0):kt(o)?(p=!0,f=o.some(H=>wo(H)||Js(H)),d=()=>o.map(H=>{if(xe(H))return H.value;if(wo(H))return u(H);if(Ot(H))return ys(H,c,2);({}).NODE_ENV!=="production"&&l(H)})):Ot(o)?t?d=()=>ys(o,c,2):d=()=>(h&&h(),Je(o,c,3,[y])):(d=ue,{}.NODE_ENV!=="production"&&l(o)),t&&s){const H=d;d=()=>oo(H())}let h,y=H=>{h=O.onStop=()=>{ys(H,c,4),h=O.onStop=void 0}},v;if(qr)if(y=ue,t?e&&Je(t,c,3,[d(),p?[]:void 0,y]):d(),r==="sync"){const H=qf();v=H.__watcherHandles||(H.__watcherHandles=[])}else return ue;let _=p?new Array(o.length).fill(Br):Br;const z=()=>{if(!(!O.active||!O.dirty))if(t){const H=O.run();(s||f||(p?H.some((it,w)=>Is(it,_[w])):Is(H,_)))&&(h&&h(),Je(t,c,3,[H,_===Br?void 0:p&&_[0]===Br?[]:_,y]),_=H)}else O.run()};z.allowRecurse=!!t;let Y;r==="sync"?Y=z:r==="post"?Y=()=>Ne(z,c&&c.suspense):(z.pre=!0,c&&(z.id=c.uid),Y=()=>Nr(z));const O=new oa(d,ue,Y),G=jh(),J=()=>{O.stop(),G&&Kn(G.effects,O)};return{}.NODE_ENV!=="production"&&(O.onTrack=a,O.onTrigger=i),t?e?z():_=O.run():r==="post"?Ne(O.run.bind(O),c&&c.suspense):O.run(),v&&v.push(J),J}function Kf(o,t,e){const s=this.proxy,r=le(o)?o.includes(".")?sc(s,o):()=>s[o]:o.bind(s,s);let n;Ot(t)?n=t:(n=t.handler,e=t);const a=sr(this),i=ka(r,n.bind(s),e);return a(),i}function sc(o,t){const e=t.split(".");return()=>{let s=o;for(let r=0;r<e.length&&s;r++)s=s[e[r]];return s}}function oo(o,t,e=0,s){if(!Ut(o)||o.__v_skip)return o;if(t&&t>0){if(e>=t)return o;e++}if(s=s||new Set,s.has(o))return o;if(s.add(o),xe(o))oo(o.value,t,e,s);else if(kt(o))for(let r=0;r<o.length;r++)oo(o[r],t,e,s);else if(nl(o)||Hs(o))o.forEach(r=>{oo(r,t,e,s)});else if(il(o))for(const r in o)oo(o[r],t,e,s);return o}function oc(o){Lh(o)&&ut("Do not use built-in directive ids as custom directive id: "+o)}function ro(o,t){if(de===null)return{}.NODE_ENV!=="production"&&ut("withDirectives can only be used inside render functions."),o;const e=Kr(de)||de.proxy,s=o.dirs||(o.dirs=[]);for(let r=0;r<t.length;r++){let[n,a,i,l=Ht]=t[r];n&&(Ot(n)&&(n={mounted:n,updated:n}),n.deep&&oo(a),s.push({dir:n,instance:e,value:a,oldValue:void 0,arg:i,modifiers:l}))}return o}function no(o,t,e,s){const r=o.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[s];l&&(ps(),Je(l,e,8,[o.el,i,o,t]),ms())}}/*! #__NO_SIDE_EFFECTS__ */function tt(o,t){return Ot(o)?(()=>se({name:o.name},t,{setup:o}))():o}const Ho=o=>!!o.type.__asyncLoader,Ca=o=>o.type.__isKeepAlive;function Qf(o,t){rc(o,"a",t)}function Jf(o,t){rc(o,"da",t)}function rc(o,t,e=ge){const s=o.__wdc||(o.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return o()});if(Xr(t,s,e),e){let r=e.parent;for(;r&&r.parent;)Ca(r.parent.vnode)&&tp(s,t,e,r),r=r.parent}}function tp(o,t,e,s){const r=Xr(t,o,s,!0);oe(()=>{Kn(s[t],r)},e)}function Xr(o,t,e=ge,s=!1){if(e){const r=e[o]||(e[o]=[]),n=t.__weh||(t.__weh=(...a)=>{if(e.isUnmounted)return;ps();const i=sr(e),l=Je(t,e,o,a);return i(),ms(),l});return s?r.unshift(n):r.push(n),n}else if({}.NODE_ENV!=="production"){const r=Ws(fa[o].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 bs=o=>(t,e=ge)=>(!qr||o==="sp")&&Xr(o,(...s)=>t(...s),e),ep=bs("bm"),ao=bs("m"),sp=bs("bu"),op=bs("u"),rp=bs("bum"),oe=bs("um"),np=bs("sp"),ap=bs("rtg"),ip=bs("rtc");function lp(o,t=ge){Xr("ec",o,t)}function pe(o,t,e,s){let r;const n=e&&e[s];if(kt(o)||le(o)){r=new Array(o.length);for(let a=0,i=o.length;a<i;a++)r[a]=t(o[a],a,void 0,n&&n[a])}else if(typeof o=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(o)&&ut(`The v-for range expect an integer value but got ${o}.`),r=new Array(o);for(let a=0;a<o;a++)r[a]=t(a+1,a,void 0,n&&n[a])}else if(Ut(o))if(o[Symbol.iterator])r=Array.from(o,(a,i)=>t(a,i,void 0,n&&n[i]));else{const a=Object.keys(o);r=new Array(a.length);for(let i=0,l=a.length;i<l;i++){const c=a[i];r[i]=t(o[c],c,i,n&&n[i])}}else r=[];return e&&(e[s]=r),r}function Et(o,t,e={},s,r){if(de.isCE||de.parent&&Ho(de.parent)&&de.parent.isCE)return t!=="default"&&(e.name=t),ft("slot",e,s&&s());let n=o[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),R();const a=n&&nc(n(e)),i=Lt(Vt,{key:e.key||a&&a.key||`_${t}`},a||(s?s():[]),a&&o._===1?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),n&&n._c&&(n._d=!0),i}function nc(o){return o.some(t=>Eo(t)?!(t.type===Ae||t.type===Vt&&!nc(t.children)):!0)?o:null}const Ta=o=>o?Mc(o)?Kr(o)||o.proxy:Ta(o.parent):null,io=se(Object.create(null),{$:o=>o,$el:o=>o.vnode.el,$data:o=>o.data,$props:o=>({}).NODE_ENV!=="production"?gs(o.props):o.props,$attrs:o=>({}).NODE_ENV!=="production"?gs(o.attrs):o.attrs,$slots:o=>({}).NODE_ENV!=="production"?gs(o.slots):o.slots,$refs:o=>({}).NODE_ENV!=="production"?gs(o.refs):o.refs,$parent:o=>Ta(o.parent),$root:o=>Ta(o.root),$emit:o=>o.emit,$options:o=>Oa(o),$forceUpdate:o=>o.f||(o.f=()=>{o.effect.dirty=!0,Nr(o.update)}),$nextTick:o=>o.n||(o.n=Vl.bind(o.proxy)),$watch:o=>Kf.bind(o)}),Sa=o=>o==="_"||o==="$",Ea=(o,t)=>o!==Ht&&!o.__isScriptSetup&&$t(o,t),ac={get({_:o},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:s,data:r,props:n,accessCache:a,type:i,appContext:l}=o;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 s[t];case 2:return r[t];case 4:return e[t];case 3:return n[t]}else{if(Ea(s,t))return a[t]=1,s[t];if(r!==Ht&&$t(r,t))return a[t]=2,r[t];if((c=o.propsOptions[0])&&$t(c,t))return a[t]=3,n[t];if(e!==Ht&&$t(e,t))return a[t]=4,e[t];Pa&&(a[t]=0)}}const u=io[t];let d,f;if(u)return t==="$attrs"?(_e(o.attrs,"get",""),{}.NODE_ENV!=="production"&&Yr()):{}.NODE_ENV!=="production"&&t==="$slots"&&_e(o,"get",t),u(o);if((d=i.__cssModules)&&(d=d[t]))return d;if(e!==Ht&&$t(e,t))return a[t]=4,e[t];if(f=l.config.globalProperties,$t(f,t))return f[t];({}).NODE_ENV!=="production"&&de&&(!le(t)||t.indexOf("__v")!==0)&&(r!==Ht&&Sa(t[0])&&$t(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.`):o===de&&ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:o},t,e){const{data:s,setupState:r,ctx:n}=o;return Ea(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&$t(r,t)?(ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==Ht&&$t(s,t)?(s[t]=e,!0):$t(o.props,t)?({}.NODE_ENV!=="production"&&ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in o?({}.NODE_ENV!=="production"&&ut(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in o.appContext.config.globalProperties?Object.defineProperty(n,t,{enumerable:!0,configurable:!0,value:e}):n[t]=e,!0)},has({_:{data:o,setupState:t,accessCache:e,ctx:s,appContext:r,propsOptions:n}},a){let i;return!!e[a]||o!==Ht&&$t(o,a)||Ea(t,a)||(i=n[0])&&$t(i,a)||$t(s,a)||$t(io,a)||$t(r.config.globalProperties,a)},defineProperty(o,t,e){return e.get!=null?o._.accessCache[t]=0:$t(e,"value")&&this.set(o,t,e.value,null),Reflect.defineProperty(o,t,e)}};({}).NODE_ENV!=="production"&&(ac.ownKeys=o=>(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(o)));function cp(o){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>o}),Object.keys(io).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>io[e](o),set:ue})}),t}function up(o){const{ctx:t,propsOptions:[e]}=o;e&&Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.props[s],set:ue})})}function dp(o){const{ctx:t,setupState:e}=o;Object.keys(Ft(e)).forEach(s=>{if(!e.__isScriptSetup){if(Sa(s[0])){ut(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e[s],set:ue})}})}function hp(){return fp().slots}function fp(){const o=$c();return{}.NODE_ENV!=="production"&&!o&&ut("useContext() called without active instance."),o.setupContext||(o.setupContext=Vc(o))}function ic(o){return kt(o)?o.reduce((t,e)=>(t[e]=null,t),{}):o}function pp(){const o=Object.create(null);return(t,e)=>{o[e]?ut(`${t} property "${e}" is already defined in ${o[e]}.`):o[e]=t}}let Pa=!0;function mp(o){const t=Oa(o),e=o.proxy,s=o.ctx;Pa=!1,t.beforeCreate&&lc(t.beforeCreate,o,"bc");const{data:r,computed:n,methods:a,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:y,deactivated:v,beforeDestroy:_,beforeUnmount:z,destroyed:Y,unmounted:O,render:G,renderTracked:J,renderTriggered:H,errorCaptured:it,serverPrefetch:w,expose:E,inheritAttrs:F,components:P,directives:$,filters:B}=t,st={}.NODE_ENV!=="production"?pp():null;if({}.NODE_ENV!=="production"){const[Z]=o.propsOptions;if(Z)for(const nt in Z)st("Props",nt)}if(c&&gp(c,s,st),a)for(const Z in a){const nt=a[Z];Ot(nt)?({}.NODE_ENV!=="production"?Object.defineProperty(s,Z,{value:nt.bind(e),configurable:!0,enumerable:!0,writable:!0}):s[Z]=nt.bind(e),{}.NODE_ENV!=="production"&&st("Methods",Z)):{}.NODE_ENV!=="production"&&ut(`Method "${Z}" has type "${typeof nt}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Ot(r)&&ut("The data option must be a function. Plain object usage is no longer supported.");const Z=r.call(e,e);if({}.NODE_ENV!=="production"&&Qn(Z)&&ut("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Ut(Z))({}).NODE_ENV!=="production"&&ut("data() should return an object.");else if(o.data=Zt(Z),{}.NODE_ENV!=="production")for(const nt in Z)st("Data",nt),Sa(nt[0])||Object.defineProperty(s,nt,{configurable:!0,enumerable:!0,get:()=>Z[nt],set:ue})}if(Pa=!0,n)for(const Z in n){const nt=n[Z],U=Ot(nt)?nt.bind(e,e):Ot(nt.get)?nt.get.bind(e,e):ue;({}).NODE_ENV!=="production"&&U===ue&&ut(`Computed property "${Z}" has no getter.`);const X=!Ot(nt)&&Ot(nt.set)?nt.set.bind(e):{}.NODE_ENV!=="production"?()=>{ut(`Write operation failed: computed property "${Z}" is readonly.`)}:ue,yt=Jp({get:U,set:X});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>yt.value,set:N=>yt.value=N}),{}.NODE_ENV!=="production"&&st("Computed",Z)}if(i)for(const Z in i)cc(i[Z],s,e,Z);if(l){const Z=Ot(l)?l.call(e):l;Reflect.ownKeys(Z).forEach(nt=>{wp(nt,Z[nt])})}u&&lc(u,o,"c");function K(Z,nt){kt(nt)?nt.forEach(U=>Z(U.bind(e))):nt&&Z(nt.bind(e))}if(K(ep,d),K(ao,f),K(sp,p),K(op,h),K(Qf,y),K(Jf,v),K(lp,it),K(ip,J),K(ap,H),K(rp,z),K(oe,O),K(np,w),kt(E))if(E.length){const Z=o.exposed||(o.exposed={});E.forEach(nt=>{Object.defineProperty(Z,nt,{get:()=>e[nt],set:U=>e[nt]=U})})}else o.exposed||(o.exposed={});G&&o.render===ue&&(o.render=G),F!=null&&(o.inheritAttrs=F),P&&(o.components=P),$&&(o.directives=$)}function gp(o,t,e=ue){kt(o)&&(o=Ia(o));for(const s in o){const r=o[s];let n;Ut(r)?"default"in r?n=Ur(r.from||s,r.default,!0):n=Ur(r.from||s):n=Ur(r),xe(n)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[s]=n,{}.NODE_ENV!=="production"&&e("Inject",s)}}function lc(o,t,e){Je(kt(o)?o.map(s=>s.bind(t.proxy)):o.bind(t.proxy),t,e)}function cc(o,t,e,s){const r=s.includes(".")?sc(e,s):()=>e[s];if(le(o)){const n=t[o];Ot(n)?bt(r,n):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${o}"`,n)}else if(Ot(o))bt(r,o.bind(e));else if(Ut(o))if(kt(o))o.forEach(n=>cc(n,t,e,s));else{const n=Ot(o.handler)?o.handler.bind(e):t[o.handler];Ot(n)?bt(r,n,o):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${o.handler}"`,n)}else({}).NODE_ENV!=="production"&&ut(`Invalid watch option: "${s}"`,o)}function Oa(o){const t=o.type,{mixins:e,extends:s}=t,{mixins:r,optionsCache:n,config:{optionMergeStrategies:a}}=o.appContext,i=n.get(t);let l;return i?l=i:!r.length&&!e&&!s?l=t:(l={},r.length&&r.forEach(c=>Gr(l,c,a,!0)),Gr(l,t,a)),Ut(t)&&n.set(t,l),l}function Gr(o,t,e,s=!1){const{mixins:r,extends:n}=t;n&&Gr(o,n,e,!0),r&&r.forEach(a=>Gr(o,a,e,!0));for(const a in t)if(s&&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=yp[a]||e&&e[a];o[a]=i?i(o[a],t[a]):t[a]}return o}const yp={data:uc,props:dc,emits:dc,methods:Zo,computed:Zo,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:Zo,directives:Zo,watch:bp,provide:uc,inject:vp};function uc(o,t){return t?o?function(){return se(Ot(o)?o.call(this,this):o,Ot(t)?t.call(this,this):t)}:t:o}function vp(o,t){return Zo(Ia(o),Ia(t))}function Ia(o){if(kt(o)){const t={};for(let e=0;e<o.length;e++)t[o[e]]=o[e];return t}return o}function Re(o,t){return o?[...new Set([].concat(o,t))]:t}function Zo(o,t){return o?se(Object.create(null),o,t):t}function dc(o,t){return o?kt(o)&&kt(t)?[...new Set([...o,...t])]:se(Object.create(null),ic(o),ic(t??{})):t}function bp(o,t){if(!o)return t;if(!t)return o;const e=se(Object.create(null),o);for(const s in t)e[s]=Re(o[s],t[s]);return e}function hc(){return{app:null,config:{isNativeTag:Dh,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 xp(o,t){return function(s,r=null){Ot(s)||(s=se({},s)),r!=null&&!Ut(r)&&({}.NODE_ENV!=="production"&&ut("root props passed to app.mount() must be an object."),r=null);const n=hc(),a=new WeakSet;let i=!1;const l=n.app={_uid:_p++,_component:s,_props:r,_container:null,_context:n,_instance:null,version:Xc,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&&Ot(c.install)?(a.add(c),c.install(l,...u)):Ot(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"&&oc(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,d){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=ft(s,r);return f.appContext=n,d===!0?d="svg":d===!1&&(d=void 0),{}.NODE_ENV!=="production"&&(n.reload=()=>{o(Ms(f),c,d)}),u&&t?t(f,c):o(f,c,d),i=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Df(l,Xc)),Kr(f.component)||f.component.proxy}},unmount(){i?(o(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,$f(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=Wo;Wo=l;try{return c()}finally{Wo=u}}};return l}}let Wo=null;function wp(o,t){if(!ge)({}).NODE_ENV!=="production"&&ut("provide() can only be used inside setup().");else{let e=ge.provides;const s=ge.parent&&ge.parent.provides;s===e&&(e=ge.provides=Object.create(s)),e[o]=t}}function Ur(o,t,e=!1){const s=ge||de;if(s||Wo){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Wo._context.provides;if(r&&o in r)return r[o];if(arguments.length>1)return e&&Ot(t)?t.call(s&&s.proxy):t;({}).NODE_ENV!=="production"&&ut(`injection "${String(o)}" not found.`)}else({}).NODE_ENV!=="production"&&ut("inject() can only be used inside setup() or functional components.")}const fc={},pc=()=>Object.create(fc),mc=o=>Object.getPrototypeOf(o)===fc;function kp(o,t,e,s=!1){const r={},n=pc();o.propsDefaults=Object.create(null),gc(o,t,r,n);for(const a in o.propsOptions[0])a in r||(r[a]=void 0);({}).NODE_ENV!=="production"&&xc(t||{},r,o),e?o.props=s?r:ff(r):o.type.props?o.props=r:o.props=n,o.attrs=n}function Cp(o){for(;o;){if(o.type.__hmrId)return!0;o=o.parent}}function Tp(o,t,e,s){const{props:r,attrs:n,vnode:{patchFlag:a}}=o,i=Ft(r),[l]=o.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Cp(o))&&(s||a>0)&&!(a&16)){if(a&8){const u=o.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(Ar(o.emitsOptions,f))continue;const p=t[f];if(l)if($t(n,f))p!==n[f]&&(n[f]=p,c=!0);else{const h=fs(f);r[h]=Ra(l,i,h,p,o,!1)}else p!==n[f]&&(n[f]=p,c=!0)}}}else{gc(o,t,r,n)&&(c=!0);let u;for(const d in i)(!t||!$t(t,d)&&((u=Be(d))===d||!$t(t,u)))&&(l?e&&(e[d]!==void 0||e[u]!==void 0)&&(r[d]=Ra(l,i,d,void 0,o,!0)):delete r[d]);if(n!==i)for(const d in n)(!t||!$t(t,d))&&(delete n[d],c=!0)}c&&os(o.attrs,"set",""),{}.NODE_ENV!=="production"&&xc(t||{},r,o)}function gc(o,t,e,s){const[r,n]=o.propsOptions;let a=!1,i;if(t)for(let l in t){if(Ao(l))continue;const c=t[l];let u;r&&$t(r,u=fs(l))?!n||!n.includes(u)?e[u]=c:(i||(i={}))[u]=c:Ar(o.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,a=!0)}if(n){const l=Ft(e),c=i||Ht;for(let u=0;u<n.length;u++){const d=n[u];e[d]=Ra(r,l,d,c[d],o,!$t(c,d))}}return a}function Ra(o,t,e,s,r,n){const a=o[e];if(a!=null){const i=$t(a,"default");if(i&&s===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ot(l)){const{propsDefaults:c}=r;if(e in c)s=c[e];else{const u=sr(r);s=c[e]=l.call(null,t),u()}}else s=l}a[0]&&(n&&!i?s=!1:a[1]&&(s===""||s===Be(e))&&(s=!0))}return s}function yc(o,t,e=!1){const s=t.propsCache,r=s.get(o);if(r)return r;const n=o.props,a={},i=[];let l=!1;if(!Ot(o)){const u=d=>{l=!0;const[f,p]=yc(d,t,!0);se(a,f),p&&i.push(...p)};!e&&t.mixins.length&&t.mixins.forEach(u),o.extends&&u(o.extends),o.mixins&&o.mixins.forEach(u)}if(!n&&!l)return Ut(o)&&s.set(o,xo),xo;if(kt(n))for(let u=0;u<n.length;u++){({}).NODE_ENV!=="production"&&!le(n[u])&&ut("props must be strings when using array syntax.",n[u]);const d=fs(n[u]);vc(d)&&(a[d]=Ht)}else if(n){({}).NODE_ENV!=="production"&&!Ut(n)&&ut("invalid props options",n);for(const u in n){const d=fs(u);if(vc(d)){const f=n[u],p=a[d]=kt(f)||Ot(f)?{type:f}:se({},f);if(p){const h=_c(Boolean,p.type),y=_c(String,p.type);p[0]=h>-1,p[1]=y<0||h<y,(h>-1||$t(p,"default"))&&i.push(d)}}}}const c=[a,i];return Ut(o)&&s.set(o,c),c}function vc(o){return o[0]!=="$"&&!Ao(o)?!0:({}.NODE_ENV!=="production"&&ut(`Invalid prop name: "${o}" is a reserved property.`),!1)}function Fa(o){return o===null?"null":typeof o=="function"?o.name||"":typeof o=="object"&&o.constructor&&o.constructor.name||""}function bc(o,t){return Fa(o)===Fa(t)}function _c(o,t){return kt(t)?t.findIndex(e=>bc(e,o)):Ot(t)&&bc(t,o)?0:-1}function xc(o,t,e){const s=Ft(t),r=e.propsOptions[0];for(const n in r){let a=r[n];a!=null&&Sp(n,s[n],a,{}.NODE_ENV!=="production"?gs(s):s,!$t(o,n)&&!$t(o,Be(n)))}}function Sp(o,t,e,s,r){const{type:n,required:a,validator:i,skipCheck:l}=e;if(a&&r){ut('Missing required prop: "'+o+'"');return}if(!(t==null&&!a)){if(n!=null&&n!==!0&&!l){let c=!1;const u=kt(n)?n:[n],d=[];for(let f=0;f<u.length&&!c;f++){const{valid:p,expectedType:h}=Pp(t,u[f]);d.push(h||""),c=p}if(!c){ut(Op(o,t,d));return}}i&&!i(t,s)&&ut('Invalid prop: custom validator check failed for prop "'+o+'".')}}const Ep=_o("String,Number,Boolean,Function,Symbol,BigInt");function Pp(o,t){let e;const s=Fa(t);if(Ep(s)){const r=typeof o;e=r===s.toLowerCase(),!e&&r==="object"&&(e=o instanceof t)}else s==="Object"?e=Ut(o):s==="Array"?e=kt(o):s==="null"?e=o===null:e=o instanceof t;return{valid:e,expectedType:s}}function Op(o,t,e){if(e.length===0)return`Prop type [] for prop "${o}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${o}". Expected ${e.map(Tr).join(" | ")}`;const r=e[0],n=Jn(t),a=wc(t,r),i=wc(t,n);return e.length===1&&kc(r)&&!Ip(r,n)&&(s+=` with value ${a}`),s+=`, got ${n} `,kc(n)&&(s+=`with value ${i}.`),s}function wc(o,t){return t==="String"?`"${o}"`:t==="Number"?`${Number(o)}`:`${o}`}function kc(o){return["string","number","boolean"].some(e=>o.toLowerCase()===e)}function Ip(...o){return o.some(t=>t.toLowerCase()==="boolean")}const Cc=o=>o[0]==="_"||o==="$stable",Da=o=>kt(o)?o.map(es):[es(o)],Rp=(o,t,e)=>{if(t._n)return t;const s=St((...r)=>({}.NODE_ENV!=="production"&&ge&&(!e||e.root===ge.root)&&ut(`Slot "${o}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Da(t(...r))),e);return s._c=!1,s},Tc=(o,t,e)=>{const s=o._ctx;for(const r in o){if(Cc(r))continue;const n=o[r];if(Ot(n))t[r]=Rp(r,n,s);else if(n!=null){({}).NODE_ENV!=="production"&&ut(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const a=Da(n);t[r]=()=>a}}},Sc=(o,t)=>{({}).NODE_ENV!=="production"&&!Ca(o.vnode)&&ut("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=Da(t);o.slots.default=()=>e},Fp=(o,t)=>{const e=o.slots=pc();if(o.vnode.shapeFlag&32){const s=t._;s?(se(e,t),ll(e,"_",s)):Tc(t,e)}else t&&Sc(o,t)},Dp=(o,t,e)=>{const{vnode:s,slots:r}=o;let n=!0,a=Ht;if(s.shapeFlag&32){const i=t._;i?{}.NODE_ENV!=="production"&&eo?(se(r,t),os(o,"set","$slots")):e&&i===1?n=!1:(se(r,t),!e&&i===1&&delete r._):(n=!t.$stable,Tc(t,r)),a=t}else t&&(Sc(o,t),a={default:1});if(n)for(const i in r)!Cc(i)&&a[i]==null&&delete r[i]};function $a(o,t,e,s,r=!1){if(kt(o)){o.forEach((f,p)=>$a(f,t&&(kt(t)?t[p]:t),e,s,r));return}if(Ho(s)&&!r)return;const n=s.shapeFlag&4?Kr(s.component)||s.component.proxy:s.el,a=r?null:n,{i,r:l}=o;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===Ht?i.refs={}:i.refs,d=i.setupState;if(c!=null&&c!==l&&(le(c)?(u[c]=null,$t(d,c)&&(d[c]=null)):xe(c)&&(c.value=null)),Ot(l))ys(l,i,12,[a,u]);else{const f=le(l),p=xe(l);if(f||p){const h=()=>{if(o.f){const y=f?$t(d,l)?d[l]:u[l]:l.value;r?kt(y)&&Kn(y,n):kt(y)?y.includes(n)||y.push(n):f?(u[l]=[n],$t(d,l)&&(d[l]=u[l])):(l.value=[n],o.k&&(u[o.k]=l.value))}else f?(u[l]=a,$t(d,l)&&(d[l]=a)):p?(l.value=a,o.k&&(u[o.k]=a)):{}.NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)};a?(h.id=-1,Ne(h,e)):h()}else({}).NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)}}let qo,Ls;function _s(o,t){o.appContext.config.performance&&jr()&&Ls.mark(`vue-${t}-${o.uid}`),{}.NODE_ENV!=="production"&&Af(o,t,jr()?Ls.now():Date.now())}function xs(o,t){if(o.appContext.config.performance&&jr()){const e=`vue-${t}-${o.uid}`,s=e+":end";Ls.mark(s),Ls.measure(`<${Qr(o,o.type)}> ${t}`,e,s),Ls.clearMarks(e),Ls.clearMarks(s)}({}).NODE_ENV!=="production"&&zf(o,t,jr()?Ls.now():Date.now())}function jr(){return qo!==void 0||(typeof window<"u"&&window.performance?(qo=!0,Ls=window.performance):qo=!1),qo}function $p(){const o=[];if({}.NODE_ENV!=="production"&&o.length){const t=o.length>1;console.warn(`Feature flag${t?"s":""} ${o.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 Gt=vf;function ip(s){return rp(s)}function rp(s,e){np();const t=so();t.__VUE__=!0,{}.NODE_ENV!=="production"&&jl(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=bt,insertStaticContent:m}=s,v=(y,w,R,F=null,G=null,se=null,J=void 0,W=null,ee={}.NODE_ENV!=="production"&&mn?!1:!!w.dynamicChildren)=>{if(y===w)return;y&&!ci(y,w)&&(F=zt(y),Fe(y,G,se,!0),y=null),w.patchFlag===-2&&(ee=!1,w.dynamicChildren=null);const{type:Z,ref:le,shapeFlag:pe}=w;switch(Z){case oi:b(y,w,R,F);break;case Bt:C(y,w,R,F);break;case rr:y==null?O(w,R,F,J):{}.NODE_ENV!=="production"&&$(y,w,R,J);break;case je:Ue(y,w,R,F,G,se,J,W,ee);break;default:pe&1?L(y,w,R,F,G,se,J,W,ee):pe&6?qe(y,w,R,F,G,se,J,W,ee):pe&64||pe&128?Z.process(y,w,R,F,G,se,J,W,ee,Kt):{}.NODE_ENV!=="production"&&re("Invalid VNode type:",Z,`(${typeof Z})`)}le!=null&&G&&Ro(le,y&&y.ref,se,w||y,!w)},b=(y,w,R,F)=>{if(y==null)n(w.el=a(w.children),R,F);else{const G=w.el=y.el;w.children!==y.children&&c(G,w.children)}},C=(y,w,R,F)=>{y==null?n(w.el=l(w.children||""),R,F):w.el=y.el},O=(y,w,R,F)=>{[y.el,y.anchor]=m(y.children,w,R,F,y.el,y.anchor)},$=(y,w,R,F)=>{if(w.children!==y.children){const G=f(y.anchor);Y(y),[w.el,w.anchor]=m(w.children,R,G,F)}else w.el=y.el,w.anchor=y.anchor},S=({el:y,anchor:w},R,F)=>{let G;for(;y&&y!==w;)G=f(y),n(y,R,F),y=G;n(w,R,F)},Y=({el:y,anchor:w})=>{let R;for(;y&&y!==w;)R=f(y),i(y),y=R;i(w)},L=(y,w,R,F,G,se,J,W,ee)=>{w.type==="svg"?J="svg":w.type==="math"&&(J="mathml"),y==null?H(w,R,F,G,se,J,W,ee):ge(y,w,G,se,J,W,ee)},H=(y,w,R,F,G,se,J,W)=>{let ee,Z;const{props:le,shapeFlag:pe,transition:de,dirs:Te}=y;if(ee=y.el=o(y.type,se,le&&le.is,le),pe&8?u(ee,y.children):pe&16&&ye(y.children,ee,null,F,G,Vo(y,se),J,W),Te&&yn(y,null,F,"created"),fe(ee,y,y.scopeId,J,F),le){for(const Be in le)Be!=="value"&&!Xn(Be)&&r(ee,Be,null,le[Be],se,y.children,F,G,Re);"value"in le&&r(ee,"value",null,le.value,se),(Z=le.onVnodeBeforeMount)&&ms(Z,F,y)}({}).NODE_ENV!=="production"&&(Object.defineProperty(ee,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(ee,"__vueParentComponent",{value:F,enumerable:!1})),Te&&yn(y,null,F,"beforeMount");const De=op(G,de);De&&de.beforeEnter(ee),n(ee,w,R),((Z=le&&le.onVnodeMounted)||De||Te)&&Gt(()=>{Z&&ms(Z,F,y),De&&de.enter(ee),Te&&yn(y,null,F,"mounted")},G)},fe=(y,w,R,F,G)=>{if(R&&d(y,R),F)for(let se=0;se<F.length;se++)d(y,F[se]);if(G){let se=G.subTree;if({}.NODE_ENV!=="production"&&se.patchFlag>0&&se.patchFlag&2048&&(se=So(se.children)||se),w===se){const J=G.vnode;fe(y,J,J.scopeId,J.slotScopeIds,G.parent)}}},ye=(y,w,R,F,G,se,J,W,ee=0)=>{for(let Z=ee;Z<y.length;Z++){const le=y[Z]=W?Ks(y[Z]):as(y[Z]);v(null,le,w,R,F,G,se,J,W)}},ge=(y,w,R,F,G,se,J)=>{const W=w.el=y.el;let{patchFlag:ee,dynamicChildren:Z,dirs:le}=w;ee|=y.patchFlag&16;const pe=y.props||Ke,de=w.props||Ke;let Te;if(R&&_n(R,!1),(Te=de.onVnodeBeforeUpdate)&&ms(Te,R,w,y),le&&yn(w,y,R,"beforeUpdate"),R&&_n(R,!0),{}.NODE_ENV!=="production"&&mn&&(ee=0,J=!1,Z=null),Z?(Me(y.dynamicChildren,Z,W,R,F,Vo(w,G),se),{}.NODE_ENV!=="production"&&ir(y,w)):J||te(y,w,W,null,R,F,Vo(w,G),se,!1),ee>0){if(ee&16)Ae(W,w,pe,de,R,F,G);else if(ee&2&&pe.class!==de.class&&r(W,"class",null,de.class,G),ee&4&&r(W,"style",pe.style,de.style,G),ee&8){const De=w.dynamicProps;for(let Be=0;Be<De.length;Be++){const Ze=De[Be],D=pe[Ze],E=de[Ze];(E!==D||Ze==="value")&&r(W,Ze,D,E,G,y.children,R,F,Re)}}ee&1&&y.children!==w.children&&u(W,w.children)}else!J&&Z==null&&Ae(W,w,pe,de,R,F,G);((Te=de.onVnodeUpdated)||le)&&Gt(()=>{Te&&ms(Te,R,w,y),le&&yn(w,y,R,"updated")},F)},Me=(y,w,R,F,G,se,J)=>{for(let W=0;W<w.length;W++){const ee=y[W],Z=w[W],le=ee.el&&(ee.type===je||!ci(ee,Z)||ee.shapeFlag&70)?h(ee.el):R;v(ee,Z,le,null,F,G,se,J,!0)}},Ae=(y,w,R,F,G,se,J)=>{if(R!==F){if(R!==Ke)for(const W in R)!Xn(W)&&!(W in F)&&r(y,W,R[W],null,J,w.children,G,se,Re);for(const W in F){if(Xn(W))continue;const ee=F[W],Z=R[W];ee!==Z&&W!=="value"&&r(y,W,Z,ee,J,w.children,G,se,Re)}"value"in F&&r(y,"value",R.value,F.value,J)}},Ue=(y,w,R,F,G,se,J,W,ee)=>{const Z=w.el=y?y.el:a(""),le=w.anchor=y?y.anchor:a("");let{patchFlag:pe,dynamicChildren:de,slotScopeIds:Te}=w;({}).NODE_ENV!=="production"&&(mn||pe&2048)&&(pe=0,ee=!1,de=null),Te&&(W=W?W.concat(Te):Te),y==null?(n(Z,R,F),n(le,R,F),ye(w.children||[],R,le,G,se,J,W,ee)):pe>0&&pe&64&&de&&y.dynamicChildren?(Me(y.dynamicChildren,de,R,G,se,J,W),{}.NODE_ENV!=="production"?ir(y,w):(w.key!=null||G&&w===G.subTree)&&ir(y,w,!0)):te(y,w,R,le,G,se,J,W,ee)},qe=(y,w,R,F,G,se,J,W,ee)=>{w.slotScopeIds=W,y==null?w.shapeFlag&512?G.ctx.activate(w,R,F,J,ee):et(w,R,F,G,se,J,ee):Ge(y,w,ee)},et=(y,w,R,F,G,se,J)=>{const W=y.component=pp(y,F,G);if({}.NODE_ENV!=="production"&&W.type.__hmrId&&Kd(W),{}.NODE_ENV!=="production"&&(Hi(y),Ds(W,"mount")),Eo(y)&&(W.ctx.renderer=Kt),{}.NODE_ENV!=="production"&&Ds(W,"init"),gp(W),{}.NODE_ENV!=="production"&&Ns(W,"init"),W.asyncDep){if(G&&G.registerDep(W,be),!y.el){const ee=W.subTree=ue(Bt);C(null,ee,w,R)}}else be(W,y,w,R,G,se,J);({}).NODE_ENV!=="production"&&(Wi(),Ns(W,"mount"))},Ge=(y,w,R)=>{const F=w.component=y.component;if(ff(y,w,R))if(F.asyncDep&&!F.asyncResolved){({}).NODE_ENV!=="production"&&Hi(w),_e(F,w,R),{}.NODE_ENV!=="production"&&Wi();return}else F.next=w,qd(F.update),F.effect.dirty=!0,F.update();else w.el=y.el,F.vnode=w},be=(y,w,R,F,G,se,J)=>{const W=()=>{if(y.isMounted){let{next:le,bu:pe,u:de,parent:Te,vnode:De}=y;{const k=wc(y);if(k){le&&(le.el=De.el,_e(y,le,J)),k.asyncDep.then(()=>{y.isUnmounted||W()});return}}let Be=le,Ze;({}).NODE_ENV!=="production"&&Hi(le||y.vnode),_n(y,!1),le?(le.el=De.el,_e(y,le,J)):le=De,pe&&Un(pe),(Ze=le.props&&le.props.onVnodeBeforeUpdate)&&ms(Ze,Te,le,De),_n(y,!0),{}.NODE_ENV!=="production"&&Ds(y,"render");const D=Co(y);({}).NODE_ENV!=="production"&&Ns(y,"render");const E=y.subTree;y.subTree=D,{}.NODE_ENV!=="production"&&Ds(y,"patch"),v(E,D,h(E.el),zt(E),y,G,se),{}.NODE_ENV!=="production"&&Ns(y,"patch"),le.el=D.el,Be===null&&pf(y,D.el),de&&Gt(de,G),(Ze=le.props&&le.props.onVnodeUpdated)&&Gt(()=>ms(Ze,Te,le,De),G),{}.NODE_ENV!=="production"&&Yl(y),{}.NODE_ENV!=="production"&&Wi()}else{let le;const{el:pe,props:de}=w,{bm:Te,m:De,parent:Be}=y,Ze=si(w);if(_n(y,!1),Te&&Un(Te),!Ze&&(le=de&&de.onVnodeBeforeMount)&&ms(le,Be,w),_n(y,!0),pe&&us){const D=()=>{({}).NODE_ENV!=="production"&&Ds(y,"render"),y.subTree=Co(y),{}.NODE_ENV!=="production"&&Ns(y,"render"),{}.NODE_ENV!=="production"&&Ds(y,"hydrate"),us(pe,y.subTree,y,G,null),{}.NODE_ENV!=="production"&&Ns(y,"hydrate")};Ze?w.type.__asyncLoader().then(()=>!y.isUnmounted&&D()):D()}else{({}).NODE_ENV!=="production"&&Ds(y,"render");const D=y.subTree=Co(y);({}).NODE_ENV!=="production"&&Ns(y,"render"),{}.NODE_ENV!=="production"&&Ds(y,"patch"),v(null,D,R,F,y,G,se),{}.NODE_ENV!=="production"&&Ns(y,"patch"),w.el=D.el}if(De&&Gt(De,G),!Ze&&(le=de&&de.onVnodeMounted)){const D=w;Gt(()=>ms(le,Be,D),G)}(w.shapeFlag&256||Be&&si(Be.vnode)&&Be.vnode.shapeFlag&256)&&y.a&&Gt(y.a,G),y.isMounted=!0,{}.NODE_ENV!=="production"&&nf(y),w=R=F=null}},ee=y.effect=new io(W,bt,()=>Ui(Z),y.scope),Z=y.update=()=>{ee.dirty&&ee.run()};Z.id=y.uid,_n(y,!0),{}.NODE_ENV!=="production"&&(ee.onTrack=y.rtc?le=>Un(y.rtc,le):void 0,ee.onTrigger=y.rtg?le=>Un(y.rtg,le):void 0,Z.ownerInstance=y),Z()},_e=(y,w,R)=>{w.component=y;const F=y.vnode.props;y.vnode=w,y.next=null,Uf(y,w.props,F,R),sp(y,w.children,R),Ss(),Ll(y),ks()},te=(y,w,R,F,G,se,J,W,ee=!1)=>{const Z=y&&y.children,le=y?y.shapeFlag:0,pe=w.children,{patchFlag:de,shapeFlag:Te}=w;if(de>0){if(de&128){Ce(Z,pe,R,F,G,se,J,W,ee);return}else if(de&256){U(Z,pe,R,F,G,se,J,W,ee);return}}Te&8?(le&16&&Re(Z,G,se),pe!==Z&&u(R,pe)):le&16?Te&16?Ce(Z,pe,R,F,G,se,J,W,ee):Re(Z,G,se,!0):(le&8&&u(R,""),Te&16&&ye(pe,R,F,G,se,J,W,ee))},U=(y,w,R,F,G,se,J,W,ee)=>{y=y||Dn,w=w||Dn;const Z=y.length,le=w.length,pe=Math.min(Z,le);let de;for(de=0;de<pe;de++){const Te=w[de]=ee?Ks(w[de]):as(w[de]);v(y[de],Te,R,null,G,se,J,W,ee)}Z>le?Re(y,G,se,!0,!1,pe):ye(w,R,F,G,se,J,W,ee,pe)},Ce=(y,w,R,F,G,se,J,W,ee)=>{let Z=0;const le=w.length;let pe=y.length-1,de=le-1;for(;Z<=pe&&Z<=de;){const Te=y[Z],De=w[Z]=ee?Ks(w[Z]):as(w[Z]);if(ci(Te,De))v(Te,De,R,null,G,se,J,W,ee);else break;Z++}for(;Z<=pe&&Z<=de;){const Te=y[pe],De=w[de]=ee?Ks(w[de]):as(w[de]);if(ci(Te,De))v(Te,De,R,null,G,se,J,W,ee);else break;pe--,de--}if(Z>pe){if(Z<=de){const Te=de+1,De=Te<le?w[Te].el:F;for(;Z<=de;)v(null,w[Z]=ee?Ks(w[Z]):as(w[Z]),R,De,G,se,J,W,ee),Z++}}else if(Z>de)for(;Z<=pe;)Fe(y[Z],G,se,!0),Z++;else{const Te=Z,De=Z,Be=new Map;for(Z=De;Z<=de;Z++){const ie=w[Z]=ee?Ks(w[Z]):as(w[Z]);ie.key!=null&&({}.NODE_ENV!=="production"&&Be.has(ie.key)&&re("Duplicate keys found during update:",JSON.stringify(ie.key),"Make sure keys are unique."),Be.set(ie.key,Z))}let Ze,D=0;const E=de-De+1;let k=!1,B=0;const z=new Array(E);for(Z=0;Z<E;Z++)z[Z]=0;for(Z=Te;Z<=pe;Z++){const ie=y[Z];if(D>=E){Fe(ie,G,se,!0);continue}let X;if(ie.key!=null)X=Be.get(ie.key);else for(Ze=De;Ze<=de;Ze++)if(z[Ze-De]===0&&ci(ie,w[Ze])){X=Ze;break}X===void 0?Fe(ie,G,se,!0):(z[X-De]=Z+1,X>=B?B=X:k=!0,v(ie,w[X],R,null,G,se,J,W,ee),D++)}const q=k?ap(z):Dn;for(Ze=q.length-1,Z=E-1;Z>=0;Z--){const ie=De+Z,X=w[ie],ne=ie+1<le?w[ie+1].el:F;z[Z]===0?v(null,X,R,ne,G,se,J,W,ee):k&&(Ze<0||Z!==q[Ze]?A(X,R,ne,2):Ze--)}}},A=(y,w,R,F,G=null)=>{const{el:se,type:J,transition:W,children:ee,shapeFlag:Z}=y;if(Z&6){A(y.component.subTree,w,R,F);return}if(Z&128){y.suspense.move(w,R,F);return}if(Z&64){J.move(y,w,R,Kt);return}if(J===je){n(se,w,R);for(let pe=0;pe<ee.length;pe++)A(ee[pe],w,R,F);n(y.anchor,w,R);return}if(J===rr){S(y,w,R);return}if(F!==2&&Z&1&&W)if(F===0)W.beforeEnter(se),n(se,w,R),Gt(()=>W.enter(se),G);else{const{leave:pe,delayLeave:de,afterLeave:Te}=W,De=()=>n(se,w,R),Be=()=>{pe(se,()=>{De(),Te&&Te()})};de?de(se,De,Be):Be()}else n(se,w,R)},Fe=(y,w,R,F=!1,G=!1)=>{const{type:se,props:J,ref:W,children:ee,dynamicChildren:Z,shapeFlag:le,patchFlag:pe,dirs:de}=y;if(W!=null&&Ro(W,null,R,y,!0),le&256){w.ctx.deactivate(y);return}const Te=le&1&&de,De=!si(y);let Be;if(De&&(Be=J&&J.onVnodeBeforeUnmount)&&ms(Be,w,y),le&6)ot(y.component,R,F);else{if(le&128){y.suspense.unmount(R,F);return}Te&&yn(y,null,w,"beforeUnmount"),le&64?y.type.remove(y,w,R,G,Kt,F):Z&&(se!==je||pe>0&&pe&64)?Re(Z,w,R,!1,!0):(se===je&&pe&384||!G&&le&16)&&Re(ee,w,R),F&&ht(y)}(De&&(Be=J&&J.onVnodeUnmounted)||Te)&&Gt(()=>{Be&&ms(Be,w,y),Te&&yn(y,null,w,"unmounted")},R)},ht=y=>{const{type:w,el:R,anchor:F,transition:G}=y;if(w===je){({}).NODE_ENV!=="production"&&y.patchFlag>0&&y.patchFlag&2048&&G&&!G.persisted?y.children.forEach(J=>{J.type===Bt?i(J.el):ht(J)}):rt(R,F);return}if(w===rr){Y(y);return}const se=()=>{i(R),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(y.shapeFlag&1&&G&&!G.persisted){const{leave:J,delayLeave:W}=G,ee=()=>J(R,se);W?W(y.el,se,ee):ee()}else se()},rt=(y,w)=>{let R;for(;y!==w;)R=f(y),i(y),y=R;i(w)},ot=(y,w,R)=>{({}).NODE_ENV!=="production"&&y.type.__hmrId&&Qd(y);const{bum:F,scope:G,update:se,subTree:J,um:W}=y;F&&Un(F),G.stop(),se&&(se.active=!1,Fe(J,y,w,R)),W&&Gt(W,w),Gt(()=>{y.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve()),{}.NODE_ENV!=="production"&&of(y)},Re=(y,w,R,F=!1,G=!1,se=0)=>{for(let J=se;J<y.length;J++)Fe(y[J],w,R,F,G)},zt=y=>y.shapeFlag&6?zt(y.component.subTree):y.shapeFlag&128?y.suspense.next():f(y.anchor||y.el);let Ye=!1;const pt=(y,w,R)=>{y==null?w._vnode&&Fe(w._vnode,null,null,!0):v(w._vnode||null,y,w,null,null,null,R),Ye||(Ye=!0,Ll(),zl(),Ye=!1),w._vnode=y},Kt={p:v,um:Fe,m:A,r:ht,mt:et,mc:ye,pc:te,pbc:Me,n:zt,o:s};let cs,us;return e&&([cs,us]=e(Kt)),{render:pt,hydrate:cs,createApp:Yf(pt,cs)}}function Vo({type:s,props:e},t){return t==="svg"&&s==="foreignObject"||t==="mathml"&&s==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function _n({effect:s,update:e},t){s.allowRecurse=e.allowRecurse=t}function op(s,e){return(!s||s&&!s.pendingBranch)&&e&&!e.persisted}function ir(s,e,t=!1){const n=s.children,i=e.children;if(ve(n)&&ve(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Ks(i[r]),a.el=o.el),t||ir(o,a)),a.type===oi&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Bt&&!a.el&&(a.el=o.el)}}function ap(s){const e=s.slice(),t=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=t[t.length-1],s[i]<c){e[n]=i,t.push(n);continue}for(r=0,o=t.length-1;r<o;)a=r+o>>1,s[t[a]]<c?r=a+1:o=a;c<s[t[r]]&&(r>0&&(e[n]=t[r-1]),t[r]=n)}}for(r=t.length,o=t[r-1];r-- >0;)t[r]=o,o=e[o];return t}function wc(s){const e=s.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:wc(e)}const lp=s=>s.__isTeleport,je=Symbol.for("v-fgt"),oi=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),ai=[];let os=null;function I(s=!1){ai.push(os=s?null:[])}function cp(){ai.pop(),os=ai[ai.length-1]||null}let li=1;function Cc(s){li+=s}function Sc(s){return s.dynamicChildren=li>0?os||Dn:null,cp(),li>0&&os&&os.push(s),s}function V(s,e,t,n,i,r){return Sc(_(s,e,t,n,i,r,!0))}function wt(s,e,t,n,i){return Sc(ue(s,e,t,n,i,!0))}function An(s){return s?s.__v_isVNode===!0:!1}function ci(s,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&Mn.has(e.type)?(s.shapeFlag&=-257,e.shapeFlag&=-513,!1):s.type===e.type&&s.key===e.key}const up=(...s)=>Ec(...s),kc=({key:s})=>s??null,or=({ref:s,ref_key:e,ref_for:t})=>(typeof s=="number"&&(s=""+s),s!=null?mt(s)||It(s)||Oe(s)?{i:xt,r:s,k:e,f:!!t}:s:null);function _(s,e=null,t=null,n=0,i=null,r=s===je?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:e,key:e&&kc(e),ref:e&&or(e),scopeId:Zi,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:xt};return a?(Lo(l,t),r&128&&s.normalize(l)):t&&(l.shapeFlag|=mt(t)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&re("VNode created with invalid key (NaN). VNode type:",l.type),li>0&&!o&&os&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&os.push(l),l}const ue={}.NODE_ENV!=="production"?up:Ec;function Ec(s,e=null,t=null,n=0,i=null,r=!1){if((!s||s===mf)&&({}.NODE_ENV!=="production"&&!s&&re(`Invalid vnode type when creating vnode: ${s}.`),s=Bt),An(s)){const a=Zs(s,e,!0);return t&&Lo(a,t),li>0&&!r&&os&&(a.shapeFlag&6?os[os.indexOf(s)]=a:os.push(a)),a.patchFlag|=-2,a}if(Rc(s)&&(s=s.__vccOpts),e){e=hp(e);let{class:a,style:l}=e;a&&!mt(a)&&(e.class=_t(a)),Xe(l)&&(fo(l)&&!ve(l)&&(l=lt({},l)),e.style=M(l))}const o=mt(s)?1:gf(s)?128:lp(s)?64:Xe(s)?4:Oe(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&fo(s)&&(s=Ne(s),re("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: `,
|
|
20
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Ne=Zf;function Lp(o){return Mp(o)}function Mp(o,t){$p();const e=ea();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Zl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:s,remove:r,patchProp:n,createElement:a,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=ue,insertStaticContent:h}=o,y=(b,S,V,j=null,q=null,at=null,dt=void 0,Q=null,lt={}.NODE_ENV!=="production"&&eo?!1:!!S.dynamicChildren)=>{if(b===S)return;b&&!er(b,S)&&(j=ae(b),A(b,q,at,!0),b=null),S.patchFlag===-2&&(lt=!1,S.dynamicChildren=null);const{type:et,ref:pt,shapeFlag:wt}=S;switch(et){case Ko:v(b,S,V,j);break;case Ae:_(b,S,V,j);break;case Qo:b==null?z(S,V,j,dt):{}.NODE_ENV!=="production"&&Y(b,S,V,dt);break;case Vt:$(b,S,V,j,q,at,dt,Q,lt);break;default:wt&1?J(b,S,V,j,q,at,dt,Q,lt):wt&6?B(b,S,V,j,q,at,dt,Q,lt):wt&64||wt&128?et.process(b,S,V,j,q,at,dt,Q,lt,De):{}.NODE_ENV!=="production"&&ut("Invalid VNode type:",et,`(${typeof et})`)}pt!=null&&q&&$a(pt,b&&b.ref,at,S||b,!S)},v=(b,S,V,j)=>{if(b==null)s(S.el=i(S.children),V,j);else{const q=S.el=b.el;S.children!==b.children&&c(q,S.children)}},_=(b,S,V,j)=>{b==null?s(S.el=l(S.children||""),V,j):S.el=b.el},z=(b,S,V,j)=>{[b.el,b.anchor]=h(b.children,S,V,j,b.el,b.anchor)},Y=(b,S,V,j)=>{if(S.children!==b.children){const q=f(b.anchor);G(b),[S.el,S.anchor]=h(S.children,V,q,j)}else S.el=b.el,S.anchor=b.anchor},O=({el:b,anchor:S},V,j)=>{let q;for(;b&&b!==S;)q=f(b),s(b,V,j),b=q;s(S,V,j)},G=({el:b,anchor:S})=>{let V;for(;b&&b!==S;)V=f(b),r(b),b=V;r(S)},J=(b,S,V,j,q,at,dt,Q,lt)=>{S.type==="svg"?dt="svg":S.type==="math"&&(dt="mathml"),b==null?H(S,V,j,q,at,dt,Q,lt):E(b,S,q,at,dt,Q,lt)},H=(b,S,V,j,q,at,dt,Q)=>{let lt,et;const{props:pt,shapeFlag:wt,transition:xt,dirs:It}=b;if(lt=b.el=a(b.type,at,pt&&pt.is,pt),wt&8?u(lt,b.children):wt&16&&w(b.children,lt,null,j,q,La(b,at),dt,Q),It&&no(b,null,j,"created"),it(lt,b,b.scopeId,dt,j),pt){for(const Xt in pt)Xt!=="value"&&!Ao(Xt)&&n(lt,Xt,null,pt[Xt],at,b.children,j,q,Tt);"value"in pt&&n(lt,"value",null,pt.value,at),(et=pt.onVnodeBeforeMount)&&as(et,j,b)}({}).NODE_ENV!=="production"&&(Object.defineProperty(lt,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(lt,"__vueParentComponent",{value:j,enumerable:!1})),It&&no(b,null,j,"beforeMount");const Dt=Np(q,xt);Dt&&xt.beforeEnter(lt),s(lt,S,V),((et=pt&&pt.onVnodeMounted)||Dt||It)&&Ne(()=>{et&&as(et,j,b),Dt&&xt.enter(lt),It&&no(b,null,j,"mounted")},q)},it=(b,S,V,j,q)=>{if(V&&p(b,V),j)for(let at=0;at<j.length;at++)p(b,j[at]);if(q){let at=q.subTree;if({}.NODE_ENV!=="production"&&at.patchFlag>0&&at.patchFlag&2048&&(at=wa(at.children)||at),S===at){const dt=q.vnode;it(b,dt,dt.scopeId,dt.slotScopeIds,q.parent)}}},w=(b,S,V,j,q,at,dt,Q,lt=0)=>{for(let et=lt;et<b.length;et++){const pt=b[et]=Q?Ns(b[et]):es(b[et]);y(null,pt,S,V,j,q,at,dt,Q)}},E=(b,S,V,j,q,at,dt)=>{const Q=S.el=b.el;let{patchFlag:lt,dynamicChildren:et,dirs:pt}=S;lt|=b.patchFlag&16;const wt=b.props||Ht,xt=S.props||Ht;let It;if(V&&lo(V,!1),(It=xt.onVnodeBeforeUpdate)&&as(It,V,S,b),pt&&no(S,b,V,"beforeUpdate"),V&&lo(V,!0),{}.NODE_ENV!=="production"&&eo&&(lt=0,dt=!1,et=null),et?(F(b.dynamicChildren,et,Q,V,j,La(S,q),at),{}.NODE_ENV!=="production"&&Hr(b,S)):dt||U(b,S,Q,null,V,j,La(S,q),at,!1),lt>0){if(lt&16)P(Q,S,wt,xt,V,j,q);else if(lt&2&&wt.class!==xt.class&&n(Q,"class",null,xt.class,q),lt&4&&n(Q,"style",wt.style,xt.style,q),lt&8){const Dt=S.dynamicProps;for(let Xt=0;Xt<Dt.length;Xt++){const Kt=Dt[Xt],ie=wt[Kt],$e=xt[Kt];($e!==ie||Kt==="value")&&n(Q,Kt,ie,$e,q,b.children,V,j,Tt)}}lt&1&&b.children!==S.children&&u(Q,S.children)}else!dt&&et==null&&P(Q,S,wt,xt,V,j,q);((It=xt.onVnodeUpdated)||pt)&&Ne(()=>{It&&as(It,V,S,b),pt&&no(S,b,V,"updated")},j)},F=(b,S,V,j,q,at,dt)=>{for(let Q=0;Q<S.length;Q++){const lt=b[Q],et=S[Q],pt=lt.el&&(lt.type===Vt||!er(lt,et)||lt.shapeFlag&70)?d(lt.el):V;y(lt,et,pt,null,j,q,at,dt,!0)}},P=(b,S,V,j,q,at,dt)=>{if(V!==j){if(V!==Ht)for(const Q in V)!Ao(Q)&&!(Q in j)&&n(b,Q,V[Q],null,dt,S.children,q,at,Tt);for(const Q in j){if(Ao(Q))continue;const lt=j[Q],et=V[Q];lt!==et&&Q!=="value"&&n(b,Q,et,lt,dt,S.children,q,at,Tt)}"value"in j&&n(b,"value",V.value,j.value,dt)}},$=(b,S,V,j,q,at,dt,Q,lt)=>{const et=S.el=b?b.el:i(""),pt=S.anchor=b?b.anchor:i("");let{patchFlag:wt,dynamicChildren:xt,slotScopeIds:It}=S;({}).NODE_ENV!=="production"&&(eo||wt&2048)&&(wt=0,lt=!1,xt=null),It&&(Q=Q?Q.concat(It):It),b==null?(s(et,V,j),s(pt,V,j),w(S.children||[],V,pt,q,at,dt,Q,lt)):wt>0&&wt&64&&xt&&b.dynamicChildren?(F(b.dynamicChildren,xt,V,q,at,dt,Q),{}.NODE_ENV!=="production"?Hr(b,S):(S.key!=null||q&&S===q.subTree)&&Hr(b,S,!0)):U(b,S,V,pt,q,at,dt,Q,lt)},B=(b,S,V,j,q,at,dt,Q,lt)=>{S.slotScopeIds=Q,b==null?S.shapeFlag&512?q.ctx.activate(S,V,j,dt,lt):st(S,V,j,q,at,dt,lt):K(b,S,lt)},st=(b,S,V,j,q,at,dt)=>{const Q=b.component=Up(b,j,q);if({}.NODE_ENV!=="production"&&Q.type.__hmrId&&Of(Q),{}.NODE_ENV!=="production"&&(Lr(b),_s(Q,"mount")),Ca(b)&&(Q.ctx.renderer=De),{}.NODE_ENV!=="production"&&_s(Q,"init"),Hp(Q),{}.NODE_ENV!=="production"&&xs(Q,"init"),Q.asyncDep){if(q&&q.registerDep(Q,Z),!b.el){const lt=Q.subTree=ft(Ae);_(null,lt,S,V)}}else Z(Q,b,S,V,q,at,dt);({}).NODE_ENV!=="production"&&(Mr(),xs(Q,"mount"))},K=(b,S,V)=>{const j=S.component=b.component;if(Gf(b,S,V))if(j.asyncDep&&!j.asyncResolved){({}).NODE_ENV!=="production"&&Lr(S),nt(j,S,V),{}.NODE_ENV!=="production"&&Mr();return}else j.next=S,Ef(j.update),j.effect.dirty=!0,j.update();else S.el=b.el,j.vnode=S},Z=(b,S,V,j,q,at,dt)=>{const Q=()=>{if(b.isMounted){let{next:pt,bu:wt,u:xt,parent:It,vnode:Dt}=b;{const Us=Ec(b);if(Us){pt&&(pt.el=Dt.el,nt(b,pt,dt)),Us.asyncDep.then(()=>{b.isUnmounted||Q()});return}}let Xt=pt,Kt;({}).NODE_ENV!=="production"&&Lr(pt||b.vnode),lo(b,!1),pt?(pt.el=Dt.el,nt(b,pt,dt)):pt=Dt,wt&&zo(wt),(Kt=pt.props&&pt.props.onVnodeBeforeUpdate)&&as(Kt,It,pt,Dt),lo(b,!0),{}.NODE_ENV!=="production"&&_s(b,"render");const ie=xa(b);({}).NODE_ENV!=="production"&&xs(b,"render");const $e=b.subTree;b.subTree=ie,{}.NODE_ENV!=="production"&&_s(b,"patch"),y($e,ie,d($e.el),ae($e),b,q,at),{}.NODE_ENV!=="production"&&xs(b,"patch"),pt.el=ie.el,Xt===null&&Uf(b,ie.el),xt&&Ne(xt,q),(Kt=pt.props&&pt.props.onVnodeUpdated)&&Ne(()=>as(Kt,It,pt,Dt),q),{}.NODE_ENV!=="production"&&Wl(b),{}.NODE_ENV!=="production"&&Mr()}else{let pt;const{el:wt,props:xt}=S,{bm:It,m:Dt,parent:Xt}=b,Kt=Ho(S);if(lo(b,!1),It&&zo(It),!Kt&&(pt=xt&&xt.onVnodeBeforeMount)&&as(pt,Xt,S),lo(b,!0),wt&&Ie){const ie=()=>{({}).NODE_ENV!=="production"&&_s(b,"render"),b.subTree=xa(b),{}.NODE_ENV!=="production"&&xs(b,"render"),{}.NODE_ENV!=="production"&&_s(b,"hydrate"),Ie(wt,b.subTree,b,q,null),{}.NODE_ENV!=="production"&&xs(b,"hydrate")};Kt?S.type.__asyncLoader().then(()=>!b.isUnmounted&&ie()):ie()}else{({}).NODE_ENV!=="production"&&_s(b,"render");const ie=b.subTree=xa(b);({}).NODE_ENV!=="production"&&xs(b,"render"),{}.NODE_ENV!=="production"&&_s(b,"patch"),y(null,ie,V,j,b,q,at),{}.NODE_ENV!=="production"&&xs(b,"patch"),S.el=ie.el}if(Dt&&Ne(Dt,q),!Kt&&(pt=xt&&xt.onVnodeMounted)){const ie=S;Ne(()=>as(pt,Xt,ie),q)}(S.shapeFlag&256||Xt&&Ho(Xt.vnode)&&Xt.vnode.shapeFlag&256)&&b.a&&Ne(b.a,q),b.isMounted=!0,{}.NODE_ENV!=="production"&&Lf(b),S=V=j=null}},lt=b.effect=new oa(Q,ue,()=>Nr(et),b.scope),et=b.update=()=>{lt.dirty&<.run()};et.id=b.uid,lo(b,!0),{}.NODE_ENV!=="production"&&(lt.onTrack=b.rtc?pt=>zo(b.rtc,pt):void 0,lt.onTrigger=b.rtg?pt=>zo(b.rtg,pt):void 0,et.ownerInstance=b),et()},nt=(b,S,V)=>{S.component=b;const j=b.vnode.props;b.vnode=S,b.next=null,Tp(b,S.props,j,V),Dp(b,S.children,V),ps(),Xl(b),ms()},U=(b,S,V,j,q,at,dt,Q,lt=!1)=>{const et=b&&b.children,pt=b?b.shapeFlag:0,wt=S.children,{patchFlag:xt,shapeFlag:It}=S;if(xt>0){if(xt&128){yt(et,wt,V,j,q,at,dt,Q,lt);return}else if(xt&256){X(et,wt,V,j,q,at,dt,Q,lt);return}}It&8?(pt&16&&Tt(et,q,at),wt!==et&&u(V,wt)):pt&16?It&16?yt(et,wt,V,j,q,at,dt,Q,lt):Tt(et,q,at,!0):(pt&8&&u(V,""),It&16&&w(wt,V,j,q,at,dt,Q,lt))},X=(b,S,V,j,q,at,dt,Q,lt)=>{b=b||xo,S=S||xo;const et=b.length,pt=S.length,wt=Math.min(et,pt);let xt;for(xt=0;xt<wt;xt++){const It=S[xt]=lt?Ns(S[xt]):es(S[xt]);y(b[xt],It,V,null,q,at,dt,Q,lt)}et>pt?Tt(b,q,at,!0,!1,wt):w(S,V,j,q,at,dt,Q,lt,wt)},yt=(b,S,V,j,q,at,dt,Q,lt)=>{let et=0;const pt=S.length;let wt=b.length-1,xt=pt-1;for(;et<=wt&&et<=xt;){const It=b[et],Dt=S[et]=lt?Ns(S[et]):es(S[et]);if(er(It,Dt))y(It,Dt,V,null,q,at,dt,Q,lt);else break;et++}for(;et<=wt&&et<=xt;){const It=b[wt],Dt=S[xt]=lt?Ns(S[xt]):es(S[xt]);if(er(It,Dt))y(It,Dt,V,null,q,at,dt,Q,lt);else break;wt--,xt--}if(et>wt){if(et<=xt){const It=xt+1,Dt=It<pt?S[It].el:j;for(;et<=xt;)y(null,S[et]=lt?Ns(S[et]):es(S[et]),V,Dt,q,at,dt,Q,lt),et++}}else if(et>xt)for(;et<=wt;)A(b[et],q,at,!0),et++;else{const It=et,Dt=et,Xt=new Map;for(et=Dt;et<=xt;et++){const Ce=S[et]=lt?Ns(S[et]):es(S[et]);Ce.key!=null&&({}.NODE_ENV!=="production"&&Xt.has(Ce.key)&&ut("Duplicate keys found during update:",JSON.stringify(Ce.key),"Make sure keys are unique."),Xt.set(Ce.key,et))}let Kt,ie=0;const $e=xt-Dt+1;let Us=!1,Bn=0;const vo=new Array($e);for(et=0;et<$e;et++)vo[et]=0;for(et=It;et<=wt;et++){const Ce=b[et];if(ie>=$e){A(Ce,q,at,!0);continue}let Le;if(Ce.key!=null)Le=Xt.get(Ce.key);else for(Kt=Dt;Kt<=xt;Kt++)if(vo[Kt-Dt]===0&&er(Ce,S[Kt])){Le=Kt;break}Le===void 0?A(Ce,q,at,!0):(vo[Le-Dt]=et+1,Le>=Bn?Bn=Le:Us=!0,y(Ce,S[Le],V,null,q,at,dt,Q,lt),ie++)}const Xn=Us?Ap(vo):xo;for(Kt=Xn.length-1,et=$e-1;et>=0;et--){const Ce=Dt+et,Le=S[Ce],Gn=Ce+1<pt?S[Ce+1].el:j;vo[et]===0?y(null,Le,V,Gn,q,at,dt,Q,lt):Us&&(Kt<0||et!==Xn[Kt]?N(Le,V,Gn,2):Kt--)}}},N=(b,S,V,j,q=null)=>{const{el:at,type:dt,transition:Q,children:lt,shapeFlag:et}=b;if(et&6){N(b.component.subTree,S,V,j);return}if(et&128){b.suspense.move(S,V,j);return}if(et&64){dt.move(b,S,V,De);return}if(dt===Vt){s(at,S,V);for(let wt=0;wt<lt.length;wt++)N(lt[wt],S,V,j);s(b.anchor,S,V);return}if(dt===Qo){O(b,S,V);return}if(j!==2&&et&1&&Q)if(j===0)Q.beforeEnter(at),s(at,S,V),Ne(()=>Q.enter(at),q);else{const{leave:wt,delayLeave:xt,afterLeave:It}=Q,Dt=()=>s(at,S,V),Xt=()=>{wt(at,()=>{Dt(),It&&It()})};xt?xt(at,Dt,Xt):Xt()}else s(at,S,V)},A=(b,S,V,j=!1,q=!1)=>{const{type:at,props:dt,ref:Q,children:lt,dynamicChildren:et,shapeFlag:pt,patchFlag:wt,dirs:xt}=b;if(Q!=null&&$a(Q,null,V,b,!0),pt&256){S.ctx.deactivate(b);return}const It=pt&1&&xt,Dt=!Ho(b);let Xt;if(Dt&&(Xt=dt&&dt.onVnodeBeforeUnmount)&&as(Xt,S,b),pt&6)zt(b.component,V,j);else{if(pt&128){b.suspense.unmount(V,j);return}It&&no(b,null,S,"beforeUnmount"),pt&64?b.type.remove(b,S,V,q,De,j):et&&(at!==Vt||wt>0&&wt&64)?Tt(et,S,V,!1,!0):(at===Vt&&wt&384||!q&&pt&16)&&Tt(lt,S,V),j&&k(b)}(Dt&&(Xt=dt&&dt.onVnodeUnmounted)||It)&&Ne(()=>{Xt&&as(Xt,S,b),It&&no(b,null,S,"unmounted")},V)},k=b=>{const{type:S,el:V,anchor:j,transition:q}=b;if(S===Vt){({}).NODE_ENV!=="production"&&b.patchFlag>0&&b.patchFlag&2048&&q&&!q.persisted?b.children.forEach(dt=>{dt.type===Ae?r(dt.el):k(dt)}):Yt(V,j);return}if(S===Qo){G(b);return}const at=()=>{r(V),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(b.shapeFlag&1&&q&&!q.persisted){const{leave:dt,delayLeave:Q}=q,lt=()=>dt(V,at);Q?Q(b.el,at,lt):lt()}else at()},Yt=(b,S)=>{let V;for(;b!==S;)V=f(b),r(b),b=V;r(S)},zt=(b,S,V)=>{({}).NODE_ENV!=="production"&&b.type.__hmrId&&If(b);const{bum:j,scope:q,update:at,subTree:dt,um:Q}=b;j&&zo(j),q.stop(),at&&(at.active=!1,A(dt,b,S,V)),Q&&Ne(Q,S),Ne(()=>{b.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve()),{}.NODE_ENV!=="production"&&Nf(b)},Tt=(b,S,V,j=!1,q=!1,at=0)=>{for(let dt=at;dt<b.length;dt++)A(b[dt],S,V,j,q)},ae=b=>b.shapeFlag&6?ae(b.component.subTree):b.shapeFlag&128?b.suspense.next():f(b.anchor||b.el);let Bt=!1;const ee=(b,S,V)=>{b==null?S._vnode&&A(S._vnode,null,null,!0):y(S._vnode||null,b,S,null,null,null,V),Bt||(Bt=!0,Xl(),Gl(),Bt=!1),S._vnode=b},De={p:y,um:A,m:N,r:k,mt:st,mc:w,pc:U,pbc:F,n:ae,o};let Ye,Ie;return t&&([Ye,Ie]=t(De)),{render:ee,hydrate:Ye,createApp:xp(ee,Ye)}}function La({type:o,props:t},e){return e==="svg"&&o==="foreignObject"||e==="mathml"&&o==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function lo({effect:o,update:t},e){o.allowRecurse=t.allowRecurse=e}function Np(o,t){return(!o||o&&!o.pendingBranch)&&t&&!t.persisted}function Hr(o,t,e=!1){const s=o.children,r=t.children;if(kt(s)&&kt(r))for(let n=0;n<s.length;n++){const a=s[n];let i=r[n];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[n]=Ns(r[n]),i.el=a.el),e||Hr(a,i)),i.type===Ko&&(i.el=a.el),{}.NODE_ENV!=="production"&&i.type===Ae&&!i.el&&(i.el=a.el)}}function Ap(o){const t=o.slice(),e=[0];let s,r,n,a,i;const l=o.length;for(s=0;s<l;s++){const c=o[s];if(c!==0){if(r=e[e.length-1],o[r]<c){t[s]=r,e.push(s);continue}for(n=0,a=e.length-1;n<a;)i=n+a>>1,o[e[i]]<c?n=i+1:a=i;c<o[e[n]]&&(n>0&&(t[s]=e[n-1]),e[n]=s)}}for(n=e.length,a=e[n-1];n-- >0;)e[n]=a,a=t[a];return e}function Ec(o){const t=o.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ec(t)}const zp=o=>o.__isTeleport,Vt=Symbol.for("v-fgt"),Ko=Symbol.for("v-txt"),Ae=Symbol.for("v-cmt"),Qo=Symbol.for("v-stc"),Jo=[];let ts=null;function R(o=!1){Jo.push(ts=o?null:[])}function Vp(){Jo.pop(),ts=Jo[Jo.length-1]||null}let tr=1;function Pc(o){tr+=o}function Oc(o){return o.dynamicChildren=tr>0?ts||xo:null,Vp(),tr>0&&ts&&ts.push(o),o}function M(o,t,e,s,r,n){return Oc(x(o,t,e,s,r,n,!0))}function Lt(o,t,e,s,r){return Oc(ft(o,t,e,s,r,!0))}function Eo(o){return o?o.__v_isVNode===!0:!1}function er(o,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Co.has(t.type)?(o.shapeFlag&=-257,t.shapeFlag&=-513,!1):o.type===t.type&&o.key===t.key}const Yp=(...o)=>Rc(...o),Ic=({key:o})=>o??null,Zr=({ref:o,ref_key:t,ref_for:e})=>(typeof o=="number"&&(o=""+o),o!=null?le(o)||xe(o)||Ot(o)?{i:de,r:o,k:t,f:!!e}:o:null);function x(o,t=null,e=null,s=0,r=null,n=o===Vt?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:o,props:t,key:t&&Ic(t),ref:t&&Zr(t),scopeId:zr,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:de};return i?(Ma(l,e),n&128&&o.normalize(l)):e&&(l.shapeFlag|=le(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ut("VNode created with invalid key (NaN). VNode type:",l.type),tr>0&&!a&&ts&&(l.patchFlag>0||n&6)&&l.patchFlag!==32&&ts.push(l),l}const ft={}.NODE_ENV!=="production"?Yp:Rc;function Rc(o,t=null,e=null,s=0,r=null,n=!1){if((!o||o===jf)&&({}.NODE_ENV!=="production"&&!o&&ut(`Invalid vnode type when creating vnode: ${o}.`),o=Ae),Eo(o)){const i=Ms(o,t,!0);return e&&Ma(i,e),tr>0&&!n&&ts&&(i.shapeFlag&6?ts[ts.indexOf(o)]=i:ts.push(i)),i.patchFlag|=-2,i}if(Bc(o)&&(o=o.__vccOpts),t){t=Bp(t);let{class:i,style:l}=t;i&&!le(i)&&(t.class=te(i)),Ut(l)&&(da(l)&&!kt(l)&&(l=se({},l)),t.style=D(l))}const a=le(o)?1:Hf(o)?128:zp(o)?64:Ut(o)?4:Ot(o)?2:0;return{}.NODE_ENV!=="production"&&a&4&&da(o)&&(o=Ft(o),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: `,o)),x(o,t,e,s,r,a,n,!0)}function Bp(o){return o?da(o)||mc(o)?se({},o):o:null}function Ms(o,t,e=!1){const{props:s,ref:r,patchFlag:n,children:a}=o,i=t?Na(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:o.type,props:i,key:i&&Ic(i),ref:t&&t.ref?e&&r?kt(r)?r.concat(Zr(t)):[r,Zr(t)]:Zr(t):r,scopeId:o.scopeId,slotScopeIds:o.slotScopeIds,children:{}.NODE_ENV!=="production"&&n===-1&&kt(a)?a.map(Fc):a,target:o.target,targetAnchor:o.targetAnchor,staticCount:o.staticCount,shapeFlag:o.shapeFlag,patchFlag:t&&o.type!==Vt?n===-1?16:n|16:n,dynamicProps:o.dynamicProps,dynamicChildren:o.dynamicChildren,appContext:o.appContext,dirs:o.dirs,transition:o.transition,component:o.component,suspense:o.suspense,ssContent:o.ssContent&&Ms(o.ssContent),ssFallback:o.ssFallback&&Ms(o.ssFallback),el:o.el,anchor:o.anchor,ctx:o.ctx,ce:o.ce}}function Fc(o){const t=Ms(o);return kt(o.children)&&(t.children=o.children.map(Fc)),t}function jt(o=" ",t=0){return ft(Ko,null,o,t)}function Dc(o,t){const e=ft(Qo,null,o);return e.staticCount=t,e}function Rt(o="",t=!1){return t?(R(),Lt(Ae,null,o)):ft(Ae,null,o)}function es(o){return o==null||typeof o=="boolean"?ft(Ae):kt(o)?ft(Vt,null,o.slice()):typeof o=="object"?Ns(o):ft(Ko,null,String(o))}function Ns(o){return o.el===null&&o.patchFlag!==-1||o.memo?o:Ms(o)}function Ma(o,t){let e=0;const{shapeFlag:s}=o;if(t==null)t=null;else if(kt(t))e=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ma(o,r()),r._c&&(r._d=!0));return}else{e=32;const r=t._;!r&&!mc(t)?t._ctx=de:r===3&&de&&(de.slots._===1?t._=1:(t._=2,o.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:de},e=32):(t=String(t),s&64?(e=16,t=[jt(t)]):e=8);o.children=t,o.shapeFlag|=e}function Na(...o){const t={};for(let e=0;e<o.length;e++){const s=o[e];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=te([t.class,s.class]));else if(r==="style")t.style=D([t.style,s.style]);else if(No(r)){const n=t[r],a=s[r];a&&n!==a&&!(kt(n)&&n.includes(a))&&(t[r]=n?[].concat(n,a):a)}else r!==""&&(t[r]=s[r])}return t}function as(o,t,e,s=null){Je(o,t,7,[e,s])}const Xp=hc();let Gp=0;function Up(o,t,e){const s=o.type,r=(t?t.appContext:o.appContext)||Xp,n={uid:Gp++,vnode:o,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Gh(!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:yc(s,r),emitsOptions:Kl(s,r),emit:null,emitted:null,propsDefaults:Ht,inheritAttrs:s.inheritAttrs,ctx:Ht,data:Ht,props:Ht,attrs:Ht,slots:Ht,refs:Ht,setupState:Ht,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=cp(n):n.ctx={_:n},n.root=t?t.root:n,n.emit=Yf.bind(null,n),o.ce&&o.ce(n),n}let ge=null;const $c=()=>ge||de;let Wr,Aa;{const o=ea(),t=(e,s)=>{let r;return(r=o[e])||(r=o[e]=[]),r.push(s),n=>{r.length>1?r.forEach(a=>a(n)):r[0](n)}};Wr=t("__VUE_INSTANCE_SETTERS__",e=>ge=e),Aa=t("__VUE_SSR_SETTERS__",e=>qr=e)}const sr=o=>{const t=ge;return Wr(o),o.scope.on(),()=>{o.scope.off(),Wr(t)}},Lc=()=>{ge&&ge.scope.off(),Wr(null)},jp=_o("slot,component");function za(o,{isNativeTag:t}){(jp(o)||t(o))&&ut("Do not use built-in or reserved HTML elements as component id: "+o)}function Mc(o){return o.vnode.shapeFlag&4}let qr=!1;function Hp(o,t=!1){t&&Aa(t);const{props:e,children:s}=o.vnode,r=Mc(o);kp(o,e,r,t),Fp(o,s);const n=r?Zp(o,t):void 0;return t&&Aa(!1),n}function Zp(o,t){var e;const s=o.type;if({}.NODE_ENV!=="production"){if(s.name&&za(s.name,o.appContext.config),s.components){const n=Object.keys(s.components);for(let a=0;a<n.length;a++)za(n[a],o.appContext.config)}if(s.directives){const n=Object.keys(s.directives);for(let a=0;a<n.length;a++)oc(n[a])}s.compilerOptions&&Wp()&&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.')}o.accessCache=Object.create(null),o.proxy=new Proxy(o.ctx,ac),{}.NODE_ENV!=="production"&&up(o);const{setup:r}=s;if(r){const n=o.setupContext=r.length>1?Vc(o):null,a=sr(o);ps();const i=ys(r,o,0,[{}.NODE_ENV!=="production"?gs(o.props):o.props,n]);if(ms(),a(),Qn(i)){if(i.then(Lc,Lc),t)return i.then(l=>{Nc(o,l,t)}).catch(l=>{Yo(l,o,0)});if(o.asyncDep=i,{}.NODE_ENV!=="production"&&!o.suspense){const l=(e=s.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 Nc(o,i,t)}else Ac(o,t)}function Nc(o,t,e){Ot(t)?o.type.__ssrInlineRender?o.ssrRender=t:o.render=t:Ut(t)?({}.NODE_ENV!=="production"&&Eo(t)&&ut("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(o.devtoolsRawSetupState=t),o.setupState=Nl(t),{}.NODE_ENV!=="production"&&dp(o)):{}.NODE_ENV!=="production"&&t!==void 0&&ut(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Ac(o,e)}let Va;const Wp=()=>!Va;function Ac(o,t,e){const s=o.type;if(!o.render){if(!t&&Va&&!s.render){const r=s.template||Oa(o).template;if(r){({}).NODE_ENV!=="production"&&_s(o,"compile");const{isCustomElement:n,compilerOptions:a}=o.appContext.config,{delimiters:i,compilerOptions:l}=s,c=se(se({isCustomElement:n,delimiters:i},a),l);s.render=Va(r,c),{}.NODE_ENV!=="production"&&xs(o,"compile")}}o.render=s.render||ue}{const r=sr(o);ps();try{mp(o)}finally{ms(),r()}}({}).NODE_ENV!=="production"&&!s.render&&o.render===ue&&!t&&(s.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."))}const zc={}.NODE_ENV!=="production"?{get(o,t){return Yr(),_e(o,"get",""),o[t]},set(){return ut("setupContext.attrs is readonly."),!1},deleteProperty(){return ut("setupContext.attrs is readonly."),!1}}:{get(o,t){return _e(o,"get",""),o[t]}};function qp(o){return o.slotsProxy||(o.slotsProxy=new Proxy(o.slots,{get(t,e){return _e(o,"get","$slots"),t[e]}}))}function Vc(o){const t=e=>{if({}.NODE_ENV!=="production"&&(o.exposed&&ut("expose() should be called only once per setup()."),e!=null)){let s=typeof e;s==="object"&&(kt(e)?s="array":xe(e)&&(s="ref")),s!=="object"&&ut(`expose() should be passed a plain object, received ${s}.`)}o.exposed=e||{}};if({}.NODE_ENV!=="production"){let e;return Object.freeze({get attrs(){return e||(e=new Proxy(o.attrs,zc))},get slots(){return qp(o)},get emit(){return(s,...r)=>o.emit(s,...r)},expose:t})}else return{attrs:new Proxy(o.attrs,zc),slots:o.slots,emit:o.emit,expose:t}}function Kr(o){if(o.exposed)return o.exposeProxy||(o.exposeProxy=new Proxy(Nl(pf(o.exposed)),{get(t,e){if(e in t)return t[e];if(e in io)return io[e](o)},has(t,e){return e in t||e in io}}))}const Kp=/(?:^|[-_])(\w)/g,Qp=o=>o.replace(Kp,t=>t.toUpperCase()).replace(/[-_]/g,"");function Yc(o,t=!0){return Ot(o)?o.displayName||o.name:o.name||t&&o.__name}function Qr(o,t,e=!1){let s=Yc(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&o&&o.parent){const r=n=>{for(const a in n)if(n[a]===t)return a};s=r(o.components||o.parent.type.components)||r(o.appContext.components)}return s?Qp(s):e?"App":"Anonymous"}function Bc(o){return Ot(o)&&"__vccOpts"in o}const Jp=(o,t)=>{const e=gf(o,t,qr);if({}.NODE_ENV!=="production"){const s=$c();s&&s.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function Wt(o,t,e){const s=arguments.length;return s===2?Ut(t)&&!kt(t)?Eo(t)?ft(o,null,[t]):ft(o,t):ft(o,null,t):(s>3?e=Array.prototype.slice.call(arguments,2):s===3&&Eo(e)&&(e=[e]),ft(o,t,e))}function tm(){if({}.NODE_ENV==="production"||typeof window>"u")return;const o={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},s={style:"color:#eb2f96"},r={header(d){return Ut(d)?d.__isVue?["div",o,"VueInstance"]:xe(d)?["div",{},["span",o,u(d)],"<",i(d.value),">"]:wo(d)?["div",{},["span",o,Js(d)?"ShallowReactive":"Reactive"],"<",i(d),`>${Qs(d)?" (readonly)":""}`]:Qs(d)?["div",{},["span",o,Js(d)?"ShallowReadonly":"Readonly"],"<",i(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...n(d.$)]}};function n(d){const f=[];d.type.props&&d.props&&f.push(a("props",Ft(d.props))),d.setupState!==Ht&&f.push(a("setup",d.setupState)),d.data!==Ht&&f.push(a("data",Ft(d.data)));const p=l(d,"computed");p&&f.push(a("computed",p));const h=l(d,"inject");return h&&f.push(a("injected",h)),f.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),f}function a(d,f){return f=se({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(p=>["div",{},["span",s,p+": "],i(f[p],!1)])]]:["span",{}]}function i(d,f=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",e,JSON.stringify(d)]:typeof d=="boolean"?["span",s,d]:Ut(d)?["object",{object:f?Ft(d):d}]:["span",e,String(d)]}function l(d,f){const p=d.type;if(Ot(p))return;const h={};for(const y in d.ctx)c(p,y,f)&&(h[y]=d.ctx[y]);return h}function c(d,f,p){const h=d[p];if(kt(h)&&h.includes(f)||Ut(h)&&f in h||d.extends&&c(d.extends,f,p)||d.mixins&&d.mixins.some(y=>c(y,f,p)))return!0}function u(d){return Js(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const Xc="3.4.25",Jr={}.NODE_ENV!=="production"?ut:ue;/**
|
|
22
22
|
* @vue/runtime-dom v3.4.25
|
|
23
23
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
24
|
* @license MIT
|
|
25
|
-
**/const
|
|
26
|
-
Expected function or array of functions, received type ${typeof
|
|
25
|
+
**/const em="http://www.w3.org/2000/svg",sm="http://www.w3.org/1998/Math/MathML",As=typeof document<"u"?document:null,Gc=As&&As.createElement("template"),om={insert:(o,t,e)=>{t.insertBefore(o,e||null)},remove:o=>{const t=o.parentNode;t&&t.removeChild(o)},createElement:(o,t,e,s)=>{const r=t==="svg"?As.createElementNS(em,o):t==="mathml"?As.createElementNS(sm,o):As.createElement(o,e?{is:e}:void 0);return o==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:o=>As.createTextNode(o),createComment:o=>As.createComment(o),setText:(o,t)=>{o.nodeValue=t},setElementText:(o,t)=>{o.textContent=t},parentNode:o=>o.parentNode,nextSibling:o=>o.nextSibling,querySelector:o=>As.querySelector(o),setScopeId(o,t){o.setAttribute(t,"")},insertStaticContent(o,t,e,s,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{Gc.innerHTML=s==="svg"?`<svg>${o}</svg>`:s==="mathml"?`<math>${o}</math>`:o;const i=Gc.content;if(s==="svg"||s==="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]}},rm=Symbol("_vtc");function nm(o,t,e){const s=o[rm];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?o.removeAttribute("class"):e?o.setAttribute("class",t):o.className=t}const tn=Symbol("_vod"),Uc=Symbol("_vsh"),zs={beforeMount(o,{value:t},{transition:e}){o[tn]=o.style.display==="none"?"":o.style.display,e&&t?e.beforeEnter(o):or(o,t)},mounted(o,{value:t},{transition:e}){e&&t&&e.enter(o)},updated(o,{value:t,oldValue:e},{transition:s}){!t!=!e&&(s?t?(s.beforeEnter(o),or(o,!0),s.enter(o)):s.leave(o,()=>{or(o,!1)}):or(o,t))},beforeUnmount(o,{value:t}){or(o,t)}};({}).NODE_ENV!=="production"&&(zs.name="show");function or(o,t){o.style.display=t?o[tn]:"none",o[Uc]=!t}const am=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),im=/(^|;)\s*display\s*:/;function lm(o,t,e){const s=o.style,r=le(e);let n=!1;if(e&&!r){if(t)if(le(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();e[i]==null&&en(s,i,"")}else for(const a in t)e[a]==null&&en(s,a,"");for(const a in e)a==="display"&&(n=!0),en(s,a,e[a])}else if(r){if(t!==e){const a=s[am];a&&(e+=";"+a),s.cssText=e,n=im.test(e)}}else t&&o.removeAttribute("style");tn in o&&(o[tn]=n?s.display:"",o[Uc]&&(s.display="none"))}const cm=/[^\\];\s*$/,jc=/\s*!important$/;function en(o,t,e){if(kt(e))e.forEach(s=>en(o,t,s));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&cm.test(e)&&Jr(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))o.setProperty(t,e);else{const s=um(o,t);jc.test(e)?o.setProperty(Be(s),e.replace(jc,""),"important"):o[s]=e}}const Hc=["Webkit","Moz","ms"],Ya={};function um(o,t){const e=Ya[t];if(e)return e;let s=fs(t);if(s!=="filter"&&s in o)return Ya[t]=s;s=Tr(s);for(let r=0;r<Hc.length;r++){const n=Hc[r]+s;if(n in o)return Ya[t]=n}return t}const Zc="http://www.w3.org/1999/xlink";function dm(o,t,e,s,r){if(s&&t.startsWith("xlink:"))e==null?o.removeAttributeNS(Zc,t.slice(6,t.length)):o.setAttributeNS(Zc,t,e);else{const n=Xh(t);e==null||n&&!dl(e)?o.removeAttribute(t):o.setAttribute(t,n?"":e)}}function hm(o,t,e,s,r,n,a){if(t==="innerHTML"||t==="textContent"){s&&a(s,r,n),o[t]=e??"";return}const i=o.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const c=i==="OPTION"?o.getAttribute("value")||"":o.value,u=e??"";(c!==u||!("_value"in o))&&(o.value=u),e==null&&o.removeAttribute(t),o._value=e;return}let l=!1;if(e===""||e==null){const c=typeof o[t];c==="boolean"?e=dl(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{o[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&Jr(`Failed setting prop "${t}" on <${i.toLowerCase()}>: value ${e} is invalid.`,c)}l&&o.removeAttribute(t)}function fm(o,t,e,s){o.addEventListener(t,e,s)}function pm(o,t,e,s){o.removeEventListener(t,e,s)}const Wc=Symbol("_vei");function mm(o,t,e,s,r=null){const n=o[Wc]||(o[Wc]={}),a=n[t];if(s&&a)a.value={}.NODE_ENV!=="production"?Kc(s,t):s;else{const[i,l]=gm(t);if(s){const c=n[t]=bm({}.NODE_ENV!=="production"?Kc(s,t):s,r);fm(o,i,c,l)}else a&&(pm(o,i,a,l),n[t]=void 0)}}const qc=/(?:Once|Passive|Capture)$/;function gm(o){let t;if(qc.test(o)){t={};let s;for(;s=o.match(qc);)o=o.slice(0,o.length-s[0].length),t[s[0].toLowerCase()]=!0}return[o[2]===":"?o.slice(3):Be(o.slice(2)),t]}let Ba=0;const ym=Promise.resolve(),vm=()=>Ba||(ym.then(()=>Ba=0),Ba=Date.now());function bm(o,t){const e=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=e.attached)return;Je(_m(s,e.value),t,5,[s])};return e.value=o,e.attached=vm(),e}function Kc(o,t){return Ot(o)||kt(o)?o:(Jr(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
26
|
+
Expected function or array of functions, received type ${typeof o}.`),ue)}function _m(o,t){if(kt(t)){const e=o.stopImmediatePropagation;return o.stopImmediatePropagation=()=>{e.call(o),o._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Qc=o=>o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o.charCodeAt(2)>96&&o.charCodeAt(2)<123,xm=(o,t,e,s,r,n,a,i,l)=>{const c=r==="svg";t==="class"?nm(o,s,c):t==="style"?lm(o,e,s):No(t)?wr(t)||mm(o,t,e,s,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wm(o,t,s,c))?hm(o,t,s,n,a,i,l):(t==="true-value"?o._trueValue=s:t==="false-value"&&(o._falseValue=s),dm(o,t,s,c))};function wm(o,t,e,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in o&&Qc(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&o.tagName==="INPUT"||t==="type"&&o.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=o.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Qc(t)&&le(e)?!1:t in o}/*! #__NO_SIDE_EFFECTS__ */function gt(o,t){const e=tt(o);class s extends Xa{constructor(n){super(e,n,t)}}return s.def=e,s}const km=typeof HTMLElement<"u"?HTMLElement:class{};class Xa extends km{constructor(t,e={},s){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&Jr("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),Vl(()=>{this._connected||(rr(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const r of s)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,r=!1)=>{const{props:n,styles:a}=s;let i;if(n&&!kt(n))for(const l in n){const c=n[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=cl(this._props[l])),(i||(i=Object.create(null)))[fs(l)]=!0)}this._numberProps=i,r&&this._resolveProps(s),this._applyStyles(a),this._update()},e=this._def.__asyncLoader;e?e().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:e}=t,s=kt(e)?e:Object.keys(e||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of s.map(fs))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(n){this._setProp(r,n)}})}_setAttr(t){let e=this.hasAttribute(t)?this.getAttribute(t):void 0;const s=fs(t);this._numberProps&&this._numberProps[s]&&(e=cl(e)),this._setProp(s,e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,s=!0,r=!0){e!==this._props[t]&&(this._props[t]=e,r&&this._instance&&this._update(),s&&(e===!0?this.setAttribute(Be(t),""):typeof e=="string"||typeof e=="number"?this.setAttribute(Be(t),e+""):e||this.removeAttribute(Be(t))))}_update(){rr(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ft(this._def,se({},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 s=(n,a)=>{this.dispatchEvent(new CustomEvent(n,{detail:a}))};e.emit=(n,...a)=>{s(n,a),Be(n)!==n&&s(Be(n),a)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Xa){e.parent=r._instance,e.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(e=>{const s=document.createElement("style");s.textContent=e,this.shadowRoot.appendChild(s),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(s)})}}const Cm=se({patchProp:xm},om);let Jc;function Tm(){return Jc||(Jc=Lp(Cm))}const rr=(...o)=>{Tm().render(...o)};/**
|
|
27
27
|
* vue v3.4.25
|
|
28
28
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
29
29
|
* @license MIT
|
|
30
|
-
**/function
|
|
30
|
+
**/function Sm(){tm()}({}).NODE_ENV!=="production"&&Sm();function tu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}function eu(o){this.message=o}eu.prototype=new Error,eu.prototype.name="InvalidCharacterError";class sn{maps=new Map;mapsAddedDuringUpdate=new Map;constructor(){}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,s]=t[0];return this.delete(e),[e,s]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let s=0,r=e.length;s<r;s++){const[n,a]=e[s];t(n,a)===!1&&this.delete(n)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}const Po=new sn,on=o=>{let t=null;switch(o){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"regexp":t=/[\\^$.*+?()[\]{}|]/g;break;case"regexp-flags":t=/\w*$/;break;case"native-method":t=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(on("regexp"),"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":t=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+\@[A-Za-z0-9._-]+\.[A-Za-z0-9]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"time":t=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"datetime":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"whitespace":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"trim":t=/^\s+|\s+$/g;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"bezier":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
31
31
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
32
32
|
|[\u{4E00}-\u{9FCC}]
|
|
33
33
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -36,139 +36,110 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
|
|
|
36
36
|
|[\u{2B740}-\u{2B81D}]
|
|
37
37
|
|[\u{2B820}-\u{2CEAF}]
|
|
38
38
|
|[\u{2CEB0}-\u{2EBEF}]
|
|
39
|
-
`.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e},$s=(s,e)=>(typeof s=="string"&&(s=Xo(s)||new RegExp(s)),s.test(e)),Zc=(s,e)=>{if(typeof s=="string"&&(s=Xo(s)||new RegExp(s)),!e)return null;const t=e.match(s);return t?s.flags.toLowerCase().indexOf("g")>=0?t.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof t.index=="number"?t.index:-1,fullMatch:t[0],groupMatchs:t.slice(1)}:null},Kc=(s,e)=>{typeof s=="string"&&(s=Xo(s)||new RegExp(s));const t=[],n=e.matchAll(s);for(const i of n)t.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return t};function Qc(s){const e=s.match(/[\s\S]/gu);return e?e.length:0}function Jc(s,e){const t=s.codePointAt(e);return t?String.fromCodePoint(t):void 0}function Zp(s=12){const e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",t=e.length;let n="";for(let i=0;i<s;i++)n+=e[Math.floor(Math.random()*t)];return n}function Kp(s){const e=Rn.get(s);if(e)return e;const t=s.replace(/(^\w)/g,function(n){return n.toLowerCase()});return Rn.set(s,t),t}const Xt=(s,e="-")=>{const t=Rn.get(s);if(t)return t;let n=s.replace(new RegExp(`${e}?([A-Z])`,"g"),e+"$1").toLowerCase();return n=n.replace(new RegExp(`^${e}`),""),Rn.set(s,n),n};function Uo(s){const e=Rn.get(s);if(e)return e;const t=s.replace(/(^\w|[_-]\w)/g,function(n){return n.slice(-1).toUpperCase()});return Rn.set(s,t),t}function eu(s){return Kp(Uo(s))}const tu=(s,e="")=>(s=s.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,e),s);function Qp(s,e,t="0",n="left"){const i=Qc(s);if(e>i){const r=e-i;switch(n){case"left":s=Array(r+1).join(t)+s;break;case"right":s=s+Array(r+1).join(t);break;default:const o=Math.ceil(r/2),a=r-o;s=Array(a+1).join(t)+s+Array(o+1).join(t);break}}return s}function Jp(s){const e=typeof s;return e!=="object"?e:Object.prototype.toString.call(s).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function em(s){return s!=null}function mr(s){return Jp(s)==="object"}function tm(s,e){for(const t of Reflect.ownKeys(e))if(t!=="constructor"&&t!=="prototype"&&t!=="name"&&t!=="displayName"){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(s,t,n)}}function su(s,e=new WeakMap){if(s==null)return s;if(s.constructor===Date)return new Date(s);if(s.constructor===RegExp)return new RegExp(s);if(typeof s!="object")return s;if(e.has(s))return e.get(s);const t=Object.create(Object.getPrototypeOf(s),Object.getOwnPropertyDescriptors(s));for(const n of Reflect.ownKeys(s))t[n]=mr(s[n])?su(s[n],e):s[n];return e.set(s,t),t}function qo(s,e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(mr(e[t])?(typeof s[t]>"u"&&(s[t]={}),qo(s[t],e[t])):typeof s[t]>"u"&&(s[t]=e[t]));return s}function nu(s,e){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&!e(t,s[t])&&delete s[t];return s}function xn(s){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&delete s[e];return s}function di(s,e){const t=s.length,n=e.length;for(let r=0;r<n;r++)s[r]=e[r];let i=Math.max(0,t-n);for(;i>0;)s.pop(),i--}function sm(s,e){if(s=parseFloat(s),isNaN(s)){if(typeof e=="number")return e;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function fi(s,e,t=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-e)<t}const Ut=(s,e,t)=>s<e?e:s>t?t:s,nm=(s,e,t)=>n=>{const i=Math.min(Math.max(s,n),e);return e-i<t?e:Math.round(i/t)*t};function im(s,e=12){return sm(s).toFixed(e)}function Rt(s,e=12){return+im(s,e)}function Js(s,e){const t=Zc("number-single",String(s));return{hasNumber:!!t,number:t&&!Array.isArray(t)&&t.fullMatch?parseFloat(t.fullMatch):em(e)?e:NaN,prefix:t&&!Array.isArray(t)&&t.fullMatch?s.substring(0,t.matchIndex):"",suffix:t&&!Array.isArray(t)&&t.fullMatch?s.substring(t.matchIndex+t.fullMatch.length):""}}function iu(s){const e=Zc("number",s);return e?Array.isArray(e)?e.map(t=>Number(t.fullMatch)):[Number(e.fullMatch)]:[]}function rm(s=0,e=100){return Math.random()*(e-s)+s}function dt(s=0,e=100){return Math.floor(rm(s,e))}function ru(s,e){let t=!0;return function(...n){t&&(t=!1,s.apply(this,n),setTimeout(()=>{t=!0},e))}}function om(s,e){let t;return function(...n){clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}class ou{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async t=>{this.controller=t}})}get readableStream(){return this.rs}addTask(e){Array.isArray(e)?this.queue.push(...e):this.queue.push(e),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const e=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=e.length;const t=await Promise.allSettled(e.map(n=>n()));this.results.push(...t),t.forEach(n=>{n.status=="fulfilled"?this.controller?.enqueue(n.value):n.status=="rejected"&&this.controller?.enqueue(new Error(n.reason))}),this.activeTaskCount-=t.length}}}class gr{events;constructor(){this.events={}}on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}addListener(e,t){return this.on(e,t),this}prependListener(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(t),this}removeListener(e,t){if(this.events[e])return this.events[e]=this.events[e].filter(n=>n!==t),this}off(e,t){return this.removeListener(e,t),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...t){return this.events[e]&&this.events[e].forEach(n=>{Reflect.apply(n,this,t)}),this}once(e,t){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(t,this,o),this.off(e,i))}})();return this.on(e,i),this}}var au=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function am(s,e={}){var t=1,n=1;function i(te){var U=te.match(/\n/g);U&&(t+=U.length);var Ce=te.lastIndexOf(`
|
|
40
|
-
`);n=~Ce?te.length-Ce:n+te.length}function r(){var te={line:t,column:n};return function(U){return U.position=new o(te),m(),U}}function o(te){this.start=te,this.end={line:t,column:n},this.source=e.source}o.prototype.content=s;var a=[];function l(te){var U=new Error(e.source+":"+t+":"+n+": "+te);if(U.reason=te,U.filename=e.source,U.line=t,U.column=n,U.source=s,e.silent)a.push(U);else throw U}function c(){var te=f();return{type:"stylesheet",stylesheet:{source:e.source,rules:te,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var te,U=[];for(m(),v(U);s.length&&s.charAt(0)!="}"&&(te=be()||_e());)te!==!1&&(U.push(te),v(U));return U}function d(te){var U=te.exec(s);if(U){var Ce=U[0];return i(Ce),s=s.slice(Ce.length),U}}function m(){d(/^\s*/)}function v(te){var U;for(te=te||[];U=b();)U!==!1&&te.push(U);return te}function b(){var te=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var U=2;s.charAt(U)!=""&&(s.charAt(U)!="*"||s.charAt(U+1)!="/");)++U;if(U+=2,s.charAt(U-1)==="")return l("End of comment missing");var Ce=s.slice(2,U-2);return n+=2,i(Ce),s=s.slice(U),n+=2,te({type:"comment",comment:Ce})}}function C(){var te=d(/^([^{]+)/);if(te)return Ms(te[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(U){return U.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(U){return U.replace(/\u200C/g,",")})}function O(){var te=r(),U=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(U){if(U=Ms(U[0]),!d(/^:\s*/))return l("property missing ':'");var Ce=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),A=te({type:"declaration",property:U.replace(au,""),value:Ce?Ms(Ce[0]).replace(au,""):""});return d(/^[;\s]*/),A}}function $(){var te=[];if(!u())return l("missing '{'");v(te);for(var U;U=O();)U!==!1&&(te.push(U),v(te));return h()?te:l("missing '}'")}function S(){for(var te,U=[],Ce=r();te=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)U.push(te[1]),d(/^,\s*/);if(U.length)return Ce({type:"keyframe",values:U,declarations:$()})}function Y(){var te=r(),U=d(/^@([-\w]+)?keyframes\s*/);if(U){var Ce=U[1];if(U=d(/^([-\w]+)\s*/),!U)return l("@keyframes missing name");var A=U[1];if(!u())return l("@keyframes missing '{'");for(var Fe,ht=v();Fe=S();)ht.push(Fe),ht=ht.concat(v());return h()?te({type:"keyframes",name:A,vendor:Ce,keyframes:ht}):l("@keyframes missing '}'")}}function L(){var te=r(),U=d(/^@supports *([^{]+)/);if(U){var Ce=Ms(U[1]);if(!u())return l("@supports missing '{'");var A=v().concat(f());return h()?te({type:"supports",supports:Ce,rules:A}):l("@supports missing '}'")}}function H(){var te=r(),U=d(/^@host\s*/);if(U){if(!u())return l("@host missing '{'");var Ce=v().concat(f());return h()?te({type:"host",rules:Ce}):l("@host missing '}'")}}function fe(){var te=r(),U=d(/^@media *([^{]+)/);if(U){var Ce=Ms(U[1]);if(!u())return l("@media missing '{'");var A=v().concat(f());return h()?te({type:"media",media:Ce,rules:A}):l("@media missing '}'")}}function ye(){var te=r(),U=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(U)return te({type:"custom-media",name:Ms(U[1]),media:Ms(U[2])})}function ge(){var te=r(),U=d(/^@page */);if(U){var Ce=C()||[];if(!u())return l("@page missing '{'");for(var A=v(),Fe;Fe=O();)A.push(Fe),A=A.concat(v());return h()?te({type:"page",selectors:Ce,declarations:A}):l("@page missing '}'")}}function Me(){var te=r(),U=d(/^@([-\w]+)?document *([^{]+)/);if(U){var Ce=Ms(U[1]),A=Ms(U[2]);if(!u())return l("@document missing '{'");var Fe=v().concat(f());return h()?te({type:"document",document:A,vendor:Ce,rules:Fe}):l("@document missing '}'")}}function Ae(){var te=r(),U=d(/^@font-face\s*/);if(U){if(!u())return l("@font-face missing '{'");for(var Ce=v(),A;A=O();)Ce.push(A),Ce=Ce.concat(v());return h()?te({type:"font-face",declarations:Ce}):l("@font-face missing '}'")}}var Ue=Ge("import"),qe=Ge("charset"),et=Ge("namespace");function Ge(te){var U=new RegExp("^@"+te+"\\s*([^;]+);");return function(){var Ce=r(),A=d(U);if(A){var Fe={type:te};return Fe[te]=A[1].trim(),Ce(Fe)}}}function be(){if(s[0]=="@")return Y()||fe()||ye()||L()||Ue()||qe()||et()||Me()||ge()||H()||Ae()}function _e(){var te=r(),U=C();return U?(v(),te({type:"rule",selectors:U,declarations:$()})):l("selector missing")}return Zo(c())}function Ms(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Zo(s,e){var t=s&&typeof s.type=="string",n=t?s:e;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){Zo(o,n)}):r&&typeof r=="object"&&Zo(r,n)}return t&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),s}const pi=/^[a-z0-9]+(-[a-z0-9]+)*$/,vr=(s,e,t,n="")=>{const i=s.split(":");if(s.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:n,prefix:l,name:a};return e&&!yr(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return e&&!yr(a)?null:a}if(t&&n===""){const a={provider:n,prefix:"",name:r};return e&&!yr(a,t)?null:a}return null},yr=(s,e)=>s?!!((s.provider===""||s.provider.match(pi))&&(e&&s.prefix===""||s.prefix.match(pi))&&s.name.match(pi)):!1,lu=Object.freeze({left:0,top:0,width:16,height:16}),br=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_r=Object.freeze({...lu,...br}),Ko=Object.freeze({..._r,body:"",hidden:!1});function lm(s,e){const t={};!s.hFlip!=!e.hFlip&&(t.hFlip=!0),!s.vFlip!=!e.vFlip&&(t.vFlip=!0);const n=((s.rotate||0)+(e.rotate||0))%4;return n&&(t.rotate=n),t}function cu(s,e){const t=lm(s,e);for(const n in Ko)n in br?n in s&&!(n in t)&&(t[n]=br[n]):n in e?t[n]=e[n]:n in s&&(t[n]=s[n]);return t}function cm(s,e){const t=s.icons,n=s.aliases||Object.create(null),i=Object.create(null);function r(o){if(t[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=n[o]&&n[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(e||Object.keys(t).concat(Object.keys(n))).forEach(r),i}function um(s,e,t){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=cu(n[a]||i[a],r)}return o(e),t.forEach(o),cu(s,r)}function uu(s,e){const t=[];if(typeof s!="object"||typeof s.icons!="object")return t;s.not_found instanceof Array&&s.not_found.forEach(i=>{e(i,null),t.push(i)});const n=cm(s);for(const i in n){const r=n[i];r&&(e(i,um(s,i,r)),t.push(i))}return t}const hm={provider:"",aliases:{},not_found:{},...lu};function Qo(s,e){for(const t in e)if(t in s&&typeof s[t]!=typeof e[t])return!1;return!0}function hu(s){if(typeof s!="object"||s===null)return null;const e=s;if(typeof e.prefix!="string"||!s.icons||typeof s.icons!="object"||!Qo(s,hm))return null;const t=e.icons;for(const i in t){const r=t[i];if(!i.match(pi)||typeof r.body!="string"||!Qo(r,Ko))return null}const n=e.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(pi)||typeof o!="string"||!t[o]&&!n[o]||!Qo(r,Ko))return null}return e}const du=Object.create(null);function dm(s,e){return{provider:s,prefix:e,icons:Object.create(null),missing:new Set}}function wn(s,e){const t=du[s]||(du[s]=Object.create(null));return t[e]||(t[e]=dm(s,e))}function Jo(s,e){return hu(e)?uu(e,(t,n)=>{n?s.icons[t]=n:s.missing.add(t)}):[]}function fm(s,e,t){try{if(typeof t.body=="string")return s.icons[e]={...t},!0}catch{}return!1}let mi=!1;function fu(s){return typeof s=="boolean"&&(mi=s),mi}function pm(s){const e=typeof s=="string"?vr(s,!0,mi):s;if(e){const t=wn(e.provider,e.prefix),n=e.name;return t.icons[n]||(t.missing.has(n)?null:void 0)}}function mm(s,e){const t=vr(s,!0,mi);if(!t)return!1;const n=wn(t.provider,t.prefix);return fm(n,t.name,e)}function gm(s,e){if(typeof s!="object")return!1;if(typeof e!="string"&&(e=s.provider||""),mi&&!e&&!s.prefix){let i=!1;return hu(s)&&(s.prefix="",uu(s,(r,o)=>{o&&mm(r,o)&&(i=!0)})),i}const t=s.prefix;if(!yr({provider:e,prefix:t,name:"a"}))return!1;const n=wn(e,t);return!!Jo(n,s)}const pu=Object.freeze({width:null,height:null}),mu=Object.freeze({...pu,...br}),vm=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ym=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gu(s,e,t){if(e===1)return s;if(t=t||100,typeof s=="number")return Math.ceil(s*e*t)/t;if(typeof s!="string")return s;const n=s.split(vm);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=ym.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*e*t)/t)}else i.push(r);if(r=n.shift(),r===void 0)return i.join("");o=!o}}function bm(s,e="defs"){let t="";const n=s.indexOf("<"+e);for(;n>=0;){const i=s.indexOf(">",n),r=s.indexOf("</"+e);if(i===-1||r===-1)break;const o=s.indexOf(">",r);if(o===-1)break;t+=s.slice(i+1,r).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:t,content:s}}function _m(s,e){return s?"<defs>"+s+"</defs>"+e:e}function xm(s,e,t){const n=bm(s);return _m(n.defs,e+n.content+t)}const wm=s=>s==="unset"||s==="undefined"||s==="none";function Cm(s,e){const t={..._r,...s},n={...mu,...e},i={left:t.left,top:t.top,width:t.width,height:t.height};let r=t.body;[t,n].forEach(v=>{const b=[],C=v.hFlip,O=v.vFlip;let $=v.rotate;C?O?$+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):O&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let S;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:S=i.height/2+i.top,b.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,b.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}$%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),b.length&&(r=xm(r,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=gu(h,l/c)):(u=o==="auto"?l:o,h=a===null?gu(u,c/l):a==="auto"?c:a);const f={},d=(v,b)=>{wm(b)||(f[v]=b.toString())};d("width",u),d("height",h);const m=[i.left,i.top,l,c];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const Sm=/\sid="(\S+)"/g,km="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Em=0;function Tm(s,e=km){const t=[];let n;for(;n=Sm.exec(s);)t.push(n[1]);if(!t.length)return s;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(r=>{const o=typeof e=="function"?e(r):e+(Em++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),s=s.replace(new RegExp(i,"g"),""),s}const ea=Object.create(null);function Om(s,e){ea[s]=e}function ta(s){return ea[s]||ea[""]}function sa(s){let e;if(typeof s.resources=="string")e=[s.resources];else if(e=s.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,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 na=Object.create(null),gi=["https://api.simplesvg.com","https://api.unisvg.com"],xr=[];for(;gi.length>0;)gi.length===1||Math.random()>.5?xr.push(gi.shift()):xr.push(gi.pop());na[""]=sa({resources:["https://api.iconify.design"].concat(xr)});function Pm(s,e){const t=sa(e);return t===null?!1:(na[s]=t,!0)}function ia(s){return na[s]}let vu=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Im(s,e){const t=ia(s);if(!t)return 0;let n;if(!t.maxURL)n=0;else{let i=0;t.resources.forEach(o=>{i=Math.max(i,o.length)});const r=e+".json?icons=";n=t.maxURL-i-t.path.length-r.length}return n}function Dm(s){return s===404}const Nm=(s,e,t)=>{const n=[],i=Im(s,e),r="icons";let o={type:r,provider:s,prefix:e,icons:[]},a=0;return t.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(o),o={type:r,provider:s,prefix:e,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function $m(s){if(typeof s=="string"){const e=ia(s);if(e)return e.path}return"/"}const Mm={prepare:Nm,send:(s,e,t)=>{if(!vu){t("abort",424);return}let n=$m(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});n+=r+".json?"+l.toString();break}case"custom":{const r=e.uri;n+=r.slice(0,1)==="/"?r.slice(1):r;break}default:t("abort",400);return}let i=503;vu(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{t(Dm(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?t("abort",r):t("next",i)});return}setTimeout(()=>{t("success",r)})}).catch(()=>{t("next",i)})}};function Am(s){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);s.sort((i,r)=>i.provider!==r.provider?i.provider.localeCompare(r.provider):i.prefix!==r.prefix?i.prefix.localeCompare(r.prefix):i.name.localeCompare(r.name));let n={provider:"",prefix:"",name:""};return s.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const r=i.provider,o=i.prefix,a=i.name,l=t[r]||(t[r]=Object.create(null)),c=l[o]||(l[o]=wn(r,o));let u;a in c.icons?u=e.loaded:o===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),e}function yu(s,e){s.forEach(t=>{const n=t.loaderCallbacks;n&&(t.loaderCallbacks=n.filter(i=>i.id!==e))})}function Rm(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const e=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const n=s.provider,i=s.prefix;e.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(s.icons[c])o.loaded.push({provider:n,prefix:i,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:i,name:c});else return t=!0,!0;return!1}),o.pending.length!==a&&(t||yu([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let Vm=0;function Lm(s,e,t){const n=Vm++,i=yu.bind(null,t,n);if(!e.pending.length)return i;const r={id:n,icons:e,callback:s,abort:i};return t.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function zm(s,e=!0,t=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?vr(i,e,t):i;r&&n.push(r)}),n}var Fm={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Gm(s,e,t,n){const i=s.resources.length,r=s.random?Math.floor(Math.random()*i):s.index;let o;if(s.random){let L=s.resources.slice(0);for(o=[];L.length>1;){const H=Math.floor(Math.random()*L.length);o.push(L[H]),L=L.slice(0,H).concat(L.slice(H+1))}o=o.concat(L)}else o=s.resources.slice(r).concat(s.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,f=[],d=[];typeof n=="function"&&d.push(n);function m(){h&&(clearTimeout(h),h=null)}function v(){l==="pending"&&(l="aborted"),m(),f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function b(L,H){H&&(d=[]),typeof L=="function"&&d.push(L)}function C(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:f.length,subscribe:b,abort:v}}function O(){l="failed",d.forEach(L=>{L(void 0,u)})}function $(){f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function S(L,H,fe){const ye=H!=="success";switch(f=f.filter(ge=>ge!==L),l){case"pending":break;case"failed":if(ye||!s.dataAfterTimeout)return;break;default:return}if(H==="abort"){u=fe,O();return}if(ye){u=fe,f.length||(o.length?Y():O());return}if(m(),$(),!s.random){const ge=s.resources.indexOf(L.resource);ge!==-1&&ge!==s.index&&(s.index=ge)}l="completed",d.forEach(ge=>{ge(fe)})}function Y(){if(l!=="pending")return;m();const L=o.shift();if(L===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&($(),O())},s.timeout);return}O();return}const H={status:"pending",resource:L,callback:(fe,ye)=>{S(H,fe,ye)}};f.push(H),c++,h=setTimeout(Y,s.rotate),t(L,e,H.callback)}return setTimeout(Y),C}function bu(s){const e={...Fm,...s};let t=[];function n(){t=t.filter(a=>a().status==="pending")}function i(a,l,c){const u=Gm(e,a,l,(h,f)=>{n(),c&&c(h,f)});return t.push(u),u}function r(a){return t.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:n}}function _u(){}const ra=Object.create(null);function Bm(s){if(!ra[s]){const e=ia(s);if(!e)return;const t=bu(e),n={config:e,redundancy:t};ra[s]=n}return ra[s]}function jm(s,e,t){let n,i;if(typeof s=="string"){const r=ta(s);if(!r)return t(void 0,424),_u;i=r.send;const o=Bm(s);o&&(n=o.redundancy)}else{const r=sa(s);if(r){n=bu(r);const o=s.resources?s.resources[0]:"",a=ta(o);a&&(i=a.send)}}return!n||!i?(t(void 0,424),_u):n.query(e,i,t)().abort}const xu="iconify2",vi="iconify",wu=vi+"-count",Cu=vi+"-version",Su=36e5,Ym=168,Hm=50;function oa(s,e){try{return s.getItem(e)}catch{}}function aa(s,e,t){try{return s.setItem(e,t),!0}catch{}}function ku(s,e){try{s.removeItem(e)}catch{}}function la(s,e){return aa(s,wu,e.toString())}function ca(s){return parseInt(oa(s,wu))||0}const wr={local:!0,session:!0},Eu={local:new Set,session:new Set};let ua=!1;function Wm(s){ua=s}let Cr=typeof window>"u"?{}:window;function Tu(s){const e=s+"Storage";try{if(Cr&&Cr[e]&&typeof Cr[e].length=="number")return Cr[e]}catch{}wr[s]=!1}function Ou(s,e){const t=Tu(s);if(!t)return;const n=oa(t,Cu);if(n!==xu){if(n){const a=ca(t);for(let l=0;l<a;l++)ku(t,vi+l.toString())}aa(t,Cu,xu),la(t,0);return}const i=Math.floor(Date.now()/Su)-Ym,r=a=>{const l=vi+a.toString(),c=oa(t,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}ku(t,l)}};let o=ca(t);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,la(t,o)):Eu[s].add(a))}function Pu(){if(!ua){Wm(!0);for(const s in wr)Ou(s,e=>{const t=e.data,n=e.provider,i=t.prefix,r=wn(n,i);if(!Jo(r,t).length)return!1;const o=t.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function Xm(s,e){const t=s.lastModifiedCached;if(t&&t>=e)return t===e;if(s.lastModifiedCached=e,t)for(const n in wr)Ou(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===e});return!0}function Um(s,e){ua||Pu();function t(n){let i;if(!wr[n]||!(i=Tu(n)))return;const r=Eu[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=ca(i),o>=Hm||!la(i,o+1))return;const a={cached:Math.floor(Date.now()/Su),provider:s.provider,data:e};return aa(i,vi+o.toString(),JSON.stringify(a))}e.lastModified&&!Xm(s,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Iu(){}function qm(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Rm(s)}))}function Zm(s,e){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(e).sort():s.iconsToLoad=e,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:t,prefix:n}=s,i=s.iconsToLoad;delete s.iconsToLoad;let r;if(!i||!(r=ta(t)))return;r.prepare(t,n,i).forEach(a=>{jm(t,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Jo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),Um(s,l)}catch(c){console.error(c)}qm(s)})})}))}const Km=(s,e)=>{const t=zm(s,!0,fu()),n=Am(t);if(!n.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(n.loaded,n.missing,n.pending,Iu)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(wn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=wn(c,u),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(h)||(d.add(h),i[c][u].push(h))}),r.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&Zm(l,i[c][u])}),e?Lm(e,n,r):Iu};function Qm(s,e){const t={...s};for(const n in e){const i=e[n],r=typeof i;n in pu?(i===null||i&&(r==="string"||r==="number"))&&(t[n]=i):r===typeof t[n]&&(t[n]=n==="rotate"?i%4:i)}return t}const Jm=/[\s,]+/;function eg(s,e){e.split(Jm).forEach(t=>{switch(t.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function tg(s,e=0){const t=s.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(t===""){const i=parseInt(s);return isNaN(i)?0:n(i)}else if(t!==s){let i=0;switch(t){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(s.slice(0,s.length-t.length));return isNaN(r)?0:(r=r/i,r%1===0?n(r):0)}}return e}function sg(s,e){let t=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)t+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+s+"</svg>"}function ng(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ig(s){return"data:image/svg+xml,"+ng(s)}function rg(s){return'url("'+ig(s)+'")'}const Du={...mu,inline:!1},og={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ag={display:"inline-block"},ha={backgroundColor:"currentColor"},Nu={backgroundColor:"transparent"},$u={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Mu={webkitMask:ha,mask:ha,background:Nu};for(const s in Mu){const e=Mu[s];for(const t in $u)e[s+t]=$u[t]}const Sr={};["horizontal","vertical"].forEach(s=>{const e=s.slice(0,1)+"Flip";Sr[s+"-flip"]=e,Sr[s.slice(0,1)+"-flip"]=e,Sr[s+"Flip"]=e});function Au(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Ru=(s,e)=>{const t=Qm(Du,e),n={...og},i=e.mode||"svg",r={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in e){const b=e[v];if(b!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":t[v]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&eg(t,b);break;case"color":r.color=b;break;case"rotate":typeof b=="string"?t[v]=tg(b):typeof b=="number"&&(t[v]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete n["aria-hidden"];break;default:{const C=Sr[v];C?(b===!0||b==="true"||b===1)&&(t[C]=!0):Du[v]===void 0&&(n[v]=b)}}}const l=Cm(s,t),c=l.attributes;if(t.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let v=0,b=e.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),n.innerHTML=Tm(l.body,b?()=>b+"ID"+v++:"iconifyVue"),tt("svg",n)}const{body:u,width:h,height:f}=s,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=sg(u,{...c,width:h+"",height:f+""});return n.style={...r,"--svg":rg(m),width:Au(c.width),height:Au(c.height),...ag,...d?ha:Nu,...a},tt("span",n)};if(fu(!0),Om("",Mm),typeof document<"u"&&typeof window<"u"){Pu();const s=window;if(s.IconifyPreload!==void 0){const e=s.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!gm(n))&&console.error(t)}catch{console.error(t)}})}if(s.IconifyProviders!==void 0){const e=s.IconifyProviders;if(typeof e=="object"&&e!==null)for(let t in e){const n="IconifyProviders["+t+"] is invalid.";try{const i=e[t];if(typeof i!="object"||!i||i.resources===void 0)continue;Pm(t,i)||console.error(n)}catch{console.error(n)}}}}const lg={..._r,body:""},Vu=oe({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,e){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let t;if(typeof s!="string"||(t=vr(s,!1,!0))===null)return this.abortLoading(),null;const n=pm(t);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:Km([t],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,e&&e(s));const i=["iconify"];return t.prefix!==""&&i.push("iconify--"+t.prefix),t.provider!==""&&i.push("iconify--"+t.provider),{data:n,classes:i}}},render(){this.counter;const s=this.$attrs,e=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!e)return Ru(lg,s);let t=s;return e.classes&&(t={...s,class:(typeof s.class=="string"?s.class+" ":"")+e.classes.join(" ")}),Ru({..._r,...e.data},t)}}),Lu=(s,e="image/svg+xml",t="utf-8")=>t==="base64"?new Blob([s],{type:`${e};${t}`}):new Blob([s],{type:`${e};charset=${t}`}),zu=s=>new XMLSerializer().serializeToString(s),cg=(s,e="image/svg+xml",t="utf-8")=>Lu(zu(s),e,t),Fu=(s,e)=>new Promise(t=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=e,typeof s=="string"?n.href=s:n.href=window.URL.createObjectURL(s),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href),t()});function ug(s=["*"],e){return new Promise((t,n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return n(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(s)&&s.length>0&&i.setAttribute("accept",s.join(",")),e&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&n(new Error("Cancel select"))},1e3)},{once:!0});const r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)n(new Error("Cancel select"));else{const o=Array.from(i.files);!s.includes("*")&&o.some(a=>!s.includes(`.${dg(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),t(o)}};i.addEventListener("change",r),i.click()})}function hg(s,e="text",t){return new Promise((n,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{t?.(o.loaded,o.total)}),r.addEventListener("load",o=>{n(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),e){case"dataURL":r.readAsDataURL(s);break;case"binaryString":r.readAsBinaryString(s);break;case"arrayBuffer":r.readAsArrayBuffer(s);break;case"text":default:r.readAsText(s)}})}const dg=s=>{let e;return s instanceof File?e=s.name:e=s,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function kr(){const s=document.documentElement;return{clientX:s.getBoundingClientRect().x,clientY:s.getBoundingClientRect().y,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 da(){const{clientWidth:s,clientHeight:e}=kr();return{width:s||window.innerWidth,height:e||window.innerHeight}}function fg(s){const{top:e,left:t,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=kr();return{x:t+r,y:e+o,width:n,height:i}}function pg(){const{clientHeight:s,scrollTop:e,scrollHeight:t}=kr(),n=t-s;return n<=0?0:e/n*100}function mg(s){if("center"in s)return s.center;if(s.pageX&&s.pageY)return{x:s.pageX,y:s.pageY};const{scrollLeft:e,scrollTop:t}=kr();return{x:s.clientX+e,y:s.clientY+t}}function gg(s,e){const t=mg(e),n=fg(s);return{x:t.x-n.x,y:t.y-n.y}}const vg=()=>{const s=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(s)?e="macOS":/win/i.test(s)?e="Windows":/android/i.test(s)?e="Android":/iphone|ipad|ipod/i.test(s)?e="iOS":/linux/i.test(s)?e="Linux":/bsd/i.test(s)&&(e="BSD"),e.toLowerCase()};function yg(){return vg()==="macos"}function bg(){const s=window.navigator.userAgent,e=s.indexOf("MSIE ");if(e>0)return parseInt(s.substring(e+5,s.indexOf(".",e)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const fa=bg()!==-1;(()=>{const s=Uc();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!Uc().OffscreenCanvas)return!1;const e=new OffscreenCanvas(1,1),t=e.getContext("2d");t.fillRect(0,0,1,1);const n=e.transferToImageBitmap();try{t.createPattern(n,"no-repeat")}catch{return!1}return!0}();function _g(s){const e=document.documentElement,t=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=t;let n=100;const i=function(){const r=Math.min(e.clientWidth,s);e.dataset.width=r,e.dataset.rem=n=Math.round(100*(r/s)),e.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function $e(s){return s*Math.PI/180}function jt(s){return s*180/Math.PI}function pa(s,e,t=0){return Math.sqrt(s*s+e*e+t*t)}function ma(s,e,t,n){const i=s-t,r=e-n;return pa(i,r)}function ga(s,e,t,n){const i=s-t,r=e-n;return i*i+r*r}function Vn(s,e,t,n){const i=t-s,r=n-e;let o=Math.atan2(r,i);return o<0&&(o+=Math.PI*2),o}function As(s,e){return{dx:Math.cos(s)*e,dy:Math.sin(s)*e}}const yi=Math.PI*2;function Gu(s,e,t,n){const i=s*n-e*t<0?-1:1;let r=s*t+e*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function xg(s,e,t,n,i,r,o,a,l,c){const u=c*(s-t)/2+l*(e-n)/2,h=-l*(s-t)/2+c*(e-n)/2,f=o*o,d=a*a,m=u*u,v=h*h;let b=f*d-f*v-d*m;b<0&&(b=0),b/=f*v+d*m,b=Math.sqrt(b)*(i===r?-1:1);const C=b*o/a*h,O=b*-a/o*u,$=c*C-l*O+(s+t)/2,S=l*C+c*O+(e+n)/2,Y=(u-C)/o,L=(h-O)/a,H=(-u-C)/o,fe=(-h-O)/a,ye=Gu(1,0,Y,L);let ge=Gu(Y,L,H,fe);return r===0&&ge>0&&(ge-=yi),r===1&&ge<0&&(ge+=yi),[$,S,ye,ge]}function wg(s,e){const t=1.3333333333333333*Math.tan(e/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+e),o=Math.sin(s+e);return[n,i,n-i*t,i+n*t,r+o*t,o-r*t,r,o]}function Bu(s,e,t,n,i,r,o,a,l){const c=Math.sin(l*yi/360),u=Math.cos(l*yi/360),h=u*(s-t)/2+c*(e-n)/2,f=-c*(s-t)/2+u*(e-n)/2;if(h===0&&f===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const d=h*h/(o*o)+f*f/(a*a);d>1&&(o*=Math.sqrt(d),a*=Math.sqrt(d));const m=xg(s,e,t,n,i,r,o,a,c,u),v=[];let b=m[2],C=m[3];const O=Math.max(Math.ceil(Math.abs(C)/(yi/4)),1);C/=O;for(let $=0;$<O;$++)v.push(wg(b,C)),b+=C;return v.map($=>{for(let S=0;S<$.length;S+=2){let Y=$[S+0],L=$[S+1];Y*=o,L*=a;const H=u*Y-c*L,fe=c*Y+u*L;$[S+0]=H+m[0],$[S+1]=fe+m[1]}return $})}function va(s,e,t,n,i,r){return[s/3+.6666666666666666*t,e/3+.6666666666666666*n,i/3+.6666666666666666*t,r/3+.6666666666666666*n,i,r]}function bi(s,e,t,n){return[s,e,t,n,t,n]}const Er={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class Cn{static createSVGElement(e="path",t){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",e);return t&&K.attribute(n,t),n}static createSvgPath(e){return this.createSVGElement("path",{d:e})}static downloadFromSVGElement(e,t="shape"){return Fu(cg(e),`${t}.svg`)}static downloadFromSVGString(e,t="shape"){return Fu(Lu(e),`${t}.svg`)}static getSVGRawStringFromElement(e){return zu(e)}static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e))}static SVGPathDataToD(e){return e.map(t=>{if(!t[0])return"";switch(t[0].toLowerCase()){case"a":return`${t[0]} ${t[1]},${t[2]} ${t[3]} ${t[4]},${t[5]} ${t[6]},${t[7]}`;case"c":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]} ${t[5]},${t[6]}`;case"s":case"q":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]}`;default:return t[0]+" "+t.slice(1).join(",")}}).join(" ")}static parseSVGPath(e){const t=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=iu(r);for(o=="m"&&a.length>Er[o]&&(t.push([i,...a.splice(0,Er[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Er[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);t.push([i,...a.splice(0,Er[o])])}return o=="z"&&t.push([i]),""}),t}static absolutizeSVGPath(e){let t=0,n=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=t,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=t=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(e){let t=0,n=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=t,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],t+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(e){let t=[],n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=e.length;f<d;f++){let m=e[f];const v=m[0];switch(v){case"M":n=m[1],i=m[2];break;case"A":const b=Bu(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!b.length)continue;b.forEach(($,S)=>{const[Y,L,H,fe,ye,ge,Me,Ae]=$;m=["C",H,fe,ye,ge,Me,Ae],S<b.length-1&&t.push(m)});break;case"S":let C=r,O=o;(h=="C"||h=="S")&&(C+=C-c,O+=O-u),m=["C",C,O,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),m=["C",...va(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...va(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...bi(r,o,m[1],m[2])];break;case"H":m=["C",...bi(r,o,m[1],o)];break;case"V":m=["C",...bi(r,o,r,m[1])];break;case"Z":m=["C",...bi(r,o,n,i)];break}h=v,r=m[m.length-2],o=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=r,u=o),t.push(m)}return t}static catmullRom2bezier(e){let t=[];for(let n=0,i=e.length;i-2>n;n+=2){let r;n==0?r=[{x:e[n],y:e[n+1]},{x:e[n],y:e[n+1]},{x:e[n+2],y:e[n+3]},{x:e[n+4],y:e[n+5]}]:i-4==n?r=[{x:e[n-2],y:e[n-1]},{x:e[n],y:e[n+1]},{x:e[n+2],y:e[n+3]},{x:e[n+2],y:e[n+3]}]:r=[{x:e[n-2],y:e[n-1]},{x:e[n],y:e[n+1]},{x:e[n+2],y:e[n+3]},{x:e[n+4],y:e[n+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];t.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return t}static zvhToLSVGPath(e){let t=[],n=["L",0,0],i;for(let r=0,o=e.length;r<o;r++){let a=e[r];switch(a[0]){case"M":n=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(n);break;case"H":i=t[t.length-1]||["L",0,0],t.push(["L",a[1],i[i.length-1]]);break;case"V":i=t[t.length-1]||["L",0,0],t.push(["L",i[i.length-2],a[1]]);break;default:t.push(a)}}return t}static longhandSVGPath(e){const t={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=e.length;o<a;o++){const l=e[o],c=t[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return e}static curveDim(e,t,n,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,v,b,C,O;for(let L=0;L<2;++L){if(L===0?(f=6*e-12*n+6*r,h=-3*e+9*n-9*r+3*a,d=3*n-3*e):(f=6*t-12*i+6*o,h=-3*t+9*i-9*o+3*l,d=3*i-3*t),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;m=-d/f,m>0&&m<1&&c.push(m);continue}C=f*f-4*d*h,O=Math.sqrt(C),!(C<0)&&(v=(-f+O)/(2*h),v>0&&v<1&&c.push(v),b=(-f-O)/(2*h),b>0&&b<1&&c.push(b))}let $=c.length,S;const Y=$;for(;$--;)m=c[$],S=1-m,u[0][$]=S*S*S*e+3*S*S*m*n+3*S*m*m*r+m*m*m*a,u[1][$]=S*S*S*t+3*S*S*m*i+3*S*m*m*o+m*m*m*l;return u[0][Y]=e,u[1][Y]=t,u[0][Y+1]=a,u[1][Y+1]=l,u[0].length=u[1].length=Y+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}static base3(e,t,n,i,r){const o=-3*t+9*n-9*i+3*r,a=e*o+6*t-12*n+6*i;return e*a-3*t+3*n}static bezlen(e,t,n,i,r,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let v=0;v<h;v++){const b=u*f[v]+u,C=this.base3(b,e,n,r,a),O=this.base3(b,t,i,o,l),$=C*C+O*O;m+=d[v]*Math.sqrt($)}return u*m}}const ct=Cn;class ju extends gr{shapes=[];removes=[];x;y;constructor(e){super(),this.x=e?.x||0,this.y=e?.y||0}register(...e){this.shapes.push(...e);const t=n=>(i,r)=>{this.shapes.forEach(o=>{o.id!==n.id&&o.enableDrag&&(o.x+=i,o.y+=r)}),this.x+=i,this.y+=r};e.forEach(n=>{const i=t(n);n.on("moving",i),this.removes.push(()=>{n.off("moving",i)})})}destroy(){this.removes.forEach(e=>e())}}class ut extends gr{id;cX;cY;x;prevX;y;prevY;degree;prevDegree;scalexOnOrigin;scaleyOnOrigin;prevScalexOnOrigin;prevScaleyOnOrigin;skewxDegreeOnOrigin;skewyDegreeOnOrigin;prevSkewxDegreeOnOrigin;prevSkewyDegreeOnOrigin;transformBaseOnSelfInRenderGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;mouseX=0;mouseY=0;targetToAfterDragFree;followMouse;isShow=!0;now=new Date().getTime();frameRate=60;strokeArmyAnts;strokeArmyAntsOffset=0;history=[];path2d=new Path2D;el;pathd;renderGroup;shapeGroup;autoRender;constructor(e){super(),this.id=Zp(),this.cX=e?.cX||0,this.cY=e?.cY||0,this.prevX=this.x=e?.x||0,this.prevY=this.y=e?.y||0,this.prevDegree=this.degree=e?.degree||0,this.prevScalexOnOrigin=this.scalexOnOrigin=1,this.prevScaleyOnOrigin=this.scaleyOnOrigin=1,e?.scaleOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=e.scaleOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin=e.scaleOnOrigin),e?.scalexOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=e.scalexOnOrigin),e?.scaleyOnOrigin!==void 0&&(this.prevScaleyOnOrigin=this.scaleyOnOrigin=e.scaleyOnOrigin),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin=e?.skewxDegreeOnOrigin||0,this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin=e?.skewyDegreeOnOrigin||0,this.transformBaseOnSelfInRenderGroup=typeof e?.transformBaseOnSelfInRenderGroup=="boolean"?e.transformBaseOnSelfInRenderGroup:!1,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||1,this.attrs=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(e?.attrs||{}).map(([t,n])=>[Xt(t),n]))),this.enableDrag=e?.enableDrag||!1,this.alongPath=e?.alongPath,this.targetToAfterDragFree=e?.targetToAfterDragFree,this.followMouse=e?.followMouse||!1,this.isShow=typeof e?.isShow=="boolean"?e?.isShow:!0,this.strokeArmyAnts=e?.strokeArmyAnts||!1,this.renderGroup=e?.renderGroup,this.shapeGroup=e?.shapeGroup,this.autoRender=typeof e?.autoRender=="boolean"?e?.autoRender:!1}save(){this.history.push(su(this))}restore(){const e=this.history.pop();e&&tm(this,e)}group(...e){this.renderGroup||(this.renderGroup=new ju({x:this.x,y:this.y}),this.renderGroup.register(this)),e.forEach(t=>{t.renderGroup=this.renderGroup,this.renderGroup?.register(t)})}ungroup(){this.renderGroup&&(this.renderGroup.shapes.forEach(e=>delete e.renderGroup),this.renderGroup.destroy(),this.renderGroup=void 0)}setAttr(e,t){mr(e)?Object.assign(this.attrs,Object.fromEntries(Object.entries(e).map(([n,i])=>[Xt(n),i]))):typeof e=="string"&&t&&(this.attrs[Xt(e)]=t)}getAttr(e,t){return this.attrs[Xt(e)]||t}hasAttr(e){return!!this.attrs[Xt(e)]}get centerX(){const e=this.getBoundingClientRect();return e?e.x+e.width/2:this.x}get centerY(){const e=this.getBoundingClientRect();return e?e.y+e.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}frameUpdate(){const e=new Date().getTime();if(!(e-this.now<1e3/this.frameRate)&&(this.now=e,this.strokeArmyAnts&&!this.isMouseIn)){const t=this.getAttr("stroke-dasharray","4 4");if(typeof t=="string"){this.setAttr("stroke-dasharray",t);const n=iu(t);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>n.reduce((i,r)=>i+r,0)&&(this.strokeArmyAntsOffset=0)}}}toSVGPathD(e=!1){let t=[];const n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?t.push(...n):t.push(n),e&&(t=ct.relativeSVGPath(t)),ct.SVGPathDataToD(t)}distance(e){return ma(this.x,this.y,e.x,e.y)}rotateTo(e){this.degree=jt(Vn(this.x,this.y,e.x,e.y))}followTo(e,t=3){this.rotateTo(e);const{dx:n,dy:i}=As($e(this.degree),t);this.vx=n,this.vy=i,this.nextFrame()}followAccelerationTo(e,t=.05){this.rotateTo(e);const{dx:n,dy:i}=As($e(this.degree),t);this.ax=n,this.ay=i,this.nextFrame()}checkCollision(e){}gravitate(e){const t=e.x-this.x,n=e.y-this.y,i=t*t+n*n,r=Math.sqrt(i),o=this.mass*e.mass/i,a=o*t/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,e.vx-=a/e.mass,e.vy-=l/e.mass}static comboGravitate(e){const t=e.length;e.forEach((n,i)=>{n.nextFrame();for(let r=i+1;r<t;r++)n.checkCollision(e[r]),n.gravitate(e[r])})}nextFrame(e){this.vx+=this.ax,this.vy+=this.ay;const t=e?.gravity??0;this.vy+=t;const n=e?.friction??1;this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,t){const n=t?.easing??.05,{dx:i,dy:r}=this.centerDiff,o=e.x-i-this.x,a=e.y-r-this.y;this.vx=o*n,this.vy=a*n,this.nextFrame(t)}nextFrameSpringTo(e,t){const n=t?.spring??.03,{dx:i,dy:r}=this.centerDiff;(Array.isArray(e)?e:[e]).forEach(o=>{const a=o.x-i-this.x,l=o.y-r-this.y,c=a*n,u=l*n;this.vx+=c,this.vy+=u}),this.nextFrame({friction:.9,...t})}static comboSpringChain(e,t){e.forEach((n,i)=>{i>0&&n.nextFrameSpringTo(e[i-1],t)})}static comboSpringConnect(e,t){const n=t?.springLength??100;e.forEach(i=>{i.isDragging||e.filter(r=>r.id!==i.id).forEach(r=>{const o=Vn(i.x,i.y,r.x,r.y);i.nextFrameSpringTo({x:r.x-Math.cos(o)*n,y:r.y-Math.sin(o)*n},t)})})}spring(e,t){const n=t?.springLength??100,i=t?.spring??1e-4;let r=[0,0,0,0,0];const o=e.x-this.x,a=e.y-this.y,l=Math.sqrt(o*o+a*a);if(l<n){r=[this.x,this.y,e.x,e.y,1-l/n];const c=o*i,u=a*i;this.vx+=c/this.mass,this.vy+=u/this.mass,e.vx-=c/e.mass,e.vy-=u/e.mass}return r}static comboSpringMass(e,t,n){const i=[];return e.forEach((r,o)=>{r.nextFrame(n),r.x>t.x+t.width?r.x=t.x:r.x<t.x&&(r.x=t.x+t.width),r.y>t.y+t.height?r.y=t.y:r.y<t.y&&(r.y=t.y+t.height);for(let a=o+1,l=e.length;a<l;a++)i.push(r.spring(e[a],n))}),i}}class ya extends ut{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(e){super(e),this.x=e?.x||0,this.y=e?.y||0,this.z=e?.z||0,this.fl=e?.fl||250,this.vpX=e?.vpX||0,this.vpY=e?.vpY||0,this.cX=e?.cX||0,this.cY=e?.cY||0,this.cZ=e?.cZ||0,this.radius=e?.radius||0}getBoundingClientRect(){return null}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(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}setVanishingPoint(e,t){this.vpX=e,this.vpY=t}setCenter(e,t,n){this.cX=e,this.cY=t,this.cZ=n}rotateX(e){({x:this.y,y:this.z}=vs($e(e),this.y,this.z))}rotateY(e){({x:this.x,y:this.z}=vs($e(e),this.x,this.z))}rotateZ(e){({x:this.x,y:this.y}=vs($e(e),this.x,this.y))}getScreenX(){const e=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*e}getScreenY(){const e=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*e}eq(e){return this.x===e.x&&this.y===e.y&&this.z===e.z&&this.radius===e.radius&&this.mass===e.mass}length(){return pa(this.x,this.y,this.z)}distance(e){const t=e.x-this.x,n=e.y-this.y,i=e.z-this.z;return Math.sqrt(t*t+n*n+i*i)}scalar(e){return this.x*=e,this.y*=e,this.z*=e,this}normalize(e=1){const t=this.length();if(t){const n=e/t;this.scalar(n)}return this}clamp(e){const t=this.length();return t&&t>e&&this.scalar(e/t),this}cross(e){const t=this.x,n=this.y,i=this.z;return{x:n*e.z-i*e.y,y:i*e.x-t*e.z,z:t*e.y-n*e.x}}multiply(e){return{x:this.x*e.x,y:this.y*e.y,z:this.z*e.z}}div(e){return{x:this.x/e.x,y:this.y/e.y,z:this.z/e.z}}add(e){return{x:this.x+e.x,y:this.y+e.y,z:this.z+e.z}}sub(e){return{x:this.x-e.x,y:this.y-e.y,z:this.z-e.z}}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}reflect(e){const t=this.dot(e);return{x:this.x-2*t*e.x,y:this.y-2*t*e.y,z:this.z-2*t*e.z}}clone(e){return new ya({x:e.x,y:e.y,z:e.z,radius:e.radius,mass:e.mass})}}const Tr=ya;class Ct extends ut{width;height;borderRadius;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0}static fromBezier(e,t,n,i,r,o,a,l){const c=Cn.curveDim(e,t,n,i,r,o,a,l);return new Ct({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return new Ct({x:this.x,y:this.y,width:this.width,height:this.height})}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["M",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(e){e.beginPath(),this.borderRadius<=0?e.rect(0,0,this.width,this.height):(e.moveTo(0,this.borderRadius),e.lineTo(0,this.height-this.borderRadius),e.quadraticCurveTo(0,this.height,this.borderRadius,this.height),e.lineTo(this.width-this.borderRadius,this.height),e.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),e.lineTo(this.width,this.borderRadius),e.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),e.lineTo(this.borderRadius,0),e.quadraticCurveTo(0,0,0,this.borderRadius)),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height&&this.borderRadius===e.borderRadius}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height}clone(e){return new Ct({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const _i=Ct,Yu=[1,0,0,1,0,0],Hu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Yt{value;m13_value=0;m23_value=0;m33_value=1;matrix3d;constructor(e=Yu){this.value=Array.from(e),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.m13_value}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this.m23_value}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this.m33_value}set m11(e){this.value[0]=e}set m12(e){this.value[1]=e}set m13(e){this.m13_value=e}set m21(e){this.value[2]=e}set m22(e){this.value[3]=e}set m23(e){this.m23_value=e}set m31(e){this.value[4]=e}set m32(e){this.value[5]=e}set m33(e){this.m33_value=e}toMatrix3D(e=this.matrix3d){const t=[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 e?(e.value=t,e):new en(t)}identity(){return this.value=Array.from(Yu),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}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(e){return this.m11*=e,this.m12*=e,this.m13*=e,this.m21*=e,this.m22*=e,this.m23*=e,this.m31*=e,this.m32*=e,this.m33*=e,this}normalize(){const e=this.m33||1e-4;return this.scalar(1/e)}applyToPoint(e,t,n=0,i=0){const r=e-n,o=t-i;return e=this.m11*r+this.m21*o+this.m31,t=this.m12*r+this.m22*o+this.m32,{x:e+n,y:t+i}}fromString(e){const t=Kc("number",e);return t.length===6?(t.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}),this.m13=0,this.m23=0,this.m33=1):this.identity(),this}clone(){const e=new Yt;return e.m11=this.m11,e.m12=this.m12,e.m13=this.m13,e.m21=this.m21,e.m22=this.m22,e.m23=this.m23,e.m31=this.m31,e.m32=this.m32,e.m33=this.m33,e}multiply(e){const t=this.clone();let n;return e instanceof Yt?n=e:n=new Yt(e),this.m11=n.m11*t.m11+n.m12*t.m21+n.m13*t.m31,this.m12=n.m11*t.m12+n.m12*t.m22+n.m13*t.m32,this.m13=n.m11*t.m13+n.m12*t.m23+n.m13*t.m33,this.m21=n.m21*t.m11+n.m22*t.m21+n.m23*t.m31,this.m22=n.m21*t.m12+n.m22*t.m22+n.m23*t.m32,this.m23=n.m21*t.m13+n.m22*t.m23+n.m23*t.m33,this.m31=n.m31*t.m11+n.m32*t.m21+n.m33*t.m31,this.m32=n.m31*t.m12+n.m32*t.m22+n.m33*t.m32,this.m33=n.m31*t.m13+n.m32*t.m23+n.m33*t.m33,this}append(e){return this.multiply(e)}prepend(e){return e.multiply(this),this}inverse(){const e=this.m11,t=this.m12,n=this.m21,i=this.m22,r=this.m31,o=this.m32,a=e*i-t*n;return this.m11=i/a,this.m12=-t/a,this.m21=-n/a,this.m22=e/a,this.m31=(n*o-i*r)/a,this.m32=-(e*o-t*r)/a,this.m13=0,this.m23=0,this.m33=1,this}adjugate(){const e=new Yt;return e.m11=this.m22*this.m33-this.m32*this.m23,e.m12=this.m32*this.m13-this.m12*this.m33,e.m13=this.m12*this.m23-this.m22*this.m13,e.m21=this.m31*this.m23-this.m21*this.m33,e.m22=this.m11*this.m33-this.m31*this.m13,e.m23=this.m21*this.m13-this.m11*this.m23,e.m31=this.m21*this.m32-this.m31*this.m22,e.m32=this.m31*this.m12-this.m11*this.m32,e.m33=this.m11*this.m22-this.m21*this.m12,e}split(){let e=jt(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(e+=180),{x:this.m31,y:this.m32,rotate:e,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:jt(Math.atan2(-this.m21,this.m22)),skewY:jt(Math.atan2(this.m12,this.m11))}}getGroupCoords(e){const t=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=e.value[0],c=e.value[1],u=e.value[2],h=e.value[3],f=e.value[4],d=e.value[5],m=l*h,v=c*u,b=(u*n-t*h)/(v-m),C=(l*n-t*c)/(m-v),O=(u*r-i*h)/(v-m),$=(l*r-i*c)/(m-v),S=(u*(a-d)+h*(f-o))/(v-m),Y=(l*(a-d)+c*(f-o))/(m-v),L=[b,C,O,$,S,Y];return new Yt(L)}toString(e=6){return this.matrix3d.is2D()?`matrix(${this.value.map(t=>Rt(t,e)).join(",")})`:this.matrix3d.toString()}translate(e,t){return this.multiply([1,0,0,1,e,t]),this.toMatrix3D(),this}translateTo(e,t){return this.translate(e-this.m31,t-this.m32)}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.m32)}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.m31,e)}translateZ(e){return this.matrix3d.translate(0,0,e),this.matrix3d.toMatrix(this),this}translateZTo(e){return this.translateZ(e-this.matrix3d.m43),this}translate3d(e,t,n){return this.matrix3d.translate(e,t,n),this.matrix3d.toMatrix(this),this}translate3dTo(e,t,n){return this.translate3d(e-this.matrix3d.m41,t-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(e,t=0,n=0){const i=$e(e),r=Math.cos(i),o=Math.sin(i);return this.multiply([r,o,-o,r,t,n]),this.translate(-t,-n),this.toMatrix3D(),this}rotateTo(e,t=0,n=0){const{rotate:i}=this.split();return this.rotate(e-i,t,n),this}rotateX(e){return this.matrix3d.rotate(e,0,0),this.matrix3d.toMatrix(this),this}rotateXTo(e){const{rotateX:t}=this.matrix3d.split();return this.rotateX(e-t),this}rotateY(e){return this.matrix3d.rotate(0,e,0),this.matrix3d.toMatrix(this),this}rotateYTo(e){const{rotateY:t}=this.matrix3d.split();return this.rotateY(e-t),this}rotateZ(e){return this.matrix3d.rotate(0,0,e),this.matrix3d.toMatrix(this),this}rotateZTo(e){const{rotateZ:t}=this.matrix3d.split();return this.rotateZ(e-t),this}rotate3d(e,t,n){return this.matrix3d.rotate(e,t,n),this.matrix3d.toMatrix(this),this}rotate3dTo(e,t,n){const{rotateX:i,rotateY:r,rotateZ:o}=this.matrix3d.split();return this.rotate3d(e-i,t-r,n-o),this}scale(e,t=e,n=0,i=0){return this.multiply([e,0,0,t,n,i]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(e,t=e,n=0,i=0){return this.scale(e/this.m11,t/this.m22,n,i)}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.m11,1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.m22)}scaleZ(e){return this.matrix3d.scale(1,1,e),this.matrix3d.toMatrix(this),this}scaleZTo(e){const{scaleZ:t}=this.matrix3d.split();return this.scaleZ(e/t),this}scale3d(e,t=e,n=e){return this.matrix3d.scale(e,t,n),this.matrix3d.toMatrix(this),this}scale3dTo(e,t=e,n=e){const{scaleX:i,scaleY:r,scaleZ:o}=this.matrix3d.split();return this.scale3d(e/i,t/r,n/o),this}skew(e,t=e){return this.multiply([Math.cos($e(t)),Math.sin($e(t)),-Math.sin($e(e)),Math.cos($e(e)),0,0]),this.toMatrix3D(),this}skewTo(e,t=e){const{skewX:n,skewY:i}=this.split();return this.skew(e-n,t-i)}skewX(e){const{skewY:t}=this.split();return this.skew(e,t)}skewXTo(e){const{skewY:t}=this.split();return this.skewTo(e,t)}skewY(e){const{skewX:t}=this.split();return this.skew(t,e)}skewYTo(e){const{skewX:t}=this.split();return this.skewTo(t,e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,t,n){return this}skew3dTo(e,t,n){return this}perspective(e){return this.matrix3d.perspective(e),this.matrix3d.toMatrix(this),this}}class en{value;is3dSpecial=!1;constructor(e=Hu){this.value=Array.from(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(e){this.value[0]=e}set m12(e){this.value[1]=e}set m13(e){this.value[2]=e}set m14(e){this.value[3]=e}set m21(e){this.value[4]=e}set m22(e){this.value[5]=e}set m23(e){this.value[6]=e}set m24(e){this.value[7]=e}set m31(e){this.value[8]=e}set m32(e){this.value[9]=e}set m33(e){this.value[10]=e}set m34(e){this.value[11]=e}set m41(e){this.value[12]=e}set m42(e){this.value[13]=e}set m43(e){this.value[14]=e}set m44(e){this.value[15]=e}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(Hu),this}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(){const e=new en;return e.m11=this.m11,e.m12=this.m12,e.m13=this.m13,e.m14=this.m14,e.m21=this.m21,e.m22=this.m22,e.m23=this.m23,e.m24=this.m24,e.m31=this.m31,e.m32=this.m32,e.m33=this.m33,e.m34=this.m34,e.m41=this.m41,e.m42=this.m42,e.m43=this.m43,e.m44=this.m44,e}scalar(e){return this.m11*=e,this.m12*=e,this.m13*=e,this.m14*=e,this.m21*=e,this.m22*=e,this.m23*=e,this.m24*=e,this.m31*=e,this.m32*=e,this.m33*=e,this.m34*=e,this.m41*=e,this.m42*=e,this.m43*=e,this.m44*=e,this}normalize(){return this.scalar(1/(this.m44||1e-4))}applyToPoint(e){const t=e.x*this.m11+e.y*this.m21+e.z*this.m31+e.mass*this.m41,n=e.x*this.m12+e.y*this.m22+e.z*this.m32+e.mass*this.m42,i=e.x*this.m13+e.y*this.m23+e.z*this.m33+e.mass*this.m43,r=e.x*this.m14+e.y*this.m24+e.z*this.m34+e.mass*this.m44;e.x=t,e.y=n,e.z=i,e.mass=r}fromString(e){const t=Kc("number",e);return t.length===16?t.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.identity(),this}toMatrix(e){const{scaleX:t,scaleY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[t,r,i,n,o,a];return e?(e.value=l,e):new Yt(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(e=6){return`matrix3d(${this.value.map(t=>Rt(t,e)).join(",")})`}split(){const e=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),t=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33);let i=jt(Ut(Math.asin(-this.m13),-1,1)),r=jt(Math.atan2(this.m23,this.m33));Math.cos($e(i))===0&&(r=jt(Math.atan2(-this.m31,this.m22)));let o=jt(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scaleX:e,scaleY:t,scaleZ:n,rotateX:r,rotateY:i,rotateZ:o,skewX:jt(this.m14),skewY:jt(this.m24),skewZ:jt(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const e=[],t=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,d=this.m34,m=this.m41,v=this.m42,b=this.m43,C=this.m44;e[0]=l*d*v-c*f*v+c*h*b-a*d*b-l*h*C+a*f*C,e[1]=r*f*v-i*d*v-r*h*b+n*d*b+i*h*C-n*f*C,e[2]=i*c*v-r*l*v+r*a*b-n*c*b-i*a*C+n*l*C,e[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*d-n*l*d;const O=t*e[0]+o*e[1]+u*e[2]+m*e[3];if(O==0)return console.warn("Can't invert matrix, determinant is 0");e[4]=c*f*m-l*d*m-c*u*b+o*d*b+l*u*C-o*f*C,e[5]=i*d*m-r*f*m+r*u*b-t*d*b-i*u*C+t*f*C,e[6]=r*l*m-i*c*m-r*o*b+t*c*b+i*o*C-t*l*C,e[7]=i*c*u-r*l*u+r*o*f-t*c*f-i*o*d+t*l*d,e[8]=a*d*m-c*h*m+c*u*v-o*d*v-a*u*C+o*h*C,e[9]=r*h*m-n*d*m-r*u*v+t*d*v+n*u*C-t*h*C,e[10]=n*c*m-r*a*m+r*o*v-t*c*v-n*o*C+t*a*C,e[11]=r*a*u-n*c*u-r*o*h+t*c*h+n*o*d-t*a*d,e[12]=l*h*m-a*f*m-l*u*v+o*f*v+a*u*b-o*h*b,e[13]=n*f*m-i*h*m+i*u*v-t*f*v-n*u*b+t*h*b,e[14]=i*a*m-n*l*m-i*o*v+t*l*v+n*o*b-t*a*b,e[15]=n*l*u-i*a*u+i*o*h-t*l*h-n*o*f+t*a*f,this.value=e,this.scalar(1/O)}multiply(e){const t=this.clone(),n=e.m11*t.m11+e.m12*t.m21+e.m13*t.m31+e.m14*t.m41,i=e.m11*t.m12+e.m12*t.m22+e.m13*t.m32+e.m14*t.m42,r=e.m11*t.m13+e.m12*t.m23+e.m13*t.m33+e.m14*t.m43,o=e.m11*t.m14+e.m12*t.m24+e.m13*t.m34+e.m14*t.m44,a=e.m21*t.m11+e.m22*t.m21+e.m23*t.m31+e.m24*t.m41,l=e.m21*t.m12+e.m22*t.m22+e.m23*t.m32+e.m24*t.m42,c=e.m21*t.m13+e.m22*t.m23+e.m23*t.m33+e.m24*t.m43,u=e.m21*t.m14+e.m22*t.m24+e.m23*t.m34+e.m24*t.m44,h=e.m31*t.m11+e.m32*t.m21+e.m33*t.m31+e.m34*t.m41,f=e.m31*t.m12+e.m32*t.m22+e.m33*t.m32+e.m34*t.m42,d=e.m31*t.m13+e.m32*t.m23+e.m33*t.m33+e.m34*t.m43,m=e.m31*t.m14+e.m32*t.m24+e.m33*t.m34+e.m34*t.m44,v=e.m41*t.m11+e.m42*t.m21+e.m43*t.m31+e.m44*t.m41,b=e.m41*t.m12+e.m42*t.m22+e.m43*t.m32+e.m44*t.m42,C=e.m41*t.m13+e.m42*t.m23+e.m43*t.m33+e.m44*t.m43,O=e.m41*t.m14+e.m42*t.m24+e.m43*t.m34+e.m44*t.m44;return this.m11=n,this.m12=i,this.m13=r,this.m14=o,this.m21=a,this.m22=l,this.m23=c,this.m24=u,this.m31=h,this.m32=f,this.m33=d,this.m34=m,this.m41=v,this.m42=b,this.m43=C,this.m44=O,this}translate(e=0,t=0,n=0){return this.multiply(new en([1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1]))}scale(e=1,t=1,n=1){return this.multiply(new en([e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1]))}skew(e=0,t=0,n=0){return this.multiply(new en([1,0,0,$e(e),0,1,0,$e(t),0,0,1,$e(n),0,0,0,1]))}rotate(e=0,t=0,n=0){n&&(this.is3dSpecial=!0);const i=$e(e),r=$e(t),o=$e(n),a=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r),h=Math.cos(o),f=Math.sin(o),d=a*h,m=a*f,v=l*h,b=l*f;return this.m11=c*h,this.m21=-c*f,this.m31=u,this.m12=m+v*u,this.m22=d-b*u,this.m32=-l*c,this.m13=b-d*u,this.m23=v+m*u,this.m33=a*c,this}perspective(e){return this.multiply(new en([1,0,0,0,0,1,0,0,0,0,1,e?-(1/e):0,0,0,0,1]))}unproject(e){let t=e.x*this.m11+e.y*this.m21+this.m41,n=e.x*this.m12+e.y*this.m22+this.m42,i=e.x*this.m13+e.y*this.m23+this.m43,r=e.x*this.m14+e.y*this.m24+this.m44,o=t+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),t/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:t,y:n,z:i,mass:r};const h=-i/u;return t+=h*(o-t),n+=h*(a-n),{x:t,y:n,z:i,mass:r}}project(e){let t=e.z,n=e.x*this.m11+e.y*this.m21+t*this.m31+this.m41,i=e.x*this.m12+e.y*this.m22+t*this.m32+this.m42,r=e.x*this.m14+e.y*this.m24+t*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:t,mass:r}}bounds(e,t,n,i){const r=new Tr({x:e,y:t}),o=new Tr({x:e+n,y:t}),a=new Tr({x:e+n,y:t+i}),l=new Tr({x:e,y:t+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return new _i({x:c,y:u,width:h,height:f})}}function Wu(s){const e=new Yt;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(t,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(n.toLowerCase()){case"t":case"translate":e.translate(r[0],r[1]);break;case"translatex":e.translateX(r[0]);break;case"translatey":e.translateY(r[0]);break;case"translatez":e.translateZ(r[0]);break;case"translate3d":e.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":e.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":e.rotateX(r[0]);break;case"rotatey":e.rotateY(r[0]);break;case"rotatez":e.rotateZ(r[0]);break;case"rotate3d":e.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":e.scale(r[0],r[1]??r[0]);break;case"scalex":e.scaleX(r[0]);break;case"scaley":e.scaleY(r[0]);break;case"scalez":e.scaleZ(r[0]);break;case"scale3d":e.scale3d(r[0],r[1],r[2]);break;case"skew":e.skew(r[0],r[1]??0);break;case"skewx":e.skewX(r[0]);break;case"skewy":e.skewY(r[0]);break;case"skewz":e.skewZ(r[0]);break;case"skew3d":e.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":e.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),e.toMatrix3D();break;case"matrix3d":e.matrix3d.multiply(new en(r)),e.matrix3d.toMatrix(e);break}return""}),e}function vs(s,e,t,n=0,i=0){const r=new Yt;return r.rotate(jt(s),n,i),r.applyToPoint(e,t,n,i)}function Cg(s){const{tx:e,ty:t,scaleX:n,scaleY:i,degree:r}=qo(s||{},{tx:0,ty:0,scaleX:1,scaleY:1,degree:0}),o=new DOMMatrix([Math.cos($e(r))*n,Math.sin($e(r))*n,-Math.sin($e(r))*i,Math.cos($e(r))*i,e,t]);return o.multiplySelf(new DOMMatrix(s?.originMatrix)),o}class K{static onDocumentReady(e){let t=!1;function n(){document.readyState==="loading"||t||(t=!0,e(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static onBeforeUnload(e){function t(){e(),document.removeEventListener("beforeunload",t)}typeof document<"u"&&document.addEventListener("beforeunload",t)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,t){document.documentElement.style.setProperty(e,t)}static add3DSupport(e,t="1000px"){if(e.parentElement){const n=K.getStyle(e.parentElement,"position");K.setStyle(e.parentElement,{position:n=="static"?"relative":n,perspective:t})}K.setStyle(e,{"transform-style":"preserve-3d"})}static convertAttrs(e,t,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:K.getStyle(e,"transform")||""});const i=Wu(n.transform),r={};for(let o in t){const a=t[o];switch(o){case"transform":break;case"translate":i.translate(a[0]||0,a[1]||0);break;case"translateTo":i.translateTo(a[0]||0,a[1]||0);break;case"translateX":i.translateX(a||0);break;case"translateXTo":i.translateXTo(a||0);break;case"translateY":i.translateY(a||0);break;case"translateYTo":i.translateYTo(a||0);break;case"translateZ":i.translateZ(a||0);break;case"translateZTo":i.translateZTo(a||0);break;case"translate3d":i.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":i.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?i.rotate(a||0):i.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?i.rotateTo(a||0):i.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":i.rotateX(a||0);break;case"rotateXTo":i.rotateXTo(a||0);break;case"rotateY":i.rotateY(a||0);break;case"rotateYTo":i.rotateYTo(a||0);break;case"rotateZ":i.rotateZ(a||0);break;case"rotateZTo":i.rotateZTo(a||0);break;case"rotate3d":i.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":i.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?i.scale(a||1):i.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?i.scaleTo(a||1):i.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":i.scaleX(a||1);break;case"scaleXTo":i.scaleXTo(a||1);break;case"scaleY":i.scaleY(a||1);break;case"scaleYTo":i.scaleYTo(a||1);break;case"scaleZ":i.scaleZ(a||1);break;case"scaleZTo":i.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?i.scale3d(a||1):i.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?i.scale3dTo(a||1):i.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?i.skew(a||0):i.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?i.skewTo(a||0):i.skewTo(a[0]||0,a[1]||0);break;case"skewX":i.skewX(a||0);break;case"skewXTo":i.skewXTo(a||0);break;case"skewY":i.skewY(a||0);break;case"skewYTo":i.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":i.perspective(a||0);break;default:n.hasOwnProperty(o)||(n[o]=K.getStyle(e,o)),Object.assign(r,{[o]:`${a}`});break}}return Object.assign(r,{transform:i.toString()}),r}static attrsToCanvas(e,t){for(const n in t){const i=t[n];switch(Xt(n)){case"fill":i!=="none"&&(e.fillStyle=i);break;case"stroke":i!=="none"&&(e.strokeStyle=i);break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":e.lineJoin=i;break;default:e.lineJoin="miter";break}break;case"stroke-miterlimit":e.miterLimit=Number(i);break;case"stroke-opacity":break;case"stroke-dashoffset":e.lineDashOffset=Number(i);break;case"stroke-dasharray":typeof i=="string"&&e.setLineDash(i.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof i=="string"&&(e.font=i);break;case"font-size":e.font+=` ${i}`;break;case"font-family":e.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":e.textAlign="center";break;case"end":e.textAlign="end";break;case"start":e.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":e.textBaseline=i;break;default:e.textBaseline="alphabetic";break}break}}}static getStyle(e,t,n){const i=e;if(getComputedStyle)if(t){t=Xt(t);const r=getComputedStyle(i,n).getPropertyPriority(t);return getComputedStyle(i,n).getPropertyValue(t).trim()+(r?"!"+r:"")}else{const r=[],o=getComputedStyle(i,"");for(let a=0;a<o.length;a++)r.push(o[a]+":"+o.getPropertyValue(o[a]));return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(t)return t=eu(t),e.currentStyle[t];{const r=[],o=i.currentStyle;for(let a in o)r.push(a+":"+o[a]);return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,t,n){if(typeof t=="string"&&n){const i=String(n).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Xt(t),n.replace(/!important/i,""),i)}else t instanceof Object&&Object.keys(t).forEach(i=>{const r=String(t[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Xt(i),String(t[i]).replace(/!important/i,""),r)})}static setStyleSheet(e,t){let n;if(typeof t=="string"){const r=document.querySelector(t)?.shadowRoot;r?n=r:n=document.querySelector(t)}else n=t;const i=document.createElement("style");if(i.innerHTML=e,n)return n.appendChild(i),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(i)};{const r=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(e,t,n="toggle"){t.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[n](i.trim())})}static addClass(e,t){this.toggleClass(e,t,"add")}static removeClass(e,t){this.toggleClass(e,t,"remove")}static hasClass(e,t){return t.split(/[,\s]+/).every(n=>n.trim()!==""?Array.from(e.classList||[]).includes(n.trim()):!0)}static toggleDisplay(e,t){this.getStyle(e,"display")=="none"&&t===void 0||t===!0?e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block"):e.style.setProperty("display","none")}static show(e){e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block")}static hide(e){e.style.setProperty("display","none")}static origins=new Wo;static updates=new Wo;static attribute(e,t,n){let i={};if(t===void 0&&n===void 0){for(let r=0,o=e.attributes,a=o.length;r<a;r++){const l=o[r];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof t=="string"&&n===void 0)return e.getAttribute(Xt(t));typeof t=="object"?i=t:typeof t=="string"&&n!==void 0&&(i[t]=n),Object.entries(i).forEach(([r,o])=>{e.setAttribute(Xt(r),o)})}static removeAttribute(e,t){t.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&e.removeAttribute(n.trim())})}static fixProp(e){const t={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return t[e]?t[e]:e}static prop(e,t,n){if(n===void 0&&typeof t=="string")return e[t];{let i={};typeof t=="object"?i=t:typeof t=="string"&&n!==void 0&&(i[t]=n),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);e[a]=o,a=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,t){t.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete e[this.fixProp(n.trim())]})}static data(e,t,n){if(typeof t=="string"&&(t=eu(t)),(typeof t=="string"||t===void 0)&&n===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]||"")}catch{}}),typeof t=="string"?i[t]:i}else{let i={};typeof t=="object"?i=t:typeof t=="string"&&(i[t]=n),Object.entries(i).forEach(([r,o])=>{o!=null?e.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete e.dataset[r]})}}static removeData(e,t){t.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete e.dataset[n.trim()]})}static empty(e){this.html(e,"")}static html(e,t){t instanceof HTMLElement||t instanceof SVGElement?this.insert(e,t,"replaceWith"):this.prop(e,"innerHTML",t)}static text(e,t){return this.prop(e,"textContent",t)}static value(e,t){return this.prop(e,"value",t)}static dispatchEvent(e,t,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof t=="string"?r.includes(t)?i=new MouseEvent(t,n):o.includes(t)?i=new KeyboardEvent(t,n):i=new Event(t,n):i=t,e.dispatchEvent(i)}static scriptConvert(e){const t=n=>{const r=n.ownerDocument.createElement("script");r.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return e.tagName=="SCRIPT"&&(e=t(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(t(n),n)}),e}static insert(e,t,n="append"){return typeof t=="string"?e[n](this.fragment(t)):(t instanceof HTMLElement||t instanceof SVGElement)&&e[n](t),this}static createElement(e){return document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(e){const t=document.createElement("template");return t.innerHTML=e,t.content.childNodes.forEach(n=>{const i=this.scriptConvert(n);i!=n&&t.content.replaceChild(i,n)}),t.content}static remove(e){return e.remove()}static siblings=e=>Array.prototype.slice.call(e.parentElement?.children).filter(t=>t!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,t){return e.closest(t)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,t){if(e instanceof HTMLSelectElement){const n=e.options;for(let i=0,r=n.length;i<r;i++)n[i].value==t?n[i].selected=!0:n[i].selected=!1}}static changeRadioChecked(e,t){e instanceof HTMLInputElement&&(e.value==t?e.checked=!0:e.checked=!1)}static entity2text(e){const t={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let n;return e.charAt(0)=="#"?e.charAt(1).toLowerCase()=="x"?n=parseInt(e.substring(2),16):n=parseInt(e.substring(1),10):n=t[e],n?String.fromCharCode(n):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const t=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length||0;const i=()=>n>=t.length?(e(),!0):!1;i()||t.forEach(r=>{r.onload=()=>{n+=1,i()}})});static loadScript(e,t=()=>{},n=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=t,i.onerror=n,document.body.appendChild(i)}static runInSafe(e){const t=new Proxy(window,{get(n,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?t:Reflect.get(n,i,r)},set(n,i,r,o){return Reflect.set(n,i,r,o)}});new Function("window",`with(window) { ${e} }`)(t,null)}static dom=new Proxy({},{get(e,t){return function(n={},...i){const r=document.createElement(t);for(const o of Object.keys(n))r.setAttribute(o,n[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
|
|
39
|
+
`.replace(/\s+/g,""),"u");break;case"mime-image":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},is=(o,t)=>(typeof o=="string"&&(o=on(o)||new RegExp(o)),o.test(t)),su=(o,t)=>{if(typeof o=="string"&&(o=on(o)||new RegExp(o)),!t)return null;const e=t.match(o);return e?o.flags.toLowerCase().indexOf("g")>=0?e.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},ou=(o,t)=>{typeof o=="string"&&(o=on(o)||new RegExp(o));const e=[],s=t.matchAll(o);for(const r of s)e.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return e};function ru(o){const t=o.match(/[\s\S]/gu);return t?t.length:0}function nu(o,t){const e=o.codePointAt(t);return e?String.fromCodePoint(e):void 0}const Ee=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];function co(){const o=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,s=Math.random()*4294967295|0;return(Ee[o&255]+Ee[o>>8&255]+Ee[o>>16&255]+Ee[o>>24&255]+"-"+Ee[t&255]+Ee[t>>8&255]+"-"+Ee[t>>16&15|64]+Ee[t>>24&255]+"-"+Ee[e&63|128]+Ee[e>>8&255]+"-"+Ee[e>>16&255]+Ee[e>>24&255]+Ee[s&255]+Ee[s>>8&255]+Ee[s>>16&255]+Ee[s>>24&255]).toLowerCase()}function Em(o){const t=Po.get(o);if(t)return t;const e=o.replace(/(^\w)/g,function(s){return s.toLowerCase()});return Po.set(o,e),e}const je=(o,t="-")=>{const e=Po.get(o);if(e)return e;let s=o.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return s=s.replace(new RegExp(`^${t}`),""),Po.set(o,s),s};function Ga(o){const t=Po.get(o);if(t)return t;const e=o.replace(/(^\w|[_-]\w)/g,function(s){return s.slice(-1).toUpperCase()});return Po.set(o,e),e}function au(o){return Em(Ga(o))}const iu=(o,t="")=>(o=o.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,t),o);function Pm(o,t,e="0",s="left"){const r=ru(o);if(t>r){const n=t-r;let a,i;switch(s){case"left":o=Array(n+1).join(e)+o;break;case"right":o=o+Array(n+1).join(e);break;default:a=Math.ceil(n/2),i=n-a,o=Array(i+1).join(e)+o+Array(a+1).join(e);break}}return o}let nr;class Om{subscribers;constructor(){this.subscribers=new Set}add(){nr&&!this.subscribers.has(nr)&&this.subscribers.add(nr)}notify(){this.subscribers.forEach(t=>t())}}const lu=new WeakMap;function cu(o,t){let e=lu.get(o);e||(e=new Map,lu.set(o,e));let s=e.get(t);return s||(s=new Om,e.set(t,s)),s}function Ua(o){nr=o,o(),nr=null}const Im=Symbol("isProxy");function Rm(o){return new Proxy(o,{get(t,e,s){return e===Im?!0:(cu(o,e).add(),Reflect.get(t,e,s))},set(t,e,s,r){const n=cu(o,e);return o[e]!=s&&(o[e]=s,n.notify()),Reflect.set(t,e,s,r)}})}const Fm=Rm,Dm="[object Object]";function $m(o){return Object.prototype.toString.call(o)}function Lm(o){return o!=null}function Mm(o){return $m(o)===Dm}function Nm(o,...t){return new o.constructor(...t)}function uu(o,t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(Mm(t[e])?(typeof o[e]>"u"&&(o[e]={}),uu(o[e],t[e])):typeof o[e]>"u"&&(o[e]=t[e]));return o}function du(o,t){for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&!t(e,o[e])&&delete o[e];return o}function hu(o){for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&delete o[t];return o}function ar(o=[],t=[]){const e=o.length,s=t.length;for(let n=0;n<s;n++)o[n]=t[n];let r=Math.max(0,e-s);for(;r>0;)o.pop(),r--;return o}function Am(o,t){const e=o.findIndex(s=>s===t);return e>=0&&o.splice(e,1),o}let fu;try{fu=Map}catch{fu=function(){}}let pu;try{pu=Set}catch{pu=function(){}}function Vs(o,t){if(o=parseFloat(o),isNaN(o)){if(typeof t=="number")return t;throw new Error(`parseNumber(${o}) isNaN!`)}return o}function rn(o,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(o-t)<e}const He=(o,t,e)=>o<t?t:o>e?e:o,zm=(o,t,e)=>s=>{const r=Math.min(Math.max(o,s),t);return t-r<e?t:Math.round(r/e)*e};function Vm(o,t=12){return Vs(o).toFixed(t)}function ye(o,t=12){return+Vm(o,t)}function ws(o,t){const e=su("number-single",String(o));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Lm(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?o.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?o.substring(e.matchIndex+e.fullMatch.length):""}}function ja(o){const t=su("number",o);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Ym(o=0,t=100){return Math.random()*(t-o)+o}function qt(o=0,t=100){return Math.floor(Ym(o,t))}Bm();function Bm(){const o=new ArrayBuffer(4),t=new Float32Array(o),e=new Uint32Array(o),s=new Uint32Array(512),r=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(s[l]=0,s[l|256]=32768,r[l]=24,r[l|256]=24):c<-14?(s[l]=1024>>-c-14,s[l|256]=1024>>-c-14|32768,r[l]=-c-1,r[l|256]=-c-1):c<=15?(s[l]=c+15<<10,s[l|256]=c+15<<10|32768,r[l]=13,r[l|256]=13):c<128?(s[l]=31744,s[l|256]=64512,r[l]=24,r[l|256]=24):(s[l]=31744,s[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:s,shiftTable:r,mantissaTable:n,exponentTable:a,offsetTable:i}}function ve(){return(performance||Date).now()}function Xm(o){let t=0;for(let e=5;e>=0;e=e-2)e==5?t+=o[e-1]*10+o[e]:e==3?t+=(o[e-1]*10+o[e])*60:e==1&&(t+=(o[e-1]*10+o[e])*60*60);return t=Math.floor(Math.max(0,t)),t*1e3}function Gm(o){const t=[0,0,0,0,0,0],e=ja(o);for(let s=0,r=Math.min(e.length,3);s<r;s++){const n=Math.floor(Math.abs(e[s]));t[2*s+1]=n%10,t[2*s]=Math.floor(n/10)}return Ha(t)}function Ha(o){let t=Xm(o)/1e3;const e=t%60;o[5]=e%10,o[4]=Math.floor(e/10),t=Math.floor(t/60);const s=t%60;o[3]=s%10,o[2]=Math.floor(s/10),t=Math.floor(t/60);const r=t%60%24;return o[1]=r%10,o[0]=Math.floor(r/10),o}function Za(o,t=1){return o[5]+=t,Ha(o)}function Wa(o,t=1){return o[5]-=t,Ha(o)}function Um(o,t){o.forEach((e,s)=>{t[s]=e})}function jm(o,t){const e=t.reduce((s,r)=>{const{test:n,message:a}=r;return n(o)||s.push(a),s},[]);return{valid:e.length===0,errors:e}}function Oo(o){return jm(o,[{test:t=>is("email",t),message:"邮箱格式不正确!"}])}function mu(o,t){let e=!0;return function(...s){e&&(e=!1,o.apply(this,s),setTimeout(()=>{e=!0},t))}}function Hm(o,t){let e;return function(...s){clearTimeout(e),e=setTimeout(()=>{o.apply(this,s)},t)}}class nn{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(s=>s!==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(s=>{Reflect.apply(s,this,e)}),this}once(t,e){const r=(()=>{let n=!1;return(...a)=>{n||(n=!0,Reflect.apply(e,this,a),this.off(t,r))}})();return this.on(t,r),this}}class ir extends nn{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())),s=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",s+n,a)}else if(r.status=="rejected"){const a=new Error(r.reason);this.results.push(a),this.controller?.enqueue(a),this.emit("error",s+n,a)}}),this.activeTaskCount-=e.length}}}function Zm(o,t=(e,s)=>e<=s){const e=o.length;let s=Math.floor(e/2);for(;s>0;){for(let r=s;r<e;r++){const n=o[r];let a=r;for(;a>=s&&!t(o[a-s],n);)o[a]=o[a-s],a-=s;o[a]=n}s=Math.floor(s/2)}}var gu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Wm(o,t={}){var e=1,s=1;function r(U){var X=U.match(/\n/g);X&&(e+=X.length);var yt=U.lastIndexOf(`
|
|
40
|
+
`);s=~yt?U.length-yt:s+U.length}function n(){var U={line:e,column:s};return function(X){return X.position=new a(U),h(),X}}function a(U){this.start=U,this.end={line:e,column:s},this.source=t.source}a.prototype.content=o;var i=[];function l(U){var X=new Error(t.source+":"+e+":"+s+": "+U);if(X.reason=U,X.filename=t.source,X.line=e,X.column=s,X.source=o,t.silent)i.push(X);else throw X}function c(){var U=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:U,parsingErrors:i}}}function u(){return p(/^{\s*/)}function d(){return p(/^}/)}function f(){var U,X=[];for(h(),y(X);o.length&&o.charAt(0)!="}"&&(U=Z()||nt());)U!==!1&&(X.push(U),y(X));return X}function p(U){var X=U.exec(o);if(X){var yt=X[0];return r(yt),o=o.slice(yt.length),X}}function h(){p(/^\s*/)}function y(U){var X;for(U=U||[];X=v();)X!==!1&&U.push(X);return U}function v(){var U=n();if(!(o.charAt(0)!="/"||o.charAt(1)!="*")){for(var X=2;o.charAt(X)!=""&&(o.charAt(X)!="*"||o.charAt(X+1)!="/");)++X;if(X+=2,o.charAt(X-1)==="")return l("End of comment missing");var yt=o.slice(2,X-2);return s+=2,r(yt),o=o.slice(X),s+=2,U({type:"comment",comment:yt})}}function _(){var U=p(/^([^{]+)/);if(U)return ks(U[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(X){return X.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(X){return X.replace(/\u200C/g,",")})}function z(){var U=n(),X=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(X){if(X=ks(X[0]),!p(/^:\s*/))return l("property missing ':'");var yt=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),N=U({type:"declaration",property:X.replace(gu,""),value:yt?ks(yt[0]).replace(gu,""):""});return p(/^[;\s]*/),N}}function Y(){var U=[];if(!u())return l("missing '{'");y(U);for(var X;X=z();)X!==!1&&(U.push(X),y(U));return d()?U:l("missing '}'")}function O(){for(var U,X=[],yt=n();U=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)X.push(U[1]),p(/^,\s*/);if(X.length)return yt({type:"keyframe",values:X,declarations:Y()})}function G(){var U=n(),X=p(/^@([-\w]+)?keyframes\s*/);if(X){var yt=X[1];if(X=p(/^([-\w]+)\s*/),!X)return l("@keyframes missing name");var N=X[1];if(!u())return l("@keyframes missing '{'");for(var A,k=y();A=O();)k.push(A),k=k.concat(y());return d()?U({type:"keyframes",name:N,vendor:yt,keyframes:k}):l("@keyframes missing '}'")}}function J(){var U=n(),X=p(/^@supports *([^{]+)/);if(X){var yt=ks(X[1]);if(!u())return l("@supports missing '{'");var N=y().concat(f());return d()?U({type:"supports",supports:yt,rules:N}):l("@supports missing '}'")}}function H(){var U=n(),X=p(/^@host\s*/);if(X){if(!u())return l("@host missing '{'");var yt=y().concat(f());return d()?U({type:"host",rules:yt}):l("@host missing '}'")}}function it(){var U=n(),X=p(/^@media *([^{]+)/);if(X){var yt=ks(X[1]);if(!u())return l("@media missing '{'");var N=y().concat(f());return d()?U({type:"media",media:yt,rules:N}):l("@media missing '}'")}}function w(){var U=n(),X=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(X)return U({type:"custom-media",name:ks(X[1]),media:ks(X[2])})}function E(){var U=n(),X=p(/^@page */);if(X){var yt=_()||[];if(!u())return l("@page missing '{'");for(var N=y(),A;A=z();)N.push(A),N=N.concat(y());return d()?U({type:"page",selectors:yt,declarations:N}):l("@page missing '}'")}}function F(){var U=n(),X=p(/^@([-\w]+)?document *([^{]+)/);if(X){var yt=ks(X[1]),N=ks(X[2]);if(!u())return l("@document missing '{'");var A=y().concat(f());return d()?U({type:"document",document:N,vendor:yt,rules:A}):l("@document missing '}'")}}function P(){var U=n(),X=p(/^@font-face\s*/);if(X){if(!u())return l("@font-face missing '{'");for(var yt=y(),N;N=z();)yt.push(N),yt=yt.concat(y());return d()?U({type:"font-face",declarations:yt}):l("@font-face missing '}'")}}var $=K("import"),B=K("charset"),st=K("namespace");function K(U){var X=new RegExp("^@"+U+"\\s*([^;]+);");return function(){var yt=n(),N=p(X);if(N){var A={type:U};return A[U]=N[1].trim(),yt(A)}}}function Z(){if(o[0]=="@")return G()||it()||w()||J()||$()||B()||st()||F()||E()||H()||P()}function nt(){var U=n(),X=_();return X?(y(),U({type:"rule",selectors:X,declarations:Y()})):l("selector missing")}return qa(c())}function ks(o){return o?o.replace(/^\s+|\s+$/g,""):""}function qa(o,t){var e=o&&typeof o.type=="string",s=e?o:t;for(var r in o){var n=o[r];Array.isArray(n)?n.forEach(function(a){qa(a,s)}):n&&typeof n=="object"&&qa(n,s)}return e&&Object.defineProperty(o,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),o}const lr=/^[a-z0-9]+(-[a-z0-9]+)*$/,an=(o,t,e,s="")=>{const r=o.split(":");if(o.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=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]:s,prefix:l,name:i};return t&&!ln(c)?null:c}const n=r[0],a=n.split("-");if(a.length>1){const i={provider:s,prefix:a.shift(),name:a.join("-")};return t&&!ln(i)?null:i}if(e&&s===""){const i={provider:s,prefix:"",name:n};return t&&!ln(i,e)?null:i}return null},ln=(o,t)=>o?!!((o.provider===""||o.provider.match(lr))&&(t&&o.prefix===""||o.prefix.match(lr))&&o.name.match(lr)):!1,yu=Object.freeze({left:0,top:0,width:16,height:16}),cn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),un=Object.freeze({...yu,...cn}),Ka=Object.freeze({...un,body:"",hidden:!1});function qm(o,t){const e={};!o.hFlip!=!t.hFlip&&(e.hFlip=!0),!o.vFlip!=!t.vFlip&&(e.vFlip=!0);const s=((o.rotate||0)+(t.rotate||0))%4;return s&&(e.rotate=s),e}function vu(o,t){const e=qm(o,t);for(const s in Ka)s in cn?s in o&&!(s in e)&&(e[s]=cn[s]):s in t?e[s]=t[s]:s in o&&(e[s]=o[s]);return e}function Km(o,t){const e=o.icons,s=o.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=s[a]&&s[a].parent,l=i&&n(i);l&&(r[a]=[i].concat(l))}return r[a]}return(t||Object.keys(e).concat(Object.keys(s))).forEach(n),r}function Qm(o,t,e){const s=o.icons,r=o.aliases||Object.create(null);let n={};function a(i){n=vu(s[i]||r[i],n)}return a(t),e.forEach(a),vu(o,n)}function bu(o,t){const e=[];if(typeof o!="object"||typeof o.icons!="object")return e;o.not_found instanceof Array&&o.not_found.forEach(r=>{t(r,null),e.push(r)});const s=Km(o);for(const r in s){const n=s[r];n&&(t(r,Qm(o,r,n)),e.push(r))}return e}const Jm={provider:"",aliases:{},not_found:{},...yu};function Qa(o,t){for(const e in t)if(e in o&&typeof o[e]!=typeof t[e])return!1;return!0}function _u(o){if(typeof o!="object"||o===null)return null;const t=o;if(typeof t.prefix!="string"||!o.icons||typeof o.icons!="object"||!Qa(o,Jm))return null;const e=t.icons;for(const r in e){const n=e[r];if(!r.match(lr)||typeof n.body!="string"||!Qa(n,Ka))return null}const s=t.aliases||Object.create(null);for(const r in s){const n=s[r],a=n.parent;if(!r.match(lr)||typeof a!="string"||!e[a]&&!s[a]||!Qa(n,Ka))return null}return t}const xu=Object.create(null);function t0(o,t){return{provider:o,prefix:t,icons:Object.create(null),missing:new Set}}function uo(o,t){const e=xu[o]||(xu[o]=Object.create(null));return e[t]||(e[t]=t0(o,t))}function Ja(o,t){return _u(t)?bu(t,(e,s)=>{s?o.icons[e]=s:o.missing.add(e)}):[]}function e0(o,t,e){try{if(typeof e.body=="string")return o.icons[t]={...e},!0}catch{}return!1}let cr=!1;function wu(o){return typeof o=="boolean"&&(cr=o),cr}function s0(o){const t=typeof o=="string"?an(o,!0,cr):o;if(t){const e=uo(t.provider,t.prefix),s=t.name;return e.icons[s]||(e.missing.has(s)?null:void 0)}}function o0(o,t){const e=an(o,!0,cr);if(!e)return!1;const s=uo(e.provider,e.prefix);return e0(s,e.name,t)}function r0(o,t){if(typeof o!="object")return!1;if(typeof t!="string"&&(t=o.provider||""),cr&&!t&&!o.prefix){let r=!1;return _u(o)&&(o.prefix="",bu(o,(n,a)=>{a&&o0(n,a)&&(r=!0)})),r}const e=o.prefix;if(!ln({provider:t,prefix:e,name:"a"}))return!1;const s=uo(t,e);return!!Ja(s,o)}const ku=Object.freeze({width:null,height:null}),Cu=Object.freeze({...ku,...cn}),n0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,a0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Tu(o,t,e){if(t===1)return o;if(e=e||100,typeof o=="number")return Math.ceil(o*t*e)/e;if(typeof o!="string")return o;const s=o.split(n0);if(s===null||!s.length)return o;const r=[];let n=s.shift(),a=a0.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=s.shift(),n===void 0)return r.join("");a=!a}}function i0(o,t="defs"){let e="";const s=o.indexOf("<"+t);for(;s>=0;){const r=o.indexOf(">",s),n=o.indexOf("</"+t);if(r===-1||n===-1)break;const a=o.indexOf(">",n);if(a===-1)break;e+=o.slice(r+1,n).trim(),o=o.slice(0,s).trim()+o.slice(a+1)}return{defs:e,content:o}}function l0(o,t){return o?"<defs>"+o+"</defs>"+t:t}function c0(o,t,e){const s=i0(o);return l0(s.defs,t+s.content+e)}const u0=o=>o==="unset"||o==="undefined"||o==="none";function d0(o,t){const e={...un,...o},s={...Cu,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let n=e.body;[e,s].forEach(y=>{const v=[],_=y.hFlip,z=y.vFlip;let Y=y.rotate;_?z?Y+=2:(v.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),v.push("scale(-1 1)"),r.top=r.left=0):z&&(v.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),v.push("scale(1 -1)"),r.top=r.left=0);let O;switch(Y<0&&(Y-=Math.floor(Y/4)*4),Y=Y%4,Y){case 1:O=r.height/2+r.top,v.unshift("rotate(90 "+O.toString()+" "+O.toString()+")");break;case 2:v.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:O=r.width/2+r.left,v.unshift("rotate(-90 "+O.toString()+" "+O.toString()+")");break}Y%2===1&&(r.left!==r.top&&(O=r.left,r.left=r.top,r.top=O),r.width!==r.height&&(O=r.width,r.width=r.height,r.height=O)),v.length&&(n=c0(n,'<g transform="'+v.join(" ")+'">',"</g>"))});const a=s.width,i=s.height,l=r.width,c=r.height;let u,d;a===null?(d=i===null?"1em":i==="auto"?c:i,u=Tu(d,l/c)):(u=a==="auto"?l:a,d=i===null?Tu(u,c/l):i==="auto"?c:i);const f={},p=(y,v)=>{u0(v)||(f[y]=v.toString())};p("width",u),p("height",d);const h=[r.left,r.top,l,c];return f.viewBox=h.join(" "),{attributes:f,viewBox:h,body:n}}const h0=/\sid="(\S+)"/g,f0="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let p0=0;function m0(o,t=f0){const e=[];let s;for(;s=h0.exec(o);)e.push(s[1]);if(!e.length)return o;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{const a=typeof t=="function"?t(n):t+(p0++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),o=o.replace(new RegExp(r,"g"),""),o}const ti=Object.create(null);function g0(o,t){ti[o]=t}function ei(o){return ti[o]||ti[""]}function si(o){let t;if(typeof o.resources=="string")t=[o.resources];else if(t=o.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const oi=Object.create(null),ur=["https://api.simplesvg.com","https://api.unisvg.com"],dn=[];for(;ur.length>0;)ur.length===1||Math.random()>.5?dn.push(ur.shift()):dn.push(ur.pop());oi[""]=si({resources:["https://api.iconify.design"].concat(dn)});function y0(o,t){const e=si(t);return e===null?!1:(oi[o]=e,!0)}function ri(o){return oi[o]}let Su=(()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch{}})();function v0(o,t){const e=ri(o);if(!e)return 0;let s;if(!e.maxURL)s=0;else{let r=0;e.resources.forEach(a=>{r=Math.max(r,a.length)});const n=t+".json?icons=";s=e.maxURL-r-e.path.length-n.length}return s}function b0(o){return o===404}const _0=(o,t,e)=>{const s=[],r=v0(o,t),n="icons";let a={type:n,provider:o,prefix:t,icons:[]},i=0;return e.forEach((l,c)=>{i+=l.length+1,i>=r&&c>0&&(s.push(a),a={type:n,provider:o,prefix:t,icons:[]},i=l.length),a.icons.push(l)}),s.push(a),s};function x0(o){if(typeof o=="string"){const t=ri(o);if(t)return t.path}return"/"}const w0={prepare:_0,send:(o,t,e)=>{if(!Su){e("abort",424);return}let s=x0(t.provider);switch(t.type){case"icons":{const n=t.prefix,i=t.icons.join(","),l=new URLSearchParams({icons:i});s+=n+".json?"+l.toString();break}case"custom":{const n=t.uri;s+=n.slice(0,1)==="/"?n.slice(1):n;break}default:e("abort",400);return}let r=503;Su(o+s).then(n=>{const a=n.status;if(a!==200){setTimeout(()=>{e(b0(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 k0(o){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);o.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 s={provider:"",prefix:"",name:""};return o.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const n=r.provider,a=r.prefix,i=r.name,l=e[n]||(e[n]=Object.create(null)),c=l[a]||(l[a]=uo(n,a));let u;i in c.icons?u=t.loaded:a===""||c.missing.has(i)?u=t.missing:u=t.pending;const d={provider:n,prefix:a,name:i};u.push(d)}),t}function Eu(o,t){o.forEach(e=>{const s=e.loaderCallbacks;s&&(e.loaderCallbacks=s.filter(r=>r.id!==t))})}function C0(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const t=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const s=o.provider,r=o.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(o.icons[c])a.loaded.push({provider:s,prefix:r,name:c});else if(o.missing.has(c))a.missing.push({provider:s,prefix:r,name:c});else return e=!0,!0;return!1}),a.pending.length!==i&&(e||Eu([o],n.id),n.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),n.abort))})}))}let T0=0;function S0(o,t,e){const s=T0++,r=Eu.bind(null,e,s);if(!t.pending.length)return r;const n={id:s,icons:t,callback:o,abort:r};return e.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(n)}),r}function E0(o,t=!0,e=!1){const s=[];return o.forEach(r=>{const n=typeof r=="string"?an(r,t,e):r;n&&s.push(n)}),s}var P0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function O0(o,t,e,s){const r=o.resources.length,n=o.random?Math.floor(Math.random()*r):o.index;let a;if(o.random){let J=o.resources.slice(0);for(a=[];J.length>1;){const H=Math.floor(Math.random()*J.length);a.push(J[H]),J=J.slice(0,H).concat(J.slice(H+1))}a=a.concat(J)}else a=o.resources.slice(n).concat(o.resources.slice(0,n));const i=Date.now();let l="pending",c=0,u,d=null,f=[],p=[];typeof s=="function"&&p.push(s);function h(){d&&(clearTimeout(d),d=null)}function y(){l==="pending"&&(l="aborted"),h(),f.forEach(J=>{J.status==="pending"&&(J.status="aborted")}),f=[]}function v(J,H){H&&(p=[]),typeof J=="function"&&p.push(J)}function _(){return{startTime:i,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:v,abort:y}}function z(){l="failed",p.forEach(J=>{J(void 0,u)})}function Y(){f.forEach(J=>{J.status==="pending"&&(J.status="aborted")}),f=[]}function O(J,H,it){const w=H!=="success";switch(f=f.filter(E=>E!==J),l){case"pending":break;case"failed":if(w||!o.dataAfterTimeout)return;break;default:return}if(H==="abort"){u=it,z();return}if(w){u=it,f.length||(a.length?G():z());return}if(h(),Y(),!o.random){const E=o.resources.indexOf(J.resource);E!==-1&&E!==o.index&&(o.index=E)}l="completed",p.forEach(E=>{E(it)})}function G(){if(l!=="pending")return;h();const J=a.shift();if(J===void 0){if(f.length){d=setTimeout(()=>{h(),l==="pending"&&(Y(),z())},o.timeout);return}z();return}const H={status:"pending",resource:J,callback:(it,w)=>{O(H,it,w)}};f.push(H),c++,d=setTimeout(G,o.rotate),e(J,t,H.callback)}return setTimeout(G),_}function Pu(o){const t={...P0,...o};let e=[];function s(){e=e.filter(i=>i().status==="pending")}function r(i,l,c){const u=O0(t,i,l,(d,f)=>{s(),c&&c(d,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:s}}function Ou(){}const ni=Object.create(null);function I0(o){if(!ni[o]){const t=ri(o);if(!t)return;const e=Pu(t),s={config:t,redundancy:e};ni[o]=s}return ni[o]}function R0(o,t,e){let s,r;if(typeof o=="string"){const n=ei(o);if(!n)return e(void 0,424),Ou;r=n.send;const a=I0(o);a&&(s=a.redundancy)}else{const n=si(o);if(n){s=Pu(n);const a=o.resources?o.resources[0]:"",i=ei(a);i&&(r=i.send)}}return!s||!r?(e(void 0,424),Ou):s.query(t,r,e)().abort}const Iu="iconify2",dr="iconify",Ru=dr+"-count",Fu=dr+"-version",Du=36e5,F0=168,D0=50;function ai(o,t){try{return o.getItem(t)}catch{}}function ii(o,t,e){try{return o.setItem(t,e),!0}catch{}}function $u(o,t){try{o.removeItem(t)}catch{}}function li(o,t){return ii(o,Ru,t.toString())}function ci(o){return parseInt(ai(o,Ru))||0}const hn={local:!0,session:!0},Lu={local:new Set,session:new Set};let ui=!1;function $0(o){ui=o}let fn=typeof window>"u"?{}:window;function Mu(o){const t=o+"Storage";try{if(fn&&fn[t]&&typeof fn[t].length=="number")return fn[t]}catch{}hn[o]=!1}function Nu(o,t){const e=Mu(o);if(!e)return;const s=ai(e,Fu);if(s!==Iu){if(s){const i=ci(e);for(let l=0;l<i;l++)$u(e,dr+l.toString())}ii(e,Fu,Iu),li(e,0);return}const r=Math.floor(Date.now()/Du)-F0,n=i=>{const l=dr+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{}$u(e,l)}};let a=ci(e);for(let i=a-1;i>=0;i--)n(i)||(i===a-1?(a--,li(e,a)):Lu[o].add(i))}function Au(){if(!ui){$0(!0);for(const o in hn)Nu(o,t=>{const e=t.data,s=t.provider,r=e.prefix,n=uo(s,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 L0(o,t){const e=o.lastModifiedCached;if(e&&e>=t)return e===t;if(o.lastModifiedCached=t,e)for(const s in hn)Nu(s,r=>{const n=r.data;return r.provider!==o.provider||n.prefix!==o.prefix||n.lastModified===t});return!0}function M0(o,t){ui||Au();function e(s){let r;if(!hn[s]||!(r=Mu(s)))return;const n=Lu[s];let a;if(n.size)n.delete(a=Array.from(n).shift());else if(a=ci(r),a>=D0||!li(r,a+1))return;const i={cached:Math.floor(Date.now()/Du),provider:o.provider,data:t};return ii(r,dr+a.toString(),JSON.stringify(i))}t.lastModified&&!L0(o,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function zu(){}function N0(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,C0(o)}))}function A0(o,t){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(t).sort():o.iconsToLoad=t,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:e,prefix:s}=o,r=o.iconsToLoad;delete o.iconsToLoad;let n;if(!r||!(n=ei(e)))return;n.prepare(e,s,r).forEach(i=>{R0(e,i,l=>{if(typeof l!="object")i.icons.forEach(c=>{o.missing.add(c)});else try{const c=Ja(o,l);if(!c.length)return;const u=o.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),M0(o,l)}catch(c){console.error(c)}N0(o)})})}))}const z0=(o,t)=>{const e=E0(o,!0,wu()),s=k0(e);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,zu)}),()=>{l=!1}}const r=Object.create(null),n=[];let a,i;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===i&&c===a)return;a=c,i=u,n.push(uo(c,u));const d=r[c]||(r[c]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,f=uo(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(d)||(p.add(d),r[c][u].push(d))}),n.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&A0(l,r[c][u])}),t?S0(t,s,n):zu};function V0(o,t){const e={...o};for(const s in t){const r=t[s],n=typeof r;s in ku?(r===null||r&&(n==="string"||n==="number"))&&(e[s]=r):n===typeof e[s]&&(e[s]=s==="rotate"?r%4:r)}return e}const Y0=/[\s,]+/;function B0(o,t){t.split(Y0).forEach(e=>{switch(e.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function X0(o,t=0){const e=o.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(o);return isNaN(r)?0:s(r)}else if(e!==o){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let n=parseFloat(o.slice(0,o.length-e.length));return isNaN(n)?0:(n=n/r,n%1===0?s(n):0)}}return t}function G0(o,t){let e=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)e+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+o+"</svg>"}function U0(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function j0(o){return"data:image/svg+xml,"+U0(o)}function H0(o){return'url("'+j0(o)+'")'}const Vu={...Cu,inline:!1},Z0={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},W0={display:"inline-block"},di={backgroundColor:"currentColor"},Yu={backgroundColor:"transparent"},Bu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Xu={webkitMask:di,mask:di,background:Yu};for(const o in Xu){const t=Xu[o];for(const e in Bu)t[o+e]=Bu[e]}const pn={};["horizontal","vertical"].forEach(o=>{const t=o.slice(0,1)+"Flip";pn[o+"-flip"]=t,pn[o.slice(0,1)+"-flip"]=t,pn[o+"Flip"]=t});function Gu(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const Uu=(o,t)=>{const e=V0(Vu,t),s={...Z0},r=t.mode||"svg",n={},a=t.style,i=typeof a=="object"&&!(a instanceof Array)?a:{};for(let y in t){const v=t[y];if(v!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[y]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&B0(e,v);break;case"color":n.color=v;break;case"rotate":typeof v=="string"?e[y]=X0(v):typeof v=="number"&&(e[y]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete s["aria-hidden"];break;default:{const _=pn[y];_?(v===!0||v==="true"||v===1)&&(e[_]=!0):Vu[y]===void 0&&(s[y]=v)}}}const l=d0(o,e),c=l.attributes;if(e.inline&&(n.verticalAlign="-0.125em"),r==="svg"){s.style={...n,...i},Object.assign(s,c);let y=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),s.innerHTML=m0(l.body,v?()=>v+"ID"+y++:"iconifyVue"),Wt("svg",s)}const{body:u,width:d,height:f}=o,p=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),h=G0(u,{...c,width:d+"",height:f+""});return s.style={...n,"--svg":H0(h),width:Gu(c.width),height:Gu(c.height),...W0,...p?di:Yu,...i},Wt("span",s)};if(wu(!0),g0("",w0),typeof document<"u"&&typeof window<"u"){Au();const o=window;if(o.IconifyPreload!==void 0){const t=o.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!r0(s))&&console.error(e)}catch{console.error(e)}})}if(o.IconifyProviders!==void 0){const t=o.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const s="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;y0(e,r)||console.error(s)}catch{console.error(s)}}}}const q0={...un,body:""},ju=tt({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(o,t){if(typeof o=="object"&&o!==null&&typeof o.body=="string")return this._name="",this.abortLoading(),{data:o};let e;if(typeof o!="string"||(e=an(o,!1,!0))===null)return this.abortLoading(),null;const s=s0(e);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==o)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:o,abort:z0([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==o&&(this._name=o,t&&t(o));const r=["iconify"];return e.prefix!==""&&r.push("iconify--"+e.prefix),e.provider!==""&&r.push("iconify--"+e.provider),{data:s,classes:r}}},render(){this.counter;const o=this.$attrs,t=this.iconMounted||o.ssr?this.getIcon(o.icon,o.onLoad):null;if(!t)return Uu(q0,o);let e=o;return t.classes&&(e={...o,class:(typeof o.class=="string"?o.class+" ":"")+t.classes.join(" ")}),Uu({...un,...t.data},e)}}),Hu=(o,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([o],{type:`${t};${e}`}):new Blob([o],{type:`${t};charset=${e}`}),Zu=o=>new XMLSerializer().serializeToString(o),K0=(o,t="image/svg+xml",e="utf-8")=>Hu(Zu(o),t,e),Wu=(o,t)=>new Promise(e=>{const s=document.createElement("a");s.style.visibility="hidden",document.body.appendChild(s),s.download=t,typeof o=="string"?s.href=o:s.href=window.URL.createObjectURL(o),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(s.href),e()});function Q0(o=["*"],t){return new Promise((e,s)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return s(new Error("This is not a browser environment"));const r=globalThis.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("visibility","hidden"),Array.isArray(o)&&o.length>0&&r.setAttribute("accept",o.join(",")),t&&r.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!r.files||r.files?.length===0)&&s(new Error("Cancel select"))},1e3)},{once:!0});const n=()=>{if(r.removeEventListener("change",n),!r.files||r.files?.length===0)s(new Error("Cancel select"));else{const a=Array.from(r.files);!o.includes("*")&&a.some(i=>!o.includes(`.${tg(i)}`))&&s(new Error(`Please select files in ${o} format`)),r.remove(),e(a)}};r.addEventListener("change",n),r.click()})}function J0(o,t="text",e){return new Promise((s,r)=>{const n=new FileReader;switch(n.addEventListener("progress",a=>{e?.(a.loaded,a.total)}),n.addEventListener("load",a=>{s(a.target?.result)}),n.addEventListener("error",a=>{r(a)}),t){case"dataURL":n.readAsDataURL(o);break;case"binaryString":n.readAsBinaryString(o);break;case"arrayBuffer":n.readAsArrayBuffer(o);break;case"text":default:n.readAsText(o)}})}const tg=o=>{let t;return o instanceof File?t=o.name:t=o,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function qu(o,t={},e=[],s){return{tag:o,props:t,children:e,el:s}}function mn(o,t){if(o.el)return o.el;if(o.el=document.createElement(o.tag),o.props)for(const e in o.props){const s=o.props[e];e.startsWith("on")?o.el.addEventListener(e.slice(2).toLowerCase(),s):o.el.setAttribute(e,s)}return o.children&&(typeof o.children=="string"?o.el.textContent=o.children:o.children.forEach(e=>{mn(e,o.el)})),t?.appendChild(o.el),o.el}function Ku(o,t){if(!o.el)return;if(o.tag!==t.tag){(o.el.parentElement||document.body).replaceChild(mn(t),o.el);return}const e=t.el=o.el,s=o.props,r=t.props;for(const i in s)i in r||(i.startsWith("on")?e.removeEventListener(i.slice(2).toLowerCase(),s[i]):e.removeAttribute(i));for(const i in r){const l=s[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 i==="style"?Object.keys(c||{}).forEach(u=>{const d=String(c[u]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(je(u),String(c[u]).replace(/!important/i,""),d)}):e.setAttribute(i,c)}const n=o.children||[],a=t.children||[];if(typeof a=="string")e.innerHTML=a;else if(typeof n=="string")e.innerHTML="",a.forEach(i=>{mn(i,e)});else{const i=Math.min(n.length,a.length);for(let l=0;l<i;l++)Ku(n[l],a[l]);a.length>n.length&&a.slice(n.length).forEach(l=>{mn(l,e)}),a.length<n.length&&n.slice(a.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function hi(){const o=document.documentElement;return{clientWidth:o.clientWidth,clientHeight:o.clientHeight,clientTop:o.clientTop,clientLeft:o.clientLeft,scrollWidth:o.scrollWidth,scrollHeight:o.scrollHeight,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft,offsetWidth:o.offsetWidth,offsetHeight:o.offsetHeight,offsetTop:o.offsetTop,offsetLeft:o.offsetLeft,offsetParent:o.offsetParent}}function hr(){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 eg(o){const{top:t,left:e,width:s,height:r}=o.getBoundingClientRect(),{scrollLeft:n,scrollTop:a}=hi();return{x:e+n,y:t+a,width:s,height:r}}function sg(){const{clientHeight:o,scrollTop:t,scrollHeight:e}=hi(),s=e-o;return s<=0?0:t/s*100}function og(o){if("center"in o)return o.center;if(typeof o.pageX=="number"&&typeof o.pageY=="number")return{x:o.pageX,y:o.pageY};const{scrollLeft:t,scrollTop:e}=hi();return{x:o.clientX+t,y:o.clientY+e}}function Cs(o,t){if(!t&&"offsetX"in o)return{x:o.offsetX,y:o.offsetY};const e=og(o),s=eg(t||o.target);return{x:e.x-s.x,y:e.y-s.y}}const rg=()=>{const o=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(o)?t="macOS":/win/i.test(o)?t="Windows":/android/i.test(o)?t="Android":/iphone|ipad|ipod/i.test(o)?t="iOS":/linux/i.test(o)?t="Linux":/bsd/i.test(o)&&(t="BSD"),t.toLowerCase()};function ng(){return rg()==="macos"}function ag(){const o=window.navigator.userAgent,t=o.indexOf("MSIE ");if(t>0)return parseInt(o.substring(t+5,o.indexOf(".",t)),10);if(o.indexOf("Trident/")>0){const r=o.indexOf("rv:");return parseInt(o.substring(r+3,o.indexOf(".",r)),10)}const s=o.indexOf("Edge/");return s>0?parseInt(o.substring(s+5,o.indexOf(".",s)),10):-1}const fi=ag()!==-1;(()=>{const o=tu();return!!(o.Worker&&o.Blob&&o.Promise&&o.OffscreenCanvas&&o.OffscreenCanvasRenderingContext2D&&o.HTMLCanvasElement&&o.HTMLCanvasElement.prototype.transferControlToOffscreen&&o.URL&&o.URL.createObjectURL)})(),function(){if(!tu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const s=t.transferToImageBitmap();try{e.createPattern(s,"no-repeat")}catch{return!1}return!0}();function ig(o){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let s=100;const r=function(){const n=Math.min(t.clientWidth,o);t.dataset.width=n,t.dataset.rem=s=Math.round(100*(n/o)),t.style.fontSize=s+"px"};r(),window.rem2px=function(n){return n=parseFloat(n),n*s},window.px2rem=function(n){return n=parseFloat(n),n/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function At(o){return o*Math.PI/180}function ze(o){return o*180/Math.PI}function pi(o,t,e=0){return Math.sqrt(o*o+t*t+e*e)}function mi(o,t,e,s){return pi(e-o,s-t)}function gi(o,t,e,s){const r=e-o,n=s-t;return r*r+n*n}function Io(o,t,e,s){let r=Math.atan2(s-t,e-o);return r<0&&(r+=Math.PI*2),r}function Ts(o,t){return{dx:Math.cos(o)*t,dy:Math.sin(o)*t}}const Qu=lg("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 lg(o,t=10){const e={},s=o.split(",");for(let r=0;r<s.length;r+=2){const n="&"+s[r+1]+";",a=parseInt(s[r],t);e[n]="&#"+a+";"}return e["\\xa0"]=" ",e}function Fe(o,t){const e=Object.keys(t);for(let s=0;s<e.length;s++)o=o.replace(new RegExp("{"+e[s]+"}","gi"),""+t[e[s]]);return o}function gn(o){let t,e;if(!o)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=s[Math.floor(Math.random()*s.length)];while(o[t]);return t}function cg(o){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[o]||t.start}function ug(o){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[o]||t.alphabetic}const fr={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 s=this.__ctx.__createElement("stop");if(s.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&&(s.setAttribute("stop-color",Fe("rgb({r},{g},{b})",{r:n[1],g:n[2],b:n[3]})),s.setAttribute("stop-opacity",n[4]))}else s.setAttribute("stop-color",e);this.__root.appendChild(s)}}class Ju{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class yn{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:s=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=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(fr);for(let e=0,s=t.length;e<s;e++){const r=t[e];this[r]=fr[r].canvas}}__getStyleState(){const t={},e=Object.keys(fr);for(let s=0,r=e.length;s<r;s++){const n=e[s];t[n]=this[n]}return t}__applyStyleState(t){const e=Object.keys(t);for(let s=0,r=e.length;s<r;s++){const n=e[s];this[n]=t[n]}}__createElement(t,e={},s=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),n=Object.keys(e);s&&(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 s=this.__currentElementsToStyle;s&&(e.setAttribute(t,""),e=s.element,s.children.forEach(n=>{n.setAttribute(t,"")}));const r=Object.keys(fr);for(let n=0;n<r.length;n++){const a=fr[r[n]],i=this[r[n]];if(a.apply){if(i instanceof Ju){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 d=this.globalAlpha;d!=null&&(u*=d),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(Qu);for(let n=0,a=r.length;n<a;n++){const i=r[n],l=Qu[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 s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=t,this.__currentElement.setAttribute("transform",s)}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,s,r,n,a){this.__addTransform(Fe("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:s,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,s,r,n,a){this.__currentPosition={x:n,y:a},this.__addPathCommand(Fe("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:s,cp2y:r,x:n,y:a}))}quadraticCurveTo(t,e,s,r){this.__currentPosition={x:s,y:r},this.__addPathCommand(Fe("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:s,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,s,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===s&&e===r||n===0){this.lineTo(t,e);return}const l=this.normalize([a-t,i-e]),c=this.normalize([s-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],d=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),p=n/Math.sin(d/2),h=t+p*f[0],y=e+p*f[1],v=[-l[1],l[0]],_=[c[1],-c[0]],z=function(G){const J=G[0];return G[1]>=0?Math.acos(J):-Math.acos(J)},Y=z(v),O=z(_);this.lineTo(h+v[0]*n,y+v[1]*n),this.arc(h,y,n,Y,O)}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,s,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+s,e),this.lineTo(t+s,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,s,r){const n=this.__createElement("rect",{x:t,y:e,width:s,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,s,r){const n=this.__createElement("rect",{x:t,y:e,width:s,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],r=s.childNodes;for(let n=r.length-1;n>=0;n--)r[n]&&s.removeChild(r[n]);this.__currentElement=s,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,s,r){if(t===0&&e===0&&s===this.width&&r===this.height){this.__clearCanvas();return}const n=this.__closestGroupOrSvg(),a=this.__createElement("rect",{x:t,y:e,width:s,height:r,fill:"#FFFFFF"},!0);n.appendChild(a)}createLinearGradient(t,e,s,r){const n=this.__createElement("linearGradient",{id:gn(this.__ids),x1:t+"px",x2:s+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(n),new yi(n,this)}createRadialGradient(t,e,s,r,n,a){const i=this.__createElement("radialGradient",{id:gn(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),s={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"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(t,e){if(t.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),s.appendChild(e),s}return e}__applyText(t,e,s,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:s,"text-anchor":cg(this.textAlign),"dominant-baseline":ug(this.textBaseline)},!0);i.appendChild(this.__document.createTextNode(t)),this.__currentElement=i,this.__applyStyleToCurrentElement(r),a.appendChild(this.__wrapTextLink(n,i))}fillText(t,e,s){this.__applyText(t,e,s,"fill")}strokeText(t,e,s){this.__applyText(t,e,s,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,s,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+s*Math.cos(n),l=e+s*Math.sin(n),c=t+s*Math.cos(r),u=e+s*Math.sin(r),d=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:s,ry:s,xAxisRotation:0,largeArcFlag:f,sweepFlag:d,endX:i,endY:l})),this.__currentPosition={x:i,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),s=gn(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",s),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Fe("url(#{id})",{id:s})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],s,r,n,a,i=0,l=0,c,u,d,f,p,h,y,v;if(t.length===3)s=t[1],r=t[2],c=e.width,u=e.height,n=c,a=u;else if(t.length===5)s=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],s=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 _=this.__closestGroupOrSvg();this.__currentElement;const z="translate("+s+", "+r+")";if(e instanceof yn){if(d=e.getSvg().cloneNode(!0),d.childNodes&&d.childNodes.length>1){for(f=d.childNodes[0];f.childNodes.length;)v=f.childNodes[0].getAttribute("id"),this.__ids[v]=v,this.__SVGdefs.appendChild(f.childNodes[0]);if(p=d.childNodes[1],p){const Y=p.getAttribute("transform");let O;Y?O=Y+" "+z:O=z,p.setAttribute("transform",O),_.appendChild(p)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(h=this.__createElement("image"),h.setAttribute("width",n),h.setAttribute("height",a),h.setAttribute("preserveAspectRatio","none"),(i||l||c!==e.width||u!==e.height)&&(y=this.__document.createElement("canvas"),y.width=n,y.height=a,y.getContext("2d")?.drawImage(e,i,l,c,u,0,0,n,a),e=y),h.setAttribute("transform",z),h.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),_.appendChild(h))}createPattern(t,e){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=gn(this.__ids);let n;return s.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")),s.appendChild(n),this.__SVGdefs.appendChild(s)):t instanceof yn&&(s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new Ju(s,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,s,r=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),r&&(this.customContext=new yn({canvas:this.canvas,width:e||this.canvas.width,height:s||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,s,r){return this.context.fillRect(t,e,s,r),this.customContext&&this.customContext.fillRect(t,e,s,r),this}fillText(t,e,s,r){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,s,r),this.customContext&&this.customContext.fillText(t,e,s),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,s,r){return this.context.strokeText(t,e,s,r),this.customContext&&this.customContext.strokeText(t,e,s),this}strokeRect(t,e,s,r){return this.context.strokeRect(t,e,s,r),this.customContext&&this.customContext.strokeRect(t,e,s,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,s=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,s,r),this.customContext&&this.customContext.clearRect(t,e,s,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 s=new Path2D;s.addPath(t,e),this.currentPath2D=s}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,s=0){return this.translate(e,s),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-s),this.changePath2D(),this}scale(t,e=t,s=0,r=0){return this.translate(s,r),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-s,-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,s,r,n,a){return this.context.arc(t,e,s,r,n,a),this.customContext&&this.customContext.arc(t,e,s,r,n,a?-1:1),this.currentPath2D.arc(t,e,s,r,n,a),this}arcTo(t,e,s,r,n){return this.context.arcTo(t,e,s,r,n),this.customContext&&this.customContext.arcTo(t,e,s,r,n),this.currentPath2D.arcTo(t,e,s,r,n),this}ellipse(t,e,s,r,n,a,i,l){return this.context.ellipse(t,e,s,r,n,a,i,l),this.currentPath2D.ellipse(t,e,s,r,n,a,i,l),this}quadraticCurveTo(t,e,s,r){return this.context.quadraticCurveTo(t,e,s,r),this.customContext&&this.customContext.quadraticCurveTo(t,e,s,r),this.currentPath2D.quadraticCurveTo(t,e,s,r),this}bezierCurveTo(t,e,s,r,n,a){return this.context.bezierCurveTo(t,e,s,r,n,a),this.customContext&&this.customContext.bezierCurveTo(t,e,s,r,n,a),this.currentPath2D.bezierCurveTo(t,e,s,r,n,a),this}rect(t,e,s,r){return this.context.rect(t,e,s,r),this.customContext&&this.customContext.rect(t,e,s,r),this.currentPath2D.rect(t,e,s,r),this}createLinearGradient(t,e,s,r,n){const a=this.context.createLinearGradient(t,e,s,r);return n&&Object.entries(n).forEach(([i,l])=>{a.addColorStop(parseFloat(i),l)}),a}createRadialGradient(t,e,s,r,n,a,i){const l=this.context.createRadialGradient(t,e,s,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 s=e[0],r=e[1];this.context.drawImage(t,s,r)}else if(e.length===4){const s=e[0],r=e[1],n=e[2],a=e[3];this.context.drawImage(t,s,r,n,a)}else if(e.length===8){const s=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,s,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,s=this.canvas.width,r=this.canvas.height,n){return this.context.getImageData(t,e,s,r,n)}putImageData(t,e=0,s=0){return this.context.putImageData(t,e,s)}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 vn{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=Io(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),s=Math.min(this.y,this.toY),r=Math.max(this.x,this.toX),n=Math.max(this.y,this.toY);return{x:e,y:s,width:r-e,height:n-s}}else{const e=Math.sin(t),s=Math.cos(t),r=s*this.x-e*this.y,n=s*this.toX-e*this.toY,a=s*this.y+e*this.x,i=s*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,s=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-s)/a,c=(t.y-n)/i;if(a){if(!i)return{x:r,y:l*(r-e)+s}}else return{x:e,y:c*(e-r)+n};const u=(-c*r+n+l*e-s)/(l-c),d=l*(u-e)+s;return isNaN(u)||isNaN(d)?null:{x:u,y:d}}}const td=vn;class bi extends vn{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,s,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,s,r,n,a,i,l,!this.sweepFlag)}convert(t,e,s,r,n,a,i,l,c){const u=i/180*Math.PI,d=(t-s)/2,f=(e-r)/2,p=Math.cos(u)*d+Math.sin(u)*f,h=-Math.sin(u)*d+Math.cos(u)*f,y=p*p/(n*n)+h*h/(a*a);if(y>1){const F=Math.sqrt(y);throw n=F*n,a=F*a,new Error(`Radii are too small to build an arc. Correcting them to ${n}/${a}.`)}const v=Math.sqrt((n*n*a*a-n*n*h*h-a*a*p*p)/(n*n*h*h+a*a*p*p)),_=l!=c?1:-1,z=_*v*n*h/a,Y=_*v*-a*p/n,O=(t+s)/2,G=(e+r)/2,J=Math.cos(u)*z-Math.sin(u)*Y+O,H=Math.sin(u)*z+Math.cos(u)*Y+G,it=(F,P,$,B)=>(F*B>=P*$?1:-1)*Math.acos((F*$+P*B)/(Math.sqrt(F*F+P*P)*Math.sqrt($*$+B*B))),w=it(1,0,t-J,e-H)-u,E=it(t-J,e-H,s-J,r-H);return[J,H,n,a,u,w,w+E]}}const dg=bi;class hg extends vn{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,s=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,s,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 s,r,n,a;for(let c=0;c<2;++c)s=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(s)>1e-12&&(a=-r/(2*s),0<a&&a<1&&[t,e][c].push(s*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 fg=hg;class ho extends vn{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),s=this.x-this.c1x,r=(-e+Math.sqrt(e*e-4*t*s))/2/t,n=(-e-Math.sqrt(e*e-4*t*s))/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),s=this.y-this.c1y,r=(-e+Math.sqrt(e*e-4*t*s))/2/t,n=(-e-Math.sqrt(e*e-4*t*s))/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=[],d=c.length;for(let h=0;h<d;h++){for(let y=h+1;y<d;y++)c[h].X===c[y].X&&c[h].Y===c[y].Y&&(y=++h);u.push({X:c[h].X,Y:c[h].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,s,r,n){const a=-3*e+9*s-9*r+3*n,i=t*a+6*e-12*s+6*r;return t*i-3*e+3*s}static bezlen(t,e,s,r,n,a,i,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let p=0;for(let h=0;h<12;h++){const y=u*d[h]+u,v=this.base3(y,t,s,n,i),_=this.base3(y,e,r,a,l);p+=f[h]*Math.sqrt(v*v+_*_)}return u*p}length(t=1){return ho.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,s=this.y,r=this.c1x,n=this.c1y,a=this.c2x,i=this.c2y,l=this.toX,c=this.toY;if(t<0||ho.bezlen(e,s,r,n,a,i,l,c)<t)return 0;let u=1,d=u/2,f=u-d,p=ho.bezlen(e,s,r,n,a,i,l,c,f);for(;Math.abs(p-t)>.01;)d/=2,f+=(p<t?1:-1)*d,p=ho.bezlen(e,s,r,n,a,i,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t);let s=1-e,r=Math.pow(s,3),n=Math.pow(s,2),a=e*e,i=a*e,l=r*this.x+n*3*e*this.c1x+s*3*e*e*this.c2x+i*this.toX,c=r*this.y+n*3*e*this.c1y+s*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),d=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),h=s*this.x+e*this.c1x,y=s*this.y+e*this.c1y,v=s*this.c2x+e*this.toX,_=s*this.c2y+e*this.toY,z=90-Math.atan2(u-f,d-p)*180/Math.PI;return{x:l,y:c,m:{x:u,y:d},n:{x:f,y:p},start:{x:h,y},end:{x:v,y:_},alpha:z}}}const Ys=ho,pr=Math.PI*2;function ed(o,t,e,s){const r=o*s-t*e<0?-1:1;let n=o*e+t*s;return n>1&&(n=1),n<-1&&(n=-1),r*Math.acos(n)}function pg(o,t,e,s,r,n,a,i,l,c){const u=c*(o-e)/2+l*(t-s)/2,d=-l*(o-e)/2+c*(t-s)/2,f=a*a,p=i*i,h=u*u,y=d*d;let v=f*p-f*y-p*h;v<0&&(v=0),v/=f*y+p*h,v=Math.sqrt(v)*(r===n?-1:1);const _=v*a/i*d,z=v*-i/a*u,Y=c*_-l*z+(o+e)/2,O=l*_+c*z+(t+s)/2,G=(u-_)/a,J=(d-z)/i,H=(-u-_)/a,it=(-d-z)/i,w=ed(1,0,G,J);let E=ed(G,J,H,it);return n===0&&E>0&&(E-=pr),n===1&&E<0&&(E+=pr),[Y,O,w,E]}function mg(o,t){const e=1.3333333333333333*Math.tan(t/4),s=Math.cos(o),r=Math.sin(o),n=Math.cos(o+t),a=Math.sin(o+t);return[s,r,s-r*e,r+s*e,n+a*e,a-n*e,n,a]}function sd(o,t,e,s,r,n,a,i,l){const c=Math.sin(l*pr/360),u=Math.cos(l*pr/360),d=u*(o-e)/2+c*(t-s)/2,f=-c*(o-e)/2+u*(t-s)/2;if(d===0&&f===0)return[];if(a===0||i===0)return[];a=Math.abs(a),i=Math.abs(i);const p=d*d/(a*a)+f*f/(i*i);p>1&&(a*=Math.sqrt(p),i*=Math.sqrt(p));const h=pg(o,t,e,s,r,n,a,i,c,u),y=[];let v=h[2],_=h[3];const z=Math.max(Math.ceil(Math.abs(_)/(pr/4)),1);_/=z;for(let Y=0;Y<z;Y++)y.push(mg(v,_)),v+=_;return y.map(Y=>{for(let O=0;O<Y.length;O+=2){let G=Y[O+0],J=Y[O+1];G*=a,J*=i;const H=u*G-c*J,it=c*G+u*J;Y[O+0]=H+h[0],Y[O+1]=it+h[1]}return Y})}function _i(o,t,e,s,r,n){return[o/3+.6666666666666666*e,t/3+.6666666666666666*s,r/3+.6666666666666666*e,n/3+.6666666666666666*s,r,n]}function mr(o,t,e,s){return[o,t,e,s,e,s]}const bn={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class he{static createSVGElement(t="path",e){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&rt.attribute(s,e),s}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||co()})}static downloadFromSVGElement(t,e="shape"){return Wu(K0(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Wu(Hu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Zu(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 he.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,r,n)=>{let a=r.toLowerCase();const i=ja(n);for(a=="m"&&i.length>bn[a]&&(e.push([r,...i.splice(0,bn[a])]),a="l",r=r=="m"?"l":"L");i.length;){if(i.length<bn[a])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${r} } args:{ ${i} }`);e.push([r,...i.splice(0,bn[a])])}return a=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,s=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=s;break;case"H":r=a[1];break;case"V":n=a[1];break;case"M":r=e=a[1],n=s=a[2];break;default:r=a[a.length-2],n=a[a.length-1]}return a})}static relativeSVGPath(t){let e=0,s=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=s;break;case"h":r+=a[1];break;case"v":n+=a[1];break;case"m":r+=a[1],n+=a[2],e+=a[1],s+=a[2];break;default:r+=a[a.length-2],n+=a[a.length-1]}return a})}static normalizeSVGPath(t){const e=[];let s=0,r=0,n=0,a=0,i=0,l=0,c=0,u=0,d;for(let f=0,p=t.length;f<p;f++){let h=t[f];const y=h[0];switch(y){case"M":s=h[1],r=h[2];break;case"A":const v=sd(n,a,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!v.length)continue;v.forEach((Y,O)=>{const[G,J,H,it,w,E,F,P]=Y;h=["C",H,it,w,E,F,P],O<v.length-1&&e.push(h)});break;case"S":let _=n,z=a;(d=="C"||d=="S")&&(_+=_-c,z+=z-u),h=["C",_,z,h[1],h[2],h[3],h[4]];break;case"T":d=="Q"||d=="T"?(i=n*2-i,l=a*2-l):(i=n,l=a),h=["C",..._i(n,a,i,l,h[1],h[2])];break;case"Q":i=h[1],l=h[2],h=["C",..._i(n,a,h[1],h[2],h[3],h[4])];break;case"L":h=["C",...mr(n,a,h[1],h[2])];break;case"H":h=["C",...mr(n,a,h[1],a)];break;case"V":h=["C",...mr(n,a,n,h[1])];break;case"Z":h=["C",...mr(n,a,s,r)];break}d=y,n=h[h.length-2],a=h[h.length-1],h.length>4?(c=h[h.length-4],u=h[h.length-3]):(c=n,u=a),e.push(h)}return e}static catmullRom2bezier(t){const e=[];for(let s=0,r=t.length;r-2>s;s+=2){let n;s==0?n=[{x:t[s],y:t[s+1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}]:r-4==s?n=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+2],y:t[s+3]}]:n=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+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 s=["L",0,0],r;for(let n=0,a=t.length;n<a;n++){const i=t[n];switch(i[0]){case"M":s=["L",i[1],i[2]],e.push(i);break;case"Z":e.push(s);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 s,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,s&&(s[0]===c.to?(r=2*Number(s[c.x+2])-Number(s[c.x]),n=2*Number(s[c.x+3])-Number(s[c.x+1])):(r=Number(s[s.length-2]),n=Number(s[s.length-1]))),l.splice(1,0,r,n)),s=l}return t}}class Xe{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(he.parseSVGPath(t),e):t instanceof Xe?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const s=he.normalizeSVGPath(he.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let r=!1;for(let n=0,a=s.length;n<a;n++){const i=s[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 Ys({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 Xe;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let s=2,r=t.length;s+5<r;s+=6)e.appendLine(new Ys({c1x:t[s],c1y:t[s+1],c2x:t[s+2],c2y:t[s+3],toX:t[s+4],toY:t[s+5]}));return e}static fromLines(t){const e=new Xe;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let s=0,r=t.length;s<r;s++)e.appendLine(t[s]);return e}appendLine(t){if(t instanceof dg){sd(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,d,f,p,h,y,v,_]=c;this.normalizedLines.push(new Ys({x:this.prevPathX,y:this.prevPathY,c1x:f,c1y:p,c2x:h,c2y:y,toX:v,toY:_})),this.prevPathX=v,this.prevPathY=_});return}let e,s,r,n,a,i;t instanceof Ys?(e=t.c1x,s=t.c1y,r=t.c2x,n=t.c2y,a=t.toX,i=t.toY):t instanceof fg?[e,s,r,n,a,i]=_i(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,s,r,n,a,i]=mr(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Ys({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:s,c2x:r,c2y:n,toX:a,toY:i})),this.prevPathX=a,this.prevPathY=i}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform(),r=[];r.push(["M",t,e]);for(let n=0,a=s.length;n<a;n++)r.push(...s[n].toSVGPathData());return r}toSVGPathD(){return he.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:s,normalizedLines:r}=this.updateTransform();t.beginPath(),t.moveTo(e,s),r.forEach(n=>{n.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],s=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),s.push(c.y,c.y+c.height)}),e.length==0||s.length==0)return{x:0,y:0,width:0,height:0};const r=Math.min.apply(0,e),n=Math.min.apply(0,s),a=Math.max.apply(0,e),i=Math.max.apply(0,s);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 Ge;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,s=this.startPathY;({x:e,y:s}=t.transformPoint({x:e,y:s}));const r=[];return this.normalizedLines.forEach(n=>{let a=n.x,i=n.y,l=n.c1x,c=n.c1y,u=n.c2x,d=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:d}=t.transformPoint({x:u,y:d}),{x:f,y:p}=t.transformPoint({x:f,y:p}),r.push(new Ys({x:a,y:i,c1x:l,c1y:c,c2x:u,c2y:d,toX:f,toY:p}))}),{startPathX:e,startPathY:s,normalizedLines:r}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,s)=>e+=s.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let s=0;const r=e.length;for(let n=0;n<r;n++){const a=e[n],i=a.length();if(s+i>=t)return a.getPointAtSegmentLength(t-s);s+=i}return e[r-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:s,normalizedLines:r}=this.updateTransform(),n=r.length;if(n===0)return{x:e,y:s};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 s=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(s,t):s}}getSubpathsAtLength(t,e,s){const{startPathX:r,startPathY:n,normalizedLines:a}=t.updateTransform();let i=null,l=0;const c=new Xe;c.prevPathX=c.startPathX=r,c.prevPathY=c.startPathY=n;for(let u=0,d=a.length;u<d;u++){const f=a[u],p=f.length();if(l+p>e&&!i){const h=f.getPointAtSegmentLength(e-l);if(c.appendLine(new Ys({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,toX:h.x,toY:h.y})),s)return c;i=c,c.appendLine(new Ys({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,toX:f.x,toY:f.y})),l+=p;continue}l+=p,c.appendLine(f)}return c}closestPoint(t,e){const s=this.getTotalLength();let r={x:t,y:e},n=0,a=1/0,i=8;for(let c=0;c<=s;c+=i){let u=this.getPointAtLength(c),d=gi(u.x,u.y,t,e);d<a&&(r=u,n=c,a=d)}for(i/=2;i>.5;){let c=n-i,u=this.getPointAtLength(c),d=gi(u.x,u.y,t,e),f=n+i,p=this.getPointAtLength(f),h=gi(p.x,p.y,t,e);c>=0&&d<a?(r=u,n=c,a=d):f<=s&&h<a?(r=p,n=f,a=h):i/=2}const l=this.getPointAtLength(n+(n===s?-.1:.1));return{point:r,rotation:n>=s?Io(l.x,l.y,r.x,r.y):Io(r.x,r.y,l.x,l.y),distance:Math.sqrt(a)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform();return[t,e].concat(s.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 s=t[e-2],r=t[e-1],n=0;for(let a=0;a<e;a+=6)n+=mi(t[a],t[a+1],s,r),s=t[a],r=t[a+1];return Math.floor(n)}expendFill(t){const e=this.polymorphPoints,s=e.length;let r=t-s;const n=Math.ceil(t/s),a=[];a.push(["M",e[0],e[1]]);let i=2;for(;i+5<=s-1;){const l=e[i++],c=e[i++],u=e[i++],d=e[i++],f=e[i++],p=e[i++];a.push(["C",l,c,u,d,f,p]);let h=0;for(;h<n&&r>0;)a.push(["C",f,p,f,p,f,p]),r-=6,h++}return a}static mixPoints(t,e,s){const r=t.length,n=new Array(r);for(let a=0;a<r;a++)n[a]=ye(t[a]+(e[a]-t[a])*s,6);return n}static getPathInterpolator(t,e){return s=>Math.abs(s-0)<Number.EPSILON?t:Math.abs(s-1)<Number.EPSILON?e:Xe.fromPolymorphPoints(Xe.mixPoints(new Xe({d:t}).polymorphPoints,new Xe({d:e}).polymorphPoints,s)).toSVGPathData()}}(function(){if(!window.requestAnimationFrame){let o=ve();window.requestAnimationFrame=function(t){const e=ve(),s=Math.max(0,16-(e-o)),r=window.setTimeout(function(){t(e+s)},s);return o=e+s,r}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(o){clearTimeout(o)})})();const re=o=>{let t=!1;return window.requestAnimationFrame(function e(s){!t&&o(s)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function xi(o,t=0){if(t==0)return o(ve()),()=>{};{const e=ve();return re(s=>s-e>=t?(o(s),!1):!0)}}function gg(o,t=0){let e=!1,s=0,r=ve();const n=a=>{if(e)return;s++;const i=a-r-s*t;o(a,s,t-i<=0),xi(n,Math.max(0,t-i))};return xi(n,t),()=>{e=!0}}function yg(o,t=20){const e=1e3/t;let s=0,r;return()=>(ve()-s>=e&&(s=ve(),r=o()),r)}const _n=new sn;let wi=!1;function od(o,t,e){if(o&&t&&_n.set(o,t),wi)return;wi=!0;const s=ve();bg(r=>{for(wi=!1;(r.timeRemaining()>0||e&&ve()-s>=e)&&_n.length>0;){const n=_n.shift();n&&n[1]()}_n.length>0&&od()})}let xn=0,fo=33,Bs=33,ki;const rd=new MessageChannel,vg=rd.port2;rd.port1.onmessage=o=>{ki!==null&&ki({didTimeout:xn<=ve(),timeRemaining:()=>Math.max(0,xn-ve())})};function bg(o){return ki=o,requestAnimationFrame(t=>{let e=t-xn+Bs;e<Bs&&fo<Bs?(e<8&&(e=8),Bs=e<fo?fo:e):e>Bs&&fo>Bs?Bs=e<fo?fo:e:fo=e,xn=t+Bs,vg.postMessage(null)})}class gr{static _nextId=0;static nextId(){return gr._nextId++}}const ht={Linear:{None:function(o){return o}},Ease:{In:function(o){return Math.pow(o,1.7)}},Quadratic:{In:function(o){return o*o},Out:function(o){return o*(2-o)},InOut:function(o){return(o*=2)<1?.5*o*o:-.5*(--o*(o-2)-1)}},Cubic:{In:function(o){return o*o*o},Out:function(o){return--o*o*o+1},InOut:function(o){return(o*=2)<1?.5*o*o*o:.5*((o-=2)*o*o+2)}},Quartic:{In:function(o){return o*o*o*o},Out:function(o){return 1- --o*o*o*o},InOut:function(o){return(o*=2)<1?.5*o*o*o*o:-.5*((o-=2)*o*o*o-2)}},Quintic:{In:function(o){return o*o*o*o*o},Out:function(o){return--o*o*o*o*o+1},InOut:function(o){return(o*=2)<1?.5*o*o*o*o*o:.5*((o-=2)*o*o*o*o+2)}},Sinusoidal:{In:function(o){return 1-Math.sin((1-o)*Math.PI/2)},Out:function(o){return Math.sin(o*Math.PI/2)},InOut:function(o){return .5*(1-Math.sin(Math.PI*(.5-o)))}},Exponential:{In:function(o){return o===0?0:Math.pow(1024,o-1)},Out:function(o){return o===1?1:1-Math.pow(2,-10*o)},InOut:function(o){return o===0?0:o===1?1:(o*=2)<1?.5*Math.pow(1024,o-1):.5*(-Math.pow(2,-10*(o-1))+2)}},Circular:{In:function(o){return 1-Math.sqrt(1-o*o)},Out:function(o){return Math.sqrt(1- --o*o)},InOut:function(o){return(o*=2)<1?-.5*(Math.sqrt(1-o*o)-1):.5*(Math.sqrt(1-(o-=2)*o)+1)}},Elastic:{In:function(o){return o===0?0:o===1?1:-Math.pow(2,10*(o-1))*Math.sin((o-1.1)*5*Math.PI)},Out:function(o){return o===0?0:o===1?1:Math.pow(2,-10*o)*Math.sin((o-.1)*5*Math.PI)+1},InOut:function(o){return o===0?0:o===1?1:(o*=2,o<1?-.5*Math.pow(2,10*(o-1))*Math.sin((o-1.1)*5*Math.PI):.5*Math.pow(2,-10*(o-1))*Math.sin((o-1.1)*5*Math.PI)+1)}},Back:{In:function(o){return o===1?1:o*o*((1.70158+1)*o-1.70158)},Out:function(o){return o===0?0:--o*o*((1.70158+1)*o+1.70158)+1},InOut:function(o){const t=2.5949095;return(o*=2)<1?.5*(o*o*((t+1)*o-t)):.5*((o-=2)*o*((t+1)*o+t)+2)}},Bounce:{In:function(o){return 1-ht.Bounce.Out(1-o)},Out:function(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375},InOut:function(o){return o<.5?ht.Bounce.In(o*2)*.5:ht.Bounce.Out(o*2-1)*.5+.5}},generatePow:function(o=4){return o=o<Number.EPSILON?Number.EPSILON:o,o=o>1e4?1e4:o,{In:function(t){return t**o},Out:function(t){return 1-(1-t)**o},InOut:function(t){return t<.5?(t*2)**o/2:(1-(2-t*2)**o)/2+.5}}},random:function(o){return Math.random()},createStep:function(o){return function(t){return Math.floor(t*o)/o}},createNoisyEasing:function(o,t=.1){const e=1-t;return function(s){return t*Math.random()+e*o(s)}},swing:function(o){return o+Math.sin(o*Math.PI*2)/2},causeSeizures:function(o){return o+.2*Math.random()-.1}},Ci=ht;function _g(o){switch(o){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 o}}const Ro={Utils:{Linear:function(o,t,e){return(t-o)*e+o},Factorial:function(){const o=[1];return function(t){let e=1;if(o[t])return o[t];for(let s=t;s>1;s--)e*=s;return o[t]=e,e}}(),Bernstein:function(o,t){const e=Ro.Utils.Factorial;return e(o)/e(t)/e(o-t)},CatmullRom:function(o,t,e,s,r){const n=(e-o)*.5,a=(s-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:(o,t,e,s)=>{const r=1-s;return r*r*o+2*r*s*t+s*s*e},CubicBezier:(o,t,e,s,r)=>{const n=1-r;return n*n*n*o+3*n*n*r*t+3*n*r*r*e+r*r*r*s}},Linear:function(o,t){const e=o.length-1,s=e*t,r=Math.floor(s),n=Ro.Utils.Linear;return t<0?n(o[0],o[1],s):t>1?n(o[e],o[e-1],e-s):n(o[r],o[r+1>e?e:r+1],s-r)},Bezier:function(o,t){let e=0;const s=o.length-1,r=Math.pow,n=Ro.Utils.Bernstein;for(let a=0;a<=s;a++)e+=r(1-t,s-a)*r(t,a)*o[a]*n(s,a);return e},CatmullRom:function(o,t){const e=o.length-1;let s=e*t,r=Math.floor(s);const n=Ro.Utils.CatmullRom;return o[0]===o[e]?(t<0&&(r=Math.floor(s=e*(1+t))),n(o[(r-1+e)%e],o[r],o[(r+1)%e],o[(r+2)%e],s-r)):t<0?o[0]-(n(o[0],o[0],o[1],o[1],-s)-o[0]):t>1?o[e]-(n(o[e],o[e],o[e-1],o[e-1],s-e)-o[e]):n(o[r?r-1:0],o[r],o[e<r+1?e:r+1],o[e<r+2?e:r+2],s-r)}},Ti=Ro;class nd{_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=ve(),e=!1){const s=Object.keys(this._tweens);for(let r=0;r<s.length;r++){const n=this._tweens[s[r]],a=!e;n&&n.update(t,a)===!1&&!e&&delete this._tweens[s[r]]}return!!Object.keys(this._tweens).length}}const Ze=new nd;class ad{constructor(t,e=Ze){this._object=t,this._group=e}_id=gr.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=ve()){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,s,r){for(const n in s){const a=t[n],i=Array.isArray(a),l=i?"array":typeof a,c=!i&&Array.isArray(s[n]);if(!(l==="undefined"||l==="function")){if(c){let u=s[n];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,a)),s[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],s[n],r[n])}else typeof e[n]>"u"&&(e[n]=a),i||(e[n]*=1),c?r[n]=s[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=ve()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=ve()){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=Ze){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=ve(),e=!0){if(this._isPaused)return!0;let s,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(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=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,s,r){for(const n in s){if(e[n]===void 0)continue;const a=e[n]||0;let i=s[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],s=this._valuesEnd[t];typeof s=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(s):this._valuesStartRepeat[t]=s,this._valuesEnd[t]=e}}const xg=ad,wg=gr.nextId,kg=Ze.getAll.bind(Ze),Cg=Ze.removeAll.bind(Ze),Tg=Ze.add.bind(Ze),Sg=Ze.remove.bind(Ze),Eg=Ze.update.bind(Ze),_t={now:ve,Sequence:gr,Easing:Ci,Interpolation:Ti,Group:nd,Tween:xg,nextId:wg,getAll:kg,removeAll:Cg,add:Tg,remove:Sg,update:Eg};class Pe{tweens=[];taskQueue=new ir(1);isKill=!1;frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){Zm(this.tweens,(e,s)=>t?e.delay>s.delay:e.delay<=s.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(s=>{const r={...s};delete r.tween,r.toValues={...r.toValues},r.fromValues={...r.fromValues},e.push(r)}),e}addTween(t,e,s){const r={fromValues:t,toValues:e,frames:typeof s?.frames=="number"?s.frames:1,delay:typeof s?.delay=="number"?s.delay:this.tweens.length,easeFunction:s?.easeFunction||ht.Linear.None,interpolationFunction:s?.interpolationFunction||Ro.Linear,repeat:typeof s?.repeat=="number"?s.repeat:0,yoyo:s?.yoyo||!1,onStart:s?.onStart||(()=>{}),onUpdate:s?.onUpdate||(()=>{}),onComplete:s?.onComplete||(()=>{})};return this.tweens.push(r),this}runTweens(t){return new Promise(e=>{this.onGroupStart?.();let s=0;re(r=>{s==0&&(s=r);const n=r-s;t.filter(i=>i.delay*this.frameDuration<=n).forEach(i=>{i.tween||(i.tween=new ad({...i.fromValues}).to({...i.toValues},i.frames*this.frameDuration).easing(i.easeFunction).interpolation(i.interpolationFunction).repeat(i.repeat).yoyo(i.yoyo).onStart(i.onStart).onUpdate(i.onUpdate).onComplete(i.onComplete),i.tween.start(r)),(i.delay+i.frames*(i.repeat+1))*this.frameDuration>n?i.tween.update(r):(i.tween.isPlaying()&&i.tween.end(),Am(t,i))});const a=!!t.length;return a||(this.onGroupComplete?.(),e()),a})})}play(t=this.cloneTweens(this.tweens)){this.taskQueue.addTask(()=>this.runTweens(t))}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(s=>{e=Math.max(e,s.delay+s.frames),s.easeFunction=_g(s.easeFunction);const r={...s.toValues};s.toValues={...s.fromValues},s.fromValues={...r}}),t.forEach(s=>{s.delay=e-s.frames}),this.play(t)}pause(){}resume(){}}class Qt extends nn{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=co(),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 s=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",s),this.strokeDashTotalLength=ja(s).reduce((r,n)=>r+n,0)}return Fm(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Xe,Ua(()=>{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(s=>{const r=s.originMatrix?s.originMatrix.clone():new Ge;r.translate(-t.x+s.x,-t.y+s.y),s.originMatrix=r});const e=this.originMatrix?this.originMatrix.clone():new Ge;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,s){if(s instanceof vi)return s.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=s.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,s){if(s instanceof vi)return s.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=s.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!1}clone(){return Nm(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(([s,r])=>[je(s),r]))):e&&(this.attrs[je(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[je(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[je(t)]}distance(t){return mi(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ze(Io(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:s,dy:r}=Ts(At(this.degree),e);this.vx=s,this.vy=r,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:s,dy:r}=Ts(At(this.degree),e);this.ax=s,this.ay=r,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,s=t.y-this.y,r=e*e+s*s,n=Math.sqrt(r),a=this.mass*t.mass/r,i=a*e/n,l=a*s/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=Vs(t?.gravity,0);this.vy+=e;const s=Vs(t?.friction,1);this.vx*=s,this.vy*=s,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const s=Vs(e?.easing,.05),r=t.x-this.cX-this.x,n=t.y-this.cY-this.y;this.vx=r*s,this.vy=n*s,this.run(e)}runSpringTo(t,e){const s=Vs(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*s,l=a*s;this.vx+=i,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const s=Vs(e?.springLength,100),r=Vs(e?.spring,1e-4),n=t.x-this.x,a=t.y-this.y,i=Math.sqrt(n*n+a*a);if(i<s){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/s}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 s=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*s),this.getPointAtLength(e*s)}strokeDashTween(t=1e3,e){const s=this.initPathD(),r=ye(s.getTotalLength(),0);this.setAttr({strokeDasharray:`${r} ${r}`,strokeDashoffset:`${r}`});const n=e?.onUpdate,a=new Pe({frameDuration:t});a.addTween({offset:r},{offset:0},Object.assign(e||{},{onUpdate:(i,l)=>{this.setAttr("strokeDashoffset",""+ye(i.offset,2)),n?.(i,l)}})),a.play()}}class Pg extends Qt{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,s){this.cX=t,this.cY=e,this.cZ=s}rotateX(t){({x:this.y,y:this.z}=ls(At(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=ls(At(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=ls(At(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,s=t.y-this.y,r=t.z-this.z;return Math.sqrt(e*e+s*s+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 s=t/e;this.scalar(s)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,s=this.y,r=this.z;return{x:s*t.z-r*t.y,y:r*t.x-e*t.z,z:e*t.y-s*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 wn=Pg,id=[1,0,0,1,0,0],ld=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ge{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=id){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Ge,s=ou("number",t);return s.length===6&&s.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 We(e)}identity(){return this.value=Array.from(id),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 Ge([...this.value])}multiply(t){const e=this.clone(),s=t instanceof Ge?t:new Ge(t);return this.m11=s.m11*e.m11+s.m12*e.m21+s.m13*e.m31,this.m12=s.m11*e.m12+s.m12*e.m22+s.m13*e.m32,this.m13=s.m11*e.m13+s.m12*e.m23+s.m13*e.m33,this.m21=s.m21*e.m11+s.m22*e.m21+s.m23*e.m31,this.m22=s.m21*e.m12+s.m22*e.m22+s.m23*e.m32,this.m23=s.m21*e.m13+s.m22*e.m23+s.m23*e.m33,this.m31=s.m31*e.m11+s.m32*e.m21+s.m33*e.m31,this.m32=s.m31*e.m12+s.m32*e.m22+s.m33*e.m32,this.m33=s.m31*e.m13+s.m32*e.m23+s.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,s=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,d=-c*r+a*i,f=l*r-n*i;let p=t*u+e*d+s*f;return p?(p=1/p,this.m11=u*p,this.m12=(-c*e+s*l)*p,this.m13=(a*e-s*n)*p,this.m21=d*p,this.m22=(c*t-s*i)*p,this.m23=(-a*t+s*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 Ge;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],s=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],d=t.value[3],f=t.value[4],p=t.value[5],h=l*d,y=c*u,v=(u*s-e*d)/(y-h),_=(l*s-e*c)/(h-y),z=(u*n-r*d)/(y-h),Y=(l*n-r*c)/(h-y),O=(u*(i-p)+d*(f-a))/(y-h),G=(l*(i-p)+c*(f-a))/(h-y),J=[v,_,z,Y,O,G];return new Ge(J)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>ye(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,s){return this.matrix3d.translate(t,e,s),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,s){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,s-this.matrix3d.m43),this}rotate(t,e=0,s=0){const r=At(t),n=Math.cos(r),a=Math.sin(r);return this.translate(e,s),this.multiply([n,a,-a,n,0,0]),this.translate(-e,-s),this.toMatrix3D(),this}rotateTo(t,e=0,s=0){const{degree:r}=this.split();return this.rotate(t-r,e,s),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,s){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(s),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,s){const{degreeX:r,degreeY:n,degreeZ:a}=this.matrix3d.split();return this.rotate3d(t-r,e-n,s-a),this}scale(t,e=t,s=0,r=0){return this.translate(s,r),this.multiply([t,0,0,e,0,0]),this.translate(-s,-r),this.toMatrix3D(),this}scaleTo(t,e=t,s=0,r=0){return this.scale(t/this.m11,e/this.m22,s,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,s=t){return this.matrix3d.scale(t,e,s),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,s=t){const{scalarX:r,scalarY:n,scalarZ:a}=this.matrix3d.split();return this.scale3d(t/r,e/n,s/a),this}skew(t,e=t){return this.multiply([Math.cos(At(e)),Math.sin(At(e)),-Math.sin(At(t)),Math.cos(At(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:s,skewY:r}=this.split();return this.skew(t-s,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,s){return this}skew3dTo(t,e,s){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class We{value;is3dSpecial=!1;constructor(t=ld){this.value=Array.from(t)}static fromString(t){const e=new We,s=ou("number",t);return s.length===16&&s.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(ld),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 We([...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,s=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+s*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+s*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+s*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+s*this.m44}}toMatrix(t){const{scalarX:e,scalarY:s,skewX:r,skewY:n,x:a,y:i}=this.split(),l=[e,n,r,s,a,i];return t?(t.value=l,t):new Ge(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=>ye(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),s=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),r=ze(He(Math.asin(-this.m13),-1,1));let n=ze(Math.atan2(this.m23,this.m33));Math.cos(At(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:s,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,s=this.m12,r=this.m13,n=this.m14,a=this.m21,i=this.m22,l=this.m23,c=this.m24,u=this.m31,d=this.m32,f=this.m33,p=this.m34,h=this.m41,y=this.m42,v=this.m43,_=this.m44;t[0]=l*p*y-c*f*y+c*d*v-i*p*v-l*d*_+i*f*_,t[1]=n*f*y-r*p*y-n*d*v+s*p*v+r*d*_-s*f*_,t[2]=r*c*y-n*l*y+n*i*v-s*c*v-r*i*_+s*l*_,t[3]=n*l*d-r*c*d-n*i*f+s*c*f+r*i*p-s*l*p;const z=e*t[0]+a*t[1]+u*t[2]+h*t[3];if(z==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*h-l*p*h-c*u*v+a*p*v+l*u*_-a*f*_,t[5]=r*p*h-n*f*h+n*u*v-e*p*v-r*u*_+e*f*_,t[6]=n*l*h-r*c*h-n*a*v+e*c*v+r*a*_-e*l*_,t[7]=r*c*u-n*l*u+n*a*f-e*c*f-r*a*p+e*l*p,t[8]=i*p*h-c*d*h+c*u*y-a*p*y-i*u*_+a*d*_,t[9]=n*d*h-s*p*h-n*u*y+e*p*y+s*u*_-e*d*_,t[10]=s*c*h-n*i*h+n*a*y-e*c*y-s*a*_+e*i*_,t[11]=n*i*u-s*c*u-n*a*d+e*c*d+s*a*p-e*i*p,t[12]=l*d*h-i*f*h-l*u*y+a*f*y+i*u*v-a*d*v,t[13]=s*f*h-r*d*h+r*u*y-e*f*y-s*u*v+e*d*v,t[14]=r*i*h-s*l*h-r*a*y+e*l*y+s*a*v-e*i*v,t[15]=s*l*u-r*i*u+r*a*d-e*l*d-s*a*f+e*i*f,this.value=t,this.scalar(1/z)}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,s=0){return this.multiply(new We([1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1]))}scale(t=1,e=1,s=1){return this.multiply(new We([t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1]))}rotateX(t){const e=At(t),s=Math.cos(e),r=Math.sin(e);return this.multiply(new We([1,0,0,0,0,s,r,0,0,-r,s,0,0,0,0,1]))}rotateY(t){const e=At(t),s=Math.cos(e),r=Math.sin(e);return this.multiply(new We([s,0,-r,0,0,1,0,0,r,0,s,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=At(t),s=Math.cos(e),r=Math.sin(e);return this.multiply(new We([s,r,0,0,-r,s,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,s=0){return this.multiply(new We([1,0,0,At(t),0,1,0,At(e),0,0,1,At(s),0,0,0,1]))}perspective(t){return this.multiply(new We([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,s=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=s+this.m32,l=r+this.m33,c=n+this.m34;n==0&&(n=1e-4),e/=n,s/=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:s,z:r,mass:n};const d=-r/u;return e+=d*(a-e),s+=d*(i-s),{x:e,y:s,z:r,mass:n}}project(t){const e=t.z;let s=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),s/=n,r/=n,n<0&&(s-=this.m41,r-=this.m42,s*=1/n,r*=1/n,s+=this.m41,r+=this.m42),{x:s,y:r,z:e,mass:n}}bounds(t,e,s,r){const n=new wn({x:t,y:e}),a=new wn({x:t+s,y:e}),i=new wn({x:t+s,y:e+r}),l=new wn({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),d=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:d,height:f}}}function cd(o){const t=new Ge;return o.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,s,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(s.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 We(n)),t.matrix3d.toMatrix(t);break}return""}),t}function ls(o,t,e){const s=new Ge;return s.rotate(ze(o)),s.transformPoint({x:t,y:e})}class rt{static createElementNS(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}static origins=new sn;static updates=new sn;static patchDom=()=>{this.origins.filter((t,e)=>{const s=this.updates.get(t);return s&&Ku(e,s),this.updates.delete(t),!1})};static getVNode(t,e){let s=t.getAttribute("id")||"";s||(s=e||co(),t.setAttribute("id",s)),this.origins.get(s)||this.origins.set(s,qu(t.tagName,{},[],t));const r=this.updates.get(s)||qu(t.tagName,{},[],t);return{vnode:r,immediate:()=>{this.updates.set(s,r),rt.patchDom()},schedule:()=>{this.updates.set(s,r),od("FLUSH_DOM_ACTIONS",rt.patchDom,50)}}}static getElement(t){const e=t.style?t.ownerDocument:t.document||t;return{el:t,document:e,window:e.defaultView,isRootNode:/(html|body)/i.test(t.tagName)||t===document}}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,e){document.documentElement.style.setProperty(t,e)}static add3DSupport(t,e="1000px"){if(t.parentElement){const s=rt.getStyle(t.parentElement,"position");rt.setStyle(t.parentElement,{position:s=="static"?"relative":s,perspective:e})}rt.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,s={}){Object.prototype.hasOwnProperty.call(s,"transform")||Object.assign(s,{transform:rt.getStyle(t,"transform")||""});const r=cd(s.transform),n={};for(const a in e){const i=e[a];switch(a){case"transform":break;case"translate":r.translate(i[0]||0,i[1]||0);break;case"translateTo":r.translateTo(i[0]||0,i[1]||0);break;case"translateX":r.translateX(i||0);break;case"translateXTo":r.translateXTo(i||0);break;case"translateY":r.translateY(i||0);break;case"translateYTo":r.translateYTo(i||0);break;case"translateZ":r.translateZ(i||0);break;case"translateZTo":r.translateZTo(i||0);break;case"translate3d":r.translate3d(i[0]||0,i[1]||0,i[2]||0);break;case"translate3dTo":r.translate3dTo(i[0]||0,i[1]||0,i[2]||0);break;case"rotate":typeof i=="number"?r.rotate(i||0):r.rotate(i[0]||0,i[1]||0,i[2]||0);break;case"rotateTo":typeof i=="number"?r.rotateTo(i||0):r.rotateTo(i[0]||0,i[1]||0,i[2]||0);break;case"rotateX":r.rotateX(i||0);break;case"rotateXTo":r.rotateXTo(i||0);break;case"rotateY":r.rotateY(i||0);break;case"rotateYTo":r.rotateYTo(i||0);break;case"rotateZ":r.rotateZ(i||0);break;case"rotateZTo":r.rotateZTo(i||0);break;case"rotate3d":r.rotate3d(i[0]||0,i[1]||0,i[2]||0);break;case"rotate3dTo":r.rotate3dTo(i[0]||0,i[1]||0,i[2]||0);break;case"scale":typeof i=="number"?r.scale(i||1):r.scale(i[0]||1,i[1]||1,i[2]||0,i[3]||0);break;case"scaleTo":typeof i=="number"?r.scaleTo(i||1):r.scaleTo(i[0]||1,i[1]||1,i[2]||0,i[3]||0);break;case"scaleX":r.scaleX(i||1);break;case"scaleXTo":r.scaleXTo(i||1);break;case"scaleY":r.scaleY(i||1);break;case"scaleYTo":r.scaleYTo(i||1);break;case"scaleZ":r.scaleZ(i||1);break;case"scaleZTo":r.scaleZTo(i||1);break;case"scale3d":typeof i=="number"?r.scale3d(i||1):r.scale3d(i[0]||1,i[1]||1,i[2]||1);break;case"scale3dTo":typeof i=="number"?r.scale3dTo(i||1):r.scale3dTo(i[0]||1,i[1]||1,i[2]||1);break;case"skew":typeof i=="number"?r.skew(i||0):r.skew(i[0]||0,i[1]||0);break;case"skewTo":typeof i=="number"?r.skewTo(i||0):r.skewTo(i[0]||0,i[1]||0);break;case"skewX":r.skewX(i||0);break;case"skewXTo":r.skewXTo(i||0);break;case"skewY":r.skewY(i||0);break;case"skewYTo":r.skewYTo(i||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":r.perspective(i||0);break;default:Object.prototype.hasOwnProperty.call(s,a)||(s[a]=rt.getStyle(t,a)),Object.assign(n,{[a]:`${i}`});break}}return Object.assign(n,{transform:r.toString()}),n}static attrsToCanvas(t,e){for(const s in e){const r=e[s];switch(s){case"fill":r!=="none"&&(t.fillStyle=r);break;case"stroke":r!=="none"&&(t.strokeStyle=r);break;case"stroke-width":case"strokeWidth":t.lineWidth=Number(r);break;case"stroke-linecap":case"strokeLinecap":t.lineCap=r;break;case"stroke-linejoin":case"strokeLinejoin":switch(r){case"round":case"bevel":case"miter":t.lineJoin=r;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":t.miterLimit=Number(r);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":t.lineDashOffset=Number(r);break;case"stroke-dasharray":case"strokeDasharray":typeof r=="string"&&t.setLineDash(r.split(/\s+/).map(n=>Number(n)));break;case"cursor":break;case"font":typeof r=="string"&&(t.font=r);break;case"font-size":case"fontSize":t.font+=` ${r}`;break;case"font-family":case"fontFamily":t.font+=` ${r}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(r){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(r){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=r;break;default:t.textBaseline="alphabetic";break}break}}}static getStyle(t,e,s){const r=t;if(getComputedStyle)if(e){e=je(e);const n=getComputedStyle(r,s).getPropertyPriority(e);return getComputedStyle(r,s).getPropertyValue(e).trim()+(n?"!"+n:"")}else{const n=[],a=getComputedStyle(r,"");for(let i=0;i<a.length;i++)n.push(a[i]+":"+a.getPropertyValue(a[i]));return n.push(...(r.style.cssText||"").split(";")),Object.fromEntries(n.filter(i=>!!i).map(i=>i.split(":").map(l=>l.trim()))||[])}else if(t.currentStyle){if(e)return e=au(e),t.currentStyle[e];{const n=[],a=r.currentStyle;for(const i in a)n.push(i+":"+a[i]);return n.push(...(r.style.cssText||"").split(";")),Object.fromEntries(n.filter(i=>!!i).map(i=>i.split(":").map(l=>l.trim()))||[])}}}static setStyle(t,e,s){typeof e=="string"&&s?t.style.setProperty(je(e),s.replace(/!important/i,""),String(s).toLowerCase().includes("!important")?"important":""):e instanceof Object&&Object.keys(e).forEach(r=>{t.style.setProperty(je(r),String(e[r]).replace(/!important/i,""),String(e[r]).toLowerCase().includes("!important")?"important":"")})}static setStyleSheet(t,e){let s;if(typeof e=="string"){const n=document.querySelector(e)?.shadowRoot;n?s=n:s=document.querySelector(e)}else s=e;const r=document.createElement("style");if(r.innerHTML=t,s)return s.appendChild(r),()=>{(s instanceof HTMLElement||s instanceof ShadowRoot)&&s.removeChild(r)};{const n=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(n)}}}static toggleClass(t,e,s="toggle"){e.split(/[,\s]+/).forEach(r=>{r.trim()!==""&&t.classList[s](r.trim())})}static addClass(t,e){this.toggleClass(t,e,"add")}static removeClass(t,e){this.toggleClass(t,e,"remove")}static hasClass(t,e){return e.split(/[,\s]+/).every(s=>s.trim()!==""?Array.from(t.classList||[]).includes(s.trim()):!0)}static toggleDisplay(t,e){this.getStyle(t,"display")=="none"&&e===void 0||e===!0?t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block"):t.style.setProperty("display","none")}static show(t){t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block")}static hide(t){t.style.setProperty("display","none")}static attribute(t,e,s){let r={};if(e===void 0&&s===void 0){for(let i=0,l=t.attributes,c=l.length;i<c;i++){const u=l[i];u.nodeName&&u.nodeValue&&(r[u.nodeName]=u.nodeValue)}return r}if(typeof e=="string"&&s===void 0)return t.getAttribute(je(e));typeof e=="object"?r=e:typeof e=="string"&&s!==void 0&&(r[e]=s);const{vnode:n,schedule:a}=this.getVNode(t,r.id);Object.entries(r).forEach(([i,l])=>{n.props[je(i)]=l}),a()}static removeAttribute(t,e){e.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&t.removeAttribute(s.trim())})}static fixProp(t){const e={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return e[t]?e[t]:t}static prop(t,e,s){if(s===void 0&&typeof e=="string")return t[e];{let r={};typeof e=="object"?r=e:typeof e=="string"&&s!==void 0&&(r[e]=s),Object.entries(r).forEach(([n,a])=>{const i=this.fixProp(n);t[i]=a,i=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete t[this.fixProp(s.trim())]})}static data(t,e,s){if(typeof e=="string"&&(e=au(e)),(typeof e=="string"||e===void 0)&&s===void 0){const r=Object.assign({},t.dataset);return Object.keys(r).forEach(n=>{if(r[n]?.startsWith("[")||r[n]?.startsWith("{"))try{r[n]=JSON.parse(r[n]||"")}catch{}}),typeof e=="string"?r[e]:r}else{let r={};typeof e=="object"?r=e:typeof e=="string"&&(r[e]=s),Object.entries(r).forEach(([n,a])=>{a!=null?t.dataset[n]=a instanceof Object?JSON.stringify(a):a:delete t.dataset[n]})}}static removeData(t,e){e.split(/[,\s]+/).forEach(s=>{s.trim()!=""&&delete t.dataset[s.trim()]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static dispatchEvent(t,e,s){let r;const n=["click","dblclick","mousedown","mouseup","mousemove"],a=["keydown","keyup","keypress"];typeof e=="string"?n.includes(e)?r=new MouseEvent(e,s):a.includes(e)?r=new KeyboardEvent(e,s):r=new Event(e,s):r=e,t.dispatchEvent(r)}static scriptConvert(t){const e=s=>{const n=s.ownerDocument.createElement("script");n.text=s.text;const a=s.attributes;for(let i=0;i<a.length;i++)n.setAttribute(a[i].name,a[i].value);return n};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(s=>{s.parentNode?.replaceChild(e(s),s)}),t}static insert(t,e,s="append"){return typeof e=="string"?t[s](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[s](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(s=>{const r=this.scriptConvert(s);r!=s&&e.content.replaceChild(r,s)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const s=t.options;for(let r=0,n=s.length;r<n;r++)s[r].value==e?s[r].selected=!0:s[r].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let s;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?s=parseInt(t.substring(2),16):s=parseInt(t.substring(1),10):s=e[t],s?String.fromCharCode(s):"&"+t}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let s=document.styleSheets.length||0;const r=()=>s>=e.length?(t(),!0):!1;r()||e.forEach(n=>{n.onload=()=>{s+=1,r()}})});static loadScript(t,e=()=>{},s=(r,n,a,i,l)=>{}){const r=document.createElement("script");r.type="text/javascript",r.src=t,r.async=!1,r.onload=e,r.onerror=s,document.body.appendChild(r)}static runInSafe(t){const e=new Proxy(window,{get(s,r,n){if(typeof r=="string"&&["open","location","document"].includes(r))throw new Error(`禁止访问 key: ${r}`);return r==="window"?e:Reflect.get(s,r,n)},set(s,r,n,a){return Reflect.set(s,r,n,a)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(s={},...r){const n=document.createElement(e);for(const a of Object.keys(s))n.setAttribute(a,s[a]);for(const a of r)typeof a=="string"?n.appendChild(document.createTextNode(a)):n.appendChild(a);return n}}});static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
|
|
41
41
|
let output = "";
|
|
42
42
|
function echo(html){
|
|
43
43
|
output += html;
|
|
44
44
|
}
|
|
45
|
-
${
|
|
45
|
+
${t}
|
|
46
46
|
return output;
|
|
47
|
-
})`}static escape(e
|
|
47
|
+
})`}static escape(t,e="encode"){const s={"&":"&","<":"<",">":">",'"':""","'":"'"};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t=t.replace(new RegExp(e=="encode"?r:s[r],"g"),e=="encode"?s[r]:r));return t}static getInnerText=t=>{let e=t.innerText;if(!e){const s=t.querySelector("slot")?.assignedNodes()||[];let r=0;for(;!e&&r<=s.length-1;)"innerText"in s[r]&&(e=s[r].innerText),r++}return e};static copyToClipboard=t=>new Promise((e,s)=>{if(navigator.clipboard)navigator.clipboard.writeText(t).then(e).catch(s);else{const r=document.createElement("textarea");r.value=t,r.style.opacity="0",r.style.top="0",r.style.left="0",r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")?e():s()}catch(n){s(n)}document.body.removeChild(r)}});static scrollTo=(t,e)=>window.scrollTo(t,e);static getLocation(){return new Promise((t,e)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(s=>{t(s.coords)}):e("Geolocation is not supported by this browser")})}static vibrate(t=200){"vibrate"in navigator?window.navigator.vibrate(t):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(t,e="http://test.com/localstorage.html"){const s=document.createElement("iframe");s.src=e,document.body.append(s),setTimeout(function(){s.contentWindow?.postMessage(t,e)},4e3),setTimeout(function(){s.remove()},6e3)}static measureText=(t,e=12,s=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=s.toString(),r.innerText=t,document.body.appendChild(r);const n=r.offsetWidth,a=r.offsetHeight;return document.body.removeChild(r),{width:n,height:a}};static getFixedWidthText=(t,e,s=12,r=400,n=!0)=>{let a="";if(!t||e<s)return a;const i=t.split(""),l="...";let c=n?rt.measureText(l,s,r).width:0;for(let u=0,d=i.length;u<d;u++)if(c+=rt.measureText(i[u],s,r).width,c>e){n&&(a+=l);break}else a+=i[u];return a};static getMouseButton(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}function Og(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ud={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
48
48
|
* http://hammerjs.github.io/
|
|
49
49
|
*
|
|
50
50
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
51
|
-
* Licensed under the MIT license */(function(
|
|
52
|
-
`+
|
|
53
|
-
`;return function(){var Q=new Error("get-stack-trace"),ce=Q&&Q.stack?Q.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Le=e.console&&(e.console.warn||e.console.log);return Le&&Le.call(e.console,N,ce),p.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var x=Object(g),N=1;N<arguments.length;N++){var Q=arguments[N];if(Q!==i&&Q!==null)for(var ce in Q)Q.hasOwnProperty(ce)&&(x[ce]=Q[ce])}return x}:v=Object.assign;var b=m(function(g,x,N){for(var Q=Object.keys(x),ce=0;ce<Q.length;)(!N||N&&g[Q[ce]]===i)&&(g[Q[ce]]=x[Q[ce]]),ce++;return g},"extend","Use `assign`."),C=m(function(g,x){return b(g,x,!0)},"merge","Use `assign`.");function O(p,g,x){var N=g.prototype,Q;Q=p.prototype=Object.create(N),Q.constructor=p,Q._super=N,x&&v(Q,x)}function $(p,g){return function(){return p.apply(g,arguments)}}function S(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function Y(p,g){return p===i?g:p}function L(p,g,x){d(ge(g),function(N){p.addEventListener(N,x,!1)})}function H(p,g,x){d(ge(g),function(N){p.removeEventListener(N,x,!1)})}function fe(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function ye(p,g){return p.indexOf(g)>-1}function ge(p){return p.trim().split(/\s+/g)}function Me(p,g,x){if(p.indexOf&&!x)return p.indexOf(g);for(var N=0;N<p.length;){if(x&&p[N][x]==g||!x&&p[N]===g)return N;N++}return-1}function Ae(p){return Array.prototype.slice.call(p,0)}function Ue(p,g,x){for(var N=[],Q=[],ce=0;ce<p.length;){var Le=g?p[ce][g]:p[ce];Me(Q,Le)<0&&N.push(p[ce]),Q[ce]=Le,ce++}return x&&(g?N=N.sort(function($t,Ft){return $t[g]>Ft[g]}):N=N.sort()),N}function qe(p,g){for(var x,N,Q=g[0].toUpperCase()+g.slice(1),ce=0;ce<r.length;){if(x=r[ce],N=x?x+Q:g,N in p)return N;ce++}return i}var et=1;function Ge(){return et++}function be(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||e}var _e=/mobile|tablet|ip(ad|hone|od)|android/i,te="ontouchstart"in e,U=qe(e,"PointerEvent")!==i,Ce=te&&_e.test(navigator.userAgent),A="touch",Fe="pen",ht="mouse",rt="kinect",ot=25,Re=1,zt=2,Ye=4,pt=8,Kt=1,cs=2,us=4,y=8,w=16,R=cs|us,F=y|w,G=R|F,se=["x","y"],J=["clientX","clientY"];function W(p,g){var x=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(N){S(p.options.enable,[p])&&x.handler(N)},this.init()}W.prototype={handler:function(){},init:function(){this.evEl&&L(this.element,this.evEl,this.domHandler),this.evTarget&&L(this.target,this.evTarget,this.domHandler),this.evWin&&L(be(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&H(this.element,this.evEl,this.domHandler),this.evTarget&&H(this.target,this.evTarget,this.domHandler),this.evWin&&H(be(this.element),this.evWin,this.domHandler)}};function ee(p){var g,x=p.options.inputClass;return x?g=x:U?g=Ht:Ce?g=_s:te?g=Xa:g=X,new g(p,Z)}function Z(p,g,x){var N=x.pointers.length,Q=x.changedPointers.length,ce=g&Re&&N-Q===0,Le=g&(Ye|pt)&&N-Q===0;x.isFirst=!!ce,x.isFinal=!!Le,ce&&(p.session={}),x.eventType=g,le(p,x),p.emit("hammer.input",x),p.recognize(x),p.session.prevInput=x}function le(p,g){var x=p.session,N=g.pointers,Q=N.length;x.firstInput||(x.firstInput=Te(g)),Q>1&&!x.firstMultiple?x.firstMultiple=Te(g):Q===1&&(x.firstMultiple=!1);var ce=x.firstInput,Le=x.firstMultiple,Ot=Le?Le.center:ce.center,$t=g.center=De(N);g.timeStamp=u(),g.deltaTime=g.timeStamp-ce.timeStamp,g.angle=E(Ot,$t),g.distance=D(Ot,$t),pe(x,g),g.offsetDirection=Ze(g.deltaX,g.deltaY);var Ft=Be(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Ft.x,g.overallVelocityY=Ft.y,g.overallVelocity=c(Ft.x)>c(Ft.y)?Ft.x:Ft.y,g.scale=Le?B(Le.pointers,N):1,g.rotation=Le?k(Le.pointers,N):0,g.maxPointers=x.prevInput?g.pointers.length>x.prevInput.maxPointers?g.pointers.length:x.prevInput.maxPointers:g.pointers.length,de(x,g);var ws=p.element;fe(g.srcEvent.target,ws)&&(ws=g.srcEvent.target),g.target=ws}function pe(p,g){var x=g.center,N=p.offsetDelta||{},Q=p.prevDelta||{},ce=p.prevInput||{};(g.eventType===Re||ce.eventType===Ye)&&(Q=p.prevDelta={x:ce.deltaX||0,y:ce.deltaY||0},N=p.offsetDelta={x:x.x,y:x.y}),g.deltaX=Q.x+(x.x-N.x),g.deltaY=Q.y+(x.y-N.y)}function de(p,g){var x=p.lastInterval||g,N=g.timeStamp-x.timeStamp,Q,ce,Le,Ot;if(g.eventType!=pt&&(N>ot||x.velocity===i)){var $t=g.deltaX-x.deltaX,Ft=g.deltaY-x.deltaY,ws=Be(N,$t,Ft);ce=ws.x,Le=ws.y,Q=c(ws.x)>c(ws.y)?ws.x:ws.y,Ot=Ze($t,Ft),p.lastInterval=g}else Q=x.velocity,ce=x.velocityX,Le=x.velocityY,Ot=x.direction;g.velocity=Q,g.velocityX=ce,g.velocityY=Le,g.direction=Ot}function Te(p){for(var g=[],x=0;x<p.pointers.length;)g[x]={clientX:l(p.pointers[x].clientX),clientY:l(p.pointers[x].clientY)},x++;return{timeStamp:u(),pointers:g,center:De(g),deltaX:p.deltaX,deltaY:p.deltaY}}function De(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var x=0,N=0,Q=0;Q<g;)x+=p[Q].clientX,N+=p[Q].clientY,Q++;return{x:l(x/g),y:l(N/g)}}function Be(p,g,x){return{x:g/p||0,y:x/p||0}}function Ze(p,g){return p===g?Kt:c(p)>=c(g)?p<0?cs:us:g<0?y:w}function D(p,g,x){x||(x=se);var N=g[x[0]]-p[x[0]],Q=g[x[1]]-p[x[1]];return Math.sqrt(N*N+Q*Q)}function E(p,g,x){x||(x=se);var N=g[x[0]]-p[x[0]],Q=g[x[1]]-p[x[1]];return Math.atan2(Q,N)*180/Math.PI}function k(p,g){return E(g[1],g[0],J)+E(p[1],p[0],J)}function B(p,g){return D(g[0],g[1],J)/D(p[0],p[1],J)}var z={mousedown:Re,mousemove:zt,mouseup:Ye},q="mousedown",ie="mousemove mouseup";function X(){this.evEl=q,this.evWin=ie,this.pressed=!1,W.apply(this,arguments)}O(X,W,{handler:function(g){var x=z[g.type];x&Re&&g.button===0&&(this.pressed=!0),x&zt&&g.which!==1&&(x=Ye),this.pressed&&(x&Ye&&(this.pressed=!1),this.callback(this.manager,x,{pointers:[g],changedPointers:[g],pointerType:ht,srcEvent:g}))}});var ne={pointerdown:Re,pointermove:zt,pointerup:Ye,pointercancel:pt,pointerout:pt},Se={2:A,3:Fe,4:ht,5:rt},Ie="pointerdown",vt="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Ie="MSPointerDown",vt="MSPointerMove MSPointerUp MSPointerCancel");function Ht(){this.evEl=Ie,this.evWin=vt,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}O(Ht,W,{handler:function(g){var x=this.store,N=!1,Q=g.type.toLowerCase().replace("ms",""),ce=ne[Q],Le=Se[g.pointerType]||g.pointerType,Ot=Le==A,$t=Me(x,g.pointerId,"pointerId");ce&Re&&(g.button===0||Ot)?$t<0&&(x.push(g),$t=x.length-1):ce&(Ye|pt)&&(N=!0),!($t<0)&&(x[$t]=g,this.callback(this.manager,ce,{pointers:x,changedPointers:[g],pointerType:Le,srcEvent:g}),N&&x.splice($t,1))}});var st={touchstart:Re,touchmove:zt,touchend:Ye,touchcancel:pt},ss="touchstart",at="touchstart touchmove touchend touchcancel";function Tt(){this.evTarget=ss,this.evWin=at,this.started=!1,W.apply(this,arguments)}O(Tt,W,{handler:function(g){var x=st[g.type];if(x===Re&&(this.started=!0),!!this.started){var N=Qt.call(this,g,x);x&(Ye|pt)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,x,{pointers:N[0],changedPointers:N[1],pointerType:A,srcEvent:g})}}});function Qt(p,g){var x=Ae(p.touches),N=Ae(p.changedTouches);return g&(Ye|pt)&&(x=Ue(x.concat(N),"identifier",!0)),[x,N]}var On={touchstart:Re,touchmove:zt,touchend:Ye,touchcancel:pt},Oi="touchstart touchmove touchend touchcancel";function _s(){this.evTarget=Oi,this.targetIds={},W.apply(this,arguments)}O(_s,W,{handler:function(g){var x=On[g.type],N=Yn.call(this,g,x);N&&this.callback(this.manager,x,{pointers:N[0],changedPointers:N[1],pointerType:A,srcEvent:g})}});function Yn(p,g){var x=Ae(p.touches),N=this.targetIds;if(g&(Re|zt)&&x.length===1)return N[x[0].identifier]=!0,[x,x];var Q,ce,Le=Ae(p.changedTouches),Ot=[],$t=this.target;if(ce=x.filter(function(Ft){return fe(Ft.target,$t)}),g===Re)for(Q=0;Q<ce.length;)N[ce[Q].identifier]=!0,Q++;for(Q=0;Q<Le.length;)N[Le[Q].identifier]&&Ot.push(Le[Q]),g&(Ye|pt)&&delete N[Le[Q].identifier],Q++;if(Ot.length)return[Ue(ce.concat(Ot),"identifier",!0),Ot]}var Wr=2500,Wh=25;function Xa(){W.apply(this,arguments);var p=$(this.handler,this);this.touch=new _s(this.manager,p),this.mouse=new X(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}O(Xa,W,{handler:function(g,x,N){var Q=N.pointerType==A,ce=N.pointerType==ht;if(!(ce&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(Q)Bb.call(this,x,N);else if(ce&&jb.call(this,N))return;this.callback(g,x,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Bb(p,g){p&Re?(this.primaryTouch=g.changedPointers[0].identifier,Xh.call(this,g)):p&(Ye|pt)&&Xh.call(this,g)}function Xh(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var x={x:g.clientX,y:g.clientY};this.lastTouches.push(x);var N=this.lastTouches,Q=function(){var ce=N.indexOf(x);ce>-1&&N.splice(ce,1)};setTimeout(Q,Wr)}}function jb(p){for(var g=p.srcEvent.clientX,x=p.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var Q=this.lastTouches[N],ce=Math.abs(g-Q.x),Le=Math.abs(x-Q.y);if(ce<=Wh&&Le<=Wh)return!0}return!1}var Uh=qe(o.style,"touchAction"),qh=Uh!==i,Zh="compute",Kh="auto",Ua="manipulation",Pn="none",Pi="pan-x",Ii="pan-y",Xr=Hb();function qa(p,g){this.manager=p,this.set(g)}qa.prototype={set:function(p){p==Zh&&(p=this.compute()),qh&&this.manager.element.style&&Xr[p]&&(this.manager.element.style[Uh]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return d(this.manager.recognizers,function(g){S(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),Yb(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,x=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var N=this.actions,Q=ye(N,Pn)&&!Xr[Pn],ce=ye(N,Ii)&&!Xr[Ii],Le=ye(N,Pi)&&!Xr[Pi];if(Q){var Ot=p.pointers.length===1,$t=p.distance<2,Ft=p.deltaTime<250;if(Ot&&$t&&Ft)return}if(!(Le&&ce)&&(Q||ce&&x&R||Le&&x&F))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function Yb(p){if(ye(p,Pn))return Pn;var g=ye(p,Pi),x=ye(p,Ii);return g&&x?Pn:g||x?g?Pi:Ii:ye(p,Ua)?Ua:Kh}function Hb(){if(!qh)return!1;var p={},g=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(x){p[x]=g?e.CSS.supports("touch-action",x):!0}),p}var Ur=1,ns=2,Hn=4,on=8,Ls=on,Di=16,xs=32;function zs(p){this.options=v({},this.defaults,p||{}),this.id=Ge(),this.manager=null,this.options.enable=Y(this.options.enable,!0),this.state=Ur,this.simultaneous={},this.requireFail=[]}zs.prototype={defaults:{},set:function(p){return v(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(f(p,"recognizeWith",this))return this;var g=this.simultaneous;return p=qr(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=qr(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=qr(p,this),Me(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=qr(p,this);var g=Me(this.requireFail,p);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var g=this,x=this.state;function N(Q){g.manager.emit(Q,p)}x<on&&N(g.options.event+Qh(x)),N(g.options.event),p.additionalEvent&&N(p.additionalEvent),x>=on&&N(g.options.event+Qh(x))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=xs},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(xs|Ur)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!S(this.options.enable,[this,g])){this.reset(),this.state=xs;return}this.state&(Ls|Di|xs)&&(this.state=Ur),this.state=this.process(g),this.state&(ns|Hn|on|Di)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Qh(p){return p&Di?"cancel":p&on?"end":p&Hn?"move":p&ns?"start":""}function Jh(p){return p==w?"down":p==y?"up":p==cs?"left":p==us?"right":""}function qr(p,g){var x=g.manager;return x?x.get(p):p}function hs(){zs.apply(this,arguments)}O(hs,zs,{defaults:{pointers:1},attrTest:function(p){var g=this.options.pointers;return g===0||p.pointers.length===g},process:function(p){var g=this.state,x=p.eventType,N=g&(ns|Hn),Q=this.attrTest(p);return N&&(x&pt||!Q)?g|Di:N||Q?x&Ye?g|on:g&ns?g|Hn:ns:xs}});function Zr(){hs.apply(this,arguments),this.pX=null,this.pY=null}O(Zr,hs,{defaults:{event:"pan",threshold:10,pointers:1,direction:G},getTouchAction:function(){var p=this.options.direction,g=[];return p&R&&g.push(Ii),p&F&&g.push(Pi),g},directionTest:function(p){var g=this.options,x=!0,N=p.distance,Q=p.direction,ce=p.deltaX,Le=p.deltaY;return Q&g.direction||(g.direction&R?(Q=ce===0?Kt:ce<0?cs:us,x=ce!=this.pX,N=Math.abs(p.deltaX)):(Q=Le===0?Kt:Le<0?y:w,x=Le!=this.pY,N=Math.abs(p.deltaY))),p.direction=Q,x&&N>g.threshold&&Q&g.direction},attrTest:function(p){return hs.prototype.attrTest.call(this,p)&&(this.state&ns||!(this.state&ns)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Jh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Za(){hs.apply(this,arguments)}O(Za,hs,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&ns)},emit:function(p){if(p.scale!==1){var g=p.scale<1?"in":"out";p.additionalEvent=this.options.event+g}this._super.emit.call(this,p)}});function Ka(){zs.apply(this,arguments),this._timer=null,this._input=null}O(Ka,zs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Kh]},process:function(p){var g=this.options,x=p.pointers.length===g.pointers,N=p.distance<g.threshold,Q=p.deltaTime>g.time;if(this._input=p,!N||!x||p.eventType&(Ye|pt)&&!Q)this.reset();else if(p.eventType&Re)this.reset(),this._timer=h(function(){this.state=Ls,this.tryEmit()},g.time,this);else if(p.eventType&Ye)return Ls;return xs},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===Ls&&(p&&p.eventType&Ye?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Qa(){hs.apply(this,arguments)}O(Qa,hs,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&ns)}});function Ja(){hs.apply(this,arguments)}O(Ja,hs,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:R|F,pointers:1},getTouchAction:function(){return Zr.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,x;return g&(R|F)?x=p.overallVelocity:g&R?x=p.overallVelocityX:g&F&&(x=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(x)>this.options.velocity&&p.eventType&Ye},emit:function(p){var g=Jh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Kr(){zs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}O(Kr,zs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ua]},process:function(p){var g=this.options,x=p.pointers.length===g.pointers,N=p.distance<g.threshold,Q=p.deltaTime<g.time;if(this.reset(),p.eventType&Re&&this.count===0)return this.failTimeout();if(N&&Q&&x){if(p.eventType!=Ye)return this.failTimeout();var ce=this.pTime?p.timeStamp-this.pTime<g.interval:!0,Le=!this.pCenter||D(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!Le||!ce?this.count=1:this.count+=1,this._input=p;var Ot=this.count%g.taps;if(Ot===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Ls,this.tryEmit()},g.interval,this),ns):Ls}return xs},failTimeout:function(){return this._timer=h(function(){this.state=xs},this.options.interval,this),xs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ls&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Fs(p,g){return g=g||{},g.recognizers=Y(g.recognizers,Fs.defaults.preset),new el(p,g)}Fs.VERSION="2.0.7",Fs.defaults={domEvents:!1,touchAction:Zh,enable:!0,inputTarget:null,inputClass:null,preset:[[Qa,{enable:!1}],[Za,{enable:!1},["rotate"]],[Ja,{direction:R}],[Zr,{direction:R},["swipe"]],[Kr],[Kr,{event:"doubletap",taps:2},["tap"]],[Ka]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Wb=1,ed=2;function el(p,g){this.options=v({},Fs.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=ee(this),this.touchAction=new qa(this,this.options.touchAction),td(this,!0),d(this.options.recognizers,function(x){var N=this.add(new x[0](x[1]));x[2]&&N.recognizeWith(x[2]),x[3]&&N.requireFailure(x[3])},this)}el.prototype={set:function(p){return v(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?ed:Wb},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var x,N=this.recognizers,Q=g.curRecognizer;(!Q||Q&&Q.state&Ls)&&(Q=g.curRecognizer=null);for(var ce=0;ce<N.length;)x=N[ce],g.stopped!==ed&&(!Q||x==Q||x.canRecognizeWith(Q))?x.recognize(p):x.reset(),!Q&&x.state&(ns|Hn|on)&&(Q=g.curRecognizer=x),ce++}},get:function(p){if(p instanceof zs)return p;for(var g=this.recognizers,x=0;x<g.length;x++)if(g[x].options.event==p)return g[x];return null},add:function(p){if(f(p,"add",this))return this;var g=this.get(p.options.event);return g&&this.remove(g),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(f(p,"remove",this))return this;if(p=this.get(p),p){var g=this.recognizers,x=Me(g,p);x!==-1&&(g.splice(x,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var x=this.handlers;return d(ge(p),function(N){x[N]=x[N]||[],x[N].push(g)}),this}},off:function(p,g){if(p!==i){var x=this.handlers;return d(ge(p),function(N){g?x[N]&&x[N].splice(Me(x[N],g),1):delete x[N]}),this}},emit:function(p,g){this.options.domEvents&&Xb(p,g);var x=this.handlers[p]&&this.handlers[p].slice();if(!(!x||!x.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var N=0;N<x.length;)x[N](g),N++}},destroy:function(){this.element&&td(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function td(p,g){var x=p.element;if(x.style){var N;d(p.options.cssProps,function(Q,ce){N=qe(x.style,ce),g?(p.oldCssProps[N]=x.style[N],x.style[N]=Q):x.style[N]=p.oldCssProps[N]||""}),g||(p.oldCssProps={})}}function Xb(p,g){var x=t.createEvent("Event");x.initEvent(p,!0,!0),x.gesture=g,g.target.dispatchEvent(x)}v(Fs,{INPUT_START:Re,INPUT_MOVE:zt,INPUT_END:Ye,INPUT_CANCEL:pt,STATE_POSSIBLE:Ur,STATE_BEGAN:ns,STATE_CHANGED:Hn,STATE_ENDED:on,STATE_RECOGNIZED:Ls,STATE_CANCELLED:Di,STATE_FAILED:xs,DIRECTION_NONE:Kt,DIRECTION_LEFT:cs,DIRECTION_RIGHT:us,DIRECTION_UP:y,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:R,DIRECTION_VERTICAL:F,DIRECTION_ALL:G,Manager:el,Input:W,TouchAction:qa,TouchInput:_s,MouseInput:X,PointerEventInput:Ht,TouchMouseInput:Xa,SingleTouchInput:Tt,Recognizer:zs,AttrRecognizer:hs,Tap:Kr,Pan:Zr,Swipe:Ja,Pinch:Za,Rotate:Qa,Press:Ka,on:L,off:H,each:d,merge:C,extend:b,assign:v,inherit:O,bindFn:$,prefixed:qe});var Ub=typeof e<"u"?e:typeof self<"u"?self:{};Ub.Hammer=Fs,typeof i=="function"&&i.amd?i(function(){return Fs}):s.exports?s.exports=Fs:e[n]=Fs})(window,document,"Hammer")})(Xu);var kg=Xu.exports;const Eg=Sg(kg);class Dt extends ut{radius;constructor(e){super(e),this.radius=e?.radius||0}getBoundingClientRect(){return new Ct({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return this.radius?[["M",this.x,this.y-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.x,this.y]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.radius===e.radius&&this.mass===e.mass}midPointBtw(e){return{x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2}}length(){return pa(this.x,this.y)}scalar(e){return this.x*=e,this.y*=e,this}normalize(e=1){const t=this.length();if(t){const n=e/t;this.scalar(n)}return this}clamp(e){const t=this.length();return t&&t>e&&this.scalar(e/t),this}cross(e){const t=this.x,n=this.y;return{x:n*e.x-t*e.y,y:t*e.y-n*e.x}}multiply(e){return{x:this.x*e.x,y:this.y*e.y}}div(e){return{x:this.x/e.x,y:this.y/e.y}}add(e){return{x:this.x+e.x,y:this.y+e.y}}sub(e){return{x:this.x-e.x,y:this.y-e.y}}dot(e){return this.x*e.x+this.y*e.y}reflect(e){const t=this.dot(e);return{x:this.x-2*t*e.x,y:this.y-2*t*e.y}}clone(e){return new Dt({x:e.x,y:e.y,radius:e.radius,mass:e.mass})}checkCollision(e){const t=e.x-this.x,n=e.y-this.y;if(Math.sqrt(t*t+n*n)<this.radius+e.radius){const r=Math.atan2(n,t),o={x:0,y:0},a=vs(-r,t,n),l=vs(-r,this.vx,this.vy),c=vs(-r,e.vx,e.vy),u=l.x-c.x;l.x=((this.mass-e.mass)*l.x+2*e.mass*c.x)/(this.mass+e.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+e.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const d=vs(r,o.x,o.y),m=vs(r,a.x,a.y);e.x=this.x+m.x,e.y=this.y+m.y,this.x=this.x+d.x,this.y=this.y+d.y;const v=vs(r,l.x,l.y),b=vs(r,c.x,c.y);this.vx=v.x,this.vy=v.y,e.vx=b.x,e.vy=b.y}}checkWalls(e,t){const n=t?.bounce??-1,i=e.x,r=e.y,o=e.x+e.width,a=e.y+e.height;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=n):this.x-this.radius<i&&(this.x=i+this.radius,this.vx*=n),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=n):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=n)}static comboMove(e,t,n){e.forEach(r=>{r.nextFrame(),t&&r.checkWalls(t,n)});const i=e.length;for(let r=0,o=i-1;r<o;r++){const a=e[r];for(let l,c=r+1;c<i;c++)l=e[c],a.checkCollision(l)}}}class Tg{constructor(){}static getFormatKeyNames(e){const t=yg(),n=[];return e.ctrl&&n.push(t?"Cmd":"Ctrl"),e.shift&&n.push("Shift"),e.alt&&n.push("Alt"),typeof e.key=="string"?n.push(Uo(e.key)):Array.isArray(e.key)&&(e.key.map(i=>Uo(i)),n.push(...e.key)),n}static matchKeyScheme(e,t){const n=e.ctrl??!1,i=e.shift??!1,r=e.alt??!1;if(e.exact)return(n===t.metaKey||n===t.ctrlKey)&&i===t.shiftKey&&r===t.altKey;const o=[];return n&&o.push(n===t.metaKey||n===t.ctrlKey),i&&o.push(i===t.shiftKey),r&&o.push(r===t.altKey),o.every(a=>a)}static on(e,t){if(e?.key===void 0||e?.key===null)return t;const n=e?.target??window;let i=!1;const r=this.getFormatKeyNames(e),o=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&r.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(e,a)){a.preventDefault();const l=t(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),n.removeEventListener("keyup",c)};n.addEventListener("keyup",c)}};return t.title=e?.title??"",t.formatedKeyNames=r,t.pause=()=>i=!0,t.restart=()=>i=!1,t.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),t}}let Jt;const Ln=[];class ft extends gr{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(e=document.documentElement,t=!0){super(),this.container=e,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight;const n=K.getStyle(this.container,"position");K.setStyle(this.container,{position:n=="static"?"relative":n}),this.hammer=new Eg(this.container),this.mousePoint=new Dt({x:0,y:0}),t&&this.start()}emitDebounce=om((e,...t)=>super.emit(e,...t),50);emit(e,...t){switch(e){case"panLeft":case"panRight":this.emitDebounce(e,...t);break;default:super.emit(e,...t);break}return this}static get page(){if(Jt)return Jt;Jt=new ft,window.addEventListener("hashchange",()=>{Jt.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Jt.emit("popstate")}),Jt.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{ug().then(t=>hg(t[0])).then(t=>{Jt.emit("openFile",t)}).catch(t=>{Jt.emit("openFileError",t)})}),Jt.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>Ln.forEach(t=>t());return Jt.registerGlobalScrollChange=t=>{Ln.push(t),Ln.length==1&&document.addEventListener("scroll",e)},Jt.removeGlobalScrollChange=t=>{const n=Ln.findIndex(i=>i==t);n>=0&&(Ln.splice(n,1),Ln.length==0&&document.removeEventListener("scroll",e))},Jt}start(){this.registerMouseEventListeners(),this.registerInputEventListeners(),this.registerTransitionEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventBusRemoves(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParent()}restart(){this.destroy(),this.start()}destroy(){this.domEventBusRemoves.forEach(e=>e()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(e){this.domEventBusRemoves.push(e)}setMousePoint(e){const t=gg(this.container,e);return this.mousePoint.x=t.x,this.mousePoint.y=t.y,t}registerMouseEventListeners(){const e=A=>{this.emit("mouseDown",A)},t=A=>{this.emit("mouseUp",A)},n=A=>{this.emit("mouseMove",A)},i=A=>{this.emit("mouseOver",A)},r=A=>{this.emit("mouseOut",A)},o=A=>{this.emit("mouseClick",A)},a=A=>{this.emit("mouseDoubleClick",A)},l=A=>{this.emit("mouseWheel",A)},c=A=>{this.emit("mouseContextMenu",A)},u=A=>{this.emit("touchStart",A)},h=A=>{this.emit("touchEnd",A)},f=A=>{this.emit("touchCancel",A)},d=A=>{this.emit("touchMove",A)},m=A=>{this.emit("pointerDown",A)},v=A=>{this.emit("pointerUp",A)},b=A=>{this.emit("pointerCancel",A)},C=A=>{this.emit("pointerMove",A)},O=A=>{this.emit("pan",A)},$=A=>{this.emit("panStart",A)},S=A=>{this.emit("panMove",A)},Y=A=>{this.emit("panEnd",A)},L=A=>{this.emit("panCancel",A)},H=A=>{this.emit("panLeft",A)},fe=A=>{this.emit("panRight",A)},ye=A=>{this.emit("panUp",A)},ge=A=>{this.emit("panDown",A)},Me=A=>{this.emit("pinch",A)},Ae=A=>{this.emit("press",A)},Ue=A=>{this.emit("rotate",A)},qe=A=>{this.emit("swipe",A)},et=A=>{this.emit("swipeLeft",A)},Ge=A=>{this.emit("swipeRight",A)},be=A=>{this.emit("swipeUp",A)},_e=A=>{this.emit("swipeDown",A)},te=A=>{this.emit("tap",A)},U=A=>{!A.target||this.container==A.target||this.container.contains(A.target)||this.emit("tapOutSide",A)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",t),this.container.addEventListener("mousemove",n),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",r),this.container.addEventListener("click",o),this.container.addEventListener("dblclick",a),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",f),this.container.addEventListener("touchmove",d),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",v),this.container.addEventListener("pointercancel",b),this.container.addEventListener("pointermove",C),this.hammer.on("pan",O),this.hammer.on("panstart",$),this.hammer.on("panmove",S),this.hammer.on("panend",Y),this.hammer.on("pancancel",L),this.hammer.on("panleft",H),this.hammer.on("panright",fe),this.hammer.on("panup",ye),this.hammer.on("pandown",ge),this.hammer.on("pinch",Me),this.hammer.on("press",Ae),this.hammer.on("rotate",Ue),this.hammer.on("swipe",qe),this.hammer.on("swipeleft",et),this.hammer.on("swiperight",Ge),this.hammer.on("swipeup",be),this.hammer.on("swipedown",_e),this.hammer.on("tap",te),document.addEventListener("pointerdown",U,!1);const Ce=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",t),this.container.removeEventListener("mousemove",n),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",r),this.container.removeEventListener("click",o),this.container.removeEventListener("dblclick",a),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",f),this.container.removeEventListener("touchmove",d),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",v),this.container.removeEventListener("pointercancel",b),this.container.removeEventListener("pointermove",C),this.hammer.off("pan",O),this.hammer.off("panstart",$),this.hammer.off("panmove",S),this.hammer.off("panend",Y),this.hammer.off("pancancel",L),this.hammer.off("panleft",H),this.hammer.off("panright",fe),this.hammer.off("panup",ye),this.hammer.off("pandown",ge),this.hammer.off("pinch",Me),this.hammer.off("press",Ae),this.hammer.off("rotate",Ue),this.hammer.off("swipe",qe),this.hammer.off("swipeleft",et),this.hammer.off("swiperight",Ge),this.hammer.off("swipeup",be),this.hammer.off("swipedown",_e),this.hammer.off("tap",te),document.removeEventListener("pointerdown",U,!1),document.removeEventListener("touchstart",U,!1),document.removeEventListener("mousedown",U,!1)};return this.addDOMEventBusRemoves(Ce),Ce}registerInputEventListeners(){const e=l=>{this.emit("inputChange",l,this.container.files)},t=l=>{this.emit("dragstart",l)},n=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},i=l=>{this.emit("dragenter",l)},r=l=>{this.emit("dragend",l)},o=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer,this.emit("drop",l,l.dataTransfer?.files)};this.container instanceof HTMLInputElement&&this.container.addEventListener("change",e,!1),this.container.addEventListener("dragstart",t,!1),this.container.addEventListener("dragover",n,!1),this.container.addEventListener("dragenter",i,!1),this.container.addEventListener("dragend",r,!1),this.container.addEventListener("drop",o,!1);const a=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",e,!1),this.container.removeEventListener("dragstart",t,!1),this.container.removeEventListener("dragover",n,!1),this.container.removeEventListener("dragenter",i,!1),this.container.removeEventListener("dragend",r,!1),this.container.removeEventListener("drop",o,!1)};return this.addDOMEventBusRemoves(a),a}registerTransitionEventListeners(){const e=n=>{this.emit("transitionend",n)};this.container.addEventListener("transitionend",e);const t=()=>{this.container.removeEventListener("transitionend",e)};return this.addDOMEventBusRemoves(t),t}registerKeyDown(e,t,n){const i=Tg.on(e,o=>(t(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(r),r}registerResizeObserver(){const e=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});e.observe(this.container);const t=()=>{e.unobserve(this.container)};return this.addDOMEventBusRemoves(t),t}registerMatchMediaChange(e){let t="";switch(e){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=e;break}const n=r=>{this.emit(t,r.matches)};window.matchMedia(e).addEventListener("change",n);const i=()=>{window.matchMedia(e).removeEventListener("change",n)};return this.addDOMEventBusRemoves(i),i}registerElementDisplayInParent(e){const t={threshold:e?.threshold||.5,root:e?.parentElement},n=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=t.threshold?this.emit("showInParent"):this.emit("showOffParent")},t);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addDOMEventBusRemoves(i),i}registerPullDownRefresh(e){const t=e?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-n,i>0&&i<t&&this.emit("pullDownIng",i)},end:()=>{i>=t&&this.emit("pullDown")}})}registerPullUpLoading(e){const t=e?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=n-this.mousePoint.y,i>0&&i<t&&this.emit("pullUpIng",i)},end:()=>{i>=t&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const t=o=>{this.container.setPointerCapture(o.pointerId),e?.start?.(o)},n=o=>{e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("pointerDown",t),this.on("pointerUp",n),this.on("pointerCancel",n),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",t),this.off("pointerUp",n),this.off("pointerCancel",n),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(r),r}captureMoveUseMouse(e){const t=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",n,!1),e?.start?.(o)},n=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",n,!1),e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("mouseDown",t);const r=()=>{this.off("mouseDown",t)};return this.addDOMEventBusRemoves(r),r}captureMoveUseTouch(e){const t=o=>{o.preventDefault(),e?.start?.(o)},n=o=>{e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("touchStart",t),this.on("touchEnd",n),this.on("touchCancel",n),this.on("touchMove",i);const r=()=>{this.off("touchStart",t),this.off("touchEnd",n),this.off("touchCancel",n),this.off("touchMove",i)};return this.addDOMEventBusRemoves(r),r}static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class ba{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",t=>{t.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const t=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),t.width="5",t.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(t),t.contentDocument?.body.append(n),setTimeout(()=>{t.width="15"}),setTimeout(()=>{t.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(t=>{e.play().then(()=>{e.autoplay=!0,t(!0)}).catch(()=>{ba.setAutoPlayWhenClick(e),t(!1)})})}static setAutoPlayWhenClick(e){function t(){e.autoplay=!0,e.play(),document.removeEventListener("click",t),document.removeEventListener("touchend",t)}document.addEventListener("click",t),document.addEventListener("touchend",t)}}class Og extends gr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=Qc(this.source);if(e===0){this.emit("finish");return}let t,n,i=Jc(this.source,0);for(let r=1;r<e;r++)t=n,n=i,i=Jc(this.source,r),this.raw+=n,n&&this.step(n,i,t);i&&this.step(i,void 0,n),this.emit("finish")}step(e,t,n){e==`
|
|
54
|
-
`&&this.emit("newline"),this.act(e,t,n)}act(e,t,n){switch(this.mode){case"text":switch(e){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=e,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=e;break}break;case"entity":$s("whitespace",e)?(this.textchunk+=K.entity2text(this.entity),this.mode="text"):e==";"?(this.textchunk+=K.entity2text(this.entity+e),this.mode="text"):this.entity+=e;break;case"special":if(n=="!"&&e=="-"&&t=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&e=="["){this.mode="cdata",this.textchunk="";break}if(e==">"||e=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=e;break;case"cdata":if(n=="]"&&e=="]"&&t==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,t,n)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":t==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&n=="-"&&t==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):e=="eof"?this.emit("comment",this.textchunk):this.textchunk+=e;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(e=="?"&&t==">"){this.mode="declaration end";break}e=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=e;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(e=="eof"){this.emit("text","<");break}if(!$s("whitespace",e)){if(this.mode="tag name",e=="/"){this.mode="close tag name start";break}else if(e=="!"){this.mode="special",this.textchunk="";break}else if(e=="?"){this.mode="declaration";break}this.act(e,t,n)}break;case"close tag name start":$s("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,t,n));break;case"close tag name":if($s("whitespace",e))this.tagname=this.nodename;else switch(e){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=e);break}break;case"tag name":if($s("whitespace",e))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(e){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=t,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=e;break}break;case"attr start":$s("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,t,n));break;case"attr":if($s("whitespace",e)||e=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(e){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=e;break}break;case"attr value start":if(!$s("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,t,n)}break;case"attr value":if($s("whitespace",e)&&!this.quote)this.mode="attr start";else if(e==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(e){case'"':case"'":this.quote==e&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=e;break}break}}}function Uu(s,e,t){if(typeof e<"u")window.localStorage.setItem(s,JSON.stringify({value:e,expires:typeof t=="number"?t:-1}));else{const n=window.localStorage.getItem(s);try{const i=JSON.parse(n||"");return"expires"in i&&parseInt(i.expires)>=0&&new Date().getTime()>parseInt(i.expires)?void 0:i.value||void 0}catch{return n||void 0}}}ft.page.on("matchMediaChangePrefersColorSchemeDark",s=>{_a(s?"dark":"light")}),Pg();function _a(s){Uu("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function Pg(){const s=Uu("colorScheme");if(s=="dark"||s=="light")return _a(s),s;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return _a(e),e}}const j={safeAreaTop:K.getCSSVar("--safe-area-inset-top"),safeAreaRight:K.getCSSVar("--safe-area-inset-right"),safeAreaBottom:K.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:K.getCSSVar("--safe-area-inset-left"),colorPrimary:K.getCSSVar("--color-primary")||"#5078f0",colorRed:K.getCSSVar("--color-red")||"#ff5050",colorOrange:K.getCSSVar("--color-orange")||"#fa8c00",colorYellow:K.getCSSVar("--color-yellow")||"#fadc32",colorGreen:K.getCSSVar("--color-green")||"#00c878",colorBlue:K.getCSSVar("--color-blue")||"#00b4fa",colorPurple:K.getCSSVar("--color-purple")||"#6464fa",colorBlack:K.getCSSVar("--color-black")||"#001428",colorGray00:K.getCSSVar("--color-gray-00")||"#000000",colorGray33:K.getCSSVar("--color-gray-33")||"#333333",colorGray66:K.getCSSVar("--color-gray-66")||"#666666",colorGray99:K.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:K.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:K.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:K.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:K.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:K.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:K.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:K.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:K.getCSSVar("--font-line-height")||"1,4",fontSize32:K.getCSSVar("--font-size-32")||"32px",fontSize24:K.getCSSVar("--font-size-24")||"24px",fontSize20:K.getCSSVar("--font-size-20")||"20px",fontSize18:K.getCSSVar("--font-size-18")||"18px",fontSize16:K.getCSSVar("--font-size-16")||"16px",fontSize14:K.getCSSVar("--font-size-14")||"14px",fontSize12:K.getCSSVar("--font-size-12")||"12px",fontSize11:K.getCSSVar("--font-size-11")||"11px",gap4:K.getCSSVar("--gap-4")||"4px",gap8:K.getCSSVar("--gap-8")||"8px",gap12:K.getCSSVar("--gap-12")||"12px",gap16:K.getCSSVar("--gap-16")||"16px",gap20:K.getCSSVar("--gap-20")||"20px",gap40:K.getCSSVar("--gap-40")||"40px",height44:K.getCSSVar("--height-44")||"44px",height32:K.getCSSVar("--height-32")||"32px",borderRadius:K.getCSSVar("--border-radius")||"4px"},Ig=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function tn(s,e){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(Ut(s.r,0,255)),s.g=Math.round(Ut(s.g,0,255)),s.b=Math.round(Ut(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof e=="number"?e:s.a:s.a=typeof e=="number"?e:1,s.a=Ut(s.a,0,1),s;const t={r:0,g:0,b:0,a:1};let n=-1;if(typeof s=="number")n=s;else if(typeof s=="string")if(s[0].toLowerCase()==="r"){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);i&&(n=(parseInt(i[1])<<16)+(parseInt(i[2])<<8)+parseInt(i[3]),i[4]&&(t.a=Rt(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(t.a=Rt(parseInt(s.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+s);return n>=0&&(t.r=n>>16&255,t.g=n>>8&255,t.b=n&255),typeof e=="number"&&(t.a=e),t.a=Ut(t.a,0,1),t}function Dg(s,e=!1){let t=tn(s);return e?t=tn(t.r*.299+t.g*.587+t.b*.114>186?"#000000":"#FFFFFF"):(t.r=255-t.r,t.g=255-t.g,t.b=255-t.b),t}function xi(s,e){const t=tn(s,e);return t.a===1?`rgb(${t.r},${t.g},${t.b})`:`rgba(${t.r},${t.g},${t.b},${t.a})`}function Or(s){return Qp(s.toString(16),2,"0","left")}function sn(s,e){const t=tn(s,e);let n=`#${Or(t.r)}${Or(t.g)}${Or(t.b)}`;return t.a===1?n:n+`${Or(Math.ceil(t.a*255))}`}function Ng(s,e=!1){return sn(Dg(s,e))}const $g=()=>Math.random()*16777215,Vt=()=>sn($g());function Rs(s,e){const t=tn(s);return t.r==0&&(t.r=32),t.g==0&&(t.g=32),t.b==0&&(t.b=32),t.r=t.r*(100+e)/100,t.g=t.g*(100+e)/100,t.b=t.b*(100+e)/100,t.r=Math.round(Ut(t.r,0,255)),t.g=Math.round(Ut(t.g,0,255)),t.b=Math.round(Ut(t.b,0,255)),sn(t)}function qu(s,e,t){try{const n=tn(s),i=tn(e);return sn({r:(i.r-n.r)*t+n.r,g:(i.g-n.g)*t+n.g,b:(i.b-n.b)*t+n.b,a:(i.a-n.a)*t+n.a})}catch{return e}}function zn(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()}(function(){let s=zn();window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const t=zn(),n=Math.max(0,16-(t-s)),i=window.setTimeout(function(){e(t+n)},n);return s=t+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Mg=s=>{let e=!1;return window.requestAnimationFrame(function t(n){s(n),e||window.requestAnimationFrame(t)}),()=>{e=!0}};class Ag{id=0;cbs={};cancelAnimateCycle;constructor(){}get length(){return Object.keys(this.cbs).length}run(e){this.cbs[this.id++]=e,!this.cancelAnimateCycle&&(this.cancelAnimateCycle=Mg(t=>{const n=[];for(let i in this.cbs)this.cbs[i](t)===!1&&n.push(parseInt(i));for(let i of n)delete this.cbs[i];!this.length&&this.cancelAnimateCycle&&(this.cancelAnimateCycle(),this.cancelAnimateCycle=void 0)}))}runAccurateSetTimeout(e,t=0){let n=!1,i=zn();return this.run(r=>n?!1:r-i>=t?(e(),!1):!0),()=>{n=!0}}}const We=new Ag,Pr=new Map;async function Zu(s){return new Promise((e,t)=>{Rg(s,(n,i)=>n?t(n):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const Rg=(s,e)=>{if(Pr.has(s))return e(null,Pr.get(s));const t=new Image;t.onload=function(){Pr.set(s,{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height,element:t}),e(null,Pr.get(s))},t.onerror=function(n){e(n,null)},t.src=s};class ls extends ut{shapes=[];renderGroup;constructor(e){super(e),this.renderGroup=new ju({x:this.x,y:this.y})}setAttrs(e,t){this.shapes.forEach(n=>{mr(e)?n.setAttr(e):typeof e=="string"&&t&&n.setAttr(e,t)})}addShape(e){this.shapes.push(...(Array.isArray(e)?e:[e]).map(t=>(t.shapeGroup=this,t.renderGroup=this.renderGroup,this.renderGroup.register(t),t)))}toSVGPathData(){return this.shapes.reduce((e,t,n)=>{const i=t.toSVGPathData();return Array.isArray(i[0])?e.push(...i):e.push(i),e},[])}toCanvasContext(e){}frameUpdate(){super.frameUpdate()}groupTranslate(e,t){this.x+=e,this.y+=t,this.renderGroup.x=this.x,this.renderGroup.y=this.y,this.shapes.forEach(n=>{n.x+=e,n.y+=t})}groupTranslateTo(e,t){this.groupTranslate(e-this.x,t-this.y)}groupRotate(e){this.degree+=e,this.shapes.forEach(t=>{t.degree+=e})}groupRotateTo(e){this.groupRotate(e-this.degree)}groupScaleTo(e){this.scalexOnOrigin=e,this.scaleyOnOrigin=e,this.shapes.forEach(t=>{t.scalexOnOrigin=e,t.scaleyOnOrigin=e})}}const Vg=ls;let wi;typeof self>"u"&&typeof process<"u"&&process.hrtime?wi=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?wi=self.performance.now.bind(self.performance):Date.now!==void 0?wi=Date.now:wi=function(){return new Date().getTime()};const Fn=wi;class Ci{static _nextId=0;static nextId(){return Ci._nextId++}}const Ir={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 e=2.5949095;return(s*=2)<1?.5*(s*s*((e+1)*s-e)):.5*((s-=2)*s*((e+1)*s+e)+2)}},Bounce:{In:function(s){return 1-Ir.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?Ir.Bounce.In(s*2)*.5:Ir.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(e){return e**s},Out:function(e){return 1-(1-e)**s},InOut:function(e){return e<.5?(e*2)**s/2:(1-(2-e*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(e){return Math.floor(e*s)/s}},createNoisyEasing:function(s,e=.1){const t=1-e;return function(n){return e*Math.random()+t*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},xa=Ir,Si={Utils:{Linear:function(s,e,t){return(e-s)*t+s},Factorial:function(){const s=[1];return function(e){let t=1;if(s[e])return s[e];for(let n=e;n>1;n--)t*=n;return s[e]=t,t}}(),Bernstein:function(s,e){const t=Si.Utils.Factorial;return t(s)/t(e)/t(s-e)},CatmullRom:function(s,e,t,n,i){const r=(t-s)*.5,o=(n-e)*.5,a=i*i,l=i*a;return(2*e-2*t+r+o)*l+(-3*e+3*t-2*r-o)*a+r*i+e}},Linear:function(s,e){const t=s.length-1,n=t*e,i=Math.floor(n),r=Si.Utils.Linear;return e<0?r(s[0],s[1],n):e>1?r(s[t],s[t-1],t-n):r(s[i],s[i+1>t?t:i+1],n-i)},Bezier:function(s,e){let t=0;const n=s.length-1,i=Math.pow,r=Si.Utils.Bernstein;for(let o=0;o<=n;o++)t+=i(1-e,n-o)*i(e,o)*s[o]*r(n,o);return t},CatmullRom:function(s,e){const t=s.length-1;let n=t*e,i=Math.floor(n);const r=Si.Utils.CatmullRom;return s[0]===s[t]?(e<0&&(i=Math.floor(n=t*(1+e))),r(s[(i-1+t)%t],s[i],s[(i+1)%t],s[(i+2)%t],n-i)):e<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):e>1?s[t]-(r(s[t],s[t],s[t-1],s[t-1],n-t)-s[t]):r(s[i?i-1:0],s[i],s[t<i+1?t:i+1],s[t<i+2?t:i+2],n-i)}},wa=Si;class Ku{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=Fn(),t=!1){let n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!t;r&&r.update(e,o)===!1&&!t&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const es=new Ku;class Qu{constructor(e,t=es){this._object=e,this._group=t}_id=Ci.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=xa.Linear.None;_interpolationFunction=wa.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,t){return this._valuesEnd=Object.create(e),t!==void 0&&(this._durationTime=t),this}duration(e=1e3){return this._durationTime=e,this}start(e=Fn()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const t in this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,t,n,i){for(const r in n){const o=e[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){t[r]=a?[]:{};for(const u in o)t[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,t[r],n[r],i[r])}else typeof t[r]>"u"&&(t[r]=o),a||(t[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=t[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=Fn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Fn()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this}group(e=es){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=xa.Linear.None){return this._easingFunction=e,this}interpolation(e=wa.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=Fn(),t=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>r)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(e-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,t,n,i){for(const r in n){if(t[r]===void 0)continue;const o=t[r]||0;let a=n[r];const l=Array.isArray(e[r]),c=Array.isArray(a);!l&&c?e[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(e[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(e[r]=o+(a-o)*i))}}_handleRelativeValue(e,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?e+parseFloat(t):parseFloat(t)}_swapEndStartRepeatValues(e){const t=this._valuesStartRepeat[e],n=this._valuesEnd[e];typeof n=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(n):this._valuesStartRepeat[e]=n,this._valuesEnd[e]=t}}const Lg=Qu,zg=Ci.nextId,Fg=es.getAll.bind(es),Gg=es.removeAll.bind(es),Bg=es.add.bind(es),jg=es.remove.bind(es),Yg=es.update.bind(es),he={now:Fn,Sequence:Ci,Easing:xa,Interpolation:wa,Group:Ku,Tween:Lg,nextId:zg,getAll:Fg,removeAll:Gg,add:Bg,remove:jg,update:Yg};function Hg(s){switch(s){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const Wg={attributeName:["display"],values:[["block","block"]],immediate:!1},qt={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Je{objects=[];animateObjects=[];currentAnimateName;constructor(){}fromDOM(e){return this.objects.forEach(t=>{t.app.destroy()}),this.objects=[],(Array.isArray(e)?e:[e]).forEach(t=>{this.objects.push({el:t,app:new ft(t),originAttrs:{}})}),this}static toTween(e,t,n){const i=n?.onStart||(()=>{}),r=n?.onUpdate||(()=>{}),o=n?.onComplete||(()=>{}),a=n?.duration||1e3,l=n?.delay||0,c=n?.easeFunction||he.Easing.Linear.None,u=n?.repeat||0,h=n?.yoyo||!1,f=new he.Tween(e).to(t,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(i).onUpdate((d,m)=>{r(d,m)}).onComplete(o);return n?.interpolationFunction&&f.interpolation(n.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),We.run(()=>{const m=f.update(d?.());if(n?.precision){let v=!0;for(let b in e)fi(e[b],t[b],n.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenGroup(e,t){if(e instanceof Qu)return n=>{e.start(),t?.onGroupStart?.(),We.run(()=>{const i=he.update(n?.());return i?t?.onGroupUpdate?.():t?.onGroupComplete?.(),i})};{const n=new he.Group;return e.forEach(i=>{n.add(i)}),i=>{e.forEach(r=>r.start()),t?.onGroupStart?.(),We.run(()=>{const r=n.update(i?.());return r?t?.onGroupUpdate?.():t?.onGroupComplete?.(),r})}}}static toTweenCSS(e,t,n,i){K.add3DSupport(e);const r=i?.onUpdate||(()=>{});return Je.toTween(t,n,Object.assign(i||{},{onUpdate:(o,a)=>{const l=K.convertAttrs(e,o);K.setStyle(e,l),r(o,a)}}))}addAnimateObject(e=Wg,t=qt,n=0,i=!1){const r=t.easeName||"linear",o=t.dur||300,a=t.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(Hg(r))});const c=this.objects[n];return this.animateObjects=i?[]:this.animateObjects,this.animateObjects.push({el:c.el,app:c.app,originAttrs:c.originAttrs,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,easeName:r,begin:t.begin||0,dur:o,repeatCount:t.repeatCount||1,direction:t.direction||"normal",fill:t.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>o*u),keySplines:l,calcMode:t.calcMode||"linear",onComplete:t.onComplete||(()=>{})}),this}resetAnimateObjects(e,t,n,i,r=qt,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=Ut(o,0,h);let f=o-1;f=Ut(f,0,h);let d=o+1;d=Ut(d,0,h);const m=this.objects[o],v=this.objects[f],b=this.objects[d];if(v&&f!==o){const C=e(v);C&&(this.addAnimateObject(C,r,f,a),a=!1,l=!0)}if(m){const C=t(m);C&&(this.addAnimateObject(C,r,o,a),a=!1,c=!0)}if(b&&d!==o){const C=n(b);C&&(this.addAnimateObject(C,r,d,a),a=!1,u=!0)}this.objects.forEach((C,O)=>{if(!(O==f&&l||O==o&&c||O==d&&u)){const $=i(C);$&&(this.addAnimateObject($,r,O,a),a=!1)}})}toCSS(e,...t){if(this.objects.length==0)return;this.currentAnimateName=e,this[e](...t),K.add3DSupport(this.objects[0].el),this.objects.forEach((r,o)=>{K.setStyle(r.el,{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let n=0;const i=()=>{this.animateObjects.forEach((r,o)=>{let a=[],l=[];Array.isArray(r.attributeName)?(a=r.attributeName,l=r.values):r.attributeName&&(a=[r.attributeName],l=[r.values]);const c=r.keyTimes.length;let u=r.begin;r.keyTimes.forEach((h,f)=>{const d={};a.forEach((v,b)=>{const C=l[b][r.direction=="reverse"?c-1-f:f];d[v]=C});const m=K.convertAttrs(r.el,d,r.originAttrs);f==0||r.immediate?K.setStyle(r.el,Object.assign(m,{transition:"none"})):(We.runAccurateSetTimeout(()=>{K.setStyle(r.el,Object.assign(m,{transition:`all ${r.realKeyTimes[f]}ms cubic-bezier(${r.keySplines[f-1].join(",")})`}))},u),u+=r.realKeyTimes[f])}),We.runAccurateSetTimeout(()=>{r.fill==="remove"&&K.setStyle(r.el,r.originAttrs||{}),o==this.animateObjects.length-1&&(r.onComplete?.(),this.currentAnimateName==e&&(r.repeatCount=="infinite"||typeof r.repeatCount=="number"&&++n<r.repeatCount)&&i())},r.begin+r.dur)})};i()}slideLeft(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.app.width,0],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[n.app.width,0],[n.app.width,0]]],immediate:!0}),e,t)}slideRight(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.app.width,0],[0,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-n.app.width,0],[-n.app.width,0]]],immediate:!0}),e,t)}slideDown(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-n.app.height],[0,-n.app.height]]],immediate:!0}),e,t)}slideUp(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,n.app.height],[0,n.app.height]]],immediate:!0}),e,t)}flipLeft(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipRight(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipDown(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipUp(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popIn(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popOut(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}rotate(e=qt,t=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const n=e.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}}class Xg extends Og{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(t,n)=>{switch(this.text="",this.currentItem={type:t},t){case"g":this.groups.push(this.currentItem);break}this.processAttrs(t,n)}),this.on("text",t=>{if(this.currentItem.type=="style"){try{const n=am(t);for(let i of n.stylesheet.rules)for(let r of i.declarations)for(let o of i.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${r.property}:${r.value}`)}catch{console.error("CAN'T parse css text: "+t)}return}this.text+=t}),this.on("/tag",(t,n)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(let a in this.groups[i])a=="transform"?r=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?o=this.globalStyles["."+this.groups[i][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?o=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=r:this.currentItem.transform+=" "+r,typeof this.currentItem.style>"u"?this.currentItem.style=o:this.currentItem.style=o+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),Sa(this.currentItem.style,this.currentItem,ka)}switch(this.processAttrs(t,n),t){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(e,t){let n=[],i;switch(e){case"svg":let r="",o="";if(t.width&&t.height)r=t.width,o=t.height;else if(t.viewBox){const a=t.viewBox.split(/\s+/gi);a.length==4&&(r=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}r&&o&&this.items.push({type:"viewbox",width:r,height:o});break;case"line":typeof t.x1=="number"&&typeof t.y1=="number"&&typeof t.x2=="number"&&typeof t.y2=="number"&&(this.currentItem.path="M"+[t.x1,t.y1,t.x2,t.y2]);break;case"stop":i={},t.style&&Sa(t.style,i),i.offset=i.offset||t.offset,i.color=i["stop-color"]||t["stop-color"],i.opacity=i["stop-opacity"]||t["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+Ca(parseFloat(t.x1),parseFloat(t.y1),parseFloat(t.x2),parseFloat(t.y2),parseFloat(t.x1)+100,parseFloat(t.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":n=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in t){const o=t[r];if(ka.includes(r)&&(this.currentItem[r]=o),r==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:r,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:r,stops:[]})),r==="style"&&Sa(o,this.currentItem,ka),r==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),r==="fill"){const a=o.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}r==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),r==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),r==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function Ca(s,e,t,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-t,a=e-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Ca(s,e,i,r)-Ca(t,n,i,r)}function Sa(s,e,t){const n=(s+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=n.length;r<o;r++){let a=n[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!t||t.includes(l))&&(e[l]=a[1].replace(i,""))}}const ka=["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 Ju{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e,t,n){this.app=e,this.rootEl=ct.createSVGElement("svg"),K.empty(this.app.container),K.insert(this.app.container,this.rootEl),t&&n?this.setSize(t,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const i=this.shapes.length;let r=0;for(;r<i;r++){const o=this.shapes[r];if(!(o instanceof we)&&!o.pathd){o.isMouseIn=!1,o.mouseX=0,o.mouseY=0;continue}const a=o instanceof we&&(o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||o.pathd instanceof we&&(o.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||!1;if(o.isMouseIn=a,o.mouseX=this.app.mousePoint.x,o.mouseY=this.app.mousePoint.y,a&&(this.currentMouseInShapeID=o.id,o.enableDrag)){this.currentEnableDragMouseInShapeID=o.id,this.shapes.filter(l=>l.id!==o.id).forEach(l=>{l instanceof ut&&(l.isMouseIn=!1,l.mouseX=0,l.mouseY=0)});break}}r>=i&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing",this.shapes.forEach(e=>{e.autoRender&&this.path(e.shapeGroup||e)}))):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}setSize(e,t){return K.attribute(this.rootEl,{viewBox:`0 0 ${e} ${t}`,width:`${e}`,height:`${t}`}),this}download(){return ct.downloadFromSVGElement(this.rootEl)}path(e){[...Array.isArray(e)?e:[e]].forEach(t=>{if(t instanceof ls){t.frameUpdate(),t.shapes.forEach(n=>this.path(n));return}if(!t.el){if(t instanceof $r)t.el=this.text(t.text,t.x,t.y,nu(t.attrs,(n,i)=>typeof i=="string"));else if(t instanceof Nt)t.el=ct.createSvgPath(`M ${t.fromX} ${t.fromY} `+t.toSVGPathD()),K.insert(this.rootEl,t.el);else if(t instanceof we)t.el=ct.createSvgPath(t.toSVGPathD()),K.insert(this.rootEl,t.el);else if(t instanceof ut){const n=we.fromShape(t)||t;t.el=n.el=ct.createSvgPath(n.toSVGPathD()),K.insert(this.rootEl,t.el),n instanceof we&&(t.pathd=n)}}this.shapes.find(n=>n.id==t.id)||this.shapes.push(t),this.update(t)})}update(e){[...Array.isArray(e)?e:[e]].forEach(t=>{const n=[];t instanceof ls?(t.frameUpdate(),n.push(...t.shapes)):n.push(t),n.forEach(i=>{if(i.followMouse&&(!fi(i.x,this.app.mousePoint.x,5)||!fi(i.y,this.app.mousePoint.y,5))&&(i.rotateTo(this.app.mousePoint),i.followTo(this.app.mousePoint)),i.targetToAfterDragFree&&(this.isMouseDown||i.nextFrameEaseTo({x:i.targetToAfterDragFree.targetX,y:i.targetToAfterDragFree.targetY},{easing:i.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==i.id){const{dx:r,dy:o}=i.centerDiff,a=i.x,l=i.y;if(i.x=this.app.mousePoint.x-r,i.y=this.app.mousePoint.y-o,i.alongPath){const c=i.alongPath.closestPoint(i.x,i.y);i.x=c.point.x,i.y=c.point.y}i.isDragging=!0,i.emit("moving",i.x-a,i.y-l)}else i instanceof ut&&(i.isDragging=!1);(i instanceof Nt||i instanceof we||i.pathd instanceof we)&&this.attr(i,"d",i instanceof Nt?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof we?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof $r&&(i.setAttr("x",String(i.x)),i.setAttr("y",String(i.y))),this.attr(i,nu(i.attrs,(r,o)=>typeof o=="string")),i.frameUpdate(),i instanceof we?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),i.el&&(i.isShow?K.show(i.el):K.hide(i.el))})})}click(e){const t=()=>{this.shapes.forEach(n=>{(n instanceof we&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||n.pathd instanceof we&&(n.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)))&&e(n)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}delete(e){[...e instanceof ls?e.shapes:[e]].forEach(t=>{t.el&&K.remove(t.el),t.pathd?.el&&K.remove(t.pathd?.el),delete t.el,delete t.pathd,this.shapes=this.shapes.filter(n=>n.id!==t.id)})}clear(){this.shapes.forEach(e=>{e.el&&K.remove(e.el),e.pathd?.el&&K.remove(e.pathd?.el),delete e.el,delete e.pathd}),K.empty(this.rootEl),this.shapes=[]}attr(e,t,n){const i=e.el||e;return i instanceof SVGElement?t===void 0&&n===void 0?K.attribute(i):typeof t=="string"&&n===void 0?K.attribute(i,Xt(t))||"":(typeof t=="object"?K.attribute(i,t):typeof t=="string"&&n!==void 0&&K.attribute(i,Xt(t),n),this):this}circle(e,t,n){return this.path(new Dt({x:e,y:t,radius:n}))}circleEl(e,t,n){const i=ct.createSVGElement("circle",{cx:String(e),cy:String(t),r:String(n)});return K.insert(this.rootEl,i),i}ellipse(e,t,n,i){return this.path(new Qg({x:e,y:t,rx:n,ry:i}))}ellipseEl(e,t,n,i){const r=ct.createSVGElement("ellipse",{cx:String(e),cy:String(t),rx:String(n),ry:String(i)});return K.insert(this.rootEl,r),r}rect(e,t,n,i){return this.path(new Ct({x:e,y:t,width:n,height:i}))}rectEl(e,t,n,i){const r=ct.createSVGElement("rect",{x:String(e),y:String(t),width:String(n),height:String(i)});return K.insert(this.rootEl,r),r}image(e,t,n,i,r){}text(e,t,n,i){const r=ct.createSVGElement("text",{x:String(t),y:String(n)});return K.html(r,e),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),K.insert(this.rootEl,r),r}textWithTspan(e,t,n,i){const r=i?.["line-height"]||"1.2em",o=ct.createSVGElement("text",{x:String(t),y:String(n)});return e.split(`
|
|
55
|
-
`).forEach((a,l)=>{if(a.trim()){const c=ct.createSVGElement("tspan",{x:String(t),dy:l>0?r:"0"});K.html(c,a),K.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),K.insert(this.rootEl,o),o}}const eh=Ug("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 Ug(s,e=10){const t={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],e);t[r]="&#"+o+";"}return t["\\xa0"]=" ",t}function Lt(s,e){const t=Object.keys(e);for(let n=0;n<t.length;n++)s=s.replace(new RegExp("{"+t[n]+"}","gi"),""+e[t[n]]);return s}function Dr(s){let e,t;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",t=0;t<12;t++)e+=n[Math.floor(Math.random()*n.length)];while(s[e]);return e}function qg(s){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[s]||e.start}function Zg(s){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[s]||e.alphabetic}const ki={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class Ea{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}addColorStop(e,t){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+e),t.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);r&&(n.setAttribute("stop-color",Lt("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",t);this.__root.appendChild(n)}}class th{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}}class Nr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:t=500,height:n=500}){e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=t,this.height=n),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(ki);for(let t=0,n=e.length;t<n;t++){const i=e[t];this[i]=ki[i].canvas}}__getStyleState(){const e={},t=Object.keys(ki);for(let n=0,i=t.length;n<i;n++){const r=t[n];e[r]=this[r]}return e}__applyStyleState(e){const t=Object.keys(e);for(let n=0,i=t.length;n<i;n++){const r=t[n];this[r]=e[r]}}__createElement(e,t={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),r=Object.keys(t);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,t[a])}return i}__applyStyleToCurrentElement(e){let t=this.__currentElement;const n=this.__currentElementsToStyle;n&&(t.setAttribute(e,""),t=n.element,n.children.forEach(r=>{r.setAttribute(e,"")}));const i=Object.keys(ki);for(let r=0;r<i.length;r++){const o=ki[i[r]],a=this[i[r]];if(o.apply){if(a instanceof th){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}t.setAttribute(o.apply,Lt("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Ea)t.setAttribute(o.apply,Lt("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(e)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(c){t.setAttribute(o.svgAttr,Lt("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),t.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=e+"-"+o.svgAttr,t.getAttribute(l)))continue;l&&t.setAttribute(l,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let t=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(t)&&(t=t.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(eh);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=eh[a],c=new RegExp(a,"gi");c.test(t)&&(t=t.replace(c,l))}}return t}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),t=this.__closestGroupOrSvg();this.__groupStack.push(t),t.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const t=this.__styleStack.pop();t&&this.__applyStyleState(t)}__addTransform(e){const t=this.__closestGroupOrSvg();if(t.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:t,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");t.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=e,this.__currentElement.setAttribute("transform",n)}scale(e,t){t===void 0&&(t=e),this.__addTransform(Lt("scale({x},{y})",{x:e,y:t}))}rotate(e){const t=e*180/Math.PI;this.__addTransform(Lt("rotate({angle},{cx},{cy})",{angle:t,cx:0,cy:0}))}translate(e,t){this.__addTransform(Lt("translate({x},{y})",{x:e,y:t}))}transform(e,t,n,i,r,o){this.__addTransform(Lt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:t,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"&&e.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,t){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:t},this.__addPathCommand(Lt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,t){this.__currentPosition={x:e,y:t},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Lt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Lt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,t,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Lt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:t,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(e,t,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Lt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:t,x:n,y:i}))}normalize(e){const t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}arcTo(e,t,n,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===e&&a===t||e===n&&t===i||r===0){this.lineTo(e,t);return}const l=this.normalize([o-e,a-t]),c=this.normalize([n-e,i-t]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(e,t);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),d=r/Math.sin(h/2),m=e+d*f[0],v=t+d*f[1],b=[-l[1],l[0]],C=[c[1],-c[0]],O=function(Y){const L=Y[0];return Y[1]>=0?Math.acos(L):-Math.acos(L)},$=O(b),S=O(C);this.lineTo(m+b[0]*r,v+b[1]*r),this.arc(m,v,r,$,S)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,t,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.closePath()}fillRect(e,t,n,i){const r=this.__createElement("rect",{x:e,y:t,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(e,t,n,i){const r=this.__createElement("rect",{x:e,y:t,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(e,t,n,i){if(e===0&&t===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:e,y:t,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(e,t,n,i){const r=this.__createElement("linearGradient",{id:Dr(this.__ids),x1:e+"px",x2:n+"px",y1:t+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new Ea(r,this)}createRadialGradient(e,t,n,i,r,o){const a=this.__createElement("radialGradient",{id:Dr(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:e+"px",fy:t+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Ea(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),n={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(e,t){if(e.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),n.appendChild(t),n}return t}__applyText(e,t,n,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:t,y:n,"text-anchor":qg(this.textAlign),"dominant-baseline":Zg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(e,t,n){this.__applyText(e,t,n,"fill")}strokeText(e,t,n){this.__applyText(e,t,n,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,t,n,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=e+n*Math.cos(r),l=t+n*Math.sin(r),c=e+n*Math.cos(i),u=t+n*Math.sin(i),h=o?0:1;let f=0,d=r-i;d<0&&(d+=2*Math.PI),o?f=d>Math.PI?0:1:f=d>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Lt("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const e=this.__closestGroupOrSvg(),t=this.__createElement("clipPath"),n=Dr(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),t.setAttribute("id",n),t.appendChild(this.__currentElement),this.__SVGdefs.appendChild(t),e.setAttribute("clip-path",Lt("url(#{id})",{id:n})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let t=e[0],n,i,r,o,a=0,l=0,c,u,h,f,d,m,v,b;if(e.length===3)n=e[1],i=e[2],c=t.width,u=t.height,r=c,o=u;else if(e.length===5)n=e[1],i=e[2],r=e[3],o=e[4],c=t.width,u=t.height;else if(e.length===9)a=e[1],l=e[2],c=e[3],u=e[4],n=e[5],i=e[6],r=e[7],o=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const C=this.__closestGroupOrSvg();this.__currentElement;const O="translate("+n+", "+i+")";if(t instanceof Nr){if(h=t.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)b=f.childNodes[0].getAttribute("id"),this.__ids[b]=b,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const $=d.getAttribute("transform");let S;$?S=$+" "+O:S=O,d.setAttribute("transform",S),C.appendChild(d)}}}else(t.nodeName==="CANVAS"||t.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==t.width||u!==t.height)&&(v=this.__document.createElement("canvas"),v.width=r,v.height=o,v.getContext("2d")?.drawImage(t,a,l,c,u,0,0,r,o),t=v),m.setAttribute("transform",O),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),C.appendChild(m))}createPattern(e,t){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Dr(this.__ids);let r;return n.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+e.width),r.setAttribute("height",""+e.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):e instanceof Nr&&(n.setAttribute("width",""+e.width),n.setAttribute("height",""+e.height),n.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new th(n,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Ta{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(e,t,n,i=!1){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new Nr({canvas:this.canvas,width:t||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(e){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=e,this.customContext&&(this.customContext.lineWidth=e)}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=e,this.customContext&&(this.customContext.lineCap=e)}get lineCap(){return this.context.lineCap}set lineJoin(e){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=e,this.customContext&&(this.customContext.lineCap=e)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=e,this.customContext&&(this.customContext.lineDashOffset=e)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=e,this.customContext&&(this.customContext.miterLimit=e)}get miterLimit(){return this.context.miterLimit}set globalAlpha(e){this.context.globalAlpha=e,this.customContext&&(this.customContext.globalAlpha=e)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(e){this.hasSetCustomFillStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.fillStyle=e,this.customContext&&(this.customContext.fillStyle=e)):(this.context.fillStyle=e.gradient,this.customContext&&(this.customContext.fillStyle=e.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(e){this.hasSetCustomStrokeStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.strokeStyle=e,this.customContext&&(this.customContext.strokeStyle=e)):(this.context.strokeStyle=e.gradient,this.customContext&&(this.customContext.strokeStyle=e.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(e){this.context.font=e,this.customContext&&(this.customContext.font=e)}get font(){return this.context.font}set textBaseline(e){this.context.textBaseline=e,this.customContext&&(this.customContext.textBaseline=e)}get textBaseline(){return this.context.textBaseline}set textAlign(e){this.context.textAlign=e,this.customContext&&(this.customContext.textAlign=e)}get textAlign(){return this.context.textAlign}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(e,t,n,i){return this.context.fillRect(e,t,n,i),this.customContext&&this.customContext.fillRect(e,t,n,i),this}fillText(e,t,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(e,t,n,i),this.customContext&&this.customContext.fillText(e,t,n),this}setLineDash(e){return this.context.setLineDash(e),this.customContext&&this.customContext.setLineDash(e),this}stroke(e){return e?this.context.stroke(e):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(e,t,n,i){return this.context.strokeText(e,t,n,i),this.customContext&&this.customContext.strokeText(e,t,n),this}strokeRect(e,t,n,i){return this.context.strokeRect(e,t,n,i),this.customContext&&this.customContext.strokeRect(e,t,n,i),this}measureText(e){return this.context.measureText(e)}clearRect(e=0,t=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,t,n,i),this.customContext&&this.customContext.clearRect(e,t,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(e=this.currentPath2D,t=this.currentMatrix){const n=new Path2D;n.addPath(e,t),this.currentPath2D=n}isPointInStroke(...e){return e[0]instanceof Path2D?this.context.isPointInStroke(e[0],e[1],e[2]):this.context.isPointInStroke(e[0],e[1])}isPointInPath(...e){return e[0]instanceof Path2D?this.context.isPointInPath(e[0],e[1],e[2]):this.context.isPointInPath(e[0],e[1])}translate(e,t){return this.context.translate(e,t),this.customContext&&this.customContext.translate(e,t),this.currentMatrix.translate(e,t),this.changePath2D(),this}rotate(e,t=0,n=0){return this.translate(t,n),this.context.rotate(e),this.customContext&&this.customContext.rotate(e),this.currentMatrix.rotate(e),this.translate(-t,-n),this.changePath2D(),this}scale(e,t=e,n=0,i=0){return this.translate(n,i),this.context.scale(e,t),this.customContext&&this.customContext.scale(e,t),this.currentMatrix.scale(e,t),this.translate(-n,-i),this.changePath2D(),this}moveTo(e,t){return this.context.moveTo(e,t),this.customContext&&this.customContext.moveTo(e,t),this.currentPath2D.moveTo(e,t),this}lineTo(e,t){return this.context.lineTo(e,t),this.customContext&&this.customContext.lineTo(e,t),this.currentPath2D.lineTo(e,t),this}arc(e,t,n,i,r,o){return this.context.arc(e,t,n,i,r,o),this.customContext&&this.customContext.arc(e,t,n,i,r,o?-1:1),this.currentPath2D.arc(e,t,n,i,r,o),this}arcTo(e,t,n,i,r){return this.context.arcTo(e,t,n,i,r),this.customContext&&this.customContext.arcTo(e,t,n,i,r),this.currentPath2D.arcTo(e,t,n,i,r),this}ellipse(e,t,n,i,r,o,a,l){return this.context.ellipse(e,t,n,i,r,o,a,l),this.currentPath2D.ellipse(e,t,n,i,r,o,a,l),this}quadraticCurveTo(e,t,n,i){return this.context.quadraticCurveTo(e,t,n,i),this.customContext&&this.customContext.quadraticCurveTo(e,t,n,i),this.currentPath2D.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,r,o){return this.context.bezierCurveTo(e,t,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(e,t,n,i,r,o),this.currentPath2D.bezierCurveTo(e,t,n,i,r,o),this}rect(e,t,n,i){return this.context.rect(e,t,n,i),this.customContext&&this.customContext.rect(e,t,n,i),this.currentPath2D.rect(e,t,n,i),this}createLinearGradient(e,t,n,i,r){const o=this.context.createLinearGradient(e,t,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(e,t,n,i,r,o,a){const l=this.context.createRadialGradient(e,t,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(e,...t){if(t.length===0)this.context.drawImage(e,0,0);else if(t.length===2){const n=t[0],i=t[1];this.context.drawImage(e,n,i)}else if(t.length===4){const n=t[0],i=t[1],r=t[2],o=t[3];this.context.drawImage(e,n,i,r,o)}else if(t.length===8){const n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7];this.context.drawImage(e,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+t.length);return this.customContext&&this.customContext.drawImage(e,...t),this}getImageData(e=0,t=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(e,t,n,i,r)}putImageData(e,t=0,n=0){return this.context.putImageData(e,t,n)}createPattern(e,t){return this.context.createPattern(e,t)}toRawSVG(){if(this.customContext){const e=this.customContext.getSerializedSvg(!0),t=this.customContext.getSvg();return{raw:e,element:t}}else return{raw:"",element:null}}}class Nt extends ut{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,t){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new Nt({x:e[1],y:e[2],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.lineTo(this.x,this.y)}getBoundingClientRect(){const e=Vn(this.fromX,this.fromY,this.x,this.y);if(e===0){const t=Math.min(this.x,this.fromX),n=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new _i({x:t,y:n,width:i-t,height:r-n})}else{const t=Math.sin(e),n=Math.cos(e),i=n*this.fromX-t*this.fromY,r=n*this.x-t*this.y,o=n*this.fromY+t*this.fromX,a=n*this.y+t*this.x;return new _i({x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)})}}interpolate(e){return{x:this.fromX+e*(this.x-this.fromX),y:this.fromY+e*(this.y-this.fromY)}}intersection(e){const t=this.fromX,n=this.fromY,i=e.x,r=e.y,o=this.x-t,a=e.fromX-i;if(!o&&!a)return null;const l=(this.y-n)/o,c=(e.fromY-r)/a;if(o){if(!a)return{x:i,y:l*(i-t)+n}}else return{x:t,y:c*(t-i)+r};const u=(-c*i+r+l*t-n)/(l-c),h=l*(u-t)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}class Oa extends Nt{c1x;c1y;c2x;c2y;constructor(e){super(e),this.c1x=e.c1x,this.c1y=e.c1y,this.c2x=e.c2x,this.c2y=e.c2y}static fromSVGPathData(e,t){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Oa({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const e=ct.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new _i({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}interpolate(e){return{x:Math.pow(1-e,3)*this.fromX+3*Math.pow(1-e,2)*e*this.c1x+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2x+Math.pow(e,3)*this.x,y:Math.pow(1-e,3)*this.fromY+3*Math.pow(1-e,2)*e*this.c1y+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2y+Math.pow(e,3)*this.y}}length(e=1){return ct.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,e)}getTatLen(e){const t=this.fromX,n=this.fromY,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(e<0||ct.bezlen(t,n,i,r,o,a,l,c)<e)return 0;let u=1,h=u/2,f=u-h,d,m=.01;for(d=ct.bezlen(t,n,i,r,o,a,l,c,f);Math.abs(d-e)>m;)h/=2,f+=(d<e?1:-1)*h,d=ct.bezlen(t,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(e){const t=this.getTatLen(e),n=this.fromX,i=this.fromY,r=this.c1x,o=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-t,f=Math.pow(h,3),d=Math.pow(h,2),m=t*t,v=m*t,b=f*n+d*3*t*r+h*3*t*t*a+v*c,C=f*i+d*3*t*o+h*3*t*t*l+v*u,O=n+2*t*(r-n)+m*(a-2*r+n),$=i+2*t*(o-i)+m*(l-2*o+i),S=r+2*t*(a-r)+m*(c-2*a+r),Y=o+2*t*(l-o)+m*(u-2*l+o),L=h*n+t*r,H=h*i+t*o,fe=h*a+t*c,ye=h*l+t*u,ge=90-Math.atan2(O-S,$-Y)*180/Math.PI;return{x:b,y:C,m:{x:O,y:$},n:{x:S,y:Y},start:{x:L,y:H},end:{x:fe,y:ye},alpha:ge}}}const nn=Oa;class Sn extends Nt{cx;cy;isLineThrough;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy,this.isLineThrough=typeof e.isLineThrough=="boolean"?e.isLineThrough:!0}static fromSVGPathData(e,t){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new Sn({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:t?.x,fromY:t?.y})}toSVGPathData(){if(this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,t=this.cy*2-(this.fromY+this.y)/2;return["Q",e,t,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e){if(e.beginPath(),e.moveTo(this.fromX,this.fromY),this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,n=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(t,n,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(e){return{x:(1-e)*(1-e)*this.fromX+2*(1-e)*e*this.cx+e*e*this.x,y:(1-e)*(1-e)*this.fromY+2*(1-e)*e*this.cy+e*e*this.y}}}const Kg=Sn;class Pa extends Nt{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(e){super(e),this.rx=e.rx,this.ry=e.ry,this.xAxisRotate=e?.xAxisRotate??0,this.largeArcFlag=e?.largeArcFlag??1,this.sweepFlag=e?.sweepFlag??1}static fromSVGPathData(e,t){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Pa({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(e){e.beginPath();const[t,n,i,r,o,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);e.ellipse(t-this.x,n-this.y,i,r,o,a,l,!this.sweepFlag)}convertSVGToCanvas(e,t,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(e-n)/2,f=(t-i)/2,d=Math.cos(u)*h+Math.sin(u)*f,m=-Math.sin(u)*h+Math.cos(u)*f,v=d*d/(r*r)+m*m/(o*o);if(v>1){const Me=Math.sqrt(v);throw r=Me*r,o=Me*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const b=Math.sqrt((r*r*o*o-r*r*m*m-o*o*d*d)/(r*r*m*m+o*o*d*d)),C=l!=c?1:-1,O=C*b*r*m/o,$=C*b*-o*d/r,S=(e+n)/2,Y=(t+i)/2,L=Math.cos(u)*O-Math.sin(u)*$+S,H=Math.sin(u)*O+Math.cos(u)*$+Y,fe=(Me,Ae,Ue,qe)=>(Me*qe>=Ae*Ue?1:-1)*Math.acos((Me*Ue+Ae*qe)/(Math.sqrt(Me*Me+Ae*Ae)*Math.sqrt(Ue*Ue+qe*qe))),ye=fe(1,0,e-L,t-H)-u,ge=fe(e-L,t-H,n-L,i-H);return[L,H,r,o,u,ye,ye+ge]}}const Ia=Pa;class we extends ut{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(e){super(e),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(e){if(e instanceof Ia){Bu(this.prevPathX,this.prevPathY,e.x,e.y,e.largeArcFlag,e.sweepFlag,e.rx,e.ry,e.xAxisRotate).forEach(c=>{const[u,h,f,d,m,v,b,C]=c;this.normalizedLines.push(new nn({c1x:f,c1y:d,c2x:m,c2y:v,x:b,y:C,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=b,this.prevPathY=C});return}let t,n,i,r,o,a;e instanceof nn?(t=e.c1x,n=e.c1y,i=e.c2x,r=e.c2y,o=e.x,a=e.y):e instanceof Kg?[t,n,i,r,o,a]=va(this.prevPathX,this.prevPathY,e.cx,e.cy,e.x,e.y):[t,n,i,r,o,a]=bi(this.prevPathX,this.prevPathY,e.x,e.y),this.normalizedLines.push(new nn({c1x:t,c1y:n,c2x:i,c2y:r,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromSVGPathD(e="M0,0",t){const n=new we(t);return n.updateFromSVGPathD(e),n}static fromSVGPathData(e,t){const n=new we(t);return n.updateFromSVGPathData(e),n}static fromShape(e,t){const n=new we(Object.assign({attrs:{...e.attrs}},t));return n.updateFromShape(e),n}updateFromShape(e){this.degree=e.degree,this.scalexOnOrigin=e.scalexOnOrigin,this.scaleyOnOrigin=e.scaleyOnOrigin,this.skewxDegreeOnOrigin=e.skewxDegreeOnOrigin,this.skewyDegreeOnOrigin=e.skewyDegreeOnOrigin,this.updateFromSVGPathD(e.toSVGPathD())}updateFromSVGPathD(e){ct.isSVGPath(e)&&this.updateFromSVGPathData(ct.parseSVGPath(e))}updateFromSVGPathData(e){this.normalizedLines=[];const t=ct.normalizeSVGPath(ct.absolutizeSVGPath(e));for(let n=0,i=t.length;n<i;n++){const r=t[n];if(r[0]=="M"){this.prevPathX=this.startPathX=r[1],this.prevPathY=this.startPathY=r[2];continue}this.appendLine(new nn({c1x:r[1],c1y:r[2],c2x:r[3],c2y:r[4],x:r[5],y:r[6]}))}this.prevDegree=0,this.prevScalexOnOrigin=1,this.prevScaleyOnOrigin=1,this.prevSkewxDegreeOnOrigin=0,this.prevSkewyDegreeOnOrigin=0,this.updateTransform()}toSVGPathData(e=!1){let t=[];t.push(["M",this.startPathX,this.startPathY]);for(let n=0,i=this.normalizedLines.length;n<i;n++)t.push(this.normalizedLines[n].toSVGPathData());return e&&(t=ct.relativeSVGPath(t)),t}toCanvasContext(e){e.beginPath(),e.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(t=>{const[n,...i]=t.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}static toCanvasContextUsePath2D(e,t,n,i){e.beginPath();const r=new Path2D(t),o=new Path2D;o.addPath(r,new DOMMatrix(n));const a=new Path2D;return a.addPath(o,Cg(i)),e.fill(a),a}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.scalexOnOrigin!=this.prevScalexOnOrigin||this.scaleyOnOrigin!=this.prevScaleyOnOrigin){const e=this.getBoundingClientRect();this.scale(this.scalexOnOrigin/this.prevScalexOnOrigin,this.scaleyOnOrigin/this.prevScaleyOnOrigin,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:e.x+e.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:e.y+e.height/2)}if(this.degree!=this.prevDegree){const e=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:e.x+e.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:e.y+e.height/2)}this.skewxDegreeOnOrigin!=this.prevSkewxDegreeOnOrigin&&this.skewx(this.skewxDegreeOnOrigin-this.prevSkewxDegreeOnOrigin),this.skewyDegreeOnOrigin!=this.prevSkewyDegreeOnOrigin&&this.skewy(this.skewyDegreeOnOrigin-this.prevSkewyDegreeOnOrigin)}transform(e){return{x:this.startPathX,y:this.startPathY}=e.applyToPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=e.applyToPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(t=>{({x:t.fromX,y:t.fromY}=e.applyToPoint(t.fromX,t.fromY)),{x:t.c1x,y:t.c1y}=e.applyToPoint(t.c1x,t.c1y),{x:t.c2x,y:t.c2y}=e.applyToPoint(t.c2x,t.c2y),{x:t.x,y:t.y}=e.applyToPoint(t.x,t.y)}),this}translate(e,t){const n=new Yt().translate(e,t);return this.transform(n),this.prevX=this.x,this.prevY=this.y,this}rotate(e,t=0,n=0){const i=new Yt().rotate(e,t,n);return this.transform(i),this.prevDegree=this.degree,this}scale(e,t=e,n=0,i=0){const r=new Yt().scale(e,t,n,i);return this.transform(r),this.prevScalexOnOrigin=this.scalexOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin,this}skewx(e){const t=new Yt().skew(e,0);return this.transform(t),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin,this}skewy(e){const t=new Yt().skew(0,e);return this.transform(t),this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin,this}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}getBoundingClientRect(){let e=0,t=0,n=[],i=[];e=this.startPathX,t=this.startPathY,n.push(e),i.push(t),this.normalizedLines.forEach(c=>{const u=ct.curveDim(e,t,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);n=n.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),e=c.x,t=c.y});const r=Math.min.apply(0,n),o=Math.min.apply(0,i),a=Math.max.apply(0,n),l=Math.max.apply(0,i);return new _i({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((e,t)=>e+=t.length(),0)}getPointAtLength(e){let t=0;const n=this.normalizedLines.length;for(let i=0;i<n;i++){const r=this.normalizedLines[i],o=r.length();if(t+o>=e)return r.getPointAtSegmentLength(e-t);t+=o}return this.normalizedLines[n-1].getPointAtSegmentLength(1)}interpolate(e){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(e);{let t=e*this.normalizedLines.length,n=this.normalizedLines[0];if(t--,t>1)for(let i=1,r=this.normalizedLines.length;i<r&&(n=this.normalizedLines[i],t>1);i++)t-=1;return n.interpolate(t)}}getSubpathsAtLength(e,t,n){let i=null,r=0;const o=new we;o.prevPathX=o.startPathX=e.x,o.prevPathY=o.startPathY=e.y;for(let a=0,l=e.normalizedLines.length;a<l;a++){const c=e.normalizedLines[a],u=c.length();if(r+u>t&&!i){const h=c.getPointAtSegmentLength(t-r);if(o.appendLine(new nn({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),n)return o;i=o,o.prevPathX=h.x,o.prevPathY=h.y,o.appendLine(new nn({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),r+=u;continue}r+=u,o.appendLine(c)}return o}getSubpath(e,t){if(this.getTotalLength()-t<1e-6)return this.getSubpathsAtLength(this,e);{const n=this.getSubpathsAtLength(this,t,1);return e?this.getSubpathsAtLength(n,e):n}}trailPath(e,t=0){const n=this.getTotalLength();return e.updateFromSVGPathD(this.getSubpath(0,t*n).toSVGPathD()),this.getPointAtLength(t*n)}closestPoint(e,t){const n=this.getTotalLength();let i={x:e,y:t},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ga(u.x,u.y,e,t);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=ga(u.x,u.y,e,t),f=r+a,d=this.getPointAtLength(f),m=ga(d.x,d.y,e,t);c>=0&&h<o?(i=u,r=c,o=h):f<=n&&m<o?(i=d,r=f,o=m):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?Vn(l.x,l.y,i.x,i.y):Vn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}isPointInPath(e,t,n){if(n instanceof Ta)return n.isPointInPath(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=n.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(e,t,n){if(n instanceof Ta)return n.isPointInStroke(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=n.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}strokeDashToTween(e){const t=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${t} ${t}`,strokeDashoffset:`${t}`});const n=e?.onUpdate;return Je.toTween({offset:t},{offset:0},Object.assign(e||{},{onUpdate:(i,r)=>{this.setAttr("strokeDashoffset",""+Rt(i.offset,2)),n?.(i,r)}}))}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((e,t)=>e.concat([t.c1x,t.c1y,t.c2x,t.c2y,t.x,t.y]),[]))}static fromPolymorphPoints(e){const t=new we({x:e[0],y:e[1]});for(let n=2;n+5<e.length;n+=6)t.appendLine(new nn({c1x:e[n],c1y:e[n+1],c2x:e[n+2],c2y:e[n+3],x:e[n+4],y:e[n+5]}));return t}perimeterPoints(){const e=this.polymorphPoints,t=e.length;let n=e[t-2],i=e[t-1],r=0;for(let o=0;o<t;o+=6)r+=ma(e[o],e[o+1],n,i),n=e[o],i=e[o+1];return Math.floor(r)}fillPathD(e){const t=this.polymorphPoints,n=t.length;let i=e-n;const r=Math.ceil(e/n),o=[];o.push(["M",t[0],t[1]]);let a=2;for(;a+5<=n-1;){const l=t[a++],c=t[a++],u=t[a++],h=t[a++],f=t[a++],d=t[a++];o.push(["C",l,c,u,h,f,d]);let m=0;for(;m<r&&i>0;)o.push(["C",f,d,f,d,f,d]),i-=6,m++}return we.fromSVGPathData(o)}static mixPoints(e,t,n){const i=e.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Rt(e[o]+(t[o]-e[o])*n,6);return r}static getPathInterpolator(e,t){return n=>Math.abs(n-0)<Number.EPSILON?e.toSVGPathD():Math.abs(n-1)<Number.EPSILON?t.toSVGPathD():we.fromPolymorphPoints(this.mixPoints(e.polymorphPoints,t.polymorphPoints,n)).toSVGPathD()}static polymorph(e){if(!e.length)throw new Error("paths 为空!");const t=e.length-1,n=new Array(t);for(let r=0;r<t;r++){const o=Math.max(e[r].polymorphPoints.length,e[r+1].polymorphPoints.length);n[r]=this.getPathInterpolator(e[r].fillPathD(o),e[r+1].fillPathD(o))}const i=we.fromSVGPathD(n[0](0));return r=>{const o=Rt(t*r,6),a=Math.min(Math.floor(o),t-1),l=Rt(o-a,6);i.updateFromSVGPathD(n[a](l));const c=e[a].getAttr("fill","none"),u=e[a+1].getAttr("fill","none");typeof c=="string"&&typeof u=="string"&&i.setAttr("fill",qu(c,u,l));const h=e[a].getAttr("stroke","none"),f=e[a+1].getAttr("stroke","none");return typeof h=="string"&&typeof f=="string"&&i.setAttr("stroke",qu(h,f,l)),i}}static generateRosetta(e,t,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new we({x:e,y:t}),a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=e+2*n*Math.cos(c),h=t+2*n*Math.sin(c);o.appendLine(new Ia({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new Ia({x:e,y:t,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class ys extends Vg{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(e){if(super(e),!e?.svg)return;const t=new Xg(e.svg).parse();for(let n=0,i=t.length;n<i;n++){const r=t[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),e.width){const u=this.svgWidth/this.svgHeight;this.width=e.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!Cn.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=Cn.absolutizeSVGPath(Cn.parseSVGPath(r.path));let l=[],c=[];for(let u=0,h=a.length;u<h;u++){const f=a[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=we.fromSVGPathData(u,e),f=Wu(r.transform??"");h.transform(f),h.attrs={...h.attrs,...o,...e.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.addShape(h)})}}addShape(e,t){(Array.isArray(e)?e:[e]).forEach(n=>{if(n instanceof we)super.addShape(n);else{const i=we.fromShape(n,{...t});i&&super.addShape(i)}})}static fromShape(e,t){const n=new ys;return n.addShape(e,t),n}strokeDashToTween(e){const t=e?.type||"parallel",n=this.shapes.map(i=>i.strokeDashToTween({...e}).tween);switch(t){case"sequence":return n.forEach((i,r)=>{r>0&&n[r-1].chain(i)}),{startAuto:Je.toTweenGroup(n[0],e)};case"parallel":default:return{startAuto:Je.toTweenGroup(n,e)}}}sortPathD(){this.shapes=this.shapes.map(e=>({path:e,perimeter:e.perimeterPoints()})).sort((e,t)=>t.perimeter-e.perimeter).map(e=>e.path)}fillPathDGroup(e){const t=e.shapes.length,n=this.shapes.length;if(t<n)return e.fillPathDGroup(this);for(let i=n;i<t;i++){const r=e.shapes[i].polymorphPoints,o=r[0],a=r[1],l=new we({x:o,y:a,attrs:{...e.shapes[i].attrs}});for(let c=2;c+5<r.length;c+=6)l.appendLine(new nn({c1x:o,c1y:a,c2x:o,c2y:a,x:o,y:a}));this.addShape(l)}}static polymorph(e){if(!e.length)throw new Error("groups 为空!");let t=-1,n=0;e.forEach((a,l)=>{a.sortPathD(),n<a.shapes.length&&(n=a.shapes.length,t=l)}),e.forEach(a=>a.fillPathDGroup(e[t]));const i=[];e.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>r.push(we.polymorph(a)));const o=new ys;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}}class Qg extends ut{rx;ry;constructor(e){super(e),this.rx=e?.rx||0,this.ry=e?.ry||0}getBoundingClientRect(){return new Ct({x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2})}toSVGPathData(){return[["M",this.x,this.y],["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(e){e.beginPath(),e.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),e.closePath()}}class Gn extends ut{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");const t=[];t.push(["M",this.points[0].x,this.points[0].y]);for(let n=0;n<=e-1;n++)t.push(["L",this.points[n].x,this.points[n].y]);return t.push(["L",this.points[0].x,this.points[0].y]),t}toCanvasContext(e){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");e.beginPath(),e.moveTo(0,0);for(let n=0;n<=t-1;n++)e.lineTo(this.points[n].x-this.points[0].x,this.points[n].y-this.points[0].y);e.lineTo(0,0)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,t){const n=this.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===e&&c===t||u===e&&h===t||t===c&&t===h)return!0;if(t>=c&&t<h||t<c&&t>=h){const f=(u-l)/(h-c),d=l+f*(t-c);if(d===e||Math.abs(d-e)<r)return!0;d>e&&(i=!i)}}return i}[Symbol.iterator](){let e=0;return{next:()=>({value:e>=this.length-1?this.points[++e]:void 0,done:e>=this.length})}}static generatePoints(e,t,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=As(a,n);r.push(new Dt({x:e+l,y:t+c}))}return new Gn(r)}}class $r extends ut{text;width=0;height=0;constructor(e){super(e),this.text=e.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.attrs});const t=Js(this.getAttr("fontSize"),10).number,n=Js(this.getAttr("fontWeight"),400).number,i=K.measureText(this.text,t,n);this.width=i.width,this.height=i.height,this.frameUpdate()}frameUpdate(){super.frameUpdate()}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(e){e.fillText(this.text,0,0)}}class Mr extends ut{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath()}}class Da extends ut{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(4,24),e.lineTo(8,16),e.lineTo(14,10),e.lineTo(15,0),e.lineTo(9,-10),e.lineTo(2,0),e.lineTo(-2,0),e.lineTo(-9,-10),e.lineTo(-15,0),e.lineTo(-14,10),e.lineTo(-8,16),e.lineTo(-4,24),e.closePath()}}class Jg extends we{constructor(e){super(e),this.rx=e?.rx??10,this.ry=e?.ry??10,this.updateFromSVGPathData([["M",this.x,this.y],["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 e0 extends we{constructor(e){super(e),this.rx=e?.rx??50,this.ry=e?.ry??50,this.updateFromSVGPathData([["M",this.x,this.y+this.ry*.3],["C",this.x,this.y,this.x-this.rx/2,this.y,this.x-this.rx/2,this.y+this.ry*.3],["C",this.x-this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x,this.y+(this.ry+this.ry*.3)/1.4,this.x,this.y+this.ry],["C",this.x,this.y+(this.ry+this.ry*.3)/1.8,this.x+this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x+this.rx/2,this.y+this.ry*.3],["C",this.x+this.rx/2,this.y,this.x,this.y,this.x,this.y+this.ry*.3],["z"]])}}class sh extends we{constructor(e){super(e),this.r=e?.r??20;let t="M"+this.x+","+(this.y-this.r);for(let n=0;n<6;n+=1){const i=270+n*144,r=this.x+this.r*Math.cos($e(i)),o=this.y+this.r*Math.sin($e(i));t+="L"+r+","+o}this.updateFromSVGPathD(t)}}class t0 extends we{constructor(e){super(e),this.updateFromSVGPathData([["M",this.x,this.y],["C",this.x+15,this.y,this.x+15,this.y-40,this.x+5,this.y+-30],["L",this.x,this.y],["C",this.x-15,this.y,this.x-15,this.y-40,this.x-5,this.y-30],["L",this.x,this.y],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]])}}class s0 extends we{constructor(e){super(e),this.updateFromSVGPathD(`M${this.x} ${this.y}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 n0 extends ys{constructor(e){super(e),this.addShape(we.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],{renderGroup:this.renderGroup,...e})),this.addShape(we.fromSVGPathData([["M",this.x,this.y-30-Math.random()*30],["L",this.x+Math.random()*80-40,this.y-100-Math.random()*40]],{renderGroup:this.renderGroup,...e})),this.addShape(we.fromSVGPathData([["M",this.x,this.y-60-Math.random()*40],["L",this.x+Math.random()*60-30,this.y-110-Math.random()*20]],{renderGroup:this.renderGroup,...e}))}}class i0 extends ls{width=0;height=0;bg;padding;offset;constructor(e){super(e),this.text=e.text,this.bg=e.bg||"rgba(0,0,0,0.5)",this.padding=e.padding||4,this.offset=e.offset||20,this.textShape=new $r({...e,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.attrs,fill:Ng(this.bg,!0),textAnchor:"start"}}),this.bgShape=new Ct({...e,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.attrs,fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}frameUpdate(){super.frameUpdate(),this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,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.isShow=this.isShow}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(e){}}class r0 extends ls{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Dt;p1Offset=10;p2=new Dt;p2Offset=40;p3=new Dt;p3Offset=10;p4=new Dt;p4Offset=10;direction=1;constructor(e){super(e),this.radius=e.radius,this.expandRaidus=e.expandRaidus??20,this.startDegree=e.startDegree,this.endDegree=e.endDegree,this.text=e.text||"",this.defaultShowText=typeof e?.defaultShowText=="boolean"?e.defaultShowText:!!this.text,this.tip=e.tip||"";const t=Object.assign({...this.attrs},{fill:"none"});this.line12=new Nt({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...t},isShow:this.defaultShowText}),this.line23=new Nt({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...t},isShow:this.defaultShowText}),this.textShape=new $r({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:t.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.tipShape=new i0({x:0,y:0,text:this.tip,isShow:!1}),this.sector=new o0({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.attrs},{strokeWidth:"0"})}),this.addShape(this.sector),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tip&&this.addShape(this.tipShape),this.frameUpdate()}frameUpdate(){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sector.isMouseIn,this.line23.isShow=this.sector.isMouseIn,this.textShape.isShow=this.sector.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:t,dy:n}=As($e(e),this.sector.radius+this.p1Offset);this.p1.x=this.x+t,this.p1.y=this.y+n;const{dx:i,dy:r}=As($e(e),this.sector.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,this.p2.y=this.y+r,this.line12.fromX=this.p1.x,this.line12.fromY=this.p1.y,this.line12.x=this.p2.x,this.line12.y=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.fromX=this.p2.x,this.line23.fromY=this.p2.y,this.line23.x=this.p3.x,this.line23.y=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.sector.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY):(this.tipShape.isShow=!1,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY)}}class o0 extends ut{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;dur;status;constructor(e){super(e),this.radius=0,this.realRadius=e.radius,this.expandRaidus=e.expandRaidus??20,this.startDegree=e.startDegree,this.endDegree=e.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.dur=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(e){this.vr+=this.ar,this.radius+=this.vr*this.dur,this.radius>e&&(this.radius=e,this.vr*=-this.bounce)}shrink(e){this.vr-=this.ar,this.radius+=this.vr*this.dur,this.radius<e&&(this.radius=e,this.vr*=-this.bounce)}toSVGPathData(){const{dx:e,dy:t}=As($e(this.startDegree),this.radius),{dx:n,dy:i}=As($e(this.endDegree),this.radius);return[["M",this.x,this.y],["l",e,t],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(0,0),e.arc(0,0,this.radius,$e(this.startDegree),$e(this.endDegree),!1),e.closePath()}containPoint(e,t){const n=ma(this.x,this.y,e,t),i=jt(Vn(this.x,this.y,e,t));return n<this.radius&&i>this.startDegree&&i<this.endDegree}}class a0 extends ls{showFlame;constructor(e){super(e),this.showFlame=typeof e?.showFlame=="boolean"?e.showFlame:!1,this.ship=we.fromSVGPathData([["M",this.x+10,this.y],["L",this.x-10,this.y+10],["L",this.x-5,this.y],["L",this.x-10,this.y-10],["L",this.x+10,this.y],["Z"]],{renderGroup:this.renderGroup,...e}),this.flame=we.fromSVGPathData([["M",this.x-7.5,this.y-5],["L",this.x-15,this.y],["L",this.x-7.5,this.y+5],["Z"]],{renderGroup:this.renderGroup,...e,isShow:this.showFlame}),this.addShape(this.ship),this.addShape(this.flame),this.frameUpdate()}frameUpdate(){this.flame.isShow=this.showFlame}}class nh extends ls{min;max;step;value;percent;barWidth;barHeight;barColor;handleSize;handleColor;realBarWidth;constructor(e){super(e),this.min=e?.min||0,this.max=e?.max||100,this.step=e?.step||1,this.stepNumber=nm(this.min,this.max,this.step),this.value=this.stepNumber(e?.defaultValue||this.min),this.percent=this.value/(this.max-this.min),this.barColor=e?.barColor||j.colorGrayF5,this.handleColor=e?.handleColor||j.colorPrimary,this.barWidth=e?.barWidth||100,this.barHeight=e?.barHeight||4,this.handleSize=e?.handleSize||20,this.realBarWidth=this.barWidth-this.handleSize,this.fullRect=new Ct({x:this.x,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*this.percent,height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.handleColor}}),this.addShape(this.fullRect),this.emptyRect=new Ct({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*(1-this.percent),height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.barColor}}),this.addShape(this.emptyRect),this.alongPath=we.fromSVGPathData([["M",this.x+this.handleSize*.5,this.y],["l",this.realBarWidth,0]]),this.handle=new Dt({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y,radius:this.handleSize*.5,enableDrag:!0,autoRender:e?.autoRender,alongPath:this.alongPath,attrs:{fill:this.handleColor}}),this.addShape(this.handle),this.frameUpdate()}frameUpdate(){const e=this.handle.x-this.x-this.handleSize*.5;this.realBarWidth=this.barWidth-this.handleSize,this.percent=e/this.realBarWidth,this.fullRect.width=e+this.handleSize*.5,this.emptyRect.x=this.handle.x,this.emptyRect.width=this.barWidth-this.fullRect.width;const t=this.stepNumber(this.percent*(this.max-this.min)+this.min);t!=this.value&&(this.value=t,this.emit("change",this.value))}}class Ei extends ys{constructor(e){super(e),this.width=e.width,this.height=e.height,this.cornerRadius=this.height/2,this.addShape([we.fromShape(new Ct({...e,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),{renderGroup:this.renderGroup,...e}),we.fromShape(new Dt({...e,x:this.x,y:this.y,radius:2}),{renderGroup:this.renderGroup,...e}),we.fromShape(new Dt({...e,x:this.x+this.width,y:this.y,radius:2}),{renderGroup:this.renderGroup,...e})])}frameUpdate(){super.frameUpdate()}getPin(){return{x:this.x+Math.cos($e(this.degree))*this.width,y:this.y+Math.sin($e(this.degree))*this.width}}}class Na extends ut{constructor(e){super(e),this.update(e)}update(e){this.extendDegree=e?.extendDegree||0,this.x=(e.x||0)+e.width/2;const t=Math.min(e.width/2,e.height)-e.lineWidth*1.5;this.radius=t-t*Math.abs(Math.sin($e(this.extendDegree))),this.y=(e.y||0)+e.height-e.lineWidth-this.radius*Math.abs(Math.sin($e(this.extendDegree))),this.startDegree=180+e.startDegree,this.endDegree=180+e.endDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(e.lineWidth),stroke:e.colorGradient||e.color||"none"})}frameUpdate(){}toSVGPathData(){const{dx:e,dy:t}=As($e(this.startDegree),this.radius),{dx:n,dy:i}=As($e(this.endDegree),this.radius);return[["M",this.x+e,this.y+t],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i]]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,$e(this.startDegree),$e(this.endDegree),!1)}}class l0 extends ls{fettis=[];constructor(e,t,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:d,ticks:m,colors:v,scalar:b,flat:C}=qo(n||{},{shape:sh,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Ig,scalar:1,flat:!1}),O=e*r,$=t*o,S=$e(l),Y=$e(c);let L=a;for(;L--;){const H=new i({x:O,y:$,transformBaseOnSelfInRenderGroup:!0,scaleOnOrigin:b,attrs:{fill:v[L%v.length]}});this.addShape(H),this.fettis.push({shape:H,x:O,y:$,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-S+(.5*Y-Math.random()*Y),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:m,decay:h,drift:d,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:b,flat:C})}}frameUpdate(){super.frameUpdate(),this.fettis.length&&(this.fettis=this.fettis.filter(e=>this.updateFetti(e)))}updateFetti(e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.x=e.x,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.shape.y=e.y,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.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 t=e.tick++/e.totalTicks,n=e.x+e.random*e.tiltCos,i=e.y+e.random*e.tiltSin,r=e.wobbleX+e.random*e.tiltCos,o=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",xi(e.shape.getAttr("fill"),1-t)),e.shape.scalexOnOrigin=Math.abs(r-n)*.1*e.shape.prevScalexOnOrigin,e.shape.scaleyOnOrigin=Math.abs(o-i)*.1*e.shape.prevScalexOnOrigin,e.shape.degree=jt(Math.PI/10*e.wobble),e.shape.x=e.x,e.shape.y=e.y,e.tick<e.totalTicks}}class $a{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e,t=!1){if(this.app=e,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Ta(this.app.container,this.app.width,this.app.height,t),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const n=this.shapes.length;let i=0;for(;i<n;i++){const r=this.shapes[i];this.ctx.save(),this.transformCtxBaseOnShape(r);const o=this.ctx.isPointInPath(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),r.isMouseIn=o,r.mouseX=this.app.mousePoint.x,r.mouseY=this.app.mousePoint.y,o&&(this.currentMouseInShapeID=r.id,r.enableDrag)){this.currentEnableDragMouseInShapeID=r.id,this.shapes.filter(a=>a.id!==r.id).forEach(a=>{a instanceof ut&&(a.isMouseIn=!1,a.mouseX=this.app.mousePoint.x,a.mouseY=this.app.mousePoint.y)});break}}i>=n&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}transformCtxBaseOnShape(e){e instanceof we||(e instanceof Nt||this.ctx.translate(e.x,e.y),this.ctx.rotate($e(e.degree),e.cX,e.cY),this.ctx.scale(e.scalexOnOrigin,e.scaleyOnOrigin,e.cX,e.cY))}_addShape(e){e instanceof ls?(e.frameUpdate(),e.shapes.forEach(t=>{t instanceof ls?this._addShape(t):this.shapes.push(t)})):this.shapes.push(e)}draw(e=[]){this.shapes=[],(Array.isArray(e)?e:[e]).forEach(t=>{this._addShape(t)});for(let t of this.shapes)if(t.isShow){if(this.ctx.save(),K.attrsToCanvas(this.ctx,t.attrs),t.followMouse&&(!fi(t.x,this.app.mousePoint.x,5)||!fi(t.y,this.app.mousePoint.y,5))&&(t.rotateTo(this.app.mousePoint),t.followTo(this.app.mousePoint)),t.targetToAfterDragFree&&(this.isMouseDown||t.nextFrameEaseTo({x:t.targetToAfterDragFree.targetX,y:t.targetToAfterDragFree.targetY},{easing:t.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==t.id){const{dx:n,dy:i}=t.centerDiff,r=t.x,o=t.y;if(t.x=this.app.mousePoint.x-n,t.y=this.app.mousePoint.y-i,t.alongPath){const a=t.alongPath.closestPoint(t.x,t.y);t.x=a.point.x,t.y=a.point.y}t.isDragging=!0,t.emit("moving",t.x-r,t.y-o)}else t.isDragging=!1;t.frameUpdate(),this.transformCtxBaseOnShape(t),t.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),t.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(e){const t=()=>{this.shapes.forEach(n=>{(n instanceof we&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx))||this.currentMouseInShapeID==n.id)&&e(n)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}drawMouseMoveLine(e="line",t){switch(e){case"brush":const n=t?.brushSize??10,i=t?.brushDensity??50,r=t?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=tn(r);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,f=this.app.mousePoint.x+Math.cos(u)*h|0,d=this.app.mousePoint.y+Math.sin(u)*h|0,m=(f+d*o.width)*4;a[m]=l.r,a[m+1]=l.g,a[m+2]=l.b,a[m+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}class c0{map;constructor(e,t=120.619585,n=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(t,n),i)}}const u0=oe({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("span",{class:"icon",style:M(["color: "+t.color])},[ue(ke(Vu),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),h0=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
56
|
-
`,
|
|
57
|
-
`]],["__scopeId","data-v-2205d3fb"]]),
|
|
51
|
+
* Licensed under the MIT license */(function(o){(function(t,e,s,r){var n=["","webkit","Moz","MS","ms","o"],a=e.createElement("div"),i="function",l=Math.round,c=Math.abs,u=Date.now;function d(m,g,C){return setTimeout(Y(m,C),g)}function f(m,g,C){return Array.isArray(m)?(p(m,C[g],C),!0):!1}function p(m,g,C){var L;if(m)if(m.forEach)m.forEach(g,C);else if(m.length!==r)for(L=0;L<m.length;)g.call(C,m[L],L,m),L++;else for(L in m)m.hasOwnProperty(L)&&g.call(C,m[L],L,m)}function h(m,g,C){var L="DEPRECATED METHOD: "+g+`
|
|
52
|
+
`+C+` AT
|
|
53
|
+
`;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",Nt=t.console&&(t.console.warn||t.console.log);return Nt&&Nt.call(t.console,L,mt),m.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(g){if(g===r||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var C=Object(g),L=1;L<arguments.length;L++){var ot=arguments[L];if(ot!==r&&ot!==null)for(var mt in ot)ot.hasOwnProperty(mt)&&(C[mt]=ot[mt])}return C}:y=Object.assign;var v=h(function(g,C,L){for(var ot=Object.keys(C),mt=0;mt<ot.length;)(!L||L&&g[ot[mt]]===r)&&(g[ot[mt]]=C[ot[mt]]),mt++;return g},"extend","Use `assign`."),_=h(function(g,C){return v(g,C,!0)},"merge","Use `assign`.");function z(m,g,C){var L=g.prototype,ot;ot=m.prototype=Object.create(L),ot.constructor=m,ot._super=L,C&&y(ot,C)}function Y(m,g){return function(){return m.apply(g,arguments)}}function O(m,g){return typeof m==i?m.apply(g&&g[0]||r,g):m}function G(m,g){return m===r?g:m}function J(m,g,C){p(E(g),function(L){m.addEventListener(L,C,!1)})}function H(m,g,C){p(E(g),function(L){m.removeEventListener(L,C,!1)})}function it(m,g){for(;m;){if(m==g)return!0;m=m.parentNode}return!1}function w(m,g){return m.indexOf(g)>-1}function E(m){return m.trim().split(/\s+/g)}function F(m,g,C){if(m.indexOf&&!C)return m.indexOf(g);for(var L=0;L<m.length;){if(C&&m[L][C]==g||!C&&m[L]===g)return L;L++}return-1}function P(m){return Array.prototype.slice.call(m,0)}function $(m,g,C){for(var L=[],ot=[],mt=0;mt<m.length;){var Nt=g?m[mt][g]:m[mt];F(ot,Nt)<0&&L.push(m[mt]),ot[mt]=Nt,mt++}return C&&(g?L=L.sort(function(Te,Me){return Te[g]>Me[g]}):L=L.sort()),L}function B(m,g){for(var C,L,ot=g[0].toUpperCase()+g.slice(1),mt=0;mt<n.length;){if(C=n[mt],L=C?C+ot:g,L in m)return L;mt++}return r}var st=1;function K(){return st++}function Z(m){var g=m.ownerDocument||m;return g.defaultView||g.parentWindow||t}var nt=/mobile|tablet|ip(ad|hone|od)|android/i,U="ontouchstart"in t,X=B(t,"PointerEvent")!==r,yt=U&&nt.test(navigator.userAgent),N="touch",A="pen",k="mouse",Yt="kinect",zt=25,Tt=1,ae=2,Bt=4,ee=8,De=1,Ye=2,Ie=4,b=8,S=16,V=Ye|Ie,j=b|S,q=V|j,at=["x","y"],dt=["clientX","clientY"];function Q(m,g){var C=this;this.manager=m,this.callback=g,this.element=m.element,this.target=m.options.inputTarget,this.domHandler=function(L){O(m.options.enable,[m])&&C.handler(L)},this.init()}Q.prototype={handler:function(){},init:function(){this.evEl&&J(this.element,this.evEl,this.domHandler),this.evTarget&&J(this.target,this.evTarget,this.domHandler),this.evWin&&J(Z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&H(this.element,this.evEl,this.domHandler),this.evTarget&&H(this.target,this.evTarget,this.domHandler),this.evWin&&H(Z(this.element),this.evWin,this.domHandler)}};function lt(m){var g,C=m.options.inputClass;return C?g=C:X?g=qi:yt?g=Un:U?g=Ki:g=Le,new g(m,et)}function et(m,g,C){var L=C.pointers.length,ot=C.changedPointers.length,mt=g&Tt&&L-ot===0,Nt=g&(Bt|ee)&&L-ot===0;C.isFirst=!!mt,C.isFinal=!!Nt,mt&&(m.session={}),C.eventType=g,pt(m,C),m.emit("hammer.input",C),m.recognize(C),m.session.prevInput=C}function pt(m,g){var C=m.session,L=g.pointers,ot=L.length;C.firstInput||(C.firstInput=It(g)),ot>1&&!C.firstMultiple?C.firstMultiple=It(g):ot===1&&(C.firstMultiple=!1);var mt=C.firstInput,Nt=C.firstMultiple,be=Nt?Nt.center:mt.center,Te=g.center=Dt(L);g.timeStamp=u(),g.deltaTime=g.timeStamp-mt.timeStamp,g.angle=$e(be,Te),g.distance=ie(be,Te),wt(C,g),g.offsetDirection=Kt(g.deltaX,g.deltaY);var Me=Xt(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Me.x,g.overallVelocityY=Me.y,g.overallVelocity=c(Me.x)>c(Me.y)?Me.x:Me.y,g.scale=Nt?Bn(Nt.pointers,L):1,g.rotation=Nt?Us(Nt.pointers,L):0,g.maxPointers=C.prevInput?g.pointers.length>C.prevInput.maxPointers?g.pointers.length:C.prevInput.maxPointers:g.pointers.length,xt(C,g);var hs=m.element;it(g.srcEvent.target,hs)&&(hs=g.srcEvent.target),g.target=hs}function wt(m,g){var C=g.center,L=m.offsetDelta||{},ot=m.prevDelta||{},mt=m.prevInput||{};(g.eventType===Tt||mt.eventType===Bt)&&(ot=m.prevDelta={x:mt.deltaX||0,y:mt.deltaY||0},L=m.offsetDelta={x:C.x,y:C.y}),g.deltaX=ot.x+(C.x-L.x),g.deltaY=ot.y+(C.y-L.y)}function xt(m,g){var C=m.lastInterval||g,L=g.timeStamp-C.timeStamp,ot,mt,Nt,be;if(g.eventType!=ee&&(L>zt||C.velocity===r)){var Te=g.deltaX-C.deltaX,Me=g.deltaY-C.deltaY,hs=Xt(L,Te,Me);mt=hs.x,Nt=hs.y,ot=c(hs.x)>c(hs.y)?hs.x:hs.y,be=Kt(Te,Me),m.lastInterval=g}else ot=C.velocity,mt=C.velocityX,Nt=C.velocityY,be=C.direction;g.velocity=ot,g.velocityX=mt,g.velocityY=Nt,g.direction=be}function It(m){for(var g=[],C=0;C<m.pointers.length;)g[C]={clientX:l(m.pointers[C].clientX),clientY:l(m.pointers[C].clientY)},C++;return{timeStamp:u(),pointers:g,center:Dt(g),deltaX:m.deltaX,deltaY:m.deltaY}}function Dt(m){var g=m.length;if(g===1)return{x:l(m[0].clientX),y:l(m[0].clientY)};for(var C=0,L=0,ot=0;ot<g;)C+=m[ot].clientX,L+=m[ot].clientY,ot++;return{x:l(C/g),y:l(L/g)}}function Xt(m,g,C){return{x:g/m||0,y:C/m||0}}function Kt(m,g){return m===g?De:c(m)>=c(g)?m<0?Ye:Ie:g<0?b:S}function ie(m,g,C){C||(C=at);var L=g[C[0]]-m[C[0]],ot=g[C[1]]-m[C[1]];return Math.sqrt(L*L+ot*ot)}function $e(m,g,C){C||(C=at);var L=g[C[0]]-m[C[0]],ot=g[C[1]]-m[C[1]];return Math.atan2(ot,L)*180/Math.PI}function Us(m,g){return $e(g[1],g[0],dt)+$e(m[1],m[0],dt)}function Bn(m,g){return ie(g[0],g[1],dt)/ie(m[0],m[1],dt)}var vo={mousedown:Tt,mousemove:ae,mouseup:Bt},Xn="mousedown",Ce="mousemove mouseup";function Le(){this.evEl=Xn,this.evWin=Ce,this.pressed=!1,Q.apply(this,arguments)}z(Le,Q,{handler:function(g){var C=vo[g.type];C&Tt&&g.button===0&&(this.pressed=!0),C&ae&&g.which!==1&&(C=Bt),this.pressed&&(C&Bt&&(this.pressed=!1),this.callback(this.manager,C,{pointers:[g],changedPointers:[g],pointerType:k,srcEvent:g}))}});var Gn={pointerdown:Tt,pointermove:ae,pointerup:Bt,pointercancel:ee,pointerout:ee},$_={2:N,3:A,4:k,5:Yt},_h="pointerdown",xh="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(_h="MSPointerDown",xh="MSPointerMove MSPointerUp MSPointerCancel");function qi(){this.evEl=_h,this.evWin=xh,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}z(qi,Q,{handler:function(g){var C=this.store,L=!1,ot=g.type.toLowerCase().replace("ms",""),mt=Gn[ot],Nt=$_[g.pointerType]||g.pointerType,be=Nt==N,Te=F(C,g.pointerId,"pointerId");mt&Tt&&(g.button===0||be)?Te<0&&(C.push(g),Te=C.length-1):mt&(Bt|ee)&&(L=!0),!(Te<0)&&(C[Te]=g,this.callback(this.manager,mt,{pointers:C,changedPointers:[g],pointerType:Nt,srcEvent:g}),L&&C.splice(Te,1))}});var L_={touchstart:Tt,touchmove:ae,touchend:Bt,touchcancel:ee},M_="touchstart",N_="touchstart touchmove touchend touchcancel";function wh(){this.evTarget=M_,this.evWin=N_,this.started=!1,Q.apply(this,arguments)}z(wh,Q,{handler:function(g){var C=L_[g.type];if(C===Tt&&(this.started=!0),!!this.started){var L=A_.call(this,g,C);C&(Bt|ee)&&L[0].length-L[1].length===0&&(this.started=!1),this.callback(this.manager,C,{pointers:L[0],changedPointers:L[1],pointerType:N,srcEvent:g})}}});function A_(m,g){var C=P(m.touches),L=P(m.changedTouches);return g&(Bt|ee)&&(C=$(C.concat(L),"identifier",!0)),[C,L]}var z_={touchstart:Tt,touchmove:ae,touchend:Bt,touchcancel:ee},V_="touchstart touchmove touchend touchcancel";function Un(){this.evTarget=V_,this.targetIds={},Q.apply(this,arguments)}z(Un,Q,{handler:function(g){var C=z_[g.type],L=Y_.call(this,g,C);L&&this.callback(this.manager,C,{pointers:L[0],changedPointers:L[1],pointerType:N,srcEvent:g})}});function Y_(m,g){var C=P(m.touches),L=this.targetIds;if(g&(Tt|ae)&&C.length===1)return L[C[0].identifier]=!0,[C,C];var ot,mt,Nt=P(m.changedTouches),be=[],Te=this.target;if(mt=C.filter(function(Me){return it(Me.target,Te)}),g===Tt)for(ot=0;ot<mt.length;)L[mt[ot].identifier]=!0,ot++;for(ot=0;ot<Nt.length;)L[Nt[ot].identifier]&&be.push(Nt[ot]),g&(Bt|ee)&&delete L[Nt[ot].identifier],ot++;if(be.length)return[$(mt.concat(be),"identifier",!0),be]}var B_=2500,kh=25;function Ki(){Q.apply(this,arguments);var m=Y(this.handler,this);this.touch=new Un(this.manager,m),this.mouse=new Le(this.manager,m),this.primaryTouch=null,this.lastTouches=[]}z(Ki,Q,{handler:function(g,C,L){var ot=L.pointerType==N,mt=L.pointerType==k;if(!(mt&&L.sourceCapabilities&&L.sourceCapabilities.firesTouchEvents)){if(ot)X_.call(this,C,L);else if(mt&&G_.call(this,L))return;this.callback(g,C,L)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function X_(m,g){m&Tt?(this.primaryTouch=g.changedPointers[0].identifier,Ch.call(this,g)):m&(Bt|ee)&&Ch.call(this,g)}function Ch(m){var g=m.changedPointers[0];if(g.identifier===this.primaryTouch){var C={x:g.clientX,y:g.clientY};this.lastTouches.push(C);var L=this.lastTouches,ot=function(){var mt=L.indexOf(C);mt>-1&&L.splice(mt,1)};setTimeout(ot,B_)}}function G_(m){for(var g=m.srcEvent.clientX,C=m.srcEvent.clientY,L=0;L<this.lastTouches.length;L++){var ot=this.lastTouches[L],mt=Math.abs(g-ot.x),Nt=Math.abs(C-ot.y);if(mt<=kh&&Nt<=kh)return!0}return!1}var Th=B(a.style,"touchAction"),Sh=Th!==r,Eh="compute",Ph="auto",Qi="manipulation",bo="none",br="pan-x",_r="pan-y",jn=j_();function Ji(m,g){this.manager=m,this.set(g)}Ji.prototype={set:function(m){m==Eh&&(m=this.compute()),Sh&&this.manager.element.style&&jn[m]&&(this.manager.element.style[Th]=m),this.actions=m.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var m=[];return p(this.manager.recognizers,function(g){O(g.options.enable,[g])&&(m=m.concat(g.getTouchAction()))}),U_(m.join(" "))},preventDefaults:function(m){var g=m.srcEvent,C=m.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var L=this.actions,ot=w(L,bo)&&!jn[bo],mt=w(L,_r)&&!jn[_r],Nt=w(L,br)&&!jn[br];if(ot){var be=m.pointers.length===1,Te=m.distance<2,Me=m.deltaTime<250;if(be&&Te&&Me)return}if(!(Nt&&mt)&&(ot||mt&&C&V||Nt&&C&j))return this.preventSrc(g)},preventSrc:function(m){this.manager.session.prevented=!0,m.preventDefault()}};function U_(m){if(w(m,bo))return bo;var g=w(m,br),C=w(m,_r);return g&&C?bo:g||C?g?br:_r:w(m,Qi)?Qi:Ph}function j_(){if(!Sh)return!1;var m={},g=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(C){m[C]=g?t.CSS.supports("touch-action",C):!0}),m}var Hn=1,Ke=2,Mo=4,js=8,Es=js,xr=16,ds=32;function Ps(m){this.options=y({},this.defaults,m||{}),this.id=K(),this.manager=null,this.options.enable=G(this.options.enable,!0),this.state=Hn,this.simultaneous={},this.requireFail=[]}Ps.prototype={defaults:{},set:function(m){return y(this.options,m),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(m){if(f(m,"recognizeWith",this))return this;var g=this.simultaneous;return m=Zn(m,this),g[m.id]||(g[m.id]=m,m.recognizeWith(this)),this},dropRecognizeWith:function(m){return f(m,"dropRecognizeWith",this)?this:(m=Zn(m,this),delete this.simultaneous[m.id],this)},requireFailure:function(m){if(f(m,"requireFailure",this))return this;var g=this.requireFail;return m=Zn(m,this),F(g,m)===-1&&(g.push(m),m.requireFailure(this)),this},dropRequireFailure:function(m){if(f(m,"dropRequireFailure",this))return this;m=Zn(m,this);var g=F(this.requireFail,m);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(m){return!!this.simultaneous[m.id]},emit:function(m){var g=this,C=this.state;function L(ot){g.manager.emit(ot,m)}C<js&&L(g.options.event+Oh(C)),L(g.options.event),m.additionalEvent&&L(m.additionalEvent),C>=js&&L(g.options.event+Oh(C))},tryEmit:function(m){if(this.canEmit())return this.emit(m);this.state=ds},canEmit:function(){for(var m=0;m<this.requireFail.length;){if(!(this.requireFail[m].state&(ds|Hn)))return!1;m++}return!0},recognize:function(m){var g=y({},m);if(!O(this.options.enable,[this,g])){this.reset(),this.state=ds;return}this.state&(Es|xr|ds)&&(this.state=Hn),this.state=this.process(g),this.state&(Ke|Mo|js|xr)&&this.tryEmit(g)},process:function(m){},getTouchAction:function(){},reset:function(){}};function Oh(m){return m&xr?"cancel":m&js?"end":m&Mo?"move":m&Ke?"start":""}function Ih(m){return m==S?"down":m==b?"up":m==Ye?"left":m==Ie?"right":""}function Zn(m,g){var C=g.manager;return C?C.get(m):m}function ss(){Ps.apply(this,arguments)}z(ss,Ps,{defaults:{pointers:1},attrTest:function(m){var g=this.options.pointers;return g===0||m.pointers.length===g},process:function(m){var g=this.state,C=m.eventType,L=g&(Ke|Mo),ot=this.attrTest(m);return L&&(C&ee||!ot)?g|xr:L||ot?C&Bt?g|js:g&Ke?g|Mo:Ke:ds}});function Wn(){ss.apply(this,arguments),this.pX=null,this.pY=null}z(Wn,ss,{defaults:{event:"pan",threshold:10,pointers:1,direction:q},getTouchAction:function(){var m=this.options.direction,g=[];return m&V&&g.push(_r),m&j&&g.push(br),g},directionTest:function(m){var g=this.options,C=!0,L=m.distance,ot=m.direction,mt=m.deltaX,Nt=m.deltaY;return ot&g.direction||(g.direction&V?(ot=mt===0?De:mt<0?Ye:Ie,C=mt!=this.pX,L=Math.abs(m.deltaX)):(ot=Nt===0?De:Nt<0?b:S,C=Nt!=this.pY,L=Math.abs(m.deltaY))),m.direction=ot,C&&L>g.threshold&&ot&g.direction},attrTest:function(m){return ss.prototype.attrTest.call(this,m)&&(this.state&Ke||!(this.state&Ke)&&this.directionTest(m))},emit:function(m){this.pX=m.deltaX,this.pY=m.deltaY;var g=Ih(m.direction);g&&(m.additionalEvent=this.options.event+g),this._super.emit.call(this,m)}});function tl(){ss.apply(this,arguments)}z(tl,ss,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bo]},attrTest:function(m){return this._super.attrTest.call(this,m)&&(Math.abs(m.scale-1)>this.options.threshold||this.state&Ke)},emit:function(m){if(m.scale!==1){var g=m.scale<1?"in":"out";m.additionalEvent=this.options.event+g}this._super.emit.call(this,m)}});function el(){Ps.apply(this,arguments),this._timer=null,this._input=null}z(el,Ps,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ph]},process:function(m){var g=this.options,C=m.pointers.length===g.pointers,L=m.distance<g.threshold,ot=m.deltaTime>g.time;if(this._input=m,!L||!C||m.eventType&(Bt|ee)&&!ot)this.reset();else if(m.eventType&Tt)this.reset(),this._timer=d(function(){this.state=Es,this.tryEmit()},g.time,this);else if(m.eventType&Bt)return Es;return ds},reset:function(){clearTimeout(this._timer)},emit:function(m){this.state===Es&&(m&&m.eventType&Bt?this.manager.emit(this.options.event+"up",m):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function sl(){ss.apply(this,arguments)}z(sl,ss,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bo]},attrTest:function(m){return this._super.attrTest.call(this,m)&&(Math.abs(m.rotation)>this.options.threshold||this.state&Ke)}});function ol(){ss.apply(this,arguments)}z(ol,ss,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:V|j,pointers:1},getTouchAction:function(){return Wn.prototype.getTouchAction.call(this)},attrTest:function(m){var g=this.options.direction,C;return g&(V|j)?C=m.overallVelocity:g&V?C=m.overallVelocityX:g&j&&(C=m.overallVelocityY),this._super.attrTest.call(this,m)&&g&m.offsetDirection&&m.distance>this.options.threshold&&m.maxPointers==this.options.pointers&&c(C)>this.options.velocity&&m.eventType&Bt},emit:function(m){var g=Ih(m.offsetDirection);g&&this.manager.emit(this.options.event+g,m),this.manager.emit(this.options.event,m)}});function qn(){Ps.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}z(qn,Ps,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Qi]},process:function(m){var g=this.options,C=m.pointers.length===g.pointers,L=m.distance<g.threshold,ot=m.deltaTime<g.time;if(this.reset(),m.eventType&Tt&&this.count===0)return this.failTimeout();if(L&&ot&&C){if(m.eventType!=Bt)return this.failTimeout();var mt=this.pTime?m.timeStamp-this.pTime<g.interval:!0,Nt=!this.pCenter||ie(this.pCenter,m.center)<g.posThreshold;this.pTime=m.timeStamp,this.pCenter=m.center,!Nt||!mt?this.count=1:this.count+=1,this._input=m;var be=this.count%g.taps;if(be===0)return this.hasRequireFailures()?(this._timer=d(function(){this.state=Es,this.tryEmit()},g.interval,this),Ke):Es}return ds},failTimeout:function(){return this._timer=d(function(){this.state=ds},this.options.interval,this),ds},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Es&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Os(m,g){return g=g||{},g.recognizers=G(g.recognizers,Os.defaults.preset),new rl(m,g)}Os.VERSION="2.0.7",Os.defaults={domEvents:!1,touchAction:Eh,enable:!0,inputTarget:null,inputClass:null,preset:[[sl,{enable:!1}],[tl,{enable:!1},["rotate"]],[ol,{direction:V}],[Wn,{direction:V},["swipe"]],[qn],[qn,{event:"doubletap",taps:2},["tap"]],[el]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var H_=1,Rh=2;function rl(m,g){this.options=y({},Os.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||m,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=m,this.input=lt(this),this.touchAction=new Ji(this,this.options.touchAction),Fh(this,!0),p(this.options.recognizers,function(C){var L=this.add(new C[0](C[1]));C[2]&&L.recognizeWith(C[2]),C[3]&&L.requireFailure(C[3])},this)}rl.prototype={set:function(m){return y(this.options,m),m.touchAction&&this.touchAction.update(),m.inputTarget&&(this.input.destroy(),this.input.target=m.inputTarget,this.input.init()),this},stop:function(m){this.session.stopped=m?Rh:H_},recognize:function(m){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(m);var C,L=this.recognizers,ot=g.curRecognizer;(!ot||ot&&ot.state&Es)&&(ot=g.curRecognizer=null);for(var mt=0;mt<L.length;)C=L[mt],g.stopped!==Rh&&(!ot||C==ot||C.canRecognizeWith(ot))?C.recognize(m):C.reset(),!ot&&C.state&(Ke|Mo|js)&&(ot=g.curRecognizer=C),mt++}},get:function(m){if(m instanceof Ps)return m;for(var g=this.recognizers,C=0;C<g.length;C++)if(g[C].options.event==m)return g[C];return null},add:function(m){if(f(m,"add",this))return this;var g=this.get(m.options.event);return g&&this.remove(g),this.recognizers.push(m),m.manager=this,this.touchAction.update(),m},remove:function(m){if(f(m,"remove",this))return this;if(m=this.get(m),m){var g=this.recognizers,C=F(g,m);C!==-1&&(g.splice(C,1),this.touchAction.update())}return this},on:function(m,g){if(m!==r&&g!==r){var C=this.handlers;return p(E(m),function(L){C[L]=C[L]||[],C[L].push(g)}),this}},off:function(m,g){if(m!==r){var C=this.handlers;return p(E(m),function(L){g?C[L]&&C[L].splice(F(C[L],g),1):delete C[L]}),this}},emit:function(m,g){this.options.domEvents&&Z_(m,g);var C=this.handlers[m]&&this.handlers[m].slice();if(!(!C||!C.length)){g.type=m,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var L=0;L<C.length;)C[L](g),L++}},destroy:function(){this.element&&Fh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Fh(m,g){var C=m.element;if(C.style){var L;p(m.options.cssProps,function(ot,mt){L=B(C.style,mt),g?(m.oldCssProps[L]=C.style[L],C.style[L]=ot):C.style[L]=m.oldCssProps[L]||""}),g||(m.oldCssProps={})}}function Z_(m,g){var C=e.createEvent("Event");C.initEvent(m,!0,!0),C.gesture=g,g.target.dispatchEvent(C)}y(Os,{INPUT_START:Tt,INPUT_MOVE:ae,INPUT_END:Bt,INPUT_CANCEL:ee,STATE_POSSIBLE:Hn,STATE_BEGAN:Ke,STATE_CHANGED:Mo,STATE_ENDED:js,STATE_RECOGNIZED:Es,STATE_CANCELLED:xr,STATE_FAILED:ds,DIRECTION_NONE:De,DIRECTION_LEFT:Ye,DIRECTION_RIGHT:Ie,DIRECTION_UP:b,DIRECTION_DOWN:S,DIRECTION_HORIZONTAL:V,DIRECTION_VERTICAL:j,DIRECTION_ALL:q,Manager:rl,Input:Q,TouchAction:Ji,TouchInput:Un,MouseInput:Le,PointerEventInput:qi,TouchMouseInput:Ki,SingleTouchInput:wh,Recognizer:Ps,AttrRecognizer:ss,Tap:qn,Pan:Wn,Swipe:ol,Pinch:tl,Rotate:sl,Press:el,on:J,off:H,each:p,merge:_,extend:v,assign:y,inherit:z,bindFn:Y,prefixed:B});var W_=typeof t<"u"?t:typeof self<"u"?self:{};W_.Hammer=Os,typeof r=="function"&&r.amd?r(function(){return Os}):o.exports?o.exports=Os:t[s]=Os})(window,document,"Hammer")})(ud);var Ig=ud.exports;const Rg=Og(Ig);class Fg{constructor(){}static getFormatKeyNames(t){const e=ng(),s=[];return t.ctrl&&s.push(e?"Cmd":"Ctrl"),t.shift&&s.push("Shift"),t.alt&&s.push("Alt"),typeof t.key=="string"?s.push(Ga(t.key)):Array.isArray(t.key)&&(t.key.map(r=>Ga(r)),s.push(...t.key)),s}static matchKeyScheme(t,e){const s=t.ctrl??!1,r=t.shift??!1,n=t.alt??!1;if(t.exact)return(s===e.metaKey||s===e.ctrlKey)&&r===e.shiftKey&&n===e.altKey;const a=[];return s&&a.push(s===e.metaKey||s===e.ctrlKey),r&&a.push(r===e.shiftKey),n&&a.push(n===e.altKey),a.every(i=>i)}static on(t,e){if(t?.key===void 0||t?.key===null)return e;const s=t?.target??window;let r=!1;const n=this.getFormatKeyNames(t),a=i=>{if(i.stopPropagation(),!r&&i.key!=="Control"&&i.key!=="Meta"&&i.key!=="Shift"&&i.key!=="Option"&&i.key!=="Alt"&&n.find(l=>l.toLowerCase()===i.key.toLowerCase())&&this.matchKeyScheme(t,i)){i.preventDefault();const l=e(i);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),s.removeEventListener("keyup",c)};s.addEventListener("keyup",c)}};return e.title=t?.title??"",e.formatedKeyNames=n,e.pause=()=>r=!0,e.restart=()=>r=!1,e.removeListener=()=>s.removeEventListener("keydown",a),s.addEventListener("keydown",a),e}}class Ue extends nn{container;width;height;mousePoint;hammer;removes=[];constructor(t=document.documentElement,e=!0,s){super(),this.container=t,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.hammer=new Rg(this.container),this.mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0},e&&this.start(s)}emitDebounce=Hm((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.registerInputEventListeners(),this.registerTransitionEventListeners(),this.registerAnimationEventListeners(),this.registerResizeObserver(),this.registerElementDisplayInParent(),t&&t.forEach(e=>{this.addRemoves(e())}),this.captureMove()}destroy(){this.removes.forEach(t=>t()),this.removes=[],this.removeAllListeners()}restart(){this.destroy(),this.start()}addRemoves(t){this.removes.push(t)}registerMouseEventListeners(){const t=N=>{this.emit("mouseDown",N)},e=N=>{this.emit("mouseUp",N)},s=N=>{this.emit("mouseMove",N)},r=N=>{this.emit("mouseOver",N)},n=N=>{this.emit("mouseOut",N)},a=N=>{this.emit("mouseClick",N)},i=N=>{this.emit("mouseDoubleClick",N)},l=N=>{this.emit("mouseWheel",N)},c=N=>{this.emit("mouseContextMenu",N)},u=N=>{this.emit("touchStart",N)},d=N=>{this.emit("touchEnd",N)},f=N=>{this.emit("touchCancel",N)},p=N=>{this.emit("touchMove",N)},h=N=>{this.emit("pointerDown",N)},y=N=>{this.emit("pointerUp",N)},v=N=>{this.emit("pointerCancel",N)},_=N=>{this.emit("pointerMove",N)},z=N=>{this.emit("pan",N)},Y=N=>{this.emit("panStart",N)},O=N=>{this.emit("panMove",N)},G=N=>{this.emit("panEnd",N)},J=N=>{this.emit("panCancel",N)},H=N=>{this.emit("panLeft",N)},it=N=>{this.emit("panRight",N)},w=N=>{this.emit("panUp",N)},E=N=>{this.emit("panDown",N)},F=N=>{this.emit("pinch",N)},P=N=>{this.emit("press",N)},$=N=>{this.emit("rotate",N)},B=N=>{this.emit("swipe",N)},st=N=>{this.emit("swipeLeft",N)},K=N=>{this.emit("swipeRight",N)},Z=N=>{this.emit("swipeUp",N)},nt=N=>{this.emit("swipeDown",N)},U=N=>{this.emit("tap",N)},X=N=>{!N.target||this.container==N.target||this.container.contains(N.target)||this.emit("tapOutSide",N)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),this.container.addEventListener("mousemove",s),this.container.addEventListener("mouseover",r),this.container.addEventListener("mouseout",n),this.container.addEventListener("click",a),this.container.addEventListener("dblclick",i),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",d),this.container.addEventListener("touchcancel",f),this.container.addEventListener("touchmove",p),this.container.addEventListener("pointerdown",h),this.container.addEventListener("pointerup",y),this.container.addEventListener("pointercancel",v),this.container.addEventListener("pointermove",_),this.hammer.on("pan",z),this.hammer.on("panstart",Y),this.hammer.on("panmove",O),this.hammer.on("panend",G),this.hammer.on("pancancel",J),this.hammer.on("panleft",H),this.hammer.on("panright",it),this.hammer.on("panup",w),this.hammer.on("pandown",E),this.hammer.on("pinch",F),this.hammer.on("press",P),this.hammer.on("rotate",$),this.hammer.on("swipe",B),this.hammer.on("swipeleft",st),this.hammer.on("swiperight",K),this.hammer.on("swipeup",Z),this.hammer.on("swipedown",nt),this.hammer.on("tap",U),document.addEventListener("pointerdown",X,!1);const yt=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),this.container.removeEventListener("mousemove",s),this.container.removeEventListener("mouseover",r),this.container.removeEventListener("mouseout",n),this.container.removeEventListener("click",a),this.container.removeEventListener("dblclick",i),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",d),this.container.removeEventListener("touchcancel",f),this.container.removeEventListener("touchmove",p),this.container.removeEventListener("pointerdown",h),this.container.removeEventListener("pointerup",y),this.container.removeEventListener("pointercancel",v),this.container.removeEventListener("pointermove",_),this.hammer.off("pan",z),this.hammer.off("panstart",Y),this.hammer.off("panmove",O),this.hammer.off("panend",G),this.hammer.off("pancancel",J),this.hammer.off("panleft",H),this.hammer.off("panright",it),this.hammer.off("panup",w),this.hammer.off("pandown",E),this.hammer.off("pinch",F),this.hammer.off("press",P),this.hammer.off("rotate",$),this.hammer.off("swipe",B),this.hammer.off("swipeleft",st),this.hammer.off("swiperight",K),this.hammer.off("swipeup",Z),this.hammer.off("swipedown",nt),this.hammer.off("tap",U),document.removeEventListener("pointerdown",X,!1),document.removeEventListener("touchstart",X,!1),document.removeEventListener("mousedown",X,!1)};return this.addRemoves(yt),yt}registerInputEventListeners(){const t=l=>{this.emit("inputChange",l,this.container.files)},e=l=>{this.emit("dragstart",l)},s=l=>{l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},r=l=>{this.emit("dragenter",l)},n=l=>{this.emit("dragend",l)},a=l=>{l.dataTransfer,this.emit("drop",l,l.dataTransfer?.files)};this.container instanceof HTMLInputElement&&this.container.addEventListener("change",t,!1),this.container.addEventListener("dragstart",e,!1),this.container.addEventListener("dragover",s,!1),this.container.addEventListener("dragenter",r,!1),this.container.addEventListener("dragend",n,!1),this.container.addEventListener("drop",a,!1);const i=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",t,!1),this.container.removeEventListener("dragstart",e,!1),this.container.removeEventListener("dragover",s,!1),this.container.removeEventListener("dragenter",r,!1),this.container.removeEventListener("dragend",n,!1),this.container.removeEventListener("drop",a,!1)};return this.addRemoves(i),i}registerTransitionEventListeners(){const t=r=>{this.emit("transitionstart",r)},e=r=>{this.emit("transitionend",r)};this.container.addEventListener("transitionstart",t),this.container.addEventListener("transitionend",e);const s=()=>{this.container.removeEventListener("transitionstart",t),this.container.removeEventListener("transitionend",e)};return this.addRemoves(s),s}registerAnimationEventListeners(){const t=r=>{this.emit("animationstart",r)},e=r=>{this.emit("animationend",r)};this.container.addEventListener("animationstart",t),this.container.addEventListener("animationend",e);const s=()=>{this.container.removeEventListener("animationstart",t),this.container.removeEventListener("animationend",e)};return this.addRemoves(s),s}registerKeyDown(t,e,s){const r=Fg.on(t,a=>(e(a,r.formatedKeyNames,r.pause,r.restart),s)),n=()=>{r.removeListener?.()};return this.addRemoves(n),n}registerResizeObserver(){const t=new ResizeObserver(s=>{const{width:r,height:n}=s[0].contentRect;this.width=r,this.height=n,this.emit("resize",r,n)});t.observe(this.container);const e=()=>{t.unobserve(this.container)};return this.addRemoves(e),e}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},s=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);s.observe(this.container);const r=()=>{s.unobserve(this.container)};return this.addRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureMove({move:(s,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullDowning",r.dStartY)},end:(s,r)=>{r.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureMove({move:(s,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullUping",r.dStartY)},end:(s,r)=>{r.dStartY>=e&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||"ontouchend"in document||navigator.maxTouchPoints>0}isRunningSingletonCaptureMove=!1;captureMoveStarts=[];captureMoveMoves=[];captureMoveEnds=[];captureMove(t){const e=t?.start||(()=>{}),s=t?.move||(()=>{}),r=t?.end||(()=>{});return this.captureMoveStarts.push(e),this.captureMoveMoves.push(s),this.captureMoveEnds.push(r),this.isRunningSingletonCaptureMove||(this.isRunningSingletonCaptureMove=!0,this.captureMoveUsePointer(),this.addRemoves(()=>{this.captureMoveStarts=[],this.captureMoveMoves=[],this.captureMoveEnds=[]})),()=>{this.captureMoveStarts=this.captureMoveStarts.filter(n=>n!=e),this.captureMoveMoves=this.captureMoveMoves.filter(n=>n!=s),this.captureMoveEnds=this.captureMoveEnds.filter(n=>n!=r)}}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}captureMoveUsePointer(){let t,e;const s=i=>{e=Cs(i);const l={...e};t=l,this.setMousePoint(l),this.captureMoveStarts.forEach(c=>{c(i,l)})},r=i=>{e=Cs(i);const l={...e,dStartX:t?e.x-t.x:0,dStartY:t?e.y-t.y:0};this.setMousePoint(l),this.captureMoveEnds.forEach(c=>{c(i,l)}),t=null},n=i=>{const l={...e};e=Cs(i);const c={...e,dx:e.x-l.x,dy:e.y-l.y,dStartX:t?e.x-t.x:0,dStartY:t?e.y-t.y:0};this.setMousePoint(c),this.captureMoveMoves.forEach(u=>{u(i,c)})};this.on("pointerDown",s),this.on("pointerUp",r),this.on("pointerCancel",r),this.on("pointerMove",n);const a=()=>{this.off("pointerDown",s),this.off("pointerUp",r),this.off("pointerCancel",r),this.off("pointerMove",n)};return this.addRemoves(a),a}captureMoveUseMouse(){let t,e;const s=i=>{document.addEventListener("mousemove",n,!1),document.addEventListener("mouseup",r,!1),e=Cs(i);const l={...e};t=l,this.setMousePoint(l),this.captureMoveStarts.forEach(c=>{c(i,l)})},r=i=>{document.removeEventListener("mousemove",n,!1),document.removeEventListener("mouseup",r,!1),e=Cs(i);const l={...e,dStartX:t?e.x-t.x:0,dStartY:t?e.y-t.y:0};this.setMousePoint(l),this.captureMoveEnds.forEach(c=>{c(i,l)}),t=null},n=i=>{const l={...e};e=Cs(i);const c={...e,dx:e.x-l.x,dy:e.y-l.y,dStartX:t?e.x-t.x:0,dStartY:t?e.y-t.y:0};this.setMousePoint(c),this.captureMoveMoves.forEach(u=>{u(i,c)})};this.on("mouseDown",s);const a=()=>{this.off("mouseDown",s)};return this.addRemoves(a),a}captureMoveUseTouch(){let t,e;const s=i=>{const l=i.changedTouches[0];e=Cs(l);const c={...e};t=c,this.setMousePoint(c),this.captureMoveStarts.forEach(u=>{u(l,c)})},r=i=>{const l=i.changedTouches[0];e=Cs(l);const c={...e,dStartX:t?e.x-t.x:0,dStartY:t?e.y-t.y:0};this.setMousePoint(c),this.captureMoveEnds.forEach(u=>{u(l,c)}),t=null},n=i=>{const l=i.changedTouches[0],c={...e};e=Cs(l);const u={...e,dx:e.x-c.x,dy:e.y-c.y,dStartX:t?e.x-t.x:0,dStartY:t?e.y-t.y:0};this.setMousePoint(u),this.captureMoveMoves.forEach(d=>{d(l,u)})};this.on("touchStart",s),this.on("touchEnd",r),this.on("touchCancel",r),this.on("touchMove",n);const a=()=>{this.off("touchStart",s),this.off("touchEnd",r),this.off("touchCancel",r),this.off("touchMove",n)};return this.addRemoves(a),a}simulateMouseEvent(t,e){if(t.touches.length>1)return;const s=t.changedTouches[0],r=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});t.target?.dispatchEvent(r)}}const Oe=new Ue(document.documentElement,!0,[()=>Dg("(prefers-color-scheme: dark)"),$g,Mg,Lg]);Oe.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Q0().then(o=>J0(o[0])).then(o=>{Oe.emit("openFile",o)}).catch(o=>{Oe.emit("openFileError",o)})});function Dg(o){let t="";switch(o){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=o;break}const e=s=>{Oe.emit(t,s.matches)};return window.matchMedia(o).addEventListener("change",e),()=>{window.matchMedia(o).removeEventListener("change",e)}}function $g(){let o="";const t=new MutationObserver(r=>{location.href!==o&&(o=location.href,Oe.emit("urlchange",location.href))});t.observe(document,{attributes:!0,childList:!0,subtree:!0});const e=()=>{Oe.emit("hashchange",location.hash)};window.addEventListener("hashchange",e);const s=()=>{Oe.emit("popstate")};return window.addEventListener("popstate",s),()=>{t.disconnect(),window.removeEventListener("hashchange",e),window.removeEventListener("popstate",s)}}function Lg(){const o=n=>{Oe.emit("beforeunload",n)};window.addEventListener("beforeunload",o);const t=n=>{Oe.emit("pagehide",n)};window.addEventListener("pagehide",t);const e=n=>{Oe.emit("windowFocus",n)};window.addEventListener("focus",e);const s=n=>{Oe.emit("windowBlur",n)};window.addEventListener("blur",s);const r=n=>{document.hidden?Oe.emit("windowVisibilityChangeHide",n):Oe.emit("windowVisibilityChangeShow",n)};return document.addEventListener("visibilitychange",r),()=>{window.removeEventListener("beforeunload",o),window.removeEventListener("pagehide",t),window.removeEventListener("focus",e),window.removeEventListener("blur",s),document.removeEventListener("visibilitychange",r)}}function Mg(){const o=t=>{Oe.emit("scroll",t)};return document.addEventListener("scroll",o),()=>{document.removeEventListener("scroll",o)}}class Si{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"),s=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)",s.append(r),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(s),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(()=>{Si.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 Ng extends nn{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=ru(this.source);if(t===0){this.emit("finish");return}let e,s,r=nu(this.source,0);for(let n=1;n<t;n++)e=s,s=r,r=nu(this.source,n),this.raw+=s,s&&this.step(s,r,e);r&&this.step(r,void 0,s),this.emit("finish")}step(t,e,s){t==`
|
|
54
|
+
`&&this.emit("newline"),this.act(t,e,s)}act(t,e,s){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":is("whitespace",t)?(this.textchunk+=rt.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=rt.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(s=="!"&&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(s=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,s)),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=="-"&&s=="-"&&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(!is("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,s)}break;case"close tag name start":is("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,s));break;case"close tag name":if(is("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(is("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":is("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,s));break;case"attr":if(is("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(!is("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,s)}break;case"attr value":if(is("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&&s!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function dd(o,t,e){if(typeof t<"u")window.localStorage.setItem(o,JSON.stringify({value:t,expires:typeof e=="number"?e:-1}));else{const s=window.localStorage.getItem(o);try{const r=JSON.parse(s||"");return"expires"in r&&parseInt(r.expires)>=0&&new Date().getTime()>parseInt(r.expires)?void 0:r.value||void 0}catch{return s||void 0}}}Oe.on("matchMediaChangePrefersColorSchemeDark",o=>{Ei(o?"dark":"light")}),Ag();function Ei(o){dd("colorScheme",o),document.documentElement.classList.toggle("dark",o=="dark")}function Ag(){const o=dd("colorScheme");if(o=="dark"||o=="light")return Ei(o),o;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Ei(t),t}}const W={safeAreaTop:rt.getCSSVar("--safe-area-inset-top"),safeAreaRight:rt.getCSSVar("--safe-area-inset-right"),safeAreaBottom:rt.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:rt.getCSSVar("--safe-area-inset-left"),colorPrimary:rt.getCSSVar("--color-primary")||"#5078f0",colorRed:rt.getCSSVar("--color-red")||"#ff5050",colorOrange:rt.getCSSVar("--color-orange")||"#fa8c00",colorYellow:rt.getCSSVar("--color-yellow")||"#fadc32",colorGreen:rt.getCSSVar("--color-green")||"#00c878",colorBlue:rt.getCSSVar("--color-blue")||"#00b4fa",colorPurple:rt.getCSSVar("--color-purple")||"#6464fa",colorBlack:rt.getCSSVar("--color-black")||"#001428",colorGray00:rt.getCSSVar("--color-gray-00")||"#000000",colorGray33:rt.getCSSVar("--color-gray-33")||"#333333",colorGray66:rt.getCSSVar("--color-gray-66")||"#666666",colorGray99:rt.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:rt.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:rt.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:rt.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:rt.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:rt.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:rt.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:rt.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:rt.getCSSVar("--font-line-height")||"1,4",fontSize32:rt.getCSSVar("--font-size-32")||"32px",fontSize24:rt.getCSSVar("--font-size-24")||"24px",fontSize20:rt.getCSSVar("--font-size-20")||"20px",fontSize18:rt.getCSSVar("--font-size-18")||"18px",fontSize16:rt.getCSSVar("--font-size-16")||"16px",fontSize14:rt.getCSSVar("--font-size-14")||"14px",fontSize12:rt.getCSSVar("--font-size-12")||"12px",fontSize11:rt.getCSSVar("--font-size-11")||"11px",gap4:rt.getCSSVar("--gap-4")||"4px",gap8:rt.getCSSVar("--gap-8")||"8px",gap12:rt.getCSSVar("--gap-12")||"12px",gap16:rt.getCSSVar("--gap-16")||"16px",gap20:rt.getCSSVar("--gap-20")||"20px",gap40:rt.getCSSVar("--gap-40")||"40px",height44:rt.getCSSVar("--height-44")||"44px",height32:rt.getCSSVar("--height-32")||"32px",borderRadius:rt.getCSSVar("--border-radius")||"4px"},zg=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function Xs(o,t){if(Object.prototype.hasOwnProperty.call(o,"r")&&Object.prototype.hasOwnProperty.call(o,"g")&&Object.prototype.hasOwnProperty.call(o,"b"))return o.r=Math.round(He(o.r,0,255)),o.g=Math.round(He(o.g,0,255)),o.b=Math.round(He(o.b,0,255)),Object.prototype.hasOwnProperty.call(o,"a")?o.a=typeof t=="number"?t:o.a:o.a=typeof t=="number"?t:1,o.a=He(o.a,0,1),o;const e={r:0,g:0,b:0,a:1};let s=-1;if(typeof o=="number")s=o;else if(typeof o=="string")if(o[0].toLowerCase()==="r"){const r=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(o);r&&(s=(parseInt(r[1])<<16)+(parseInt(r[2])<<8)+parseInt(r[3]),r[4]&&(e.a=ye(parseFloat(r[4]),2)))}else if(o[0]==="#")s=parseInt(o.slice(1,7),16),o.length>7&&(e.a=ye(parseInt(o.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+o);return s>=0&&(e.r=s>>16&255,e.g=s>>8&255,e.b=s&255),typeof t=="number"&&(e.a=t),e.a=He(e.a,0,1),e}function Vg(o,t=!1,e="#000000",s="#ffffff"){let r=Xs(o);return t?r=Xs(r.r*.299+r.g*.587+r.b*.114>186?e:s):(r.r=255-r.r,r.g=255-r.g,r.b=255-r.b),r}function kn(o,t){const e=Xs(o,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function Cn(o){return Pm(o.toString(16),2,"0","left")}function yr(o,t){const e=Xs(o,t),s=`#${Cn(e.r)}${Cn(e.g)}${Cn(e.b)}`;return e.a===1?s:s+`${Cn(Math.ceil(e.a*255))}`}function hd(o,t=!1,e="#000000",s="#ffffff"){return yr(Vg(o,t,e,s))}const Yg=()=>Math.random()*16777215,Gt=()=>yr(Yg());function Ss(o,t){const e=Xs(o);return e.r==0&&(e.r=32),e.g==0&&(e.g=32),e.b==0&&(e.b=32),e.r=e.r*(100+t)/100,e.g=e.g*(100+t)/100,e.b=e.b*(100+t)/100,e.r=Math.round(He(e.r,0,255)),e.g=Math.round(He(e.g,0,255)),e.b=Math.round(He(e.b,0,255)),yr(e)}function fd(o,t,e){try{const s=Xs(o),r=Xs(t);return yr({r:(r.r-s.r)*e+s.r,g:(r.g-s.g)*e+s.g,b:(r.b-s.b)*e+s.b,a:(r.a-s.a)*e+s.a})}catch{return t}}function Tn(o,t,e,s,r){const n=t/e;let a=0,i=0;switch(o){case"aspectFit":n>=1?(a=s,i=a/n,i>r&&(i=r,a=i*n)):(i=r,a=i*n,a>s&&(a=s,i=a/n));break;case"aspectFill":n>=1?(i=r,a=i*n):(a=s,i=a/n);break;case"widthFix":a=s,i=a/n;break;case"heightFix":i=r,a=i*n;break;case"scaleToFill":default:a=s,i=r;break}return{width:a,height:i}}const Sn=new Map;async function pd(o){return new Promise((t,e)=>{Bg(o,(s,r)=>s?e(s):t({width:r.width,height:r.height,aspectRatio:r.width/r.height}))})}const Bg=(o,t)=>{if(Sn.has(o))return t(null,Sn.get(o));const e=new Image;e.onload=function(){Sn.set(o,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,Sn.get(o))},e.onerror=function(s){t(s,null)},e.src=o};class cs extends Qt{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(s=>{!s.independentTransformInGroup&&!s.isDragging&&(s.x=this.x+s.diffXInGroup,s.y=this.y+s.diffYInGroup,s.degree=this.degree+s.diffDegreeInGroup,s.scalarX=this.scalarX*s.diffScalarXInGroup,s.scalarY=this.scalarY*s.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(s=>s.id==e.id)==-1&&(e.on("draging",(s,r)=>{this.enableDrag&&(this.x+=s,this.y+=r,this.emit("draging",s,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 s=this.pathd?.getBoundingClientRect();if(s&&(s.width||s.height)&&(t.push(s.x,s.x+s.width),e.push(s.y,s.y+s.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(s=>{s.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(s=>{s.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,s=this.shapes.length;if(e<s)return t.expendFill(this);for(let r=s;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 Qt({attrs:{...t.shapes[r].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const s=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==s&&e?.onGroupComplete?.()}})});break;case"parallel":default:const r=new Pe({frameDuration:t}),n={},a={};this.shapes.forEach((i,l)=>{const c=ye(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=ws(c).number;this.shapes[u].setAttr("strokeDashoffset",""+ye(i[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),r.play();break}}}const Fo=cs;class me extends Qt{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,s=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+s;break;case"toX":e=a-r.x;break;case"toY":s=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 td({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),s=new td({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(s)}}class En extends Qt{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,s=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,s-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}class Xg extends Ng{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,s)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,s)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const s=Wm(e);for(let r of s.stylesheet.rules)for(let n of r.declarations)for(let 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,s)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let n="",a="";for(let 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),Oi(this.currentItem.style,this.currentItem,Ii)}switch(this.processAttrs(e,s),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 s=[],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&&Oi(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+Pi(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),s=[this.grad.angle];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?s.push(r.color+":"+r.offset):s.push(r.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?s.push(r.color+":"+r.offset):s.push(r.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break}for(let n in e){const a=e[n];if(Ii.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"&&Oi(a,this.currentItem,Ii),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 Pi(o,t,e,s,r,n){if(typeof r>"u"||typeof n>"u"){const a=o-e,i=t-s;return!a&&!i?0:(180+Math.atan2(-i,-a)*180/Math.PI+360)%360}else return Pi(o,t,r,n)-Pi(e,s,r,n)}function Oi(o,t,e){const s=(o+"").split(";"),r=/^\s+|\s+$/g;for(let n=0,a=s.length;n<a;n++){let i=s[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 Ii=["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 md{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,s){this.app=t,this.rootEl=he.createSVGElement("svg"),rt.empty(this.app.container),rt.insert(this.app.container,this.rootEl),e&&s?this.setSize(e,s):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(r,n)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=n.dx,this.dragDy+=n.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let r of this.shapes)if(this.currentMouseInShape==r){r.emit("clicked");let n=r.parent;for(;n;)n.emit("clicked",r),n=n.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 rt.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return he.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof cs&&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(let e of this.shapes){if(!e.isShow){e.el&&(rt.remove(e.el),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,du(e.getAttrs(),(r,n)=>typeof n=="string")):(e.el=he.createSvgPath(e.toSVGPathD(),e.id),rt.insert(this.rootEl,e.el))),e.followMouse&&(!rn(e.x,this.app.mousePoint.x,5)||!rn(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 s=e.toSVGPathD();if(this.attr(e,du(e.getAttrs(),(r,n)=>typeof n=="string")),this.attr(e,"d",s),!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&&rt.remove(e.el),delete e.el,this.shapes=this.shapes.filter(s=>s.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&rt.remove(t.el),delete t.el}),rt.empty(this.rootEl),this.shapes=[]}attr(t,e,s){const r=t.el||t;return r instanceof SVGElement?e===void 0&&s===void 0?rt.attribute(r):typeof e=="string"&&s===void 0?rt.attribute(r,je(e))||"":(typeof e=="object"?rt.attribute(r,e):typeof e=="string"&&s!==void 0&&rt.attribute(r,je(e),s),this):this}circle(t,e,s){return this.path(new Jt({x:t,y:e,radius:s}))}circleEl(t,e,s){const r=he.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(s)});return rt.insert(this.rootEl,r),r}ellipse(t,e,s,r){return this.path(new yd({x:t,y:e,rx:s,ry:r}))}ellipseEl(t,e,s,r){const n=he.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(s),ry:String(r)});return rt.insert(this.rootEl,n),n}rect(t,e,s,r){return this.path(new we({x:t,y:e,width:s,height:r}))}rectEl(t,e,s,r){const n=he.createSVGElement("rect",{x:String(t),y:String(e),width:String(s),height:String(r)});return rt.insert(this.rootEl,n),n}image(t,e,s,r,n){}text(t,e,s,r){const n=he.createSVGElement("text",{x:String(e),y:String(s)});return rt.html(n,t),this.attr(n,Object.assign({"alignment-baseline":"middle"},r)),rt.insert(this.rootEl,n),n}textWithTspan(t,e,s,r){const n=r?.["line-height"]||"1.2em",a=he.createSVGElement("text",{x:String(e),y:String(s)});return t.split(`
|
|
55
|
+
`).forEach((i,l)=>{if(i.trim()){const c=he.createSVGElement("tspan",{x:String(e),dy:l>0?n:"0"});rt.html(c,i),rt.insert(a,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),rt.insert(this.rootEl,a),a}}class Gg extends Fo{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new Xg(t.svg).parse();for(let s=0,r=e.length;s<r;s++){const n=e[s];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"||!he.isSVGPath(n.path))continue;const a={};for(const u in n)u==="type"||u==="path"||u==="transform"||(a[u]=n[u]);const i=he.absolutizeSVGPath(he.parseSVGPath(n.path)),l=[];let c=[];for(let u=0,d=i.length;u<d;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 d=cd(n.transform??"");d.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new Qt({...t,attrs:{...a,...t?.attrs||{}},d:u,originMatrix:d}))})}}shapeInit(){this.trim()}}class Jt extends Qt{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 s=t/e;this.scalar(s)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,s=this.y;return{x:s*t.x-e*t.y,y:e*t.y-s*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,s=t.y-this.y;if(Math.sqrt(e*e+s*s)<this.radius+t.radius){const n=Math.atan2(s,e),a={x:0,y:0},i=ls(-n,e,s),l=ls(-n,this.vx,this.vy),c=ls(-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 d=Math.abs(l.x)+Math.abs(c.x),f=this.radius+t.radius-Math.abs(a.x-i.x);a.x+=l.x/d*f,i.x+=c.x/d*f;const p=ls(n,a.x,a.y),h=ls(n,i.x,i.y);t.x=this.x+h.x,t.y=this.y+h.y,this.x=this.x+p.x,this.y=this.y+p.y;const y=ls(n,l.x,l.y),v=ls(n,c.x,c.y);this.vx=y.x,this.vy=y.y,t.vx=v.x,t.vy=v.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,s=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<s&&(this.x=s+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 gd extends Qt{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 s=1;s<=e-1;s++)t.push(["L",this.points[s].x,this.points[s].y]);t.push(["Z"])}else{const s=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",s,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,s,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 s=1;s<=e-1;s++)t.lineTo(this.points[s].x,this.points[s].y);t.closePath()}else{const s=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(s,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,s,r)}}isContainPoint(t,e){const s=this.points.length;let r=!1;const n=2e-10;for(let a=0,i=s-1;a<s;i=a,a++){const l=this.points[a].x,c=this.points[a].y,u=this.points[i].x,d=this.points[i].y;if(l===t&&c===e||u===t&&d===e||e===c&&e===d)return!0;if(e>=c&&e<d||e<c&&e>=d){const f=(u-l)/(d-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 we extends Qt{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,s,r,n,a,i,l){const c=new ho({x:t,y:e,c1x:s,c1y:r,c2x:n,c2y:a,toX:i,toY:l});return new we(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 yd extends Qt{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 Qt{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 Ri extends Qt{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 Ug extends Qt{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 jg extends Qt{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 Hg extends Qt{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 s=288+e*144,r=this.r*Math.cos(At(s)),n=this.r*Math.sin(At(s));t.push(["l",r,n])}return t}}class Zg extends Qt{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 Wg extends Qt{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 qg extends Fo{constructor(t){super(t);const e=new me({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),s=30+Math.random()*30,r=new me({...t,x:this.x,y:this.y-s,diffYInGroup:-s,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),n=60+Math.random()*40,a=new me({...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 Qt{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=ws(this.getAttr("fontSize"),10).number,s=ws(this.getAttr("fontWeight"),400).number,r=rt.measureText(this.text,e,s);this.width=r.width,this.height=r.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Kg extends Fo{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:hd(this.bg,!0),textAnchor:"start"}}),this.bgShape=new we({...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(){Ua(()=>{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 vd extends cs{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Jt;p1Offset=10;p2=new Jt;p2Offset=40;p3=new Jt;p3Offset=10;p4=new Jt;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 Qg({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 me({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new me({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 Kg({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:s,dy:r}=Ts(At(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+s,this.p1.y=this.y+r;const{dx:n,dy:a}=Ts(At(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 Qg extends Qt{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}=Ts(At(this.startDegree),this.radius),{dx:s,dy:r}=Ts(At(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,s-t,r-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,At(this.startDegree),At(this.endDegree),!1),t.closePath()}containPoint(t,e){const s=mi(this.x,this.y,t,e),r=ze(Io(this.x,this.y,t,e));return s<=this.radius&&r>=this.startDegree&&r<=this.endDegree}}class Jg extends cs{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new Qt({...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 Qt({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Ua(()=>{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 bd extends Fo{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,s=t?.max||100,r=t?.step||1,n=zm(e,s,r);this.value=n(typeof t?.defaultValue=="number"?He(t.defaultValue,e,s):e);const a=this.value/(s-e),i=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,d=t?.barColor||W.colorGrayF5,f=t?.handleColor||W.colorPrimary;this.backgroundRect=new we({x:this.x,y:this.y,width:i,height:l,borderRadius:u,attrs:{fill:d},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new we({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 Jt({x:this.x+i*a,y:this.y+u,diffXInGroup:i*a,diffYInGroup:u,radius:c,alongPath:new Xe({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=He(this.occupyRect.width+p,0,i),this.value=n((this.handle.x-this.x)/i*(s-e)+e),this.emit("change",this.value)})}}class Do extends Fo{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 Jt({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new we({...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 Jt({...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(At(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(At(this.controlPoint.degree))*this.width}}}class Fi extends Qt{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(At(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(At(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}=Ts(At(this.startDegree),this.radius),{dx:s,dy:r}=Ts(At(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,s-t,r-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,At(this.startDegree),At(this.endDegree),!1)}}let _d=class extends Fo{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,s=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 Fi({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:s,extendDegree:r,lineWidth:n,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new Fi({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:s,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 me({...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+(s-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,s)=>{this.shapes.forEach(r=>{r!=s&&(r.x+=t,r.y+=e)})})}frameUpdate(t,e){const s=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+s,-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 ty extends cs{fettis=[];constructor(t,e,s){super();const{shape:r,x:n,y:a,particleCount:i,angle:l,spread:c,startVelocity:u,decay:d,gravity:f,drift:p,ticks:h,colors:y,scalar:v,flat:_}=uu(s||{},{shape:we,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:zg,scalar:1,flat:!1}),z=At(l),Y=At(c);let O=i;for(;O--;){const G=new r({x:t*n,y:e*a,width:10,height:10,scalar:v,attrs:{fill:y[O%y.length]},independentTransformInGroup:!0});this.addShape(G),this.fettis.push({shape:G,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-z+(.5*Y-Math.random()*Y),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:h,decay:d,drift:p,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:v,flat:_})}}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 s=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",kn(e.shape.getAttr("fill"),1-s)),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 Ve{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(s=>{s.run(),t?.wall&&s.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let s=0,r=e-1;s<r;s++)for(let n=s+1;n<e;n++)this.shapes[s].checkCollision(this.shapes[n])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,s)=>{e.run();for(let r=s+1;r<t;r++)e.checkCollision(this.shapes[r]),e.gravitateTo(this.shapes[r])})}springChain(t){this.shapes.forEach((e,s)=>{s>0&&e.runSpringTo(this.shapes[s-1],t)})}springConnect(t){const e=Vs(t?.springLength,100);this.shapes.forEach(s=>{s.isDragging||this.shapes.filter(r=>r.id!==s.id).forEach(r=>{const n=Io(s.x,s.y,r.x,r.y);s.runSpringTo({x:r.x-Math.cos(n)*e,y:r.y-Math.sin(n)*e},t)})})}springMass(t,e){const s=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<s;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]=Xe.getPathInterpolator(n.expendFill(i),a.expendFill(i))}const s=new Qt({d:e[0](0)});return r=>{const n=ye(t*r,6),a=Math.min(Math.floor(n),t-1),i=ye(n-a,6);s.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"&&s.setAttr("fill",fd(l,c,i));const u=this.shapes[a].getAttr("stroke","none"),d=this.shapes[a+1].getAttr("stroke","none");return typeof u=="string"&&typeof d=="string"&&s.setAttr("stroke",fd(u,d,i)),s}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const s=[];this.shapes.forEach(i=>{let l;i instanceof cs?(l=i,l.sortPathD()):(l=new cs,l.addShape(i)),s.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),s.forEach(i=>{i!==e&&i.expendFill(e)});const r=[];s.forEach((i,l)=>{i.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const n=[];r.forEach(i=>{n.push(new Ve(i).polymorph())});const a=new cs;return n.forEach(i=>{a.addShape(i(0))}),i=>(n.forEach(l=>{l(i)}),a)}polymorphTween(t=6e3,e){const s=this.shapes.findIndex(i=>i instanceof cs)>=0?this.polymorphGroup():this.polymorph(),r=s(0),n=e?.onUpdate,a=new Pe({frameDuration:t});a.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(i,l)=>{s(i.t),n?.(i,l),e?.draw?.(r)}})),a.play()}static generatePointsShape(t,e,s,r){const n=[];for(let a=0;a<r;a++){const i=a/r*2*Math.PI,{dx:l,dy:c}=Ts(i,s);n.push({x:t+l,y:e+c})}return new gd({points:n})}static generateRosettaShape(t,e,s,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*s*Math.cos(c),d=e+2*s*Math.sin(c);a.push(new bi({x:t,y:e,rx:s,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:d})),a.push(new bi({x:u,y:d,rx:s,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Qt({d:Xe.fromLines(a)})}}class Di{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.captureMove({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:(s,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let s of this.shapes)if(this.currentMouseInShape==s){s.emit("clicked");let r=s.parent;for(;r;)r.emit("clicked",s),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(At(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 cs&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(let e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),rt.attrsToCanvas(this.ctx,e.getAttrs()),e.followMouse&&(!rn(e.x,this.app.mousePoint.x,5)||!rn(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 s=this.ctx.currentPath2D;if(!this.currentMouseInShape){const r=this.ctx.isPointInPath(s,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(s,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 s=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=Xs(n);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<r;c++){const u=Math.random()*Math.PI*2,d=Math.random()*s,f=this.app.mousePoint.x+Math.cos(u)*d|0,p=this.app.mousePoint.y+Math.sin(u)*d|0,h=(f+p*a.width)*4;i[h]=l.r,i[h+1]=l.g,i[h+2]=l.b,i[h+3]=255}this.ctx.putImageData(a)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}class ey{map;constructor(t,e=120.619585,s=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,s),r)}}const sy=tt({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("span",{class:"icon",style:D(["color: "+e.color])},[ft(Ct(ju),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),oy=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
56
|
+
`,ct=(o,t)=>{const e=o.__vccOpts||o;for(const[s,r]of t)e[s]=r;return e},xd=ct(sy,[["styles",[oy]],["__scopeId","data-v-b2d9b612"]]),ry=tt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("span",{class:"icon",style:D(["color: "+e.color])},[ft(Ct(ju),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),J_="",us=ct(ry,[["__scopeId","data-v-8789b4ce"]]),ny={class:"loading-11",ref:"loading11"},ay={class:"container container-1"},iy={class:"container container-2"},ly={class:"container container-3"},cy=tt({__name:"Loading11",props:{color:{default:W.colorPrimary},width:{default:"0.8em"}},setup(o){const t=o;return(e,s)=>(R(),M("div",ny,[x("div",{class:"loading-11-inner",style:D({width:t.width,height:t.width})},[x("div",ay,[x("div",{class:"dot dot-1",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:D({backgroundColor:t.color})},null,4)]),x("div",iy,[x("div",{class:"dot dot-1",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:D({backgroundColor:t.color})},null,4)]),x("div",ly,[x("div",{class:"dot dot-1",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:D({backgroundColor:t.color})},null,4)])],4)],512))}}),tx="",In=ct(cy,[["__scopeId","data-v-f95fac77"]]),uy={key:0,class:"loading"},po=ct(tt({customOptions:{Loading11:In},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(s.borderColor),i=I(s.bgColor),l=I(s.fontColor),c=I(s.borderColor),u=I(s.bgColor);function d(O){switch(O){case"outline":a.value=s.borderColor??W.colorPrimary,i.value=s.bgColor??W.colorGrayFF,l.value=s.fontColor??W.colorPrimary,c.value=a.value,u.value=i.value;break;case"fullfilled":default:a.value=s.borderColor??W.colorPrimary,i.value=s.bgColor??W.colorPrimary,l.value=s.fontColor??W.colorGrayFF,c.value=a.value,u.value=i.value;break}}bt(()=>s.stylePattern,()=>{d(s.stylePattern)},{immediate:!0});const f=I(s.isDisabled?"0.6":"1"),p=I(s.isDisabled?"not-allowed":"pointer");let h=!1;const y=()=>{s.isDisabled||(h=!0,a.value=Ss(c.value,10),i.value=Ss(u.value,10))},v=()=>{s.isDisabled||(h=!1,a.value=c.value,i.value=u.value)},_=I(!1),Y=mu(()=>{s.isDisabled||_.value||(a.value=Ss(c.value,-10),i.value=Ss(u.value,-10),setTimeout(()=>{h?y():v()},150),r("ceClick"),r("click"),s.asyncClick&&(_.value=!0,s.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:n}),(O,G)=>(R(),M("div",{ref_key:"el",ref:n,class:"button",style:D([`opacity: ${f.value}`,`border: 1px solid ${a.value}`,`background-color: ${i.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:y,onMouseleave:v,onClick:G[0]||(G[0]=(...J)=>Ct(Y)&&Ct(Y)(...J))},[x("label",{class:"label truncate",style:D({padding:"0 "+O.padding,cursor:p.value})},[_.value?(R(),M("div",uy,[ft(In,{color:l.value},null,8,["color"])])):Rt("",!0),Et(O.$slots,"default",{},()=>[O.icon&&O.iconPosition==="left"?(R(),Lt(us,{key:0,icon:O.icon,color:l.value,style:D({marginRight:Ct(W).gap4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0),x("span",{style:D({cursor:p.value})},vt(O.label),5),O.icon&&O.iconPosition==="right"?(R(),Lt(us,{key:1,icon:O.icon,color:l.value,style:D({marginLeft:Ct(W).gap4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-2205d3fb]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-2205d3fb]{display:inline-flex;justify-content:center;align-items:center}.loading[data-v-2205d3fb]{margin-right:6px}
|
|
57
|
+
`]],["__scopeId","data-v-2205d3fb"]]),dy={key:0,class:"loading"},hy=tt({customOptions:{Loading11:In},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(s.borderColor),i=I(s.bgColor),l=I(s.fontColor),c=I(s.borderColor),u=I(s.bgColor);function d(O){switch(O){case"outline":a.value=s.borderColor??W.colorPrimary,i.value=s.bgColor??W.colorGrayFF,l.value=s.fontColor??W.colorPrimary,c.value=a.value,u.value=i.value;break;case"fullfilled":default:a.value=s.borderColor??W.colorPrimary,i.value=s.bgColor??W.colorPrimary,l.value=s.fontColor??W.colorGrayFF,c.value=a.value,u.value=i.value;break}}bt(()=>s.stylePattern,()=>{d(s.stylePattern)},{immediate:!0});const f=I(s.isDisabled?"0.6":"1"),p=I(s.isDisabled?"not-allowed":"pointer");let h=!1;const y=()=>{s.isDisabled||(h=!0,a.value=Ss(c.value,10),i.value=Ss(u.value,10))},v=()=>{s.isDisabled||(h=!1,a.value=c.value,i.value=u.value)},_=I(!1),Y=mu(()=>{s.isDisabled||_.value||(a.value=Ss(c.value,-10),i.value=Ss(u.value,-10),setTimeout(()=>{h?y():v()},150),r("ceClick"),r("click"),s.asyncClick&&(_.value=!0,s.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:n}),(O,G)=>(R(),M("div",{ref_key:"el",ref:n,class:"button",style:D([`opacity: ${f.value}`,`border: 1px solid ${a.value}`,`background-color: ${i.value}`,`color: ${l.value}`,`border-radius: ${s.borderRadius}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:y,onMouseleave:v,onClick:G[0]||(G[0]=(...J)=>Ct(Y)&&Ct(Y)(...J))},[x("label",{class:"label truncate",style:D({padding:"0 "+O.padding,cursor:p.value})},[_.value?(R(),M("div",dy,[ft(In,{color:l.value},null,8,["color"])])):Rt("",!0),Et(O.$slots,"default",{},()=>[O.icon&&O.iconPosition==="left"?(R(),Lt(us,{key:0,icon:O.icon,color:l.value,style:D({marginRight:Ct(W).gap4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0),x("span",{style:D({cursor:p.value})},vt(O.label),5),O.icon&&O.iconPosition==="right"?(R(),Lt(us,{key:1,icon:O.icon,color:l.value,style:D({marginLeft:Ct(W).gap4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0)],!0)],4)],36))}}),ox="",ne=ct(hy,[["__scopeId","data-v-ea027c50"]]),fy=["onClick","value"],py={class:"option-inner"},my=ct(tt({customOptions:{Icon:us,Button:ne},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(o,{emit:t}){const e=o,s=t;ao(()=>{rt.setStyleSheet(`
|
|
58
58
|
:root {
|
|
59
|
-
--select-option-bg-color: ${
|
|
60
|
-
--select-option-bg-color-hover: ${
|
|
59
|
+
--select-option-bg-color: ${W.colorGrayFF};
|
|
60
|
+
--select-option-bg-color-hover: ${W.colorGrayF5};
|
|
61
61
|
}
|
|
62
|
-
`)});const
|
|
63
|
-
`]],["__scopeId","data-v-2b1ef62b"]]),
|
|
62
|
+
`)});const r=I(!1),n=I(e.initIndex);bt(n,function(){s("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)=>(R(),M("div",{class:"select",style:D(["font-size:"+l.fontSize])},[x("div",{onClick:a},[Et(l.$slots,"button",{selectedIndex:n.value},()=>[ft(ne,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[n.value],style:{width:"100%"}},null,8,["label"])],!0)]),ro(x("div",{class:"options",style:D({border:"1px solid "+Ct(W).colorGrayCC})},[(R(!0),M(Vt,null,pe(l.options,(u,d)=>(R(),M("div",{onClick:f=>i(d),class:"option",key:d,value:d,style:D({borderTop:(d==0?"0":"1px")+" solid "+Ct(W).colorGrayCC})},[x("div",py,[Et(l.$slots,"default",{item:u,index:d},()=>[x("span",null,vt(u),1),d==n.value?(R(),Lt(us,{key:0,icon:"mingcute:check-fill",class:"icon"})):Rt("",!0)],!0)])],12,fy))),128))],4),[[zs,r.value]])],4))}}),[["styles",[`.select[data-v-2b1ef62b]{display:inline-block;position:relative}.options[data-v-2b1ef62b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-2b1ef62b]{cursor:pointer}.option-inner[data-v-2b1ef62b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-2b1ef62b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-2b1ef62b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
|
|
63
|
+
`]],["__scopeId","data-v-2b1ef62b"]]),gy=["width","height"],yy=["fill"],vy=tt({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:W.colorGrayCC}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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,yy)],8,gy))}}),ax="",Rn=ct(vy,[["__scopeId","data-v-b1f2ae20"]]),by={class:"button-default"},_y={class:"truncate"},xy=["onClick","value"],wy=tt({customOptions:{SVGDown:Rn},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:W.colorGrayFF},hoverColor:{default:W.colorGrayF5},selectedColor:{default:W.colorPrimary},fontColor:{default:W.colorGray33},duration:{default:300}},emits:["change"],setup(o,{emit:t}){const e=o,s=t;ao(()=>{rt.setStyleSheet(`
|
|
64
64
|
:root {
|
|
65
|
-
--select-option-bg-color: ${
|
|
66
|
-
--select-option-bg-color-hover: ${
|
|
65
|
+
--select-option-bg-color: ${e.bgColor};
|
|
66
|
+
--select-option-bg-color-hover: ${e.hoverColor};
|
|
67
67
|
}
|
|
68
|
-
`)});const
|
|
69
|
-
`]],["__scopeId","data-v-fd6e278c"]]),
|
|
70
|
-
`]],["__scopeId","data-v-2446c0e5"]])
|
|
71
|
-
`]],["__scopeId","data-v-
|
|
72
|
-
`]],["__scopeId","data-v-
|
|
73
|
-
`]],["__scopeId","data-v-
|
|
68
|
+
`)});const r=I(!1),n=I(e.initIndex);bt(n,function(){s("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 ec(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(R(),M("div",{class:"select-absolute",style:D({fontSize:e.fontSize,backgroundColor:e.bgColor})},[x("div",{class:"select-absolute-button",onClick:a},[Et(c.$slots,"button",{selectedIndex:n.value},()=>[x("div",by,[x("div",_y,vt(c.options[n.value]),1),ft(Rn,{class:"icon-down",width:"20px",style:D({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),x("div",{class:"options",style:D({maxHeight:r.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${r.value?1:0}px solid #e6e6e6`})},[(R(!0),M(Vt,null,pe(c.options,(d,f)=>(R(),M("div",{onClick:p=>i(f),class:"option",key:f,value:f},[Et(c.$slots,"default",{item:d,index:f},()=>[x("div",{class:"option-default",style:D({color:n.value==f?e.selectedColor:e.fontColor})},vt(d),5)],!0)],8,xy))),128))],4)],4))}}),wd=ct(wy,[["styles",[`.select-absolute[data-v-fd6e278c]{display:block;position:relative;width:100%}.select-absolute-button[data-v-fd6e278c]{overflow:hidden}.button-default[data-v-fd6e278c]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-fd6e278c]{flex:0 0 auto}.truncate[data-v-fd6e278c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-fd6e278c]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-fd6e278c]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-fd6e278c]::-webkit-scrollbar:vertical{width:2px}.options[data-v-fd6e278c]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-fd6e278c]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-fd6e278c]{cursor:pointer}.option-default[data-v-fd6e278c]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-fd6e278c]:hover{background-color:var(--select-option-bg-color-hover)}
|
|
69
|
+
`]],["__scopeId","data-v-fd6e278c"]]),ky=tt({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:W.colorPrimary},colorBgOn:{default:W.colorGrayEF},colorBgOff:{default:W.colorGrayF5}},emits:["change"],setup(o,{emit:t}){const e=o,s=ws(e.width),r=ws(e.height),n=ws(e.padding),a=r.number-n.number*2+r.suffix,i=e.padding,l=s.number-ws(i).number-ws(a).number+s.suffix,c=t,u=I(e.init);bt(u,function(){c("change",u.value)});function d(){u.value=!u.value}return(f,p)=>(R(),M("div",{class:"switch",onClick:d,style:D(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[x("span",{class:"round",style:D(["width: "+a,"height: "+a,"background-color: "+(u.value?e.colorPrimary:Ct(Ss)(e.colorPrimary,30)),"transform: translate("+(u.value?l:Ct(i))+", 0)"])},null,4)],4))}}),Cy=ct(ky,[["styles",[`.switch[data-v-2446c0e5]{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-2446c0e5]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
|
|
70
|
+
`]],["__scopeId","data-v-2446c0e5"]]),Ty=["onClick"],Sy=["stroke","fill"],Ey=["stroke","fill"],Py=["stroke"],Oy=tt({customOptions:{},__name:"RadioGroup.ce",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:W.colorGrayFF},colorBgSelected:{default:W.colorPrimary},colorBgDisabled:{default:W.colorGrayCC},colorBorder:{default:W.colorGrayCC},colorBorderSelected:{default:W.colorPrimary},colorBorderDisabled:{default:W.colorGrayCC},colorPath:{default:W.colorGrayFF},colorPathDisabled:{default:W.colorGrayFF},fontSize:{default:W.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(o,{emit:t}){const e=o,s=t;let r=I(e.initIndex??0);bt(r,function(){s("change",e.options[r.value])});const n=function(a){e.disabledIndexs&&e.disabledIndexs.findIndex(i=>i==a)>=0||(r.value=a)};return(a,i)=>(R(!0),M(Vt,null,pe(a.options,(l,c)=>(R(),M("div",{class:te(["radio",a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>n(c),style:D(["margin-left:"+(c>0?e.itemPadding:0)])},[Et(a.$slots,"default",{label:l,index:c},()=>[(R(),M("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:D(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Rt("",!0):(R(),M("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r)==c?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r)==c?a.colorBgSelected:a.colorBg},null,8,Sy)),e.isRounded?(R(),M("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r)==c?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r)==c?a.colorBgSelected:a.colorBg},null,8,Ey)):Rt("",!0),Ct(r)==c?(R(),M("path",{key:2,d:"m7 13l3 3 7-7",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorPathDisabled:a.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Py)):Rt("",!0)],4)),x("span",{style:D(["font-size:"+e.fontSize])},vt(l),5)],!0)],14,Ty))),128))}}),kd=ct(Oy,[["styles",[`.radio[data-v-c49d77b6]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.radio.disabled[data-v-c49d77b6]{cursor:not-allowed}.icon[data-v-c49d77b6]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
|
|
71
|
+
`]],["__scopeId","data-v-c49d77b6"]]),Iy=["onClick"],Ry=["stroke","fill"],Fy=["stroke","fill"],Dy=["stroke"],$y=tt({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:W.colorGrayFF},colorBgSelected:{default:W.colorPrimary},colorBgDisabled:{default:W.colorGrayCC},colorBorder:{default:W.colorGrayCC},colorBorderSelected:{default:W.colorPrimary},colorBorderDisabled:{default:W.colorGrayCC},colorPath:{default:W.colorGrayFF},colorPathDisabled:{default:W.colorGrayFF},fontSize:{default:W.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(o,{emit:t}){const e=o,s=t;let r=Zt(e.initIndexs??[]);bt(r,function(){s("change",r.map(a=>e.options[a]))});const n=function(a){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==a)>=0)return;const i=r.findIndex(l=>l===a);i>=0?r.splice(i,1):r.push(a)};return(a,i)=>(R(!0),M(Vt,null,pe(a.options,(l,c)=>(R(),M("div",{class:te(["checkbox",a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>n(c),style:D(["margin-left:"+(c>0?e.itemPadding:0)])},[Et(a.$slots,"default",{label:l,index:c},()=>[(R(),M("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:D(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Rt("",!0):(R(),M("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBgSelected:a.colorBg},null,8,Ry)),e.isRounded?(R(),M("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBgSelected:a.colorBg},null,8,Fy)):Rt("",!0),Ct(r).findIndex(u=>u===c)>=0?(R(),M("path",{key:2,d:"m7 13l3 3 7-7",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorPathDisabled:a.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Dy)):Rt("",!0)],4)),x("span",{style:D(["font-size:"+e.fontSize])},vt(l),5)],!0)],14,Iy))),128))}}),Cd=ct($y,[["styles",[`.checkbox[data-v-68aa2d65]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.checkbox.disabled[data-v-68aa2d65]{cursor:not-allowed}.icon[data-v-68aa2d65]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
|
|
72
|
+
`]],["__scopeId","data-v-68aa2d65"]]),Ly=["width","height"],My=["fill"],Ny=["fill"],Ay=["fill"],zy=tt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:W.colorRed}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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,My),x("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,Ny),x("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,Ay)],8,Ly))}}),dx="",Td=ct(zy,[["__scopeId","data-v-41294f60"]]),Vy={class:"input"},Yy=["type","required"],By={class:"ellipsis"},Xy={key:1,style:{}},Gy=tt({customOptions:{SVGPrompt:Td},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:W.colorPrimary},errorColor:{default:W.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=s.placeholder.split(""),a=s.duration/n.length,i=I(!1),l=I(""),c=I("");function u(){i.value=!0,r("focus"),r("ceFocus")}function d(){i.value=!1,r("blur"),r("ceBlur"),p()}function f(h){c.value=h.target.value,p()}function p(){if(c.value&&s.validator){const h=s.validator(c.value);if(!h.valid){l.value=h.errors[0];return}}l.value="",c.value&&(r("input",c.value),r("ceInput",c.value))}return oe(()=>{}),t({}),(h,y)=>(R(),M("div",Vy,[x("input",{class:te(["input-raw",i.value||c.value?"focus":"blur"]),type:s.type,required:s.required,autocomplete:"off",style:D({height:s.height,lineHeight:s.height,borderRadius:s.borderRadius,color:s.fontColor,borderColor:l.value?s.errorColor:i.value?s.focusColor:c.value?s.bgColor:"transparent",transition:s.duration+"ms"}),onFocus:u,onBlur:d,onInput:f,onChange:f},null,46,Yy),x("div",{class:"placeholder",style:D({lineHeight:i.value||c.value?1.3:s.height,color:s.placeholderColor,transition:s.placeholderJump?"":s.duration+"ms",transform:s.placeholderJump?"":i.value||c.value?"translateY(-100%)":"none"})},[l.value?(R(),M("div",{key:0,style:D({color:s.errorColor,transform:s.placeholderJump?"translateY(-100%)":""})},[ft(Td,{class:"icon"}),x("div",By,vt(l.value),1)],4)):Rt("",!0),!l.value&&!s.placeholderJump?(R(),M("div",Xy,vt(s.placeholder),1)):Rt("",!0),!l.value&&s.placeholderJump?(R(!0),M(Vt,{key:2},pe(Ct(n),(v,_)=>(R(),M("span",{key:_,style:D({transition:s.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${a*_}ms`,transform:i.value||c.value?`translateX(${100*_}%) translateY(-100%)`:`translateX(${100*_}%)`}),class:"single"},vt(v),5))),128)):Rt("",!0)],4),x("div",{class:"bg",style:D({transition:s.duration+"ms",backgroundColor:i.value||c.value?"transparent":s.bgColor,height:i.value||c.value?s.height:"2px",borderRadius:s.borderRadius})},null,4)]))}}),Uy=ct(Gy,[["styles",[`.input[data-v-0607c36c]{position:relative;box-sizing:border-box;font-size:1em}.input-raw[data-v-0607c36c]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.bg[data-v-0607c36c]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-0607c36c]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-0607c36c]{font-size:.75em}.placeholder>div[data-v-0607c36c]{width:100%;display:flex;justify-content:flex-start;align-items:center}.icon[data-v-0607c36c]{flex:0 0 auto}.ellipsis[data-v-0607c36c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.placeholder>span.single[data-v-0607c36c]{position:absolute;left:0;top:0}
|
|
73
|
+
`]],["__scopeId","data-v-0607c36c"]]),jy=["max","min","step","value","autofocus"],Hy={key:0,class:"label"},Zy=tt({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:W.colorPrimary},barColor:{default:W.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(s.defaultValue),a=I(ye((s.defaultValue-s.min)/(s.max-s.min),4)*100);function i(u){n.value=ye(u.target.value,2),a.value=ye((n.value-s.min)/(s.max-s.min),4)*100,r("change",n.value)}const l=`
|
|
74
74
|
:root {
|
|
75
|
-
--input-range-color: ${
|
|
76
|
-
--input-range-thumb-size: ${
|
|
77
|
-
--input-range-track-size: ${
|
|
75
|
+
--input-range-color: ${s.color};
|
|
76
|
+
--input-range-thumb-size: ${s.handleSize};
|
|
77
|
+
--input-range-track-size: ${s.barHeight};
|
|
78
78
|
}
|
|
79
79
|
:host {
|
|
80
|
-
--input-range-color: ${
|
|
81
|
-
--input-range-thumb-size: ${
|
|
82
|
-
--input-range-track-size: ${
|
|
80
|
+
--input-range-color: ${s.color};
|
|
81
|
+
--input-range-thumb-size: ${s.handleSize};
|
|
82
|
+
--input-range-track-size: ${s.barHeight};
|
|
83
83
|
}
|
|
84
|
-
`,c=
|
|
85
|
-
`]],["__scopeId","data-v-47a3874d"]]),
|
|
86
|
-
`]],["__scopeId","data-v-
|
|
87
|
-
`]],["__scopeId","data-v-4ea80232"]]),hv=s=>{const e={};for(const t of s.attributes)e[t.name]=t.value;return e},dv={class:"overlay-content",style:M(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},fv=oe({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:xi(j.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:e,emit:t}){const n=s,i=P();function r(o){n.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return Ee(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),e({}),(o,a)=>n.visible?(I(),V("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:M([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[_("div",dv,[ze(o.$slots,"default",{},void 0,!0)])],4)):Pe("",!0)}}),v_="",rn=ae(fv,[["__scopeId","data-v-fbdcceee"]]),pv=(s=>(Ws("data-v-0dd2379f"),s=s(),Xs(),s))(()=>_("div",null,null,-1)),mv=oe({customOptions:{Overlay:rn},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;const a=kt({}),l=kt({});function c(){switch(xn(a),xn(l),n.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Ee(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new Je,h=(C=!0)=>{!o||!r.value||(C?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};Ee(r,()=>{r.value&&h(!0)},{});const f=P(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function b(C){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(C.target)&&n.closeWhenClickOverlay&&v():r.value&&!r.value.contains(C.target)&&n.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(C,O)=>(I(),wt(rn,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:nt(()=>[_("div",{class:"pop-parent",style:M([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[_("div",{ref_key:"pop",ref:r,class:"pop",style:M([{position:"absolute","z-index":"3000"},l])},[ze(C.$slots,"default",{},()=>[pv],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),b_="",Zt=ae(mv,[["__scopeId","data-v-0dd2379f"]]),gv={class:"dialog-parent"},vv={key:0,class:"title"},yv={key:0,class:"title-inner truncate"},bv={class:"custom-content"},_v={class:"custom-content-default"},xv={key:1,class:"btns"},wv=oe({customOptions:{Overlay:rn,Pop:Zt,Icon:bs,Button:it},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(""),a=P(""),l=P(!1),c=P(""),u=P("");let h,f,d;function m(O){o.value=O?.title||"",a.value=O?.content||"",l.value=typeof O?.showClose=="boolean"?O?.showClose:!1,c.value=O?.cancelText||"",u.value=O?.confirmText||"",r.value.open(),h=O?.onClose,f=O?.onCancel,d=O?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function b(){v(),f?.(),i("cancel")}function C(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(O,$)=>(I(),wt(Zt,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:nt(()=>[_("div",gv,[_("div",{class:"dialog",style:M({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(I(),V("div",vv,[o.value?(I(),V("div",yv,me(o.value),1)):Pe("",!0),l.value?(I(),V("div",{key:1,class:"close",onClick:v},[ue(bs,{icon:"ic:baseline-close",color:ke(j).colorGrayCC},null,8,["color"])])):Pe("",!0)])):Pe("",!0),_("div",bv,[ze(O.$slots,"default",{},()=>[_("div",_v,me(a.value),1)],!0)]),c.value||u.value?(I(),V("div",xv,[c.value?(I(),wt(it,{key:0,onClick:b,class:"btn",bgColor:ke(j).colorGrayE6,borderColor:ke(j).colorGrayE6,fontColor:ke(j).colorGray33,borderRadius:"0"},{default:nt(()=>[He(me(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Pe("",!0),u.value?(I(),wt(it,{key:1,onClick:C,class:"btn",borderRadius:"0"},{default:nt(()=>[He(me(u.value),1)]),_:1})):Pe("",!0)])):Pe("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),__="",Lr=ae(wv,[["__scopeId","data-v-6bd255c9"]]),Cv={class:"loading-8"},Sv={viewBox:"25 25 50 50"},kv=oe({__name:"Loading8",props:{color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("div",Cv,[(I(),V("svg",Sv,[_("circle",{cx:"50",cy:"50",r:"20",style:M(["stroke: "+e.color])},null,4)]))]))}}),x_="",dh=ae(kv,[["__scopeId","data-v-e5e3cf4c"]]),Aa=s=>(Ws("data-v-85491020"),s=s(),Xs(),s),Ev=[Aa(()=>_("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)),Aa(()=>_("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)),Aa(()=>_("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))],Tv=oe({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{style:M(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Ev,4))}}),k_="",Ra=ae(Tv,[["__scopeId","data-v-85491020"]]);function Bn(s){let e=!1;return s=="123"&&(e=!0),{isValidated:e,msg:s+"不对!"}}function E_(s){return s}document.getElementById("teleport")||document.documentElement;function Va(s,e){{const t=document.querySelector("yz-dialog-toast#globalDialogToast");t&&"_instance"in t&&t._instance.exposed.open(s,e)}}function Ov(s){{const e=document.querySelector("yz-dialog-loading#globalDialogLoading");return e&&"_instance"in e&&e._instance.exposed.open(s),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function Pv(s){{const e=document.querySelector("yz-dialog#globalDialog");return e&&"_instance"in e&&e._instance.exposed.open(s),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function jn(s,e="bottom"){let t;s instanceof HTMLElement?t=tt(Zt,{directionFrom:e},()=>tt("div",{...hv(s),innerHTML:s.innerHTML})):t=tt(Zt,{directionFrom:e},()=>s),pr(t,document.getElementById("teleport")||document.documentElement),t.component?.exposed?.open();const n=()=>{t.component?.exposed?.close()};return n.vnode=t,n}function fh(s){return jn(s,"bottom")}function ph(s){return jn(s,"top")}function mh(s){return jn(s,"left")}function gh(s){return jn(s,"right")}function vh(s){return jn(s,"center")}function zr(s){return jn(s,"absolute")}const Iv=()=>fh(tt("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Dv=()=>ph(tt("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Nv=()=>mh(tt("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),$v=()=>gh(tt("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Mv=()=>vh(tt("div",{style:"width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Av=()=>zr(tt("div",{style:"position:absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn})));let Fr;function yh(s){{const e=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return e&&"_instance"in e&&(Fr&&e.removeEventListener("plates",Fr),Fr=t=>{"detail"in t&&s?.onPlates?.(t.detail[0])},e.addEventListener("plates",Fr),e.initPlates=s?.initPlates,e.completePlateLength=s?.completePlateLength,e._instance.exposed.open()),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}const Rv={class:"content"},Vv=ae(oe({customOptions:{},inheritAttrs:!0,__name:"MouseOver.ce",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(!1),a=kt({});let l=kt({}),c=kt({}),u=1,h;Ee(r,()=>{!r.value||h||(d(),h=new ft(r.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const b=Math.min(m,v);c.width=l.width=b+"px",c.height=l.height=b+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,d()}),h.start())});function f(){K.copyToClipboard(K.getInnerText(r.value)).then(()=>{Va("复制成功")}).catch(m=>{Va(m.toString())})}function d(){switch(n.coverDirection){case"bottomLeft":l.top="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"bottomRight":l.top="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"topLeft":l.bottom="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, 50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"topRight":l.bottom="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, 50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"center":l.top="50%",l.left="50%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"slideUp":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"slideDown":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center top":"center bottom"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"slideRight":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center left":"center right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"slideLeft":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${o.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${o.value?"translateY(-4px)":"translateY(0)"}`,a.willChange="box-shadow, transform",a.transition=`transform ${n.timeGap}ms ease,box-shadow ${n.timeGap}ms ease `;break;case"underlineRight":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"underlineRightInit":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom right":"bottom left"}`,l.transform=`${o.value?"scaleX(0)":"scaleX(1)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"underlineCenter":l.bottom="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease-in-out`;break;case"lineThrough":l.top="50%",l.left="0",l.right="0",l.width="100%",l.height="3px",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(0)":"scaleX(1)"} translateY(-50%)`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"overlineRight":l.top="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"overlineCenter":l.top="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease-in-out`;break;case"pillars1":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.right="0";break;case"pillars2":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.transformOrigin=`${o.value?"center top":"center bottom"}`,c.right="0";break;case"pillars3":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin="center",l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.right="0";break;case"bars1":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center left":"center right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"bars2":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},l.transformOrigin=`${o.value?"center left":"center right"}`,c.bottom="0";break;case"bars3":l.left="50%",l.right="0",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=` translateX(-50%) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"circle":l.zIndex="2",l.backgroundColor="rgba(255,255,255,0)",l.borderRadius="100%",l.boxShadow=o.value?`
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
`]],["__scopeId","data-v-73454cb9"]]),Lv=ae(oe({customOptions:{SVGDown:Rr},inheritAttrs:!0,__name:"Accordion.ce",props:{initOpen:{type:Boolean,default:!1},height:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(Number.MAX_SAFE_INTEGER+"px"),o=P(),a=P(!0);let l;Ee(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new ft(o.value),l.on("resize",(h,f)=>{i("resize",h,f)}),a.value=n.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=P("rotate(0deg)");return Zl(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),Qe(()=>{l?.destroy()}),e({}),(h,f)=>(I(),V("div",{class:"wrap",style:M({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[_("div",{class:"title",onClick:c,style:M({height:n.height,lineHeight:n.height,margin:`0 ${n.padding}`,transitionDelay:`${a.value?0:n.duration}ms`,borderBottom:`${a.value?1:0}px solid ${n.borderColor}`})},[ze(h.$slots,"title",{},()=>[He("title")],!0),ue(Rr,{class:"arrow",style:M({transition:`transform ${n.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),_("div",{ref_key:"content",ref:o,class:"content",style:M({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[ze(h.$slots,"content",{},void 0,!0)],4)],4))}}),[["styles",[`.wrap[data-v-68d65f8a]{font-size:1em;position:relative;overflow:hidden}.title[data-v-68d65f8a]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.content[data-v-68d65f8a]{word-break:break-all;overflow:hidden}
|
|
98
|
-
`]],["__scopeId","data-v-
|
|
99
|
-
`]],["__scopeId","data-v-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
background-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
position:absolute;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
`]],["__scopeId","data-v-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
background-repeat: no-repeat;
|
|
125
|
-
background-position: center center;
|
|
126
|
-
background-size: 100% 100%`,onVnodeMounted:()=>{ye(Y,L,H,fe)}}),Me=zr(tt("div",{style:`
|
|
127
|
-
position:absolute;
|
|
128
|
-
width: 100%;
|
|
129
|
-
height: 100%;
|
|
130
|
-
background-color: transparent;
|
|
131
|
-
display: flex;
|
|
132
|
-
justify-content: center;
|
|
133
|
-
align-items: center;
|
|
134
|
-
`,onClick:()=>{const{x:Ae,y:Ue,width:qe,height:et}=o.value.getBoundingClientRect();ye(b.x,b.y,b.width,b.height,Ae,Ue,qe,et,()=>{Me(),v=!1})}},ge));return ye}function S(){if(!r.value||!n.openImageViewWhenClick)return;v=!0;const{x:Y,y:L,width:H,height:fe}=o.value.getBoundingClientRect();C=$(Y,L,H,fe)}return Qe(()=>{m?.destroy()}),e({}),(Y,L)=>(I(),V("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:M({backgroundColor:n.bgColor}),onClick:S},[_("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:M({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),z_="",wh=ae(Hv,[["__scopeId","data-v-34d166d5"]]),Wv={style:{position:"absolute",width:"100%",height:"100%"}},Xv={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Ch=ae(oe({customOptions:{Image:wh},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]}},setup(s,{expose:e,emit:t}){const n=s,i=P(),r=P(),o=P(),a=P(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}Ee(r,()=>{r.value&&(l?.destroy(),l=new ft(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),Ee(o,()=>{o.value&&o.value.reset(n.urls.map(m=>({component:tt("div",{style:"position:absolute;width:100%;height:100%"},tt(wh,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return Qe(()=>{l?.destroy()}),e({open:f,close:d}),(m,v)=>(I(),wt(Zt,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:nt(()=>[_("div",Wv,[n.urls.length>1?(I(),V("div",Xv,me(a.value+1)+" / "+me(n.urls.length),1)):Pe("",!0),_("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[ue(xh,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),[["styles",[""]],["__scopeId","data-v-06f6e07e"]]),B_="",Uv={class:"page"},qv={class:"header"},Zv={class:"main"},Kv={class:"main-scroll"},Qv={class:"footer"},Jv=ae(oe({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(s,{expose:e,emit:t}){return _g(s.designWidth),e({}),(i,r)=>(I(),V("div",Uv,[_("header",qv,[ze(i.$slots,"header",{},void 0,!0)]),_("div",Zv,[_("div",Kv,[ze(i.$slots,"main",{},void 0,!0)])]),_("footer",Qv,[ze(i.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
|
|
135
|
-
`]],["__scopeId","data-v-20686fd2"]]),ey=ae(oe({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(s,{expose:e,emit:t}){const n=s,i=kt({}),r=kt({});function o(){switch(xn(i),xn(r),n.type){case"table":i.display="table",r.display="table-cell",r.verticalAlign="middle",r.textAlign="center";break;case"transform":r.position="absolute",r.top="50%",r.left="50%",r.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",r.margin="auto"}}return o(),Qe(()=>{}),e({}),(a,l)=>(I(),V("div",{class:"layout-center",style:M(i)},[_("div",{style:M(r)},[ze(a.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-db9c6bab]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
|
|
136
|
-
`]],["__scopeId","data-v-db9c6bab"]]),ty={class:"overlay-content",style:M(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},sy=oe({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:xi(j.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:e,emit:t}){const n=s,i=P();function r(o){n.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return Ee(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),e({}),(o,a)=>n.visible?(I(),V("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:M([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[_("div",ty,[ze(o.$slots,"default",{},void 0,!0)])],4)):Pe("",!0)}}),Br=ae(sy,[["styles",[""]],["__scopeId","data-v-c75aa932"]]),ny=(s=>(Ws("data-v-1ca4c8cb"),s=s(),Xs(),s))(()=>_("div",null,null,-1)),En=ae(oe({customOptions:{Overlay:rn},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;const a=kt({}),l=kt({});function c(){switch(xn(a),xn(l),n.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Ee(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new Je,h=(C=!0)=>{!o||!r.value||(C?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};Ee(r,()=>{r.value&&h(!0)},{});const f=P(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function b(C){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(C.target)&&n.closeWhenClickOverlay&&v():r.value&&!r.value.contains(C.target)&&n.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(C,O)=>(I(),wt(rn,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:nt(()=>[_("div",{class:"pop-parent",style:M([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[_("div",{ref_key:"pop",ref:r,class:"pop",style:M([{position:"absolute","z-index":"3000"},l])},[ze(C.$slots,"default",{},()=>[ny],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-1ca4c8cb"]]),iy=(s=>(Ws("data-v-8d198707"),s=s(),Xs(),s))(()=>_("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Sh=ae(oe({customOptions:{Pop:Zt,Button:it},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const e=s,t=P(),n=P(),i=P(),r=kt({left:"0",top:"0"});Ee(n,()=>{o()}),Ee(i,()=>{o()});function o(){if(!n.value||!i.value)return;const l=da(),c=n.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+e.gap,m=c.y;d=Math.max(e.gap,Math.min(d,l.width-h-e.gap)),m=Math.max(e.gap,Math.min(m,l.height-f-e.gap)),r.left=`${d}px`,r.top=`${m}px`}function a(){t.value.open()}return(l,c)=>(I(),V(je,null,[_("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[ze(l.$slots,"button",{},()=>[ue(it,null,{default:nt(()=>[He("popover-default-button")]),_:1})],!0)],512),ue(Zt,{ref_key:"popRef",ref:t,"direction-from":"absolute",isGlobal:e.isGlobal},{default:nt(()=>[_("div",{ref_key:"popoverPanelRef",ref:i,style:M([{display:"inline-block",position:"absolute"},r])},[ze(l.$slots,"panel",{},()=>[iy],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),ry={class:"dialog-parent"},oy={key:0,class:"title"},ay={key:0,class:"title-inner truncate"},ly={class:"custom-content"},cy={class:"custom-content-default"},uy={key:1,class:"btns"},jr=ae(oe({customOptions:{Overlay:rn,Pop:Zt,Icon:bs,Button:it},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(""),a=P(""),l=P(!1),c=P(""),u=P("");let h,f,d;function m(O){o.value=O?.title||"",a.value=O?.content||"",l.value=typeof O?.showClose=="boolean"?O?.showClose:!1,c.value=O?.cancelText||"",u.value=O?.confirmText||"",r.value.open(),h=O?.onClose,f=O?.onCancel,d=O?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function b(){v(),f?.(),i("cancel")}function C(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(O,$)=>(I(),wt(Zt,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:nt(()=>[_("div",ry,[_("div",{class:"dialog",style:M({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(I(),V("div",oy,[o.value?(I(),V("div",ay,me(o.value),1)):Pe("",!0),l.value?(I(),V("div",{key:1,class:"close",onClick:v},[ue(bs,{icon:"ic:baseline-close",color:ke(j).colorGrayCC},null,8,["color"])])):Pe("",!0)])):Pe("",!0),_("div",ly,[ze(O.$slots,"default",{},()=>[_("div",cy,me(a.value),1)],!0)]),c.value||u.value?(I(),V("div",uy,[c.value?(I(),wt(it,{key:0,onClick:b,class:"btn",bgColor:ke(j).colorGrayE6,borderColor:ke(j).colorGrayE6,fontColor:ke(j).colorGray33,borderRadius:"0"},{default:nt(()=>[He(me(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Pe("",!0),u.value?(I(),wt(it,{key:1,onClick:C,class:"btn",borderRadius:"0"},{default:nt(()=>[He(me(u.value),1)]),_:1})):Pe("",!0)])):Pe("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-8c45bc83]{display:flex;justify-content:center;align-items:center}.dialog[data-v-8c45bc83]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-8c45bc83]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-8c45bc83]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-8c45bc83]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-8c45bc83]{font-size:16px;word-break:break-all}.custom-content-default[data-v-8c45bc83]{padding:1em}.btns[data-v-8c45bc83]{display:flex;justify-content:center}.btn[data-v-8c45bc83]{flex:1 1 auto;border-radius:0}
|
|
137
|
-
`]],["__scopeId","data-v-8c45bc83"]]),hy={class:"loading"},dy={class:"icon"},fy={style:{width:"8em"}},py={key:0,class:"content"},kh=ae(oe({customOptions:{Overlay:rn,Pop:Zt,Dialog:Lr,Loading8:dh},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(I(),wt(Lr,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:nt(()=>[_("div",hy,[_("div",dy,[ze(c.$slots,"default",{},()=>[_("div",fy,[ue(dh)])],!0)]),o.value?(I(),V("div",py,me(o.value),1)):Pe("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-8a5155ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-8a5155ef]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-8a5155ef]{font-size:1em;margin-top:-1em;margin-bottom:1em}
|
|
138
|
-
`]],["__scopeId","data-v-8a5155ef"]]),my={class:"toast"},gy={class:"content"},Eh=ae(oe({customOptions:{Overlay:rn,Pop:Zt,Dialog:Lr},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(I(),wt(Lr,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:nt(()=>[_("div",my,[_("div",gy,me(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.toast[data-v-9b0eec22]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-9b0eec22]{font-size:1em}
|
|
139
|
-
`]],["__scopeId","data-v-9b0eec22"]]),vy={class:"tabs"},yy=["onClick"],by={class:"content"},_y=ae(oe({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(n.initIndex),o=kt([]),a=P(),l=P(0),c=P(0),u=P(0),h=P([]),f=[],d=Af(),m=d.default&&d.default();m&&(di(o,m),C(r.value));const v=($,S)=>{if($){if(f.push({index:S,el:$}),f.length<o.length)return;h.value=f}};Ee([a,h],()=>{b()});function b(){if(a.value&&h.value.length){const $=a.value.getBoundingClientRect(),S=h.value[r.value].el.getBoundingClientRect();l.value=S.x-$.x,c.value=S.y-$.y+S.height-2,u.value=S.width}}function C($){r.value=$,i("changedIndex",$),b(),O.value.goto($)}const O=P();return Ee(O,()=>{O.value&&O.value.reset(n.pages,()=>{O.value.goto(n.initIndex)})}),e({}),($,S)=>(I(),V("div",vy,[_("div",{class:"header",ref_key:"headerRef",ref:a},[(I(!0),V(je,null,St(n.labels,(Y,L)=>(I(),V("div",{key:Y,class:_t(L==r.value?"active":""),onClick:H=>C(L)},[_("div",{ref_for:!0,ref:H=>v(H,L)},me(Y),513)],10,yy))),128)),_("div",{class:"indicator",style:M({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),_("div",by,[ue(xh,{ref_key:"routesRef",ref:O,direction:"rightToLeft",duration:200},null,512)])]))}}),[["styles",[`.tabs[data-v-d151e665]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-d151e665]{flex:1 1 auto}.header[data-v-d151e665]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-d151e665]{color:#5a82f0}.header>div[data-v-d151e665]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-d151e665]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-d151e665]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
|
|
140
|
-
`]],["__scopeId","data-v-d151e665"]]),xy=["width","height"],wy=oe({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:e,emit:t}){const n=s;let i=()=>{};const r=P();return Ee(r,()=>{if(!r.value)return;const o=new ft(r.value),a=new $a(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{Cn.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),e({download:()=>i()}),(o,a)=>(I(),V("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:M([`border: 1px solid ${o.borderColor}`])},null,12,xy))}}),La=ae(oe({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);Je.toTween({width:c},{width:u},{duration:Math.abs(u-c)*n.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return e({start:o,goto:a}),(l,c)=>(I(),V("div",{class:"wrap",style:M({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[_("div",{class:"bar",style:M({width:r.value+"%",backgroundColor:n.progressColor})},me(n.showText?r.value+"%":""),5)],4))}}),[["styles",[`.wrap[data-v-e178311c]{position:relative;overflow:hidden}.bar[data-v-e178311c]{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}
|
|
141
|
-
`]],["__scopeId","data-v-e178311c"]]),Cy={class:"wrap",style:{}},Th=ae(oe({customOptions:{ProgressBar:Gr},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:e,emit:t}){const n=s,i=t,r=P(),o=()=>{const a=pg();i("progress",a),r.value?.goto(a)};return ft.page.registerGlobalScrollChange(o),Qe(()=>{ft.page.removeGlobalScrollChange(o)}),e({}),(a,l)=>(I(),V("div",Cy,[ue(Gr,{ref_key:"bar",ref:r,width:"100%",height:"100%",bgColor:n.bgColor,progressColor:n.progressColor,borderColor:n.borderColor,borderRadius:n.borderRadius,duringTimeGap:n.duringTimeGap,showText:n.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.wrap[data-v-5084cdef]{position:relative;overflow:hidden;width:100%;height:100%}
|
|
142
|
-
`]],["__scopeId","data-v-5084cdef"]]),Sy=["fill"],ky=["fill"],Ey=oe({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{style:M(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:e.color},null,8,Sy),_("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:e.color},null,8,ky)],4))}}),dx="",Oh=ae(Ey,[["__scopeId","data-v-987aed3d"]]),Yr=s=>(Ws("data-v-330c7adc"),s=s(),Xs(),s),Ty=Yr(()=>_("div",{class:"title"},"车牌颜色",-1)),Oy={class:"plate-types"},Py=["onClick"],Iy=Yr(()=>_("div",{class:"title"},"车牌号码",-1)),Dy={class:"plate-numbers"},Ny=Yr(()=>_("div",{class:"dot"},"·",-1)),$y=["onClick"],My=Yr(()=>_("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Ph=ae(oe({customOptions:{SVGCheck:Oh},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],o=P(0),a=kt([]),l=P(-1);function c(){yh({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{di(a,f),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=r[f].completePlateLength&&a.length<r[f].completePlateLength?(l.value=a.length,c(),i("clear")):di(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{di(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return e({}),(f,d)=>(I(),V("div",zo(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[Ty,_("div",Oy,[(I(),V(je,null,St(r,(m,v)=>_("div",{key:v,class:_t(v==o.value?"checked":""),onClick:b=>u(v)},[_("div",{style:M(m.style)},null,4),_("div",null,me(m.name),1),_("div",null,[ue(Oh,{color:"#ffffff",width:"0.14rem"})])],10,Py)),64))]),Iy,_("div",Dy,[_("div",{onClick:d[0]||(d[0]=m=>h(0)),class:_t(l.value==0?"current":"")},me(a[0]),3),_("div",{onClick:d[1]||(d[1]=m=>h(1)),class:_t(l.value==1?"current":"")},me(a[1]),3),Ny,(I(!0),V(je,null,St(r[o.value].completePlateLength-2,m=>(I(),V("div",{key:m,class:_t(m+1==l.value?"current":""),onClick:v=>h(m+1)},me(a[m+1]),11,$y))),128))]),My],16))}}),[["styles",[`.plate-mobile[data-v-330c7adc]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-330c7adc]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-330c7adc]{display:flex;justify-content:center}.plate-types>div[data-v-330c7adc]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-330c7adc]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-330c7adc]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-330c7adc]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-330c7adc]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-330c7adc]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-330c7adc]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-330c7adc]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-330c7adc]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-types>div.checked[data-v-330c7adc]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(3){display:block}.plate-numbers[data-v-330c7adc]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-330c7adc]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-330c7adc]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-numbers>div.dot[data-v-330c7adc]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-330c7adc]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
|
|
143
|
-
`]],["__scopeId","data-v-330c7adc"]]),Ay=["data-number"],Ry=["data-number","data-unactive"],Vy=["data-number"],Ly=["data-number","data-unactive"],za=ae(oe({customOptions:{Pop:Zt,SVGCleanUp:Ra},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(0),a=kt([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&u()}Ee(()=>[...n.initPlates],()=>{di(a,n.initPlates),l()},{immediate:!0});const c=()=>{r.value.open(),i("open")},u=()=>{r.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},f=C=>{if(C.target.dataset.unactive||"")return;let $=C.target.dataset.number;$&&(a.push($),l(),i("plates",a))};e({open:c,close:u});const d=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],b=["港","澳","学","警","使","领","挂","应","急"];return(C,O)=>(I(),wt(Zt,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:nt(()=>[_("div",{class:"popup-plate",style:M({paddingBottom:ke(j).safeAreaBottom})},[_("div",null,[_("div",{onClick:u},"关闭")]),_("div",{class:_t(["step",o.value==0?"":"hide"])},[(I(),V(je,null,St(d,$=>_("div",{key:$,class:"popitem",onClick:f,"data-number":$},me($),9,Ay)),64)),_("div",{class:"popitem popitem-clear",onClick:h},[ue(Ra,{width:"16px"})])],2),_("div",{class:_t(["step",o.value!=0?"":"hide"])},[(I(),V(je,null,St(m,$=>_("div",{key:$,class:_t(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":$,"data-unactive":o.value!=2?"unactive":""},me($),11,Ry)),64)),(I(),V(je,null,St(v,$=>_("div",{key:$,class:"popitem",onClick:f,"data-number":$},me($),9,Vy)),64)),(I(),V(je,null,St(b,$=>_("div",{key:$,class:_t(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":$,"data-unactive":o.value!=2?"unactive":""},me($),11,Ly)),64)),_("div",{class:"popitem popitem-clear",onClick:h},[ue(Ra,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-7fa8a410]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-7fa8a410]{display:none!important}.popup-plate>div[data-v-7fa8a410]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-7fa8a410]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-7fa8a410]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-7fa8a410]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-7fa8a410]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-7fa8a410]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-7fa8a410]{background-color:#eee;display:flex;justify-content:center;align-items:center}
|
|
144
|
-
`]],["__scopeId","data-v-7fa8a410"]]),zy={class:"parent"},Fy=ae(oe({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:e,emit:t}){const n=s,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=i.filter(d=>d.name===h);return f.length?f[0]:o("未知")}const a=r(n.plate),l=P(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return e({}),(h,f)=>(I(),V("div",zy,[_("div",{class:_t(["leading",n.displayType]),style:M(l.value.style)},me(l.value.name),7),_("div",{class:"text",style:M({color:ke(c),"font-size":ke(u)})},me(ke(a)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
|
|
145
|
-
`]],["__scopeId","data-v-5a5145f8"]]),Gy=`.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}
|
|
146
|
-
`,By={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",fa&&this.$el.appendChild(s),s.data="about:blank",fa||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&&(!fa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},jy={class:"resize-observer",tabindex:"-1"};function Yy(s,e,t,n,i,r){return I(),V("div",jy)}const Hy=ae(By,[["render",Yy],["styles",[Gy]],["__scopeId","data-v-16da9fc4"]]),Wy=ae(oe({__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:e,emit:t}){const n=s,i=P(n.mapWidth),r=P(n.mapHeight);let o;const a=P();return Ee(a,()=>{a.value&&(o=new ft(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),Us(()=>{K.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new c0(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),Qe(()=>{o.destroy()}),e({}),(l,c)=>(I(),V("div",zo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[ze(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
|
|
147
|
-
`]],["__scopeId","data-v-7b13fce1"]]);var Ti=function(){var s=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(u){u.preventDefault(),n(++s%e.children.length)},!1);function t(u){return e.appendChild(u.dom),u}function n(u){for(var h=0;h<e.children.length;h++)e.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=t(new Ti.Panel("FPS","#0ff","#002")),l=t(new Ti.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=t(new Ti.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:e,addPanel:t,showPanel:n,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:e,setMode:n}};Ti.Panel=function(s,e,t){var n=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,f=15*o,d=74*o,m=30*o,v=document.createElement("canvas");v.width=a,v.height=l,v.style.cssText="width:80px;height:48px";var b=v.getContext("2d");return b.font="bold "+9*o+"px Helvetica,Arial,sans-serif",b.textBaseline="top",b.fillStyle=t,b.fillRect(0,0,a,l),b.fillStyle=e,b.fillText(s,c,u),b.fillRect(h,f,d,m),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h,f,d,m),{dom:v,update:function(C,O){n=Math.min(n,C),i=Math.max(i,C),b.fillStyle=t,b.globalAlpha=1,b.fillRect(0,0,a,f),b.fillStyle=e,b.fillText(r(C)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),b.drawImage(v,h+o,f,d-o,m,h,f,d-o,m),b.fillRect(h+d-o,f,o,m),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h+d-o,f,o,r((1-C/O)*m))}}};const Xy=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(s,{expose:e}){const t=P();return Us(()=>{const n=new Ti,i=n.domElement.style;i.margin="1em",t.value.appendChild(n.domElement),We.run(()=>(n.update(),!0))}),e({}),(n,i)=>(I(),V("div",{ref_key:"containerRef",ref:t},null,512))}}),Uy=["width","height"],qy=oe({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(),a=P(0),l=P(0);let c;Ee(r,()=>{r.value&&(c=new ft(r.value,!1),c.on("resize",(v,b)=>{const C=da();a.value=Math.min(v,C.width),l.value=Math.min(b,C.height),d()}),c.start())}),Ee(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new ft(o.value,!1),u.on("resize",(v,b)=>{h=new $a(u),i("resize",v,b),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return Qe(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>o.value,getCanvas:m}),(v,b)=>(I(),V("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[_("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:M({backgroundColor:n.bgColor})},null,12,Uy)],512))}}),wx="",ts=ae(qy,[["__scopeId","data-v-d6a232ce"]]),Zy={class:"ease-graph"},Fa=ae(oe({customOptions:{Button:it,Canvas:ts},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:e,emit:t}){const n=s,i=t,r=P();let o;Ee(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap};let f=!1,d=!1;Je.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),Je.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.easeFunction,onUpdate:()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return Qe(()=>{o.app.off("showInParent",l)}),e({start:l}),(u,h)=>(I(),V("div",Zy,[_("div",null,"缓动:"+me(u.easeName),1),_("div",null,[_("div",null,[ue(it,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",null,[ue(it,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:nt(()=>[He(" 选择 ")]),_:1},8,["stylePattern"])])]),_("div",{style:M({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-c0b4dba9]{display:inline-block}.ease-graph>div[data-v-c0b4dba9]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-c0b4dba9]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-c0b4dba9]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-c0b4dba9]{margin-left:10px}
|
|
148
|
-
`]],["__scopeId","data-v-c0b4dba9"]]),Ky={class:"ease-graph"},Qy=oe({customOptions:{Button:it,Canvas:ts},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:e,emit:t}){const n=s,i=t,r=P();let o;Ee(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap};let f=!1,d=!1;Je.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),Je.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.easeFunction,onUpdate:()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return Qe(()=>{o.app.off("showInParent",l)}),e({start:l}),(u,h)=>(I(),V("div",Ky,[_("div",null,"缓动:"+me(u.easeName),1),_("div",null,[_("div",null,[ue(it,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",null,[ue(it,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:nt(()=>[He(" 选择 ")]),_:1},8,["stylePattern"])])]),_("div",{style:M({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),kx="",Ih=ae(Qy,[["__scopeId","data-v-5c401464"]]),Jy=2e3,Dh=ae(oe({customOptions:{EaseGraphDisplay:Ih},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:he.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:he.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:he.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:he.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:he.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:he.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:he.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:he.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:he.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:he.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:he.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:he.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:he.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:he.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:he.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:he.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:he.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:he.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:he.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:he.Easing.Circular.In},{easeName:"CircularOut",easeFunction:he.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:he.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:he.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:he.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:he.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:he.Easing.Back.In},{easeName:"BackOut",easeFunction:he.Easing.Back.Out},{easeName:"BackInOut",easeFunction:he.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:he.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:he.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:he.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:he.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:he.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:he.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:he.Easing.createStep(4)},{easeName:"8 steps",easeFunction:he.Easing.createStep(8)},{easeName:"12 steps",easeFunction:he.Easing.createStep(12)},{easeName:"16 steps",easeFunction:he.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:he.Easing.swing},{easeName:"causeSeizures",easeFunction:he.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:e,emit:t}){const n=s,i=t,r={};function o(f,d){f&&(r[d]={el:f})}const a=new ou(10);function l(f){a.addTask(()=>(r[f].el.start(),new Promise(d=>{r[f].resolve=d})))}function c(f){r[f].resolve?.()}const u=P("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",he.Easing.Linear.None),e({}),(f,d)=>(I(),V("div",null,[(I(!0),V(je,null,St(n.easeList,m=>(I(),V("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(I(),wt(Ih,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:Jy,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:v=>o(v,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Pe("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
|
|
149
|
-
`]],["__scopeId","data-v-b3ce4b26"]]),e1={class:"interpolation-graph"},Nh=1/6,$h=5/6,Ga=ae(oe({customOptions:{Button:it,Canvas:ts},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;Ee(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*Nh,l=n.canvasHeight/2,c=[n.canvasWidth*$h,n.canvasWidth/2],u=[n.canvasHeight*Nh,n.canvasHeight*$h],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)o.ctx.fillRect(c[v]-2,u[v]-2,4,4);let b=!1,C=!1;const O={x:a,y:l,old:{x:a,y:l}};Je.toTween(O,{x:c,y:u},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{b=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const $={x:a,y:l,old:{x:a,y:l}};Je.toTween($,{x:h,y:f},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{C=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return Qe(()=>{o.app.off("showInParent",m)}),e({start:m}),(v,b)=>(I(),V("div",e1,[_("div",null,[He(" 插值:"+me(v.interpolationName)+" ",1),ue(it,{stylePattern:"outline",height:"32px",onClick:m},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",{style:M({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-2bc9c320]{display:inline-block}.interpolation-graph>div[data-v-2bc9c320]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
|
|
150
|
-
`]],["__scopeId","data-v-2bc9c320"]]),t1={class:"interpolation-graph"},Mh=1/6,Ah=5/6,s1=oe({customOptions:{Button:it,Canvas:ts},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;Ee(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*Mh,l=n.canvasHeight/2,c=[n.canvasWidth*Ah,n.canvasWidth/2],u=[n.canvasHeight*Mh,n.canvasHeight*Ah],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)o.ctx.fillRect(c[v]-2,u[v]-2,4,4);let b=!1,C=!1;const O={x:a,y:l,old:{x:a,y:l}};Je.toTween(O,{x:c,y:u},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{b=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const $={x:a,y:l,old:{x:a,y:l}};Je.toTween($,{x:h,y:f},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{C=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return Qe(()=>{o.app.off("showInParent",m)}),e({start:m}),(v,b)=>(I(),V("div",t1,[_("div",null,[He(" 插值:"+me(v.interpolationName)+" ",1),ue(it,{stylePattern:"outline",height:"32px",onClick:m},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",{style:M({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Ix="",Rh=ae(s1,[["__scopeId","data-v-eb70b61a"]]),n1=2e3,Vh=ae(oe({customOptions:{InterpolationGraphDisplay:Rh},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:he.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:he.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:he.Interpolation.CatmullRom}]}},setup(s,{expose:e,emit:t}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new ou(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return e({}),(c,u)=>(I(),V("div",null,[(I(!0),V(je,null,St(n.interpolationList,h=>(I(),V("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ue(Rh,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:n1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
|
|
151
|
-
`]],["__scopeId","data-v-7128e350"]]),Lh=ae(oe({__name:"SVG.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();Ee(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new ft(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new Ju(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return Qe(()=>{o?.destroy()}),e({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(I(),V("div",{ref_key:"svgRef",ref:r,class:"svg",style:M({backgroundColor:n.bgColor})},null,4))}}),[["styles",[`.svg[data-v-0cf49925]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
152
|
-
`]],["__scopeId","data-v-0cf49925"]]),i1=["width","height"],Hr=ae(oe({__name:"Canvas.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(),a=P(0),l=P(0);let c;Ee(r,()=>{r.value&&(c=new ft(r.value,!1),c.on("resize",(v,b)=>{const C=da();a.value=Math.min(v,C.width),l.value=Math.min(b,C.height),d()}),c.start())}),Ee(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new ft(o.value,!1),u.on("resize",(v,b)=>{h=new $a(u),i("resize",v,b),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return Qe(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>o.value,getCanvas:m}),(v,b)=>(I(),V("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[_("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:M({backgroundColor:n.bgColor})},null,12,i1)],512))}}),[["styles",[`.canvas-wrap[data-v-9f469399]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
153
|
-
`]],["__scopeId","data-v-9f469399"]]),r1=["max","min","step","value","autofocus"],o1={key:0,class:"label"},a1=oe({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:j.colorPrimary},barColor:{default:j.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(n.defaultValue),o=P(Rt((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=Rt(u.target.value,2),o.value=Rt((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
|
|
84
|
+
`,c=I();return bt(c,()=>{c.value&&rt.setStyleSheet(l,c.value)}),oe(()=>{}),t({}),(u,d)=>(R(),M("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[x("input",{type:"range",max:s.max,min:s.min,step:s.step,value:n.value,autofocus:s.autofocus,onInput:i,style:D({background:`linear-gradient(to right, ${s.color} 0%, ${s.color} ${a.value}%, ${s.barColor} ${a.value}%, ${s.barColor})`})},null,44,jy),u.showValue?(R(),M("label",Hy,vt(n.value)+vt(s.unit),1)):Rt("",!0)],512))}}),$i=ct(Zy,[["styles",[`.input-range[data-v-47a3874d]{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-47a3874d]{min-width:4em;text-align:right}input[type=range][data-v-47a3874d]{flex:1 1 auto;-webkit-appearance:none;appearance:none;border-radius:9999px;margin:0;padding:0}input[type=range][data-v-47a3874d]:focus{outline:none}input[type=range][data-v-47a3874d]::-webkit-slider-runnable-track{height:var(--input-range-track-size);border-radius:9999px}input[type=range][data-v-47a3874d]::-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}
|
|
85
|
+
`]],["__scopeId","data-v-47a3874d"]]),Wy=tt({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(o,{expose:t,emit:e}){const s=o,r=e;let n,a,i;const l=I();bt(l,()=>{n||!l.value||(n=new Ue(l.value,!1),n.on("resize",(u,d)=>{r("resize",u,d),a=new md(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return oe(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,d)=>(R(),M("div",{class:"svg",ref_key:"svgRef",ref:l,style:D({backgroundColor:s.bgColor})},null,4))}}),px="",Fn=ct(Wy,[["__scopeId","data-v-132e642b"]]),qy={class:"input-range-svg"},Ky={key:0,class:"label"},Qy=tt({customOptions:{SVG:Fn},inheritAttrs:!0,__name:"InputRangeSvg.ce",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:W.colorPrimary},barColor:{default:W.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(s.defaultValue),a=f=>{n.value=f,r("change",f)},i=ws(s.handleSize,20).number;let l;const c=()=>{l=new bd({x:0,y:i*.5,min:s.min,max:s.max,step:s.step,defaultValue:n.value,barWidth:u,handleRadius:i}),l.on("change",a)};let u=0;const d=I();return bt(d,()=>{d.value&&d.value.getSVG().then(f=>{u=f.app.width,f.clear(),c(),f.path(l),f.app.on("resize",p=>{u=p,f.clear(),c(),f.path(l)})})}),oe(()=>{}),t({}),(f,p)=>(R(),M("div",qy,[x("div",{class:"input",style:D({height:s.handleSize})},[ft(Fn,{ref_key:"svgRef",ref:d},null,512)],4),f.showValue?(R(),M("div",Ky,vt(n.value)+vt(s.unit),1)):Rt("",!0)]))}}),Sd=ct(Qy,[["styles",[`.input-range-svg[data-v-c1cccf51]{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-c1cccf51]{flex:1 1 auto;overflow:hidden}.label[data-v-c1cccf51]{min-width:4em;text-align:right}
|
|
86
|
+
`]],["__scopeId","data-v-c1cccf51"]]),Jy=["width","height"],t1=["fill"],e1=tt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[x("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,t1)],8,Jy))}}),gx="",Ed=ct(e1,[["__scopeId","data-v-4747d4a7"]]),s1=tt({customOptions:{SVGDelete:Ed},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:W.colorGrayFF},deleteColor:{default:W.colorRed},fontColor:{default:W.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(!1),a=()=>{r("delete"),n.value=!1};let i;const l=I();return bt(l,()=>{l.value&&(i=new Ue(l.value),i.on("panLeft",()=>{n.value=!0}),i.on("panRight",()=>{n.value=!1}),i.on("tapOutSide",()=>{n.value=!1}))}),oe(()=>{i?.destroy()}),t({}),(c,u)=>(R(),M("div",{class:"parent",ref_key:"item",ref:l,style:D({backgroundColor:s.bgColor,borderRadius:s.borderRadius})},[x("div",{class:"content",style:D({transition:"all ease-in "+s.transtionDuration,transform:n.value?"translate(-"+s.deleteWidth+", 0)":"translate(0, 0)"})},[Et(c.$slots,"default",{},void 0,!0)],4),x("div",{class:"delete",onClick:a,style:D({backgroundColor:s.deleteColor,width:s.deleteWidth,transition:"all ease-in "+s.transtionDuration,transform:n.value?"translate(0, 0)":"translate("+s.deleteWidth+", 0)"})},[ft(Ed,{color:s.fontColor},null,8,["color"])],4)],4))}}),Pd=ct(s1,[["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}
|
|
87
|
+
`]],["__scopeId","data-v-4ea80232"]]),o1=tt({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},styleSheets:{},supportCopyText:{type:Boolean,default:!1}},emits:["ready","resize","start","end"],setup(o,{expose:t,emit:e}){const s=o,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,d,f;const p=I();bt(p,()=>{if(!(!p.value||d)){if(s.styleSheets){let v="";for(let _ in s.styleSheets)v+=`${_}: ${s.styleSheets[_]};`;rt.setStyleSheet(`
|
|
88
|
+
:root {
|
|
89
|
+
${v}
|
|
90
|
+
}
|
|
91
|
+
:host {
|
|
92
|
+
${v}
|
|
93
|
+
}
|
|
94
|
+
`,p.value)}d=new Ue(p.value,!1),d.on("resize",(v,_)=>{r("resize",v,_,p.value.getBoundingClientRect()),f?.(d),u||(u=!0,s.effectTriggerTiming!=="manual"&&a(),r("ready",d),s.effectTriggerTiming=="immediate"&&l())}),d.on("mouseOver",()=>{s.effectTriggerTiming=="mouseMove"&&l()}),d.on("mouseOut",()=>{s.effectTriggerTiming=="mouseMove"&&l()}),d.on("tap",()=>{s.effectTriggerTiming=="click"&&l(),s.supportCopyText&&rt.copyToClipboard(rt.getInnerText(p.value)).then(()=>{}).catch(v=>{})}),d.start()}});const h=()=>new Promise(v=>{if(d)return v(d);f=v}),y=()=>h().then(()=>p.value.getBoundingClientRect());return oe(()=>{d?.destroy()}),t({getElement:()=>p.value,getApp:h,getSize:y,getStatus:()=>n,startEffect:a,endEffect:i,nextEffect:l,repeatEffect:c}),(v,_)=>(R(),M("div",{ref_key:"containerRef",ref:p,class:te(["container",[s.type]]),style:D({position:"relative",boxSizing:"border-box",display:s.type=="shrink"?"inline-block":"block",width:s.type=="full"?"100%":"auto",height:s.type=="full"?"100%":"auto"})},[Et(v.$slots,"default",{},void 0,!0)],6))}}),vx="",Pt=ct(o1,[["__scopeId","data-v-9860aaf1"]]),r1=ct(tt({customOptions:{Container:Pt,SVGDown:Rn},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(o,{expose:t,emit:e}){const s=o,r=e,n=(d,f)=>{r("resize",d,f)},a=I(Number.MAX_SAFE_INTEGER+"px"),i=I(),l=I(!0);bt(i,()=>{i.value&&(a.value=i.value.getBoundingClientRect().height+"px",l.value=s.initOpen)});function c(){l.value=!l.value,l.value?r("open"):r("close")}const u=I(0);return ec(()=>{u.value=l.value?0:-90}),t({}),(d,f)=>(R(),Lt(Pt,{onResize:n},{default:St(()=>[x("div",{class:"accordion",style:D({background:s.bgColor,color:s.fontColor,borderRadius:s.borderRadius})},[x("div",{class:"accordion-title",onClick:c,style:D({height:s.titleHeight,lineHeight:s.titleHeight,margin:`0 ${s.padding}`,transitionDelay:`${l.value?0:s.duration}ms`,borderBottom:`${l.value?1:0}px solid ${s.borderColor}`})},[Et(d.$slots,"title",{},()=>[jt("title")],!0),ft(Rn,{class:"arrow",style:D({transition:`transform ${s.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),x("div",{class:"accordion-content",ref_key:"content",ref:i,style:D({margin:`0 ${s.padding}`,transition:`max-height ${s.duration}ms ease-in-out`,maxHeight:l.value?a.value:"0"})},[Et(d.$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}
|
|
95
|
+
`]],["__scopeId","data-v-33318c10"]]),n1=tt({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(o,{expose:t,emit:e}){const s=o,r=I(0);function n(a){r.value=Math.min(Math.max(0,a),100)}return t({goto:n}),(a,i)=>(R(),M("div",{class:"bar",style:D({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[x("div",{class:"bar-inner",style:D({width:r.value+"%",backgroundColor:s.progressColor})},vt(s.showText?r.value+"%":""),5)],4))}}),xx="",Dn=ct(n1,[["__scopeId","data-v-c3648a91"]]),a1=["width","height"],i1=["src","type"],l1={class:"video-progress-bar"},Od=ct(tt({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(o,{expose:t,emit:e}){const s=o,r=e;function n(c){const u=new Pe({frameDuration:this.duration*1e3});u.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{r("start"),i.value?.goto(0)},onUpdate:d=>{i.value?.goto(d.x)},onComplete:()=>{r("complete")}}),u.play()}const a=I(),i=I();bt(a,()=>{a.value&&(a.value.addEventListener("play",n),s.autoplay&&Si.tryAutoPlayOrAutoPlayAfterClick(a.value))}),oe(()=>{a.value?.removeEventListener(n)});function l(){a.value?.play()}return t({play:l}),(c,u)=>(R(),M("div",{class:"video",style:D({width:s.width,height:s.height}),onClick:l},[x("video",{ref_key:"video",ref:a,width:s.width,height:s.height,preload:"metadata"},[x("source",{src:s.src,type:s.type},null,8,i1)],8,a1),x("div",l1,[ft(Dn,{ref_key:"bar",ref:i,width:s.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),[["styles",[`.video[data-v-deb7e3aa]{position:relative;overflow:hidden;background-color:#f5f5f5}.video-progress-bar[data-v-deb7e3aa]{position:absolute;bottom:0;left:0}
|
|
96
|
+
`]],["__scopeId","data-v-deb7e3aa"]]),Gs=tt({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:kn("#000000",.25)},isGlobal:{type:Boolean,default:!0}},setup(o,{expose:t,emit:e}){const s=o,r=I(),n=document.documentElement.style.overflow,a=document.body.style.overflow;return bt(()=>s.visible,()=>{s.isGlobal?s.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=n,document.body.style.overflow=a):r.value&&(s.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(i,l)=>s.visible?(R(),M("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:D([`background-color: ${s.color}`,`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[Et(i.$slots,"default")],4)):Rt("",!0)}}),c1=x("div",null,null,-1),ke=tt({customOptions:{Overlay:Gs,Container:Pt},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(o,{expose:t,emit:e}){const s=o,r=e,n=new Pe({frameDuration:s.dur}),a=Zt({backgroundColor:s.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),i=I("full");bt(()=>[s.directionFrom,s.popValue],()=>{n.clear();const y=s.popValue?s.popValue:s.popPercent,v=s.popValue?"px":"%";switch(s.directionFrom){case"left":a.height="100%",a.width=`${y}${v}`,a.top="0",a.bottom="0",delete a.right,n.addTween({left:y},{left:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.left=`-${_.left}${v}`},onComplete:u});break;case"right":a.height="100%",a.width=`${y}${v}`,a.top="0",a.bottom="0",delete a.left,n.addTween({right:y},{right:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.right=`-${_.right}${v}`},onComplete:u});break;case"top":a.width="100%",a.height=`${y}${v}`,a.left="0",a.right="0",delete a.bottom,n.addTween({top:y},{top:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.top=`-${_.top}${v}`},onComplete:u});break;case"bottom":a.width="100%",a.height=`${y}${v}`,a.left="0",a.right="0",delete a.top,n.addTween({bottom:y},{bottom:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.bottom=`-${_.bottom}${v}`},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(_){a.transform=`translate(-50%, -50%) scale(${_.scale})`,a.opacity=`${_.opacity}`},onComplete:u});break;case"absolute":a.width=s.absoluteWidth,a.height=s.absoluteHeight,a.left=s.absoluteLeft,a.top=s.absoluteTop,delete a.right,delete a.bottom;break}switch(s.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}),bt(()=>s.absoluteLeft,()=>{switch(s.directionFrom){case"absolute":a.left=s.absoluteLeft;break}}),bt(()=>s.absoluteTop,()=>{switch(s.directionFrom){case"absolute":a.top=s.absoluteTop;break}}),bt(()=>s.absoluteWidth,()=>{switch(s.directionFrom){case"absolute":a.width=s.absoluteWidth;break}}),bt(()=>s.absoluteHeight,()=>{switch(s.directionFrom){case"absolute":a.height=s.absoluteHeight;break}});const l=(y,v,_)=>{r("resize",y,v,_)};let c="open";function u(){c=="open"?r("open"):(d.value=!1,r("close"))}const d=I(!1);function f(){d.value=!0,c="open",n.play()}function p(){switch(c="close",s.directionFrom){case"absolute":u();break;default:n.reverse();break}}function h(y){const v=s.directionFrom=="absolute"&&s.absoluteWidth=="100%"&&s.absoluteHeight=="100%"?"pop-content":"pop";y.target&&rt.hasClass(y.target,v)&&(s.closeWhenClickOverlay&&p(),r("clickOverlay"))}return t({open:f,close:p}),(y,v)=>(R(),Lt(Gs,{visible:d.value,isGlobal:s.isGlobal,color:s.overlayBgColor},{default:St(()=>[x("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:h},[ft(Pt,{class:"pop-content",type:i.value,style:D(a),onResize:l},{default:St(()=>[Et(y.$slots,"default",{},()=>[c1])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),u1=tt({...{},name:"Image",customOptions:{Container:Pt,Pop:ke},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=new Pe({frameDuration:s.dur}),a=I(0),i=I(0),l=I(0),c=I(0),u=I(0),d=I(0),f=I(0),p=I(0),h=I(0),y=I(0);pd(s.src).then(P=>{h.value=P.width,y.value=P.height,G()});const v=I(0),_=I(0),z=(P,$)=>{v.value=P,_.value=$,G()},Y=I(0),O=I(0);function G(){if(!v.value||!_.value||!h.value||!y.value)return;const P=Tn(s.mode,h.value,y.value,v.value,_.value);Y.value=P.width,O.value=P.height;const{width:$,height:B}=hr(),st=Tn("aspectFit",h.value,y.value,$,B);f.value=st.width,p.value=st.height,u.value=($-f.value)/2,d.value=(B-p.value)/2}const J=(P,$,B)=>{r("settled",B.x,B.y,B.width,B.height)};let H=!1;const it=I(),w=I();async function E(){if(!s.openImageDetailWhenClick)return;const P=await it.value.getSize();n.clear(),n.addTween({left:P.x,top:P.y,width:P.width,height:P.height},{left:u.value,top:d.value,width:f.value,height:p.value},{easeFunction:ht.Quadratic.Out,onUpdate($){a.value=$.left,i.value=$.top,l.value=$.width,c.value=$.height},onComplete(){H&&w.value.close(),H=!H}}),H||(w.value.open(),n.play())}function F(){H&&n.reverse()}return t({}),(P,$)=>(R(),Lt(Pt,{class:"image",type:"full",style:D({backgroundColor:s.bgColor}),onResize:z,onClick:E},{default:St(()=>[ft(Pt,{class:"image-inner",ref_key:"imageRef",ref:it,type:"shrink",style:D({width:Y.value+"px",height:O.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${Y.value}px ${O.value}px`}),onResize:J},null,8,["style"]),ft(ke,{ref_key:"popRef",ref:w,"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:F},{default:St(()=>[x("div",{class:"image-pop",style:D({width:"100%",height:"100%",backgroundImage:`url(${s.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Li=ct(u1,[["styles",[`.image[data-v-ecc6cad0]{overflow:hidden;display:flex!important;justify-content:center;align-items:center}.image-inner[data-v-ecc6cad0],.image-pop[data-v-ecc6cad0]{background-repeat:no-repeat;background-position:center center}
|
|
97
|
+
`]],["__scopeId","data-v-ecc6cad0"]]),$n=tt({customOptions:{Container:Pt},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(o,{expose:t,emit:e}){const s=o,r=e,n=Zt({}),a=Zt({});let i=s.name,l=s.duration,c=s.timingFunction,u=s.delay,d=s.repeat,f=s.direction;function p(){switch(i){case"superRainbow":l=s.duration||15e3;break;case"heartBeat":l=s.duration||1300;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=s.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=s.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=s.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=s.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=s.duration||600;break;default:l=s.duration||500;break}switch(i){case"superRainbow":c=s.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=s.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=s.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":c=s.timingFunction||"ease-in-out";break;default:c=s.timingFunction||"ease";break}switch(i){default:u=s.delay||0;break}switch(i){case"superRainbow":d=s.repeat||"infinite";break;default:d=s.repeat||1;break}switch(i){case"superRainbow":f=s.direction||"alternate";break;default:f=s.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}}bt(()=>s.name,()=>{i=s.name,p()},{immediate:!0});const h=I(),y=I(),v=w=>{r("cssanimationstart",w.animationName)},_=w=>{r("cssanimationend",w.animationName)},z=w=>{n.perspective=s.perspective,w.on("animationstart",E=>{v(E)}),w.on("animationend",E=>{_(E)})};function Y(){y.value.style.animation="none",y.value.offsetHeight,y.value.style.animation=null}const O=()=>{a.animation="none"},G=()=>{Y(),a.animation=`${l}ms ${c} ${u}ms ${d} ${f} ${s.fillMode} ${s.playState} ${i}`};return t({trigger:w=>{w&&(i=w,p()),h.value.startEffect(),f="normal",h.value.endEffect()},triggerReverse:w=>{w&&(i=w,p()),h.value.startEffect(),f="reverse",h.value.endEffect()},clear:()=>{a.animation="none"}}),(w,E)=>(R(),Lt(Pt,{class:"css-animation",ref_key:"containerRef",ref:h,type:s.containerType,supportCopyText:s.supportCopyText,effectTriggerTiming:s.effectTriggerTiming,onStart:O,onEnd:G,onReady:z,style:D(n)},{default:St(()=>[x("div",{class:"css-animation-inner",ref_key:"animationRef",ref:y,style:D({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[Et(w.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),Sx="",Ln=tt({customOptions:{Container:Pt,CSSAnimation:$n},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(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=Zt({}),i=()=>{r("ready",J,H)},l=()=>{y()},c=I();let u="rotateRightSideFirst",d=s.effect;function f(it,w){switch(d){case"static":w();break;default:it();break}}let p=!1;const h=new Pe,y=()=>{const it={},w={};h.clear(),h.frameDuration=s.duration,f(()=>{u=d},()=>{h.addTween(it,w,{delay:s.delay/s.duration,easeFunction:s.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:E=>{a.transform="","x"in E&&(a.transform+=` translateX(${E.x}%)`),"y"in E&&(a.transform+=` translateY(${E.y}%)`),"rx"in E&&(a.transform+=` rotateX(${E.rx}deg)`),"ry"in E&&(a.transform+=` rotateY(${E.ry}deg)`),"scale"in E&&(a.transform+=` scale(${E.scale})`),"opacity"in E&&(a.opacity=`${E.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};bt(()=>[s.effect,s.delay,s.duration,s.easeFunction],()=>{d=s.effect,y()},{immediate:!0});const v=()=>{r(p?"pageCloseStart":"pageOpenStart")},_=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},z=()=>{f(()=>{c.value.trigger(u)},()=>{h.play()})},Y=()=>{f(()=>{c.value.triggerReverse(u)},()=>{h.reverse()})},O=()=>{a.transform="none",a.opacity="1"};function G(){f(()=>{O()},()=>{c.value?.clear()})}const J=it=>{it&&(d=it,y()),p=!1,G(),n.value.startEffect()},H=it=>{it&&(d=it,y()),p=!0,G(),n.value.endEffect()};return t({open:J,close:H,clear:O,getElement:()=>n.value.getElement()}),(it,w)=>(R(),Lt(Pt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:z,onEnd:Y},{default:St(()=>[ft($n,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:s.duration,delay:s.delay,timingFunction:s.timingFunction,onCssanimationstart:v,onCssanimationend:_},{default:St(()=>[x("div",{class:"page-inner",style:D({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[Et(it.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Mi=tt({customOptions:{Page:Ln,Container:Pt},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(o,{expose:t,emit:e}){const s=o,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],d=[];function f(A){return A>=0&&A<c.length}function p(){return a>n}function h(A,k,Yt){switch(A){case n:return p()?k:Yt;case a:return p()?Yt:k;default:return"static"}}function y(A,k){switch(A){case"moveToLeft":return h(k,"moveToLeft","moveFromRight");case"moveToRight":return h(k,"moveToRight","moveFromLeft");case"moveToTop":return h(k,"moveToTop","moveFromBottom");case"moveToBottom":return h(k,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return h(k,"fade","moveFromLeft");case"moveFromRightPrevFade":return h(k,"fade","moveFromRight");case"moveFromTopPrevFade":return h(k,"fade","moveFromTop");case"moveFromBottomPrevFade":return h(k,"fade","moveFromBottom");case"moveToLeftFade":return h(k,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return h(k,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return h(k,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return h(k,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return h(k,"moveToLeft","moveFromRight");case"moveToRightEasing":return h(k,"moveToRight","moveFromLeft");case"moveToTopEasing":return h(k,"moveToTop","moveFromBottom");case"moveToBottomEasing":return h(k,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return h(k,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return h(k,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return h(k,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return h(k,"scaleToSmall","moveFromBottom");case"scaleSmall":return h(k,"scaleToSmall","scaleFromLarge");case"scaleLarge":return h(k,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return h(k,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return h(k,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return h(k,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return h(k,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return h(k,"moveToBottom","scaleFromSmall");case"glueToLeft":return h(k,"rotateRightSideFirst","moveFromRight");case"glueToRight":return h(k,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return h(k,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return h(k,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return h(k,"flipOutLeft","flipInRight");case"flipToRight":return h(k,"flipOutRight","flipInLeft");case"flipToTop":return h(k,"flipOutTop","flipInBottom");case"flipToBottom":return h(k,"flipOutBottom","flipInTop");case"rotateFall":return h(k,"rotateFall","scaleFromSmall");case"newspaper":return h(k,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return h(k,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return h(k,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return h(k,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return h(k,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return h(k,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return h(k,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return h(k,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return h(k,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return h(k,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return h(k,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return h(k,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return h(k,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return h(k,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return h(k,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return h(k,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return h(k,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return h(k,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return h(k,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return h(k,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return h(k,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return h(k,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return h(k,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return h(k,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return h(k,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return h(k,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return h(k,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return h(k,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return h(k,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return h(k,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return h(k,"rotateSlideOut","rotateSlideIn")}}function v(A,k=600,Yt=600){switch(A){case n:return k;case a:return Yt;default:return s.duration}}function _(A,k){switch(A){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return v(k,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return v(k,700,600);case"scaleSmall":return v(k,700,500);case"scaleLarge":return v(k,500,700);case"scaleToLargePrevScaleToSmall":return v(k,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return v(k,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return v(k,800,600);default:return s.duration}}let z=s.timingFunction;function Y(A){switch(A){default:return s.easeFunction}}function O(A,k){switch(A){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(k){case n:z=p()?"ease-in-out":"ease";break;case a:default:z=p()?"ease":"ease-in-out"}return Y(k);default:return z=s.timingFunction,s.easeFunction}}function G(A,k=300){switch(A){case a:return s.delay+k;default:return s.delay}}function J(A,k){switch(A){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return G(k,500);case"scaleSmall":case"scaleLarge":return G(k,300);case"scaleToLargePrevScaleToSmall":return G(k,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return G(k,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return G(k,180);default:return s.delay}}let H=2,it=2;const w=()=>{H=2,it=2},E=()=>{H=2,it=3},F=()=>{H=3,it=2};function P(A){switch(s.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":F();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()?F():E();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()?E():F();break;default:w();break}f(n)&&n==A&&(d[n].style.zIndex=`${H}`,d[n].style.visibility="visible"),f(a)&&a==A&&(d[a].style.zIndex=`${it}`,d[a].style.visibility="visible")}function $(A){E(),A==n&&(d[n].style.zIndex=`${H}`,d[n].style.visibility="hidden"),A==a&&(d[a].style.zIndex=`${it}`,d[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const B=I();function st(A=0,k=!1){if(!B.value)return;let Yt=0;rr(Wt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((zt,Tt)=>{const ae=y(s.effect,Tt);return Wt("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==Tt?"visible":"hidden",zIndex:k?"1":"0"}},zt.pageKey?{key:zt.pageKey}:{}),Wt(Ln,{effect:ae,duration:_(s.effect,Tt),easeFunction:O(s.effect,Tt),timingFunction:z,delay:J(s.effect,Tt),onReady:(Bt,ee)=>{u[Tt]={open:Bt,close:ee},++Yt==A&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{P(Tt)},onPageOpenEnd:()=>{$(Tt)},onPageCloseStart:()=>{P(Tt)},onPageCloseEnd:()=>{$(Tt)}},{default:()=>zt.component instanceof HTMLElement?Wt("div",{...zt.attributes,innerHTML:zt.component.innerHTML}):Wt(zt.component,zt.attributes,()=>zt.child)}))})),B.value),d=B.value.children[0].children}bt(()=>s.effect,()=>{st()});function K(A=[]){c=[...A],c.forEach(k=>{k.pageKey=k.pageKey||co()}),i=()=>{n=-1,N(0)},st(c.length,!0)}function Z(A){A.pageKey=A.pageKey||co(),c.push(A),i=()=>{N(c.length-1)},st(1,c.length==1)}function nt(){c.length<=1||N(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,st()})}function U(){N(n+1)}function X(){N(n-1)}const yt=new ir(1);function N(A,k){yt.addTask(()=>new Promise(Yt=>{const zt=()=>{k?.(),Yt()};if(!f(A)){zt();return}if(a=A,a==n){zt();return}l.push(zt),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:Z,pop:nt,forward:U,back:X,goto:N,currentPageIndex:()=>n,totalPages:()=>c.length}),(A,k)=>(R(),M("div",{class:"routes",ref_key:"routesRef",ref:B,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),d1=tt({...{},name:"Image",customOptions:{Container:Pt,Pop:ke},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=new Pe({frameDuration:s.dur}),a=I(0),i=I(0),l=I(0),c=I(0),u=I(0),d=I(0),f=I(0),p=I(0),h=I(0),y=I(0);pd(s.src).then(P=>{h.value=P.width,y.value=P.height,G()});const v=I(0),_=I(0),z=(P,$)=>{v.value=P,_.value=$,G()},Y=I(0),O=I(0);function G(){if(!v.value||!_.value||!h.value||!y.value)return;const P=Tn(s.mode,h.value,y.value,v.value,_.value);Y.value=P.width,O.value=P.height;const{width:$,height:B}=hr(),st=Tn("aspectFit",h.value,y.value,$,B);f.value=st.width,p.value=st.height,u.value=($-f.value)/2,d.value=(B-p.value)/2}const J=(P,$,B)=>{r("settled",B.x,B.y,B.width,B.height)};let H=!1;const it=I(),w=I();async function E(){if(!s.openImageDetailWhenClick)return;const P=await it.value.getSize();n.clear(),n.addTween({left:P.x,top:P.y,width:P.width,height:P.height},{left:u.value,top:d.value,width:f.value,height:p.value},{easeFunction:ht.Quadratic.Out,onUpdate($){a.value=$.left,i.value=$.top,l.value=$.width,c.value=$.height},onComplete(){H&&w.value.close(),H=!H}}),H||(w.value.open(),n.play())}function F(){H&&n.reverse()}return t({}),(P,$)=>(R(),Lt(Pt,{class:"image",type:"full",style:D({backgroundColor:s.bgColor}),onResize:z,onClick:E},{default:St(()=>[ft(Pt,{class:"image-inner",ref_key:"imageRef",ref:it,type:"shrink",style:D({width:Y.value+"px",height:O.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${Y.value}px ${O.value}px`}),onResize:J},null,8,["style"]),ft(ke,{ref_key:"popRef",ref:w,"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:F},{default:St(()=>[x("div",{class:"image-pop",style:D({width:"100%",height:"100%",backgroundImage:`url(${s.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Px="",Id=ct(d1,[["__scopeId","data-v-48bcfc9f"]]),h1={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Rd=tt({customOptions:{Image:Id,Container:Pt,Routes:Mi},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(o,{expose:t,emit:e}){const s=o,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(s.urls.map(p=>({component:Wt(Id,{mode:"aspectFit",src:p,openImageDetailWhenClick:!1})})))},l=I();function c(){l.value?.open()}function u(){l.value?.close()}const d=f=>{f.target&&rt.hasClass(f.target,"image")&&u()};return t({open:c,close:u}),(f,p)=>(R(),Lt(ke,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:d},{default:St(()=>[s.urls.length>1?(R(),M("div",h1,vt(r.value+1)+" / "+vt(s.urls.length),1)):Rt("",!0),ft(Pt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:i},{default:St(()=>[ft(Mi,{ref_key:"routesRef",ref:a,effect:s.effect,onRouteChangeEnd:n},null,8,["effect"])]),_:1})]),_:1},512))}}),Ox="",f1={class:"page"},p1={class:"header"},m1={class:"main"},g1={class:"main-scroll"},y1={class:"footer"},v1=ct(tt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(o,{expose:t,emit:e}){return ig(o.designWidth),t({}),(r,n)=>(R(),M("div",f1,[x("header",p1,[Et(r.$slots,"header",{},void 0,!0)]),x("div",m1,[x("div",g1,[Et(r.$slots,"main",{},void 0,!0)])]),x("footer",y1,[Et(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}
|
|
98
|
+
`]],["__scopeId","data-v-20686fd2"]]),b1=ct(tt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(o,{expose:t,emit:e}){const s=o,r=Zt({}),n=Zt({});function a(){switch(hu(r),hu(n),s.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(),oe(()=>{}),t({}),(i,l)=>(R(),M("div",{class:"layout-center",style:D(r)},[x("div",{style:D(n)},[Et(i.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-114afb17]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
|
|
99
|
+
`]],["__scopeId","data-v-114afb17"]]),fe=ct(tt({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(o,{expose:t,emit:e}){const s=o,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,d,f;const p=I();bt(p,()=>{if(!(!p.value||d)){if(s.styleSheets){let v="";for(let _ in s.styleSheets)v+=`${_}: ${s.styleSheets[_]};`;rt.setStyleSheet(`
|
|
100
|
+
:root {
|
|
101
|
+
${v}
|
|
102
|
+
}
|
|
103
|
+
:host {
|
|
104
|
+
${v}
|
|
105
|
+
}
|
|
106
|
+
`,p.value)}d=new Ue(p.value,!1),d.on("resize",(v,_)=>{r("resize",v,_,p.value.getBoundingClientRect()),f?.(d),u||(u=!0,s.effectTriggerTiming!=="manual"&&a(),r("ready",d),s.effectTriggerTiming=="immediate"&&l())}),d.on("mouseOver",()=>{s.effectTriggerTiming=="mouseMove"&&l()}),d.on("mouseOut",()=>{s.effectTriggerTiming=="mouseMove"&&l()}),d.on("tap",()=>{s.effectTriggerTiming=="click"&&l(),s.supportCopyText&&rt.copyToClipboard(rt.getInnerText(p.value)).then(()=>{}).catch(v=>{})}),d.start()}});const h=()=>new Promise(v=>{if(d)return v(d);f=v}),y=()=>h().then(()=>p.value.getBoundingClientRect());return oe(()=>{d?.destroy()}),t({getElement:()=>p.value,getApp:h,getSize:y,getStatus:()=>n,startEffect:a,endEffect:i,nextEffect:l,repeatEffect:c}),(v,_)=>(R(),M("div",{ref_key:"containerRef",ref:p,class:te(["container",[s.type]]),style:D({position:"relative",boxSizing:"border-box",display:s.type=="shrink"?"inline-block":"block",width:s.type=="full"?"100%":"auto",height:s.type=="full"?"100%":"auto"})},[Et(v.$slots,"default",{},void 0,!0)],6))}}),[["styles",[""]],["__scopeId","data-v-4ff8adfd"]]),Mn=tt({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean,default:!1},color:{default:kn("#000000",.25)},isGlobal:{type:Boolean,default:!0}},setup(o,{expose:t,emit:e}){const s=o,r=I(),n=document.documentElement.style.overflow,a=document.body.style.overflow;return bt(()=>s.visible,()=>{s.isGlobal?s.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=n,document.body.style.overflow=a):r.value&&(s.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(i,l)=>s.visible?(R(),M("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:D([`background-color: ${s.color}`,`position: ${s.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[Et(i.$slots,"default")],4)):Rt("",!0)}}),_1=x("div",null,null,-1),mo=tt({customOptions:{Overlay:Gs,Container:Pt},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(o,{expose:t,emit:e}){const s=o,r=e,n=new Pe({frameDuration:s.dur}),a=Zt({backgroundColor:s.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),i=I("full");bt(()=>[s.directionFrom,s.popValue],()=>{n.clear();const y=s.popValue?s.popValue:s.popPercent,v=s.popValue?"px":"%";switch(s.directionFrom){case"left":a.height="100%",a.width=`${y}${v}`,a.top="0",a.bottom="0",delete a.right,n.addTween({left:y},{left:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.left=`-${_.left}${v}`},onComplete:u});break;case"right":a.height="100%",a.width=`${y}${v}`,a.top="0",a.bottom="0",delete a.left,n.addTween({right:y},{right:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.right=`-${_.right}${v}`},onComplete:u});break;case"top":a.width="100%",a.height=`${y}${v}`,a.left="0",a.right="0",delete a.bottom,n.addTween({top:y},{top:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.top=`-${_.top}${v}`},onComplete:u});break;case"bottom":a.width="100%",a.height=`${y}${v}`,a.left="0",a.right="0",delete a.top,n.addTween({bottom:y},{bottom:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){a.bottom=`-${_.bottom}${v}`},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(_){a.transform=`translate(-50%, -50%) scale(${_.scale})`,a.opacity=`${_.opacity}`},onComplete:u});break;case"absolute":a.width=s.absoluteWidth,a.height=s.absoluteHeight,a.left=s.absoluteLeft,a.top=s.absoluteTop,delete a.right,delete a.bottom;break}switch(s.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}),bt(()=>s.absoluteLeft,()=>{switch(s.directionFrom){case"absolute":a.left=s.absoluteLeft;break}}),bt(()=>s.absoluteTop,()=>{switch(s.directionFrom){case"absolute":a.top=s.absoluteTop;break}}),bt(()=>s.absoluteWidth,()=>{switch(s.directionFrom){case"absolute":a.width=s.absoluteWidth;break}}),bt(()=>s.absoluteHeight,()=>{switch(s.directionFrom){case"absolute":a.height=s.absoluteHeight;break}});const l=(y,v,_)=>{r("resize",y,v,_)};let c="open";function u(){c=="open"?r("open"):(d.value=!1,r("close"))}const d=I(!1);function f(){d.value=!0,c="open",n.play()}function p(){switch(c="close",s.directionFrom){case"absolute":u();break;default:n.reverse();break}}function h(y){const v=s.directionFrom=="absolute"&&s.absoluteWidth=="100%"&&s.absoluteHeight=="100%"?"pop-content":"pop";y.target&&rt.hasClass(y.target,v)&&(s.closeWhenClickOverlay&&p(),r("clickOverlay"))}return t({open:f,close:p}),(y,v)=>(R(),Lt(Gs,{visible:d.value,isGlobal:s.isGlobal,color:s.overlayBgColor},{default:St(()=>[x("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:h},[ft(Pt,{class:"pop-content",type:i.value,style:D(a),onResize:l},{default:St(()=>[Et(y.$slots,"default",{},()=>[_1])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),x1=x("div",{style:{"background-color":"#ffffff"}},"...",-1),Fd=tt({customOptions:{Pop:ke,Button:ne,Container:Pt},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(o){const t=o,e=I();function s(){e.value.open()}const r=I(),n=I(0),a=I(0),i=I(0),l=I(0),c=(u,d)=>{if(i.value=u,l.value=d,!r.value)return;const f=hr(),p=r.value.getBoundingClientRect();n.value=Math.max(t.gap,Math.min(p.x+p.width+t.gap,f.width-u-t.gap)),a.value=Math.max(t.gap,Math.min(p.y,f.height-d-t.gap))};return(u,d)=>(R(),M(Vt,null,[x("div",{ref_key:"popoverButtonRef",ref:r,class:"popover-button",style:{display:"inline-block"},onClick:s},[Et(u.$slots,"button",{},()=>[ft(ne,null,{default:St(()=>[jt("popover")]),_:1})])],512),ft(ke,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:St(()=>[x("div",{style:D({position:"absolute",left:n.value+"px",top:a.value+"px",width:i.value+"px",height:l.value+"px"})},[ft(Pt,{type:"shrink",onResize:c},{default:St(()=>[Et(u.$slots,"panel",{},()=>[x1])]),_:3})],4)]),_:3},8,["isGlobal"])],64))}}),w1={class:"dialog-parent"},k1={key:0,class:"title"},C1={key:0,class:"title-inner truncate"},T1={class:"custom-content"},S1={class:"custom-content-default"},E1={key:1,class:"btns"},Nn=ct(tt({customOptions:{Overlay:Gs,Pop:ke,Icon:us,Button:ne},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(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(""),i=I(""),l=I(!1),c=I(""),u=I("");let d,f,p;const h=()=>{r("open")},y=()=>{d?.(),r("close")};function v(O){a.value=O?.title||"",i.value=O?.content||"",l.value=typeof O?.showClose=="boolean"?O?.showClose:!1,c.value=O?.cancelText||"",u.value=O?.confirmText||"",d=O?.onClose,f=O?.onCancel,p=O?.onConfirm,n.value.open()}function _(){n.value.close()}function z(){_(),f?.(),r("cancel")}function Y(){_(),p?.(),r("confirm")}return t({open:v,close:_}),(O,G)=>(R(),Lt(ke,{ref_key:"popRef",ref:n,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,dur:s.dur,overlayBgColor:s.overlayBgColor,onOpen:h,onClose:y},{default:St(()=>[x("div",w1,[x("div",{class:"dialog",style:D({minWidth:s.minWidth,maxWidth:s.maxWidth})},[a.value||l.value?(R(),M("div",k1,[a.value?(R(),M("div",C1,vt(a.value),1)):Rt("",!0),l.value?(R(),M("div",{key:1,class:"close",onClick:_},[ft(us,{icon:"ic:baseline-close",color:Ct(W).colorGrayCC},null,8,["color"])])):Rt("",!0)])):Rt("",!0),x("div",T1,[Et(O.$slots,"default",{},()=>[x("div",S1,vt(i.value),1)],!0)]),c.value||u.value?(R(),M("div",E1,[c.value?(R(),Lt(ne,{key:0,onClick:z,class:"btn",bgColor:Ct(W).colorGrayE6,borderColor:Ct(W).colorGrayE6,fontColor:Ct(W).colorGray33,borderRadius:"0"},{default:St(()=>[jt(vt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Rt("",!0),u.value?(R(),Lt(ne,{key:1,onClick:Y,class:"btn",borderRadius:"0"},{default:St(()=>[jt(vt(u.value),1)]),_:1})):Rt("",!0)])):Rt("",!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}
|
|
107
|
+
`]],["__scopeId","data-v-061fc404"]]),P1={class:"dialog-parent"},O1={key:0,class:"title"},I1={key:0,class:"title-inner truncate"},R1={class:"custom-content"},F1={class:"custom-content-default"},D1={key:1,class:"btns"},$1=tt({customOptions:{Overlay:Gs,Pop:ke,Icon:us,Button:ne},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(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(""),i=I(""),l=I(!1),c=I(""),u=I("");let d,f,p;const h=()=>{r("open")},y=()=>{d?.(),r("close")};function v(O){a.value=O?.title||"",i.value=O?.content||"",l.value=typeof O?.showClose=="boolean"?O?.showClose:!1,c.value=O?.cancelText||"",u.value=O?.confirmText||"",d=O?.onClose,f=O?.onCancel,p=O?.onConfirm,n.value.open()}function _(){n.value.close()}function z(){_(),f?.(),r("cancel")}function Y(){_(),p?.(),r("confirm")}return t({open:v,close:_}),(O,G)=>(R(),Lt(ke,{ref_key:"popRef",ref:n,directionFrom:"center",closeWhenClickOverlay:s.closeWhenClickOverlay,dur:s.dur,overlayBgColor:s.overlayBgColor,onOpen:h,onClose:y},{default:St(()=>[x("div",P1,[x("div",{class:"dialog",style:D({minWidth:s.minWidth,maxWidth:s.maxWidth})},[a.value||l.value?(R(),M("div",O1,[a.value?(R(),M("div",I1,vt(a.value),1)):Rt("",!0),l.value?(R(),M("div",{key:1,class:"close",onClick:_},[ft(us,{icon:"ic:baseline-close",color:Ct(W).colorGrayCC},null,8,["color"])])):Rt("",!0)])):Rt("",!0),x("div",R1,[Et(O.$slots,"default",{},()=>[x("div",F1,vt(i.value),1)],!0)]),c.value||u.value?(R(),M("div",D1,[c.value?(R(),Lt(ne,{key:0,onClick:z,class:"btn",bgColor:Ct(W).colorGrayE6,borderColor:Ct(W).colorGrayE6,fontColor:Ct(W).colorGray33,borderRadius:"0"},{default:St(()=>[jt(vt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Rt("",!0),u.value?(R(),Lt(ne,{key:1,onClick:Y,class:"btn",borderRadius:"0"},{default:St(()=>[jt(vt(u.value),1)]),_:1})):Rt("",!0)])):Rt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),Ax="",An=ct($1,[["__scopeId","data-v-f9df8635"]]),L1={class:"loading-8"},M1={viewBox:"25 25 50 50"},N1=tt({__name:"Loading8",props:{color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("div",L1,[(R(),M("svg",M1,[x("circle",{cx:"50",cy:"50",r:"20",style:D(["stroke: "+t.color])},null,4)]))]))}}),zx="",Dd=ct(N1,[["__scopeId","data-v-e5e3cf4c"]]),A1={class:"loading"},z1={class:"icon"},V1={style:{width:"8em"}},Y1={key:0,class:"content"},$d=ct(tt({customOptions:{Overlay:Gs,Pop:ke,Dialog:An,Loading8:Dd},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(""),i=()=>{r("open")},l=()=>{r("close")};function c(d){a.value=d||"",n.value.open()}function u(){n.value.close()}return t({open:c,close:u}),(d,f)=>(R(),Lt(An,{ref_key:"dialogRef",ref:n,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,dur:s.dur,onOpen:i,onClose:l},{default:St(()=>[x("div",A1,[x("div",z1,[Et(d.$slots,"default",{},()=>[x("div",V1,[ft(Dd)])],!0)]),a.value?(R(),M("div",Y1,vt(a.value),1)):Rt("",!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}
|
|
108
|
+
`]],["__scopeId","data-v-2227dca8"]]),B1={class:"toast"},X1={class:"content"},Ld=ct(tt({customOptions:{Overlay:Gs,Pop:ke,Dialog:An},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(""),i=()=>{r("open")},l=()=>{r("close")};function c(d,f=1500){a.value=d,n.value.open(),setTimeout(()=>{u()},f)}function u(){n.value.close()}return t({open:c,close:u}),(d,f)=>(R(),Lt(An,{ref_key:"dialogRef",ref:n,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:s.closeWhenClickOverlay,dur:s.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:i,onClose:l},{default:St(()=>[x("div",B1,[x("div",X1,vt(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}
|
|
109
|
+
`]],["__scopeId","data-v-c02c226c"]]),Ni=tt({customOptions:{Container:Pt,CSSAnimation:$n},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(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=Zt({}),i=()=>{r("ready",J,H)},l=()=>{y()},c=I();let u="rotateRightSideFirst",d=s.effect;function f(it,w){switch(d){case"static":w();break;default:it();break}}let p=!1;const h=new Pe,y=()=>{const it={},w={};h.clear(),h.frameDuration=s.duration,f(()=>{u=d},()=>{h.addTween(it,w,{delay:s.delay/s.duration,easeFunction:s.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:E=>{a.transform="","x"in E&&(a.transform+=` translateX(${E.x}%)`),"y"in E&&(a.transform+=` translateY(${E.y}%)`),"rx"in E&&(a.transform+=` rotateX(${E.rx}deg)`),"ry"in E&&(a.transform+=` rotateY(${E.ry}deg)`),"scale"in E&&(a.transform+=` scale(${E.scale})`),"opacity"in E&&(a.opacity=`${E.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};bt(()=>[s.effect,s.delay,s.duration,s.easeFunction],()=>{d=s.effect,y()},{immediate:!0});const v=()=>{r(p?"pageCloseStart":"pageOpenStart")},_=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},z=()=>{f(()=>{c.value.trigger(u)},()=>{h.play()})},Y=()=>{f(()=>{c.value.triggerReverse(u)},()=>{h.reverse()})},O=()=>{a.transform="none",a.opacity="1"};function G(){f(()=>{O()},()=>{c.value?.clear()})}const J=it=>{it&&(d=it,y()),p=!1,G(),n.value.startEffect()},H=it=>{it&&(d=it,y()),p=!0,G(),n.value.endEffect()};return t({open:J,close:H,clear:O,getElement:()=>n.value.getElement()}),(it,w)=>(R(),Lt(Pt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:z,onEnd:Y},{default:St(()=>[ft($n,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:s.duration,delay:s.delay,timingFunction:s.timingFunction,onCssanimationstart:v,onCssanimationend:_},{default:St(()=>[x("div",{class:"page-inner",style:D({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[Et(it.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Ai=tt({customOptions:{Page:Ln,Container:Pt},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(o,{expose:t,emit:e}){const s=o,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],d=[];function f(A){return A>=0&&A<c.length}function p(){return a>n}function h(A,k,Yt){switch(A){case n:return p()?k:Yt;case a:return p()?Yt:k;default:return"static"}}function y(A,k){switch(A){case"moveToLeft":return h(k,"moveToLeft","moveFromRight");case"moveToRight":return h(k,"moveToRight","moveFromLeft");case"moveToTop":return h(k,"moveToTop","moveFromBottom");case"moveToBottom":return h(k,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return h(k,"fade","moveFromLeft");case"moveFromRightPrevFade":return h(k,"fade","moveFromRight");case"moveFromTopPrevFade":return h(k,"fade","moveFromTop");case"moveFromBottomPrevFade":return h(k,"fade","moveFromBottom");case"moveToLeftFade":return h(k,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return h(k,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return h(k,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return h(k,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return h(k,"moveToLeft","moveFromRight");case"moveToRightEasing":return h(k,"moveToRight","moveFromLeft");case"moveToTopEasing":return h(k,"moveToTop","moveFromBottom");case"moveToBottomEasing":return h(k,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return h(k,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return h(k,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return h(k,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return h(k,"scaleToSmall","moveFromBottom");case"scaleSmall":return h(k,"scaleToSmall","scaleFromLarge");case"scaleLarge":return h(k,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return h(k,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return h(k,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return h(k,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return h(k,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return h(k,"moveToBottom","scaleFromSmall");case"glueToLeft":return h(k,"rotateRightSideFirst","moveFromRight");case"glueToRight":return h(k,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return h(k,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return h(k,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return h(k,"flipOutLeft","flipInRight");case"flipToRight":return h(k,"flipOutRight","flipInLeft");case"flipToTop":return h(k,"flipOutTop","flipInBottom");case"flipToBottom":return h(k,"flipOutBottom","flipInTop");case"rotateFall":return h(k,"rotateFall","scaleFromSmall");case"newspaper":return h(k,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return h(k,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return h(k,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return h(k,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return h(k,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return h(k,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return h(k,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return h(k,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return h(k,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return h(k,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return h(k,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return h(k,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return h(k,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return h(k,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return h(k,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return h(k,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return h(k,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return h(k,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return h(k,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return h(k,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return h(k,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return h(k,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return h(k,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return h(k,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return h(k,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return h(k,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return h(k,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return h(k,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return h(k,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return h(k,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return h(k,"rotateSlideOut","rotateSlideIn")}}function v(A,k=600,Yt=600){switch(A){case n:return k;case a:return Yt;default:return s.duration}}function _(A,k){switch(A){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return v(k,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return v(k,700,600);case"scaleSmall":return v(k,700,500);case"scaleLarge":return v(k,500,700);case"scaleToLargePrevScaleToSmall":return v(k,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return v(k,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return v(k,800,600);default:return s.duration}}let z=s.timingFunction;function Y(A){switch(A){default:return s.easeFunction}}function O(A,k){switch(A){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(k){case n:z=p()?"ease-in-out":"ease";break;case a:default:z=p()?"ease":"ease-in-out"}return Y(k);default:return z=s.timingFunction,s.easeFunction}}function G(A,k=300){switch(A){case a:return s.delay+k;default:return s.delay}}function J(A,k){switch(A){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return G(k,500);case"scaleSmall":case"scaleLarge":return G(k,300);case"scaleToLargePrevScaleToSmall":return G(k,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return G(k,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return G(k,180);default:return s.delay}}let H=2,it=2;const w=()=>{H=2,it=2},E=()=>{H=2,it=3},F=()=>{H=3,it=2};function P(A){switch(s.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":F();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()?F():E();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()?E():F();break;default:w();break}f(n)&&n==A&&(d[n].style.zIndex=`${H}`,d[n].style.visibility="visible"),f(a)&&a==A&&(d[a].style.zIndex=`${it}`,d[a].style.visibility="visible")}function $(A){E(),A==n&&(d[n].style.zIndex=`${H}`,d[n].style.visibility="hidden"),A==a&&(d[a].style.zIndex=`${it}`,d[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const B=I();function st(A=0,k=!1){if(!B.value)return;let Yt=0;rr(Wt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((zt,Tt)=>{const ae=y(s.effect,Tt);return Wt("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==Tt?"visible":"hidden",zIndex:k?"1":"0"}},zt.pageKey?{key:zt.pageKey}:{}),Wt(Ln,{effect:ae,duration:_(s.effect,Tt),easeFunction:O(s.effect,Tt),timingFunction:z,delay:J(s.effect,Tt),onReady:(Bt,ee)=>{u[Tt]={open:Bt,close:ee},++Yt==A&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{P(Tt)},onPageOpenEnd:()=>{$(Tt)},onPageCloseStart:()=>{P(Tt)},onPageCloseEnd:()=>{$(Tt)}},{default:()=>zt.component instanceof HTMLElement?Wt("div",{...zt.attributes,innerHTML:zt.component.innerHTML}):Wt(zt.component,zt.attributes,()=>zt.child)}))})),B.value),d=B.value.children[0].children}bt(()=>s.effect,()=>{st()});function K(A=[]){c=[...A],c.forEach(k=>{k.pageKey=k.pageKey||co()}),i=()=>{n=-1,N(0)},st(c.length,!0)}function Z(A){A.pageKey=A.pageKey||co(),c.push(A),i=()=>{N(c.length-1)},st(1,c.length==1)}function nt(){c.length<=1||N(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,st()})}function U(){N(n+1)}function X(){N(n-1)}const yt=new ir(1);function N(A,k){yt.addTask(()=>new Promise(Yt=>{const zt=()=>{k?.(),Yt()};if(!f(A)){zt();return}if(a=A,a==n){zt();return}l.push(zt),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:Z,pop:nt,forward:U,back:X,goto:N,currentPageIndex:()=>n,totalPages:()=>c.length}),(A,k)=>(R(),M("div",{class:"routes",ref_key:"routesRef",ref:B,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),G1={class:"tabs"},U1=["onClick"],j1={class:"content"},H1=ct(tt({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(s.initIndex),a=Zt([]),i=I(),l=I(0),c=I(0),u=I(0),d=I([]),f=[],p=hp(),h=p.default&&p.default();h&&(ar(a,h),_(n.value));const y=(Y,O)=>{if(Y){if(f.push({index:O,el:Y}),f.length<a.length)return;d.value=f}};bt([i,d],()=>{v()});function v(){if(i.value&&d.value.length){const Y=i.value.getBoundingClientRect(),O=d.value[n.value].el.getBoundingClientRect();l.value=O.x-Y.x,c.value=O.y-Y.y+O.height-2,u.value=O.width}}function _(Y){n.value=Y,r("changedIndex",Y),v(),z.value.goto(Y)}const z=I();return bt(z,()=>{z.value&&z.value.reset(s.pages,()=>{z.value.goto(s.initIndex)})}),t({}),(Y,O)=>(R(),M("div",G1,[x("div",{class:"header",ref_key:"headerRef",ref:i},[(R(!0),M(Vt,null,pe(s.labels,(G,J)=>(R(),M("div",{key:G,class:te(J==n.value?"active":""),onClick:H=>_(J)},[x("div",{ref_for:!0,ref:H=>y(H,J)},vt(G),513)],10,U1))),128)),x("div",{class:"indicator",style:D({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),x("div",j1,[ft(Mi,{ref_key:"routesRef",ref:z},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}
|
|
110
|
+
`]],["__scopeId","data-v-a49dc86a"]]),Z1=["width","height"],W1=tt({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(o,{expose:t,emit:e}){const s=o;let r=()=>{};const n=I();return bt(n,()=>{if(!n.value)return;const a=new Ue(n.value),i=new Di(a,!0);i.ctx.strokeStyle=s.brushColor,i.ctx.lineWidth=s.brushSize,i.drawMouseMoveLine("line"),r=()=>{he.downloadFromSVGString(i.ctx.toRawSVG().raw,s.downloadFileName)}}),t({download:()=>r()}),(a,i)=>(R(),M("canvas",{ref_key:"panelRef",ref:n,width:s.canvasWidth,height:s.canvasHeight,style:D([`border: 1px solid ${a.borderColor}`])},null,12,Z1))}}),zi=ct(tt({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(o,{expose:t,emit:e}){const s=o,r=I(0);function n(a){r.value=Math.min(Math.max(0,a),100)}return t({goto:n}),(a,i)=>(R(),M("div",{class:"bar",style:D({width:s.width,height:s.height,border:`1px solid ${s.borderColor}`,borderRadius:s.borderRadius,backgroundColor:s.bgColor})},[x("div",{class:"bar-inner",style:D({width:r.value+"%",backgroundColor:s.progressColor})},vt(s.showText?r.value+"%":""),5)],4))}}),[["styles",[`.bar[data-v-eeb3d349]{position:relative;overflow:hidden}.bar-inner[data-v-eeb3d349]{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}
|
|
111
|
+
`]],["__scopeId","data-v-eeb3d349"]]),q1={class:"page-vertical-scroll-progress-bar"},Md=ct(tt({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(o,{expose:t,emit:e}){const s=o,r=e,n=I();return Oe.on("scroll",()=>{const a=sg();r("progress",a),n.value?.goto(a)}),oe(()=>{}),t({}),(a,i)=>(R(),M("div",q1,[ft(Dn,{ref_key:"bar",ref:n,width:"100%",height:"100%",bgColor:s.bgColor,progressColor:s.progressColor,borderColor:s.borderColor,borderRadius:s.borderRadius,duringTimeGap:s.duringTimeGap,showText:s.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.page-vertical-scroll-progress-bar[data-v-27fe1efd]{position:relative;overflow:hidden;width:100%;height:100%}
|
|
112
|
+
`]],["__scopeId","data-v-27fe1efd"]]),K1=["fill"],Q1=["fill"],J1=tt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{style:D(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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,K1),x("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,Q1)],4))}}),qx="",Nd=ct(J1,[["__scopeId","data-v-987aed3d"]]),tv=o=>{const t={};if(o.attributes)for(let e=0,s=o.attributes,r=s.length;e<r;e++){const n=s[e];n.nodeName&&n.nodeValue&&(t[n.nodeName]=n.nodeValue)}return t},Vi=o=>(To("data-v-85491020"),o=o(),So(),o),ev=[Vi(()=>x("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)),Vi(()=>x("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)),Vi(()=>x("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))],sv=tt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{style:D(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},ev,4))}}),t2="",Yi=ct(sv,[["__scopeId","data-v-85491020"]]);function e2(o){return o}document.getElementById("teleport")||document.documentElement;function ov(o,t){{const e=document.querySelector("yz-dialog-toast#globalDialogToast");e&&"_instance"in e&&e._instance.exposed.open(o,t)}}function rv(o){{const t=document.querySelector("yz-dialog-loading#globalDialogLoading");return t&&"_instance"in t&&t._instance.exposed.open(o),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function nv(o){{const t=document.querySelector("yz-dialog#globalDialog");return t&&"_instance"in t&&t._instance.exposed.open(o),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function $o(o,t="bottom",e){let s;o instanceof HTMLElement?s=Wt(ke,{directionFrom:t,popBgColor:e?.popBgColor||"#ffffff",absoluteLeft:e?.absoluteLeft,absoluteTop:e?.absoluteTop,absoluteWidth:e?.absoluteWidth,absoluteHeight:e?.absoluteHeight},()=>Wt("div",{...tv(o),innerHTML:o.innerHTML})):s=Wt(ke,{directionFrom:t,popBgColor:e?.popBgColor||"#ffffff",absoluteLeft:e?.absoluteLeft,absoluteTop:e?.absoluteTop,absoluteWidth:e?.absoluteWidth,absoluteHeight:e?.absoluteHeight},()=>o),rr(s,document.getElementById("teleport")||document.documentElement),s.component?.exposed?.open();const r=()=>{s.component?.exposed?.close()};return r.vnode=s,r}function Ad(o,t){return $o(o,"bottom",t)}function zd(o,t){return $o(o,"top",t)}function Vd(o,t){return $o(o,"left",t)}function Yd(o,t){return $o(o,"right",t)}function Bd(o,t){return $o(o,"center",t)}function Xd(o,t){return $o(o,"absolute",t)}const av=()=>Ad(Wt("div",{style:"padding: 30px;"},Wt("yz-input",{placeholder:"请输入邮箱",validator:Oo}))),iv=()=>zd(Wt("div",{style:"padding: 30px;"},Wt("yz-input",{placeholder:"请输入邮箱",validator:Oo}))),lv=()=>Vd(Wt("div",{style:"padding: 30px;"},Wt("yz-input",{placeholder:"请输入邮箱",validator:Oo}))),cv=()=>Yd(Wt("div",{style:"padding: 30px;"},Wt("yz-input",{placeholder:"请输入邮箱",validator:Oo}))),uv=()=>Bd(Wt("div",{style:"width: 200px;height: 200px;padding: 30px;"},Wt("yz-input",{placeholder:"请输入邮箱",validator:Oo}))),dv=()=>Xd(Wt("div",{style:"width: 200px;height: 200px;padding: 30px;"},Wt("yz-input",{placeholder:"请输入邮箱",validator:Oo})),{absoluteLeft:"50%",absoluteTop:"50%",absoluteWidth:"200px",absoluteHeight:"200px"});let zn;function Gd(o){{const t=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return t&&"_instance"in t&&(zn&&t.removeEventListener("plates",zn),zn=e=>{"detail"in e&&o?.onPlates?.(e.detail[0])},t.addEventListener("plates",zn),t.initPlates=o?.initPlates,t.completePlateLength=o?.completePlateLength,t._instance.exposed.open()),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}const Vn=o=>(To("data-v-8d96d860"),o=o(),So(),o),hv=Vn(()=>x("div",{class:"title"},"车牌颜色",-1)),fv={class:"plate-types"},pv=["onClick"],mv=Vn(()=>x("div",{class:"title"},"车牌号码",-1)),gv={class:"plate-numbers"},yv=Vn(()=>x("div",{class:"dot"},"·",-1)),vv=["onClick"],bv=Vn(()=>x("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Ud=ct(tt({customOptions:{SVGCheck:Nd},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(o,{expose:t,emit:e}){const s=o,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(){Gd({initPlates:i,completePlateLength:n[a.value].completePlateLength,onPlates:f=>{ar(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")):ar(i,i.slice(0,n[f].completePlateLength)),n[f].completePlateLength===i.length&&r("complete",n[a.value].name,i.join(""))},d=f=>{ar(i,i.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),r("clear")};return t({}),(f,p)=>(R(),M("div",Na(f.$attrs,{class:"plate-mobile",style:{maxWidth:s.maxWidth}}),[hv,x("div",fv,[(R(),M(Vt,null,pe(n,(h,y)=>x("div",{key:y,class:te(y==a.value?"checked":""),onClick:v=>u(y)},[x("div",{style:D(h.style)},null,4),x("div",null,vt(h.name),1),x("div",null,[ft(Nd,{color:"#ffffff",width:"0.14rem"})])],10,pv)),64))]),mv,x("div",gv,[x("div",{onClick:p[0]||(p[0]=h=>d(0)),class:te(l.value==0?"current":"")},vt(i[0]),3),x("div",{onClick:p[1]||(p[1]=h=>d(1)),class:te(l.value==1?"current":"")},vt(i[1]),3),yv,(R(!0),M(Vt,null,pe(n[a.value].completePlateLength-2,h=>(R(),M("div",{key:h,class:te(h+1==l.value?"current":""),onClick:y=>d(h+1)},vt(i[h+1]),11,vv))),128))]),bv],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}
|
|
113
|
+
`]],["__scopeId","data-v-8d96d860"]]),_v=["data-number"],xv=["data-number","data-unactive"],wv=["data-number"],kv=["data-number","data-unactive"],Bi=ct(tt({customOptions:{Pop:ke,SVGCleanUp:Yi,Container:Pt},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(o,{expose:t,emit:e}){const s=o,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>=s.completePlateLength&&f()}bt(()=>[...s.initPlates],()=>{ar(i,s.initPlates),l()},{immediate:!0});const c=I(0),u=(Y,O)=>{c.value=O},d=()=>{n.value.open(),r("open")},f=()=>{n.value.close(),r("close")},p=()=>{i.pop(),l(),r("plates",i)},h=Y=>{if(Y.target.dataset.unactive||"")return;let G=Y.target.dataset.number;G&&(i.push(G),l(),r("plates",i))};t({open:d,close:f});const y=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],v=["1","2","3","4","5","6","7","8","9","0"],_=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],z=["港","澳","学","警","使","领","挂","应","急"];return(Y,O)=>(R(),Lt(ke,{ref_key:"popRef",ref:n,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:St(()=>[ft(Pt,{class:"popup-plate",style:D({paddingBottom:Ct(W).safeAreaBottom}),onResize:u},{default:St(()=>[x("div",null,[x("div",{onClick:f},"关闭")]),x("div",{class:te(["step",a.value==0?"":"hide"])},[(R(),M(Vt,null,pe(y,G=>x("div",{key:G,class:"popitem",onClick:h,"data-number":G},vt(G),9,_v)),64)),x("div",{class:"popitem popitem-clear",onClick:p},[ft(Yi,{width:"16px"})])],2),x("div",{class:te(["step",a.value!=0?"":"hide"])},[(R(),M(Vt,null,pe(v,G=>x("div",{key:G,class:te(["popitem",a.value!=2?"unactive":""]),onClick:h,"data-number":G,"data-unactive":a.value!=2?"unactive":""},vt(G),11,xv)),64)),(R(),M(Vt,null,pe(_,G=>x("div",{key:G,class:"popitem",onClick:h,"data-number":G},vt(G),9,wv)),64)),(R(),M(Vt,null,pe(z,G=>x("div",{key:G,class:te(["popitem",a.value!=2?"unactive":""]),onClick:h,"data-number":G,"data-unactive":a.value!=2?"unactive":""},vt(G),11,kv)),64)),x("div",{class:"popitem popitem-clear",onClick:p},[ft(Yi,{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}
|
|
114
|
+
`]],["__scopeId","data-v-205c59a9"]]),Cv={class:"parent"},Tv=ct(tt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(o,{expose:t,emit:e}){const s=o,r=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function n(d){return d.length>2?d.substring(0,2)+"·"+d.substring(2):d}function a(d){const f=r.filter(p=>p.name===d);return f.length?f[0]:a("未知")}const i=n(s.plate),l=I(a(s.plateType));let c=s.fontColor,u=s.fontSize;switch(s.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(d,f)=>(R(),M("div",Cv,[x("div",{class:te(["leading",s.displayType]),style:D(l.value.style)},vt(l.value.name),7),x("div",{class:"text",style:D({color:Ct(c),"font-size":Ct(u)})},vt(Ct(i)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
|
|
115
|
+
`]],["__scopeId","data-v-5a5145f8"]]),Sv=`.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}
|
|
116
|
+
`,Ev={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 o=document.createElement("object");this._resizeObject=o,o.setAttribute("aria-hidden","true"),o.setAttribute("tabindex",-1),o.onload=this.addResizeHandlers,o.type="text/html",fi&&this.$el.appendChild(o),o.data="about:blank",fi||this.$el.appendChild(o)},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)}}},Pv={class:"resize-observer",tabindex:"-1"};function Ov(o,t,e,s,r,n){return R(),M("div",Pv)}const Iv=ct(Ev,[["render",Ov],["styles",[Sv]],["__scopeId","data-v-16da9fc4"]]),Rv=ct(tt({__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(o,{expose:t,emit:e}){const s=o,r=I(s.mapWidth),n=I(s.mapHeight);let a;const i=I();return bt(i,()=>{i.value&&(a=new Ue(i.value,!1),a.on("resize",(l,c)=>{r.value=l+"px",n.value=c+"px"}),a.start())}),ao(()=>{rt.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${s.mapKey}`,()=>{new ey(s.mapContainerID,s.mapCenterLng,s.mapCenterLat,s.mapZoom)},l=>{console.log("error",l)})}),oe(()=>{a.destroy()}),t({}),(l,c)=>(R(),M("div",Na({class:"mapDivWrap",ref_key:"mapWrap",ref:i},l.$attrs),[Et(l.$slots,"default",{width:r.value,height:n.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
|
|
117
|
+
`]],["__scopeId","data-v-7b13fce1"]]);var vr=function(){var o=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(),s(++o%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function s(u){for(var d=0;d<t.children.length;d++)t.children[d].style.display=d===u?"block":"none";o=u}var r=(performance||Date).now(),n=r,a=0,i=e(new vr.Panel("FPS","#0ff","#002")),l=e(new vr.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new vr.Panel("MB","#f08","#201"));return s(0),{REVISION:16,dom:t,addPanel:e,showPanel:s,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 d=performance.memory;c.update(d.usedJSHeapSize/1048576,d.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:t,setMode:s}};vr.Panel=function(o,t,e){var s=1/0,r=0,n=Math.round,a=n(window.devicePixelRatio||1),i=80*a,l=48*a,c=3*a,u=2*a,d=3*a,f=15*a,p=74*a,h=30*a,y=document.createElement("canvas");y.width=i,y.height=l,y.style.cssText="width:80px;height:48px";var v=y.getContext("2d");return v.font="bold "+9*a+"px Helvetica,Arial,sans-serif",v.textBaseline="top",v.fillStyle=e,v.fillRect(0,0,i,l),v.fillStyle=t,v.fillText(o,c,u),v.fillRect(d,f,p,h),v.fillStyle=e,v.globalAlpha=.9,v.fillRect(d,f,p,h),{dom:y,update:function(_,z){s=Math.min(s,_),r=Math.max(r,_),v.fillStyle=e,v.globalAlpha=1,v.fillRect(0,0,i,f),v.fillStyle=t,v.fillText(n(_)+" "+o+" ("+n(s)+"-"+n(r)+")",c,u),v.drawImage(y,d+a,f,p-a,h,d,f,p-a,h),v.fillRect(d+p-a,f,a,h),v.fillStyle=e,v.globalAlpha=.9,v.fillRect(d+p-a,f,a,n((1-_/z)*h))}}};const Fv=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(o,{expose:t}){const e=I();return ao(()=>{const s=new vr;s.domElement.style.margin="1em",e.value.appendChild(s.domElement),re(()=>(s.update(),!0))}),t({}),(s,r)=>(R(),M("div",{ref_key:"containerRef",ref:e},null,512))}}),Dv=["width","height"],$v=tt({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;bt(n,()=>{n.value&&(c=new Ue(n.value,!1),c.on("resize",(y,v)=>{const _=hr();i.value=Math.min(y,_.width),l.value=Math.min(v,_.height),p()}),c.start())}),bt(a,()=>{a.value&&p()});let u,d,f;function p(){u||!a.value||!i.value||!l.value||(u=new Ue(a.value,!1),u.on("resize",(y,v)=>{r("resize",y,v),d=new Di(u,s.enableCustomContext),f?.(d),r("ready",d)}),u.start())}function h(){return new Promise(y=>{if(d)return y(d);f=y})}return oe(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>a.value,getCanvas:h}),(y,v)=>(R(),M("div",{class:"canvas",ref_key:"canvasOutterRef",ref:n},[x("canvas",{ref_key:"canvasRef",ref:a,width:i.value,height:l.value,style:D({backgroundColor:s.bgColor})},null,12,Dv)],512))}}),d2="",qe=ct($v,[["__scopeId","data-v-1fc03287"]]),Lv={class:"ease-graph"},Xi=ct(tt({customOptions:{Button:ne,Canvas:qe},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(o,{expose:t,emit:e}){const s=o,r=e,n=I();let a;bt(n,()=>{n.value&&n.value.getCanvas().then(u=>{a=u,r("onMounted",s.easeName),a.app.on("showInParent",l)})});let i=!1;const l=()=>{if(!a||i)return;i=!0,r("onStart",s.easeName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),a.ctx.lineWidth=.5,a.ctx.strokeStyle="rgb(230,230,230)",a.ctx.beginPath(),a.ctx.moveTo(0,s.graphVerticalGap),a.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),a.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),a.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),a.ctx.closePath(),a.ctx.stroke(),a.ctx.lineWidth=2,a.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},d={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},f=()=>{a.ctx.beginPath(),a.ctx.moveTo(d.x,d.y),a.ctx.lineTo(u.x,u.y),a.ctx.closePath(),a.ctx.stroke(),d.x=u.x,d.y=u.y},p=new Pe({frameDuration:s.easeDuration});p.addTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,onUpdate:h=>{u.x=h.x},onComplete:()=>{}}),p.addTween(u,{y:s.graphVerticalGap},{frames:1,delay:0,easeFunction:s.easeFunction,onUpdate:h=>{u.y=h.y,f()},onComplete:()=>{r("onCompleted",s.easeName),i=!1}}),p.play()},c=()=>{r("onSelected",s.easeName,s.easeFunction)};return oe(()=>{a.app.off("showInParent",l)}),t({start:l}),(u,d)=>(R(),M("div",Lv,[x("div",null,"缓动:"+vt(u.easeName),1),x("div",null,[x("div",null,[ft(ne,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:St(()=>[jt(" 开始 ")]),_:1})]),x("div",null,[ft(ne,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:St(()=>[jt(" 选择 ")]),_:1},8,["stylePattern"])])]),x("div",{style:D({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ft(qe,{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}
|
|
118
|
+
`]],["__scopeId","data-v-00a87d30"]]),Mv={class:"ease-graph"},Nv=tt({customOptions:{Button:ne,Canvas:qe},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(o,{expose:t,emit:e}){const s=o,r=e,n=I();let a;bt(n,()=>{n.value&&n.value.getCanvas().then(u=>{a=u,r("onMounted",s.easeName),a.app.on("showInParent",l)})});let i=!1;const l=()=>{if(!a||i)return;i=!0,r("onStart",s.easeName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,s.canvasWidth,s.canvasHeight),a.ctx.lineWidth=.5,a.ctx.strokeStyle="rgb(230,230,230)",a.ctx.beginPath(),a.ctx.moveTo(0,s.graphVerticalGap),a.ctx.lineTo(s.canvasWidth,s.graphVerticalGap),a.ctx.moveTo(0,s.canvasHeight-s.graphVerticalGap),a.ctx.lineTo(s.canvasWidth,s.canvasHeight-s.graphVerticalGap),a.ctx.closePath(),a.ctx.stroke(),a.ctx.lineWidth=2,a.ctx.strokeStyle="rgb(255,127,127)";const u={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},d={x:s.graphHorizontalGap,y:s.canvasHeight-s.graphVerticalGap},f=()=>{a.ctx.beginPath(),a.ctx.moveTo(d.x,d.y),a.ctx.lineTo(u.x,u.y),a.ctx.closePath(),a.ctx.stroke(),d.x=u.x,d.y=u.y},p=new Pe({frameDuration:s.easeDuration});p.addTween(u,{x:s.canvasWidth-s.graphHorizontalGap},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,onUpdate:h=>{u.x=h.x},onComplete:()=>{}}),p.addTween(u,{y:s.graphVerticalGap},{frames:1,delay:0,easeFunction:s.easeFunction,onUpdate:h=>{u.y=h.y,f()},onComplete:()=>{r("onCompleted",s.easeName),i=!1}}),p.play()},c=()=>{r("onSelected",s.easeName,s.easeFunction)};return oe(()=>{a.app.off("showInParent",l)}),t({start:l}),(u,d)=>(R(),M("div",Mv,[x("div",null,"缓动:"+vt(u.easeName),1),x("div",null,[x("div",null,[ft(ne,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:St(()=>[jt(" 开始 ")]),_:1})]),x("div",null,[ft(ne,{stylePattern:s.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:St(()=>[jt(" 选择 ")]),_:1},8,["stylePattern"])])]),x("div",{style:D({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ft(qe,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),p2="",jd=ct(Nv,[["__scopeId","data-v-e8afe7ba"]]),Av=2e3,Hd=ct(tt({customOptions:{EaseGraphDisplay:jd},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(o,{expose:t,emit:e}){const s=o,r=e,n={};function a(f,p){f&&(n[p]={el:f})}const i=new ir(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 d(f,p){u.value=f,r("selectedEaseFunction",f,p)}return d("Linear",_t.Easing.Linear.None),t({}),(f,p)=>(R(),M("div",null,[(R(!0),M(Vt,null,pe(s.easeList,h=>(R(),M("div",{key:h.easeName,class:"ease-graph-wrap"},[h.easeFunction?(R(),Lt(jd,{key:0,easeName:h.easeName,easeFunction:h.easeFunction,easeDuration:Av,isSelected:u.value==h.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:d,ref_for:!0,ref:y=>a(y,h.easeName)},null,8,["easeName","easeFunction","isSelected"])):Rt("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
|
|
119
|
+
`]],["__scopeId","data-v-b3ce4b26"]]),zv={class:"interpolation-graph"},Zd=1/6,Wd=5/6,Gi=ct(tt({customOptions:{Button:ne,Canvas:qe},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I();let a;bt(n,()=>{n.value&&n.value.getCanvas().then(y=>{a=y,r("onMounted",s.interpolationName),a.app.on("showInParent",h)})});const i=s.canvasWidth*Zd,l=s.canvasHeight/2,c=[s.canvasWidth*Wd,s.canvasWidth/2],u=[s.canvasHeight*Zd,s.canvasHeight*Wd],d=[...c,i],f=[...u,l];let p=!1;const h=()=>{if(!a||p)return;p=!0,r("onStart",s.interpolationName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,s.canvasWidth,s.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 y=0;y<c.length;y++)a.ctx.fillRect(c[y]-2,u[y]-2,4,4);const v=new Pe({frameDuration:s.interpolationDuration});v.addTween({x:i,y:l,old:{x:i,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:_=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.9)",a.ctx.beginPath(),a.ctx.moveTo(_.old.x,_.old.y),a.ctx.lineTo(_.x,_.y),a.ctx.closePath(),a.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{}}),v.addTween({x:i,y:l,old:{x:i,y:l}},{x:d,y:f},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:_=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.5)",a.ctx.beginPath(),a.ctx.moveTo(_.old.x,_.old.y),a.ctx.lineTo(_.x,_.y),a.ctx.closePath(),a.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{r("onCompleted",s.interpolationName),p=!1}}),v.play()};return oe(()=>{a.app.off("showInParent",h)}),t({start:h}),(y,v)=>(R(),M("div",zv,[x("div",null,[jt(" 插值:"+vt(y.interpolationName)+" ",1),ft(ne,{stylePattern:"outline",height:"32px",onClick:h},{default:St(()=>[jt(" 开始 ")]),_:1})]),x("div",{style:D({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[ft(qe,{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}
|
|
120
|
+
`]],["__scopeId","data-v-82139a83"]]),Vv={class:"interpolation-graph"},qd=1/6,Kd=5/6,Yv=tt({customOptions:{Button:ne,Canvas:qe},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I();let a;bt(n,()=>{n.value&&n.value.getCanvas().then(y=>{a=y,r("onMounted",s.interpolationName),a.app.on("showInParent",h)})});const i=s.canvasWidth*qd,l=s.canvasHeight/2,c=[s.canvasWidth*Kd,s.canvasWidth/2],u=[s.canvasHeight*qd,s.canvasHeight*Kd],d=[...c,i],f=[...u,l];let p=!1;const h=()=>{if(!a||p)return;p=!0,r("onStart",s.interpolationName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,s.canvasWidth,s.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 y=0;y<c.length;y++)a.ctx.fillRect(c[y]-2,u[y]-2,4,4);const v=new Pe({frameDuration:s.interpolationDuration});v.addTween({x:i,y:l,old:{x:i,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:_=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.9)",a.ctx.beginPath(),a.ctx.moveTo(_.old.x,_.old.y),a.ctx.lineTo(_.x,_.y),a.ctx.closePath(),a.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{}}),v.addTween({x:i,y:l,old:{x:i,y:l}},{x:d,y:f},{frames:1,delay:0,easeFunction:_t.Easing.Linear.None,interpolationFunction:s.interpolationFunction,onUpdate:_=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.5)",a.ctx.beginPath(),a.ctx.moveTo(_.old.x,_.old.y),a.ctx.lineTo(_.x,_.y),a.ctx.closePath(),a.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{r("onCompleted",s.interpolationName),p=!1}}),v.play()};return oe(()=>{a.app.off("showInParent",h)}),t({start:h}),(y,v)=>(R(),M("div",Vv,[x("div",null,[jt(" 插值:"+vt(y.interpolationName)+" ",1),ft(ne,{stylePattern:"outline",height:"32px",onClick:h},{default:St(()=>[jt(" 开始 ")]),_:1})]),x("div",{style:D({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[ft(qe,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),b2="",Qd=ct(Yv,[["__scopeId","data-v-17bd4dde"]]),Bv=2e3,Jd=ct(tt({customOptions:{InterpolationGraphDisplay:Qd},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(o,{expose:t,emit:e}){const s=o,r={};function n(c,u){c&&(r[u]={el:c})}const a=new ir(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)=>(R(),M("div",null,[(R(!0),M(Vt,null,pe(s.interpolationList,d=>(R(),M("div",{key:d.interpolationName,class:"interpolation-graph-wrap"},[ft(Qd,{interpolationName:d.interpolationName,interpolationFunction:d.interpolationFunction,easeDuration:Bv,onOnMounted:i,onOnCompleted:l,ref_for:!0,ref:f=>n(f,d.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
|
|
121
|
+
`]],["__scopeId","data-v-7128e350"]]),th=ct(tt({__name:"SVG.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(o,{expose:t,emit:e}){const s=o,r=e;let n,a,i;const l=I();bt(l,()=>{n||!l.value||(n=new Ue(l.value,!1),n.on("resize",(u,d)=>{r("resize",u,d),a=new md(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return oe(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,d)=>(R(),M("div",{class:"svg",ref_key:"svgRef",ref:l,style:D({backgroundColor:s.bgColor})},null,4))}}),[["styles",[`.svg[data-v-4e16ec5b]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
122
|
+
`]],["__scopeId","data-v-4e16ec5b"]]),Xv=["width","height"],Yn=ct(tt({__name:"Canvas.ce",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;bt(n,()=>{n.value&&(c=new Ue(n.value,!1),c.on("resize",(y,v)=>{const _=hr();i.value=Math.min(y,_.width),l.value=Math.min(v,_.height),p()}),c.start())}),bt(a,()=>{a.value&&p()});let u,d,f;function p(){u||!a.value||!i.value||!l.value||(u=new Ue(a.value,!1),u.on("resize",(y,v)=>{r("resize",y,v),d=new Di(u,s.enableCustomContext),f?.(d),r("ready",d)}),u.start())}function h(){return new Promise(y=>{if(d)return y(d);f=y})}return oe(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>a.value,getCanvas:h}),(y,v)=>(R(),M("div",{class:"canvas",ref_key:"canvasOutterRef",ref:n},[x("canvas",{ref_key:"canvasRef",ref:a,width:i.value,height:l.value,style:D({backgroundColor:s.bgColor})},null,12,Xv)],512))}}),[["styles",[`.canvas[data-v-e0bc94d8]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
123
|
+
`]],["__scopeId","data-v-e0bc94d8"]]),Gv=["max","min","step","value","autofocus"],Uv={key:0,class:"label"},jv=tt({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:W.colorPrimary},barColor:{default:W.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(s.defaultValue),a=I(ye((s.defaultValue-s.min)/(s.max-s.min),4)*100);function i(u){n.value=ye(u.target.value,2),a.value=ye((n.value-s.min)/(s.max-s.min),4)*100,r("change",n.value)}const l=`
|
|
154
124
|
:root {
|
|
155
|
-
--input-range-color: ${
|
|
156
|
-
--input-range-thumb-size: ${
|
|
157
|
-
--input-range-track-size: ${
|
|
125
|
+
--input-range-color: ${s.color};
|
|
126
|
+
--input-range-thumb-size: ${s.handleSize};
|
|
127
|
+
--input-range-track-size: ${s.barHeight};
|
|
158
128
|
}
|
|
159
129
|
:host {
|
|
160
|
-
--input-range-color: ${
|
|
161
|
-
--input-range-thumb-size: ${
|
|
162
|
-
--input-range-track-size: ${
|
|
130
|
+
--input-range-color: ${s.color};
|
|
131
|
+
--input-range-thumb-size: ${s.handleSize};
|
|
132
|
+
--input-range-track-size: ${s.barHeight};
|
|
163
133
|
}
|
|
164
|
-
`,c=P();return Ee(c,()=>{c.value&&K.setStyleSheet(l,c.value)}),Qe(()=>{}),e({}),(u,h)=>(I(),V("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[_("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:M({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,r1),u.showValue?(I(),V("label",o1,me(r.value)+me(n.unit),1)):Pe("",!0)],512))}}),Vx="",Tn=ae(a1,[["__scopeId","data-v-75b06946"]]),l1='<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>',c1={class:"btns"},u1={class:"btns"},h1={class:"btns sub-btns"},d1={class:"btns sub-btns"},f1={class:"btns sub-btns"},p1={style:{width:"100%"}},m1={style:{width:"100%"}},g1={style:{height:"400px"}},v1={style:{height:"400px"}},y1={style:{height:"400px"},class:"css-area"},b1={class:"animate-to-css-group"},_1={class:"animate-to-css-group"},x1=oe({customOptions:{Button:it,InputRange:Tn,SVG:Vr,Canvas:ts},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:he.Easing.Linear.None}},setup(s,{expose:e}){const t=s,n=P();let i=0,r=0;Ee(n,()=>{n.value&&n.value.getSVG().then(D=>{i=D.app.width,r=D.app.height,D.app.on("resize",(E,k)=>{i=E,r=k})})});const o=P(),a=P(),l=P(),c=P(),u=P(),h=P(),f=P(),d=P(""),m=P("");function v(D){switch(m.value=D,d.value){case"AnimateToCSS":W();break;case"AnimateToTweenCSS":le();break}}const b=new ys({svg:l1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0});function C(D,E,k=30){return new Dt({x:D,y:E,radius:k,attrs:{fill:Vt()}})}function O(D,E,k=3){const B=[];for(let z=0;z<k;z++)B.push(new Dt({x:Math.random()*D,y:Math.random()*E,radius:10,attrs:{fill:Vt()},enableDrag:!0}));return B}function $(){return new Mr({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Vt()}})}function S(D,E){return new Nt({x:D,y:E,attrs:{"stroke-width":"1",stroke:"#666666"}})}const Y=C(0,0,8),L=C(0,0,5);function H(){const D="PathDGroup";if(d.value==D||!n.value||!o.value)return;d.value=D;let E=[b,Y,L];n.value.getSVG().then(k=>{o.value.getCanvas().then(B=>{let z,q;const ie=st=>{q&&k.delete(q),z&&z?.restore(),z=st,st.save(),st.attrs.fill="pink",st.attrs.stroke="green",E=[b,Y,L],q=st.getBoundingClientRect(),q&&(q.attrs.fill="none",q.attrs.strokeWidth="4",q.attrs.stroke="#0000ff",E.push(q))},X=k.click(st=>{ie(st)}),ne=B.click(st=>{ie(st)});let Se=0,Ie=b.shapes[Se].getTotalLength(),vt=0;const Ht=.01;k.clear(),We.run(()=>{if(d.value!==D)return X(),ne(),z&&(z.restore(),k.delete(z)),!1;vt>1&&(Se++,vt=0,Se>b.shapes.length-1&&(Se=0),Ie=b.shapes[Se].getTotalLength()),B.ctx.clearRect();let{x:st,y:ss}=b.shapes[Se].interpolate(vt);Y.x=st,Y.y=ss;let{x:at,y:Tt}=b.shapes[Se].getPointAtLength(vt*Ie);return L.x=at,L.y=Tt,k.path(E),B.draw(E),vt+=Ht,!0})})})}function fe(){const D="Shapes";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Mr({x:dt(0,i),y:dt(0,r),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),k=new Ct({x:dt(0,i),y:dt(0,r),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Da({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),z=new Jg({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),q=new e0({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),ie=new sh({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt()},enableDrag:!0}),X=new t0({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),ne=new s0({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt()},enableDrag:!0}),Se=new n0({x:dt(0,i),y:dt(0,r),degree:30,scaleOnOrigin:.5,attrs:{strokeWidth:"2",stroke:Vt(),fill:"none"},enableDrag:!0}),Ie=new a0({x:dt(0,i),y:dt(0,r),degree:0,scaleOnOrigin:2,showFlame:!0,attrs:{stroke:Vt()},enableDrag:!0}),vt=new nh({x:100,y:100,min:0,max:200,step:2,defaultValue:10,barWidth:200});vt.on("change",Yn=>{console.log(`slider change: ${Yn}`)});const Ht=new Ei({x:100,y:120,width:200,height:20,degree:30,attrs:{stroke:Vt()},enableDrag:!0});E.group(z);const st=dt(0,i-100),ss=dt(0,r-100),at=new Nt({fromX:st,fromY:ss,x:st+100,y:ss+100,attrs:{stroke:"#666666"}}),Tt=new Nt({fromX:st+100,fromY:ss,x:st,y:ss+100,attrs:{stroke:"#666666"}}),Qt=C(0,0,10),On=at.intersection(Tt);On&&(Qt.x=On.x,Qt.y=On.y);const Oi=new Na({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Vt(),enableDrag:!0}),_s=[E,k,B,z,q,ie,X,ne,Se,Ie,vt,Ht,at,Tt,Qt,Oi];n.value.getSVG().then(Yn=>{o.value.getCanvas().then(Wr=>{Yn.clear(),We.run(()=>d.value!==D?!1:(Yn.path(_s),Wr.ctx.clearRect(),Wr.draw(_s),!0))})})}function ye(){const D="Arrow";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{const k=$(),B=S(E.app.width/2,E.app.height/2);E.clear(),We.run(()=>d.value!==D?!1:(B.fromX=k.x,B.fromY=k.y,E.path([B,k]),!0))}),o.value.getCanvas().then(E=>{const k=$(),B=S(E.app.width/2,E.app.height/2);We.run(()=>d.value!=D?!1:(E.ctx.clearRect(),B.fromX=k.x,B.fromY=k.y,E.draw([B,k]),!0))}))}function ge(){const D="PointEase";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=C(E.app.width/2,E.app.height/2);k.enableDrag=!0,k.targetToAfterDragFree={targetX:E.app.width/2,targetY:E.app.height/2},E.clear(),We.run(()=>d.value!==D?!1:(E.path(k),!0))}),o.value.getCanvas().then(E=>{const k=C(E.app.width/2,E.app.height/2);k.enableDrag=!0,k.targetToAfterDragFree={targetX:E.app.width/2,targetY:E.app.height/2},We.run(()=>d.value!=D?!1:(E.ctx.clearRect(),E.draw(k),!0))}))}function Me(){const D="BallCollision";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=C(50,E.app.height/2);k.mass=2,k.vx=2;const B=C(E.app.width-50,E.app.height/2);B.mass=1,B.vx=-2,E.clear(),o.value.getCanvas().then(z=>{We.run(()=>d.value!=D?!1:(k.checkCollision(B),k.nextFrame(),B.nextFrame(),E.path([k,B]),z.ctx.clearRect(),z.draw([k,B]),!0))})}))}function Ae(){const D="Balls";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const z=[];for(let ie=0;ie<15;ie++){const X=Math.random()*20+15,ne=C(Math.random()*E.app.width,Math.random()*E.app.height,X);ne.mass=X,ne.vx=Math.random()*10-5,ne.vy=Math.random()*10-5,z.push(ne)}const q=new Ct({x:0,y:0,width:E.app.width,height:E.app.height});E.clear(),We.run(()=>d.value!=D?!1:(Dt.comboMove(z,q),E.path(z),k.ctx.clearRect(),k.draw(z),!0))})}))}function Ue(){const D="Gravitate";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const z=[];for(let q=0;q<30;q++){const ie=Math.random()*25+5,X=C(Math.random()*E.app.width,Math.random()*E.app.height,ie);X.mass=ie,z.push(X)}E.clear(),We.run(()=>d.value!=D?!1:(ut.comboGravitate(z),E.path(z),k.ctx.clearRect(),k.draw(z),!0))})}))}function qe(){const D="SunPlanet";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=C(E.app.width*.5,E.app.height*.5,50);B.mass=1e4;const z=C(E.app.width*.5+200,E.app.height*.5,10);z.mass=1,z.vy=7;const q=[B,z];E.clear(),We.run(()=>d.value!=D?!1:(ut.comboGravitate(q),E.path(q),k.ctx.clearRect(),k.draw(q),!0))})}))}function et(){const D="SpringMass";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=[];for(let ne=0;ne<30;ne++){const Se=Math.random()*10+2,Ie=C(Math.random()*k.app.width,Math.random()*k.app.height,Se);Ie.vx=Math.random()*6-3,Ie.vy=Math.random()*6-3,Ie.mass=Se,B.push(Ie)}const q=new Ct({x:0,y:0,width:k.app.width,height:k.app.height}),ie=[];ut.comboSpringMass(B,q,{spring:5e-4}).forEach(([ne,Se,Ie,vt,Ht])=>{ie.push(new Nt({fromX:ne,fromY:Se,x:Ie,y:vt,attrs:{strokeWidth:"1",stroke:xi("#666666",Ht)}}))});const X=[...ie,...B];E.clear(),E.path(X),We.run(()=>d.value!=D?!1:(ut.comboSpringMass(B,q,{spring:5e-4}).forEach(([ne,Se,Ie,vt,Ht],st)=>{ie[st].fromX=ne,ie[st].fromY=Se,ie[st].x=Ie,ie[st].y=vt,ie[st].setAttr("stroke",xi("#666666",Ht))}),E.path(X),k.ctx.clearRect(),k.draw(X),!0))})}))}function Ge(){const D="WalkMan";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=new Ei({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),z=new Ei({width:50,height:10,attrs:{stroke:"#666666"}}),q=new Ei({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),ie=new Ei({width:50,height:10,attrs:{stroke:"#666666"}});let X=0,ne=0;function Se(){ne+=.2,B.groupTranslate(X,ne),q.groupTranslate(X,ne)}const Ie=-Math.PI/2;function vt(at,Tt,Qt){const On=Math.sin(Qt)*45+90,Oi=Math.sin(Qt+Ie)*45+45,_s=Tt.getPin();at.groupRotateTo(On),Tt.groupRotateTo(at.degree+Oi),Tt.groupTranslateTo(at.getPin().x,at.getPin().y),Tt.vx=Tt.getPin().x-_s.x,Tt.vy=Tt.getPin().y-_s.y}function Ht(at){const Tt=at.getPin().y+at.height/2;if(Tt>k.app.height){const Qt=Tt-k.app.height;B.groupTranslate(0,-Qt),z.groupTranslate(0,-Qt),q.groupTranslate(0,-Qt),ie.groupTranslate(0,-Qt),X-=at.vx,ne-=at.vy}}function st(){const at=k.app.width+200;B.x>k.app.width+100?(B.groupTranslate(-at,0),z.groupTranslate(-at,0),q.groupTranslate(-at,0),ie.groupTranslate(-at,0)):B.x<-100&&(B.groupTranslate(at,0),z.groupTranslate(at,0),q.groupTranslate(at,0),ie.groupTranslate(at,0))}let ss=0;E.clear(),We.run(()=>d.value!=D?!1:(ss+=.06,Se(),vt(B,z,ss),vt(q,ie,ss+Math.PI),Ht(z),Ht(ie),st(),E.path([B,z,q,ie]),k.ctx.clearRect(),k.draw([B,z,q,ie]),!0))})}))}function be(){const D="Sector";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new r0({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(k=>{k.clear(),o.value.getCanvas().then(B=>{We.run(()=>d.value!=D?!1:(k.path(E),B.ctx.clearRect(),B.draw(E),!0))})})}function _e(){const D="RectGame";if(d.value==D)return;d.value=D;function E(ie){return new Ct({x:Math.random()*ie,y:0,width:50,height:50,attrs:{fill:Vt()},enableDrag:!0})}const k=.2,B=[];function z(){const ie=E(i);return B.push(ie),ie}let q=z();n.value.getSVG().then(ie=>{ie.clear(),o.value.getCanvas().then(X=>{We.run(()=>d.value!=D?!1:(X.ctx.clearRect(),ie.isMouseDown||X.isMouseDown?(ie.path(B),X.draw(B)):(q&&q.nextFrame({gravity:k}),q&&q.y+q.height>=X.ctx.canvas.height&&(q.y=X.ctx.canvas.height-q.height,q=z()),B.forEach(ne=>(q&&q!==ne&&q.isIntersectRect(ne)&&(q.y=ne.y-q.height,q.y>=q.height?q=z():q=null),ne)),ie.path(B),X.draw(B)),!0))})})}function te(){const D="PointWater";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=[];for(let B=0;B<80;B++){const z=C(E.app.width/2,E.app.height,2);z.vx=Math.random()*2-1,z.vy=Math.random()*-10-10,k.push(z)}E.clear(),o.value.getCanvas().then(B=>{We.run(()=>d.value!=D?!1:(k.forEach(z=>{z.nextFrame({gravity:.5}),(z.x-z.radius>E.app.width||z.x+z.radius<0||z.y-z.radius>E.app.height||z.y+z.radius<0)&&(z.x=E.app.width/2,z.y=E.app.height,z.vx=Math.random()*2-1,z.vy=Math.random()*-10-10)}),E.path(k),B.ctx.clearRect(),B.draw(k),!0))})}))}function U(){const D="PointSpringChain";if(d.value==D)return;d.value=D;function E(z,q){const ie=[];for(let X=0;X<3;X++)ie.push(C(z,q,20));return ie}function k(){const z=[];for(let q=0;q<3;q++)z.push(new Nt({attrs:{"stroke-width":"1",stroke:"#666666"}}));return z}const B={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(z=>{const q=k(),ie=E(z.app.width/2,z.app.height/2);z.clear(),We.run(()=>d.value!==D?!1:(ut.comboSpringChain([z.app.mousePoint,...ie],B),ie.forEach((X,ne)=>{if(ne===0)q[ne].fromX=z.app.mousePoint.x,q[ne].fromY=z.app.mousePoint.y,q[ne].x=X.x,q[ne].y=X.y;else{const Se=ie[ne-1];q[ne].fromX=Se.x,q[ne].fromY=Se.y,q[ne].x=X.x,q[ne].y=X.y}}),z.path(q),z.path(ie),!0))}),o.value.getCanvas().then(z=>{const q=k(),ie=E(z.app.width/2,z.app.height/2);We.run(()=>d.value!=D?!1:(z.ctx.clearRect(),ut.comboSpringChain([z.app.mousePoint,...ie],B),ie.forEach((X,ne)=>{if(ne===0)q[ne].fromX=z.app.mousePoint.x,q[ne].fromY=z.app.mousePoint.y,q[ne].x=X.x,q[ne].y=X.y;else{const Se=ie[ne-1];q[ne].fromX=Se.x,q[ne].fromY=Se.y,q[ne].x=X.x,q[ne].y=X.y}}),z.draw(q),z.draw(ie),!0))})}function Ce(){const D="PointSpringMulti";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=[S(0,0),S(0,0),S(0,0)],B=O(E.app.width,E.app.height),z=new Dt({radius:20,attrs:{fill:"#ff0000"}});E.clear(),o.value.getCanvas().then(q=>{We.run(()=>d.value!=D?!1:(z.nextFrameSpringTo(B,{spring:.03}),B.forEach((ie,X)=>{k[X].fromX=z.x,k[X].fromY=z.y,k[X].x=ie.x,k[X].y=ie.y}),E.path([...k,...B,z]),q.ctx.clearRect(),q.draw([...k,...B,z]),!0))})}))}function A(){const D="PointSpringConnect";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=[S(0,0),S(0,0),S(0,0)],B=O(E.app.width,E.app.height);E.clear(),o.value.getCanvas().then(z=>{We.run(()=>d.value!=D?!1:(ut.comboSpringConnect(B,{springLength:120}),k[0].x=B[0].x,k[0].y=B[0].y,k[0].fromX=B[1].x,k[0].fromY=B[1].y,k[1].x=B[1].x,k[1].y=B[1].y,k[1].fromX=B[2].x,k[1].fromY=B[2].y,k[2].x=B[2].x,k[2].y=B[2].y,k[2].fromX=B[0].x,k[2].fromY=B[0].y,E.path([...k,...B]),z.ctx.clearRect(),z.draw([...k,...B]),!0))})}))}function Fe(){const D="QuadraticBezierCurve";if(d.value==D)return;d.value=D;const E=50;n.value.getSVG().then(k=>{const B=new Sn({x:E,y:k.app.height-E,fromX:k.app.width-E,fromY:k.app.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),z=new Sn({x:E,y:k.app.height-E,fromX:k.app.width-E,fromY:k.app.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});k.clear(),We.run(()=>d.value!==D?!1:(z.cx=B.cx=k.app.mousePoint.x,z.cy=B.cy=k.app.mousePoint.y,k.path(B),k.path(z),!0))}),o.value.getCanvas().then(k=>{const B=new Sn({x:E,y:k.ctx.canvas.height-E,fromX:k.ctx.canvas.width-E,fromY:k.ctx.canvas.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),z=new Sn({x:E,y:k.ctx.canvas.height-E,fromX:k.ctx.canvas.width-E,fromY:k.ctx.canvas.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});We.run(()=>d.value!=D?!1:(k.ctx.clearRect(),z.cx=B.cx=k.app.mousePoint.x,z.cy=B.cy=k.app.mousePoint.y,k.draw([B,z]),!0))})}function ht(){const D="PointsRandom";d.value=D;function E(k,B){const z=[];for(let q=0;q<10;q++){const ie=new Dt({x:Math.random()*k,y:Math.random()*B,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});z.push(ie)}return z}n.value.getSVG().then(k=>{const B=E(k.app.width,k.app.height),z=B.map((q,ie)=>new Ct({x:q.x,y:q.y,width:6,height:6,attrs:{fill:ie==0?"#ff0000":"#666666"}}));k.clear(),k.path(z),k.path(new Gn(B)),o.value.getCanvas().then(q=>{q.ctx.clearRect(),q.draw([...z,new Gn(B)])})})}function rt(){const D="InterpolatePath";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Mr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),k=new Ct({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),B=new Da({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),z=Gn.generatePoints(100,100,100,3),q=Gn.generatePoints(100,100,100,6);z.attrs.stroke="#666666",q.attrs.stroke="#7EEDFF";const ie=we.polymorph([we.fromShape(z),we.fromShape(q),we.fromShape(E),we.fromShape(k),we.fromShape(B)]),X=ie(0);X.enableDrag=!0,n.value.getSVG().then(ne=>{ne.clear(),o.value.getCanvas().then(Se=>{const Ie=Je.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:vt=>{d.value===D&&(ie(vt.t),ne.path(X),Se.ctx.clearRect(),Se.draw(X))},onComplete:()=>{}});Ie.tween.start(),We.run(()=>d.value!==D?!1:(Ie.tween.update()||(ne.path(X),Se.ctx.clearRect(),Se.draw(X)),!0))})})}function ot(){const D="InterpolatePathGroup";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Mr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),k=new Ct({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),B=new Da({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),z=ys.polymorph([ys.fromShape(E),ys.fromShape(k),b,ys.fromShape(B)]),q=z(0);n.value.getSVG().then(ie=>{ie.clear(),o.value.getCanvas().then(X=>{Je.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:ne=>{d.value===D&&(z(ne.t),ie.path(q),X.ctx.clearRect(),X.draw(q))},onComplete:()=>{}}).startAuto()})})}const Re=we.fromSVGPathD("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"),zt=+Re.getTotalLength().toFixed(0),Ye=P(zt),pt=P(Math.floor(zt/2));function Kt(D){Ye.value=D,Re.setAttr("strokeDasharray",`${Ye.value} ${Ye.value}`),n.value.getSVG().then(E=>{E.path(Re)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Re)})}function cs(D){pt.value=D,Re.setAttr("strokeDashoffset",`${pt.value}`),n.value.getSVG().then(E=>{E.path(Re)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Re)})}function us(){const D="StrokeDash";d.value==D||!n.value||!o.value||(d.value=D,Re.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Ye.value} ${Ye.value}`,strokeDashoffset:`${pt.value}`}),n.value.getSVG().then(E=>{E.clear(),E.path(Re)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Re)}))}function y(){const D="StrokeDashAuto";d.value==D||!n.value||!o.value||(d.value=D,Re.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(E=>{E.clear(),o.value.getCanvas().then(k=>{Re.strokeDashToTween({duration:4e3,easeFunction:t.easeFunction,onUpdate:()=>{E.path(Re),k.ctx.clearRect(),k.draw(Re)}}).startAuto()})}))}function w(){const D="StrokeDashGroupParallelAuto";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{b.setAttrs({stroke:"none"}),E.clear(),o.value.getCanvas().then(k=>{k.ctx.clearRect(),b.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:t.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:Vt()})},onGroupUpdate:()=>{E.path(b),k.ctx.clearRect(),k.draw(b)}}).startAuto()})}))}function R(){const D="StrokeDashGroupSequenceAuto";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{b.setAttrs({stroke:"none"}),E.clear(),o.value.getCanvas().then(k=>{k.ctx.clearRect(),b.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:t.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:Vt()})},onGroupUpdate:()=>{E.path(b),k.ctx.clearRect(),k.draw(b)}}).startAuto()})}))}const F=new Je,G=new Je;function se(){const D="AnimateToCSS";d.value=D,F.fromDOM([a.value,l.value,c.value]),G.fromDOM([u.value])}let J=0;function W(){switch(m.value){case"slideLeft":F.toCSS("slideLeft",{},++J%3),G.toCSS("slideLeft",{direction:J%2==0?"normal":"reverse"});break;case"slideRight":F.toCSS("slideRight",{easeName:"ease",dur:1e3},--J%3),G.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":F.toCSS("slideDown",{easeName:"ease-out",dur:500},++J%3),G.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":F.toCSS("slideUp",{easeName:"ease-in",dur:500},++J%3),G.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":F.toCSS("flipLeft",{easeName:"linear",dur:1e3},++J%3),G.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":F.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++J%3),G.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":F.toCSS("flipDown",{easeName:"ease",dur:1e3},++J%3),G.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":F.toCSS("flipUp",{easeName:"ease",dur:1e3},++J%3),G.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":F.toCSS("popIn",{easeName:"ease",dur:1e3},++J%3),G.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":F.toCSS("popOut",{easeName:"ease",dur:1e3},++J%3),G.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":F.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},J++%3),G.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let ee;function Z(){const D="AnimateToTweenCSS";d.value=D,K.setStyle(f.value,{transform:""})}function le(){ee||(ee=new ft(h.value));const D=50,E=0,k=0,B=0,z=ee.width-D,q=ee.height-D,ie=ee.height-D,X=ee.width/2-D/2,ne=ee.height/2-D/2,Se={},Ie={};switch(m.value){case"translateTo":Object.assign(Se,{translateTo:[E,k]}),Object.assign(Ie,{translateTo:[z,q]});break;case"translateXTo":Object.assign(Se,{translateXTo:E}),Object.assign(Ie,{translateXTo:z});break;case"translateYTo":Object.assign(Se,{translateYTo:k}),Object.assign(Ie,{translateYTo:q});break;case"translateZTo":Object.assign(Se,{translateTo:[X,ne],translateZTo:B}),Object.assign(Ie,{translateTo:[X,ne],translateZTo:ie});break;case"translate3dTo":Object.assign(Se,{translate3dTo:[X-50,ne-50,B]}),Object.assign(Ie,{translate3dTo:[X+50,ne+50,ie]});break;case"rotateTo":Object.assign(Se,{translateTo:[X,ne],rotateTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateTo:360});break;case"rotateXTo":Object.assign(Se,{translateTo:[X,ne],rotateXTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateXTo:180});break;case"rotateYTo":Object.assign(Se,{translateTo:[X,ne],rotateYTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateYTo:180});break;case"rotateZTo":Object.assign(Se,{translateTo:[X,ne],rotateZTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateZTo:360});break;case"rotate3dTo":Object.assign(Se,{translateTo:[X,ne],rotate3dTo:[0,0,0]}),Object.assign(Ie,{translateTo:[X,ne],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(Se,{translateTo:[X,ne],scaleTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleTo:3});break;case"scaleXTo":Object.assign(Se,{translateTo:[X,ne],scaleXTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleXTo:3});break;case"scaleYTo":Object.assign(Se,{translateTo:[X,ne],scaleYTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleYTo:3});break;case"scaleZTo":Object.assign(Se,{translateTo:[X,ne],scaleZTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleZTo:3});break;case"scale3dTo":Object.assign(Se,{translateTo:[X,ne],scale3dTo:[1,1,1]}),Object.assign(Ie,{translateTo:[X,ne],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(Se,{translateTo:[X,ne],skewTo:0}),Object.assign(Ie,{translateTo:[X,ne],skewTo:30});break;case"skewXTo":Object.assign(Se,{translateTo:[X,ne],skewXTo:0}),Object.assign(Ie,{translateTo:[X,ne],skewXTo:30});break;case"skewYTo":Object.assign(Se,{translateTo:[X,ne],skewYTo:0}),Object.assign(Ie,{translateTo:[X,ne],skewYTo:30});break;case"perspective":Object.assign(Se,{translateTo:[X,ne],perspective:0}),Object.assign(Ie,{translateTo:[X,ne],perspective:1e3});break}Je.toTweenCSS(f.value,Se,Ie,{duration:2e3,easeFunction:t.easeFunction,onUpdate:vt=>{}}).startAuto()}function pe(){const D="Rosetta";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=we.generateRosetta(120,120,55,35,6);B.setAttr({stroke:"none",fill:"none"});const z=new Ct({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),q=new we({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});E.clear(),k.ctx.clearRect(),Je.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:ie=>{if(d.value!==D)return;const X=B.trailPath(q,ie.progress);z.x=X.x,z.y=X.y,z.degree=X.alpha+90,E.path([q,z]),k.ctx.clearRect(),k.draw([q,z])}}).startAuto()})}))}function de(){const D="Confetti_"+dt();d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{E.clear();const B=new l0(k.app.width,k.app.height,{scalar:1});We.run(()=>d.value!==D?!1:(E.path(B),k.ctx.clearRect(),k.draw(B),!0))})})}const Te=[{name:"PathDGroup",type:"PathDGroup",onClick:H},{name:"Shapes",type:"Shapes",onClick:fe},{name:"Arrow",type:"Arrow",onClick:ye},{name:"targetToAfterDragFree",type:"PointEase",onClick:ge},{name:"ballCollision",type:"BallCollision",onClick:Me},{name:"balls",type:"Balls",onClick:Ae},{name:"万有引力",type:"Gravitate",onClick:Ue},{name:"行星",type:"SunPlanet",onClick:qe},{name:"SpringMass",type:"SpringMass",onClick:et},{name:"WalkMan",type:"WalkMan",onClick:Ge},{name:"俄罗斯方块",type:"RectGame",onClick:_e},{name:"喷泉",type:"PointWater",onClick:te},{name:"链式弹簧",type:"PointSpringChain",onClick:U},{name:"多点弹簧",type:"PointSpringMulti",onClick:Ce},{name:"连接弹簧",type:"PointSpringConnect",onClick:A},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:Fe},{name:"Points - random",type:"PointsRandom",onClick:ht},{name:"线条动画",type:"InterpolatePath",onClick:rt},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:ot},{name:"strokeDash",type:"StrokeDash",onClick:us},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:y},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:w},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:R},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:se},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:Z},{name:"扇形",type:"Sector",onClick:be},{name:"rosetta",type:"Rosetta",onClick:pe},{name:"Confetti",type:"Confetti",onClick:de}],De=[{type:"slideLeft",onClick:()=>v("slideLeft")},{type:"slideRight",onClick:()=>v("slideRight")},{type:"slideDown",onClick:()=>v("slideDown")},{type:"slideUp",onClick:()=>v("slideUp")},{type:"flipLeft",onClick:()=>v("flipLeft")},{type:"flipRight",onClick:()=>v("flipRight")},{type:"flipDown",onClick:()=>v("flipDown")},{type:"flipUp",onClick:()=>v("flipUp")},{type:"popIn",onClick:()=>v("popIn")},{type:"popOut",onClick:()=>v("popOut")},{type:"rotate",onClick:()=>v("rotate")}],Be=[{type:"translateTo",onClick:()=>v("translateTo")},{type:"translateXTo",onClick:()=>v("translateXTo")},{type:"translateYTo",onClick:()=>v("translateYTo")},{type:"translateZTo",onClick:()=>v("translateZTo")},{type:"translate3dTo",onClick:()=>v("translate3dTo")},{type:"rotateTo",onClick:()=>v("rotateTo")},{type:"rotateXTo",onClick:()=>v("rotateXTo")},{type:"rotateYTo",onClick:()=>v("rotateYTo")},{type:"rotateZTo",onClick:()=>v("rotateZTo")},{type:"rotate3dTo",onClick:()=>v("rotate3dTo")},{type:"scaleTo",onClick:()=>v("scaleTo")},{type:"scaleXTo",onClick:()=>v("scaleXTo")},{type:"scaleYTo",onClick:()=>v("scaleYTo")},{type:"scaleZTo",onClick:()=>v("scaleZTo")},{type:"scale3dTo",onClick:()=>v("scale3dTo")},{type:"skewTo",onClick:()=>v("skewTo")},{type:"skewXTo",onClick:()=>v("skewXTo")},{type:"skewYTo",onClick:()=>v("skewYTo")},{type:"perspective",onClick:()=>v("perspective")}];function Ze(){return new Promise(D=>{o.value.getCanvas().then(E=>{Cn.downloadFromSVGString(E.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{D()},3e3)})})})}return Qe(()=>{}),e({}),(D,E)=>(I(),V(je,null,[_("div",c1,[ue(it,{asyncClick:Ze},{default:nt(()=>[He(" downloadFromCanvasToSVG ")]),_:1})]),_("div",u1,[(I(),V(je,null,St(Te,k=>ue(it,{key:k.type,item:k,onClick:k.onClick,stylePattern:d.value.indexOf(k.type)>=0?"fullfilled":"outline"},{default:nt(()=>[He(me(k.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Ps(_("div",h1,[(I(),V(je,null,St(De,k=>ue(it,{key:k.type,item:k,onClick:k.onClick,stylePattern:m.value==k.type?"fullfilled":"outline"},{default:nt(()=>[He(me(k.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[gs,d.value=="AnimateToCSS"]]),Ps(_("div",null," 当前缓动函数:"+me(t.easeName),513),[[gs,d.value=="AnimateToTweenCSS"]]),Ps(_("div",d1,[(I(),V(je,null,St(Be,k=>ue(it,{key:k.type,item:k,onClick:k.onClick,stylePattern:m.value==k.type?"fullfilled":"outline"},{default:nt(()=>[He(me(k.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[gs,d.value=="AnimateToTweenCSS"]]),Ps(_("div",f1,[_("div",p1,[_("div",null,"stroke-dasharray: "+me(Ye.value)+","+me(Ye.value),1),ue(Tn,{max:988,defaultValue:Ye.value,onChange:Kt},null,8,["defaultValue"])]),_("div",m1,[_("div",null,"stroke-dashoffset: "+me(pt.value),1),ue(Tn,{max:988,defaultValue:pt.value,onChange:cs},null,8,["defaultValue"])])],512),[[gs,d.value=="StrokeDash"]]),Ps(_("div",g1,[ue(Vr,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[gs,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Ps(_("div",v1,[ue(ts,{ref_key:"canvasRef",ref:o,bgColor:"#333333"},null,512)],512),[[gs,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Ps(_("div",y1,[_("div",b1,[_("div",{ref_key:"divOneRef",ref:a},"1",512),_("div",{ref_key:"divTwoRef",ref:l},"2",512),_("div",{ref_key:"divThreeRef",ref:c},"3",512)]),_("div",_1,[_("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[gs,d.value=="AnimateToCSS"]]),Ps(_("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[_("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[gs,d.value=="AnimateToTweenCSS"]])],64))}}),zh=ae(x1,[["styles",[`.btns[data-v-d2faaf30]{display:flex;flex-wrap:wrap}.btns[data-v-d2faaf30]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-d2faaf30]{padding-top:10px;background-color:#dbffff}.css-area[data-v-d2faaf30]{background-color:#fff}.animate-to-css-group[data-v-d2faaf30]{position:relative;width:160px;height:160px;margin:20px;overflow:hidden}.animate-to-css-group>div[data-v-d2faaf30]{width:160px;height:160px;line-height:160px;background-color:#efefef;border:1px solid #333333;text-align:center}.tween-css-target[data-v-d2faaf30]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
|
|
165
|
-
`]],["__scopeId","data-v-
|
|
166
|
-
`]],["__scopeId","data-v-8fe3f9fd"]]),
|
|
167
|
-
`]],["__scopeId","data-v-7aebdea0"]]),
|
|
168
|
-
`]],["__scopeId","data-v-8745630f"]])
|
|
169
|
-
`]],["__scopeId","data-v-0e77f86d"]]),
|
|
170
|
-
`]],["__scopeId","data-v-
|
|
171
|
-
`]],["__scopeId","data-v-
|
|
134
|
+
`,c=I();return bt(c,()=>{c.value&&rt.setStyleSheet(l,c.value)}),oe(()=>{}),t({}),(u,d)=>(R(),M("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[x("input",{type:"range",max:s.max,min:s.min,step:s.step,value:n.value,autofocus:s.autofocus,onInput:i,style:D({background:`linear-gradient(to right, ${s.color} 0%, ${s.color} ${a.value}%, ${s.barColor} ${a.value}%, ${s.barColor})`})},null,44,Gv),u.showValue?(R(),M("label",Uv,vt(n.value)+vt(s.unit),1)):Rt("",!0)],512))}}),S2="",go=ct(jv,[["__scopeId","data-v-75b06946"]]),Hv='<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>',Zv={class:"btns"},Wv={class:"btns"},qv={class:"btns sub-btns"},Kv={class:"btns sub-btns"},Qv={style:{width:"100%"}},Jv={style:{width:"100%"}},tb={style:{height:"400px"}},eb={style:{height:"400px"}},sb=tt({customOptions:{Button:ne,InputRange:go,SVG:Fn,Canvas:qe},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:_t.Easing.Linear.None}},setup(o,{expose:t}){const e=o,s=I();let r=0,n=0;bt(s,()=>{s.value&&s.value.getSVG().then(w=>{r=w.app.width,n=w.app.height,w.app.on("resize",(E,F)=>{r=E,n=F})})});const a=I(),i=I(),l=I(),c=I(""),u=I("");let d;function f(w){switch(u.value=w,c.value){case"AnimateToTweenCSS":H();break}}const p=new Gg({svg:Hv,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),h=new Qt({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"}),y=+h.getTotalLength().toFixed(0),v=I(y),_=I(Math.floor(y/2));function z(w){v.value=w,h.setAttr("strokeDasharray",`${v.value} ${v.value}`)}function Y(w){_.value=w,h.setAttr("strokeDashoffset",`${_.value}`)}const O=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new Do({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Gt()},enableDrag:!0});w.clear(),d=re(()=>(E.ctx.clearRect(),w.path([F]),E.draw([F]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!s.value||!a.value)return;d?.();const w=new me({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),E=new me({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),F=qt(0,r-100),P=qt(0,n-100),$=new me({attrs:{stroke:"#666666"}});$.x=F,$.y=P,$.toX=F+100,$.toY=P+100;const B=new me({attrs:{stroke:"#666666"}});B.x=F+100,B.y=P,B.toX=F,B.toY=P+100;const st=$.intersection(B),K=new Jt({x:0,y:0,radius:10,attrs:{fill:Gt()}});st&&(K.x=st.x,K.y=st.y);const Z=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 we({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 Ug({x:qt(0,r),y:qt(0,n),scalar:.99,degree:-1,attrs:{fill:Gt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),X=new jg({x:qt(0,r),y:qt(0,n),scalar:.99,degree:-1,attrs:{fill:Gt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),yt=new Hg({x:qt(0,r),y:qt(0,n),scalar:1,degree:0,attrs:{fill:Gt()},enableDrag:!0}),N=new Ri({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}),A=new Zg({x:qt(0,r),y:qt(0,n),scalar:1,degree:0,attrs:{fill:Gt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),k=new Wg({x:qt(0,r),y:qt(0,n),scalar:1,degree:0,attrs:{fill:Gt()},enableDrag:!0}),Yt=new qg({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Gt(),fill:"none"},enableDrag:!0}),zt=new Jg({x:qt(0,r),y:qt(0,n),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Gt()},enableDrag:!0}),Tt=new Do({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Gt()},enableDrag:!0}),ae=new bd({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ae.on("change",Ie=>{console.log(`slider change: ${Ie}`)});const Bt=new Fi({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Gt(),enableDrag:!0}),ee=new _d({x:qt(0,r),y:qt(0,n),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),De=new yd({x:qt(0,r),y:qt(0,n),rx:50,ry:10,enableDrag:!0,attrs:{fill:Gt()}}),Ye=[w,E,$,B,K,Z,nt,U,X,yt,N,A,k,Yt,zt,Tt,ae,Bt,ee,De];s.value.getSVG().then(Ie=>{a.value.getCanvas().then(b=>{Ie.clear(),d=re(()=>(Ie.path(Ye),b.ctx.clearRect(),b.draw(Ye),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new Pn({scalar:.5,followMouse:!0,attrs:{fill:Gt()}}),P=F.clone(),$=new me({x:w.app.width/2,y:w.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),B=$.clone();w.clear(),d=re(()=>(E.ctx.clearRect(),$.toX=F.x,$.toY=F.y,B.toX=P.x,B.toY=P.y,w.path([$,F]),E.draw([B,P]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new Jt({x:w.app.width/2,y:w.app.height/2,radius:30,attrs:{fill:Gt()}});F.enableDrag=!0,F.targetToAfterDragFree={targetX:w.app.width/2,targetY:w.app.height/2};const P=F.clone();w.clear(),d=re(()=>(w.path(F),E.ctx.clearRect(),E.draw(P),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new Jt({x:50,y:w.app.height/2,radius:30,attrs:{fill:Gt()}});F.mass=2,F.vx=2;const P=new Jt({x:w.app.width-50,y:w.app.height/2,radius:30,attrs:{fill:Gt()}});P.mass=1,P.vx=-2,w.clear(),d=re(()=>(F.checkCollision(P),F.run(),P.run(),w.path([F,P]),E.ctx.clearRect(),E.draw([F,P]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const P=[];for(let st=0;st<15;st++){const K=Math.random()*20+15,Z=new Jt({x:Math.random()*w.app.width,y:Math.random()*w.app.height,radius:K,attrs:{fill:Gt()}});Z.mass=K,Z.vx=Math.random()*10-5,Z.vy=Math.random()*10-5,P.push(Z)}const $=new we({x:0,y:0,width:w.app.width,height:w.app.height}),B=new Ve(P);w.clear(),d=re(()=>(B.run({wall:$}),w.path(P),E.ctx.clearRect(),E.draw(P),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const P=[];for(let B=0;B<30;B++){const st=Math.random()*25+5,K=new Jt({x:Math.random()*w.app.width,y:Math.random()*w.app.height,radius:st,attrs:{fill:Gt()}});K.mass=st,P.push(K)}const $=new Ve(P);w.clear(),d=re(()=>($.gravitate(),w.path(P),E.ctx.clearRect(),E.draw(P),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new Jt({x:w.app.width*.5,y:w.app.height*.5,radius:50,attrs:{fill:Gt()}});F.mass=1e4;const P=new Jt({x:w.app.width*.5+200,y:w.app.height*.5,radius:10,attrs:{fill:Gt()}});P.mass=1,P.vy=7;const $=[F,P],B=new Ve($);w.clear(),d=re(()=>(B.gravitate(),w.path($),E.ctx.clearRect(),E.draw($),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=[];for(let K=0;K<30;K++){const Z=Math.random()*10+2,nt=new Jt({x:Math.random()*E.app.width,y:Math.random()*E.app.height,radius:Z,attrs:{fill:Gt()}});nt.vx=Math.random()*6-3,nt.vy=Math.random()*6-3,nt.mass=Z,F.push(nt)}const $=new Ve(F),B=new we({x:0,y:0,width:E.app.width,height:E.app.height});let st=[];w.clear(),d=re(()=>(w.delete(st),st=[],$.springMass(B,{spring:5e-4}).forEach(([K,Z,nt,U,X])=>{X>0&&st.push(new me({x:K,y:Z,toX:nt,toY:U,attrs:{strokeWidth:"1",stroke:kn("#666666",X)}}))}),w.path(st),w.path(F),E.ctx.clearRect(),E.draw(st),E.draw(F),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new Jt({x:0,y:0,radius:8,attrs:{fill:Gt()}}),P=new Jt({x:0,y:0,radius:5,attrs:{fill:Gt()}});let $=[p,F,P],B,st;p.on("clicked",X=>{st&&w.delete(st),B&&B.restore(),B=X,X.save(),X.setAttr({fill:"pink",stroke:"green"}),$=[p,F,P];const yt=X.getBoundingClientRect();yt&&(st=new we(yt),st.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),$.push(st))});let K=0,Z=p.shapes[K].getTotalLength(),nt=0;const U=.01;w.clear(),d=re(()=>{nt>1&&(K++,nt=0,K>p.shapes.length-1&&(K=0),Z=p.shapes[K].getTotalLength()),E.ctx.clearRect();let{x:X,y:yt}=p.shapes[K].interpolate(nt);F.x=X,F.y=yt;let{x:N,y:A}=p.shapes[K].getPointAtLength(nt*Z);return P.x=N,P.y=A,w.path($),E.draw($),nt+=U,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new Do({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),P=new Do({width:50,height:10,attrs:{stroke:"#666666"}}),$=new Do({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),B=new Do({width:50,height:10,attrs:{stroke:"#666666"}});let st=0,K=0;function Z(){K+=.2,F.x+=st,F.y+=K,$.x+=st,$.y+=K}const nt=-Math.PI/2;function U(A,k,Yt){const zt=Math.sin(Yt)*45+90,Tt=Math.sin(Yt+nt)*45+45,ae=k.getPin();A.degree=zt,k.degree=A.degree+Tt,k.x=A.getPin().x,k.y=A.getPin().y,k.vx=k.getPin().x-ae.x,k.vy=k.getPin().y-ae.y}function X(A){const k=A.getPin().y+A.height/2;if(k>E.app.height){const Yt=k-E.app.height;F.y-=Yt,P.y-=Yt,$.y-=Yt,B.y-=Yt,st-=A.vx,K-=A.vy}}function yt(){const A=E.app.width+200;F.x>E.app.width+100?(F.x-=A,P.x-=A,$.x-=A,B.x-=A):F.x<-100&&(F.x+=A,P.x+=A,$.x+=A,B.x+=A)}let N=0;w.clear(),d=re(()=>(E.ctx.clearRect(),N+=.06,Z(),U(F,P,N),U($,B,N+Math.PI),X(P),X(B),yt(),w.path([F,P,$,B]),E.draw([F,P,$,B]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!s.value||!a.value)return;d?.();function w(B){return new we({x:Math.random()*B,y:0,width:50,height:50,attrs:{fill:Gt()},enableDrag:!0})}const E=.2,F=[];function P(){const B=w(r);return F.push(B),B}let $=P();s.value.getSVG().then(B=>{a.value.getCanvas().then(st=>{B.clear(),d=re(()=>(st.ctx.clearRect(),B.isMouseDown||st.isMouseDown?(B.path(F),st.draw(F)):($&&$.run({gravity:E}),$&&$.y+$.height>=st.ctx.canvas.height&&($.y=st.ctx.canvas.height-$.height,$=P()),F.forEach(K=>($&&$!==K&&$.isIntersectRect(K)&&($.y=K.y-$.height,$.y>=$.height?$=P():$=null),K)),B.path(F),st.draw(F)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=[];for(let P=0;P<80;P++){const $=new Jt({x:w.app.width/2,y:w.app.height,radius:2,attrs:{fill:Gt()}});$.vx=Math.random()*2-1,$.vy=Math.random()*-10-10,F.push($)}w.clear(),d=re(()=>(F.forEach(P=>{P.run({gravity:.5}),(P.x-P.radius>w.app.width||P.x+P.radius<0||P.y-P.radius>w.app.height||P.y+P.radius<0)&&(P.x=w.app.width/2,P.y=w.app.height,P.vx=Math.random()*2-1,P.vy=Math.random()*-10-10)}),w.path(F),E.ctx.clearRect(),E.draw(F),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!s.value||!a.value)return;d?.();function w(P,$){const B=[];for(let st=0;st<3;st++)B.push(new Jt({x:P,y:$,radius:20,attrs:{fill:Gt()}}));return B}function E(){const P=[];for(let $=0;$<3;$++)P.push(new me({attrs:{"stroke-width":"1",stroke:"#666666"}}));return P}const F={spring:.03,friction:.9,gravity:2};s.value.getSVG().then(P=>{a.value.getCanvas().then($=>{const B=E(),st=w(P.app.width/2,P.app.height/2),K=new Jt({x:0,y:0}),Z=E(),nt=w($.app.width/2,$.app.height/2),U=new Jt({x:0,y:0}),X=new Ve([K,...st]),yt=new Ve([U,...nt]);P.clear(),d=re(()=>($.ctx.clearRect(),K.x=P.app.mousePoint.x,K.y=P.app.mousePoint.y,X.springChain(F),st.forEach((N,A)=>{if(A===0)B[A].x=P.app.mousePoint.x,B[A].y=P.app.mousePoint.y,B[A].toX=N.x,B[A].toY=N.y;else{const k=st[A-1];B[A].x=k.x,B[A].y=k.y,B[A].toX=N.x,B[A].toY=N.y}}),P.path(B),P.path(st),U.x=$.app.mousePoint.x,U.y=$.app.mousePoint.y,yt.springChain(F),nt.forEach((N,A)=>{if(A===0)Z[A].x=$.app.mousePoint.x,Z[A].y=$.app.mousePoint.y,Z[A].toX=N.x,Z[A].toY=N.y;else{const k=nt[A-1];Z[A].x=k.x,Z[A].y=k.y,Z[A].toX=N.x,Z[A].toY=N.y}}),$.draw(Z),$.draw(nt),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=[new me({attrs:{stroke:"#666666"}}),new me({attrs:{stroke:"#666666"}}),new me({attrs:{stroke:"#666666"}})],P=[];for(let B=0;B<3;B++)P.push(new Jt({x:Math.random()*w.app.width,y:Math.random()*w.app.height,radius:10,attrs:{fill:Gt()},enableDrag:!0}));const $=new Jt({radius:20,attrs:{fill:"#ff0000"}});w.clear(),d=re(()=>(E.ctx.clearRect(),$.runSpringTo(P,{spring:.03}),P.forEach((B,st)=>{F[st].x=$.x,F[st].y=$.y,F[st].toX=B.x,F[st].toY=B.y}),w.path([...F,...P,$]),E.draw([...F,...P,$]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=[new me({attrs:{stroke:"#666666"}}),new me({attrs:{stroke:"#666666"}}),new me({attrs:{stroke:"#666666"}})],P=[];for(let B=0;B<3;B++)P.push(new Jt({x:Math.random()*w.app.width,y:Math.random()*w.app.height,radius:10,attrs:{fill:Gt()},enableDrag:!0}));const $=new Ve(P);w.clear(),d=re(()=>($.springConnect({springLength:120}),F[0].x=P[0].x,F[0].y=P[0].y,F[0].toX=P[1].x,F[0].toY=P[1].y,F[1].x=P[1].x,F[1].y=P[1].y,F[1].toX=P[2].x,F[1].toY=P[2].y,F[2].x=P[2].x,F[2].y=P[2].y,F[2].toX=P[0].x,F[2].toY=P[0].y,w.path([...F,...P]),E.ctx.clearRect(),E.draw([...F,...P]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const P=new En({x:50,y:w.app.height-50,toX:w.app.width-50,toY:w.app.height-50,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),$=new En({x:50,y:w.app.height-50,toX:w.app.width-50,toY:w.app.height-50,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),B=new En({x:50,y:E.ctx.canvas.height-50,toX:E.ctx.canvas.width-50,toY:E.ctx.canvas.height-50,cx:E.app.mousePoint.x,cy:E.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),st=new En({x:50,y:E.ctx.canvas.height-50,toX:E.ctx.canvas.width-50,toY:E.ctx.canvas.height-50,cx:E.app.mousePoint.x,cy:E.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});w.clear(),d=re(()=>(E.ctx.clearRect(),$.cx=P.cx=w.app.mousePoint.x,$.cy=P.cy=w.app.mousePoint.y,w.path(P),w.path($),st.cx=B.cx=E.app.mousePoint.x,st.cy=B.cy=E.app.mousePoint.y,E.draw([B,st]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{w.clear(),E.ctx.clearRect();const F=[];for(let B=0;B<10;B++)F.push({x:Math.random()*w.app.width,y:Math.random()*w.app.height});const P=F.map((B,st)=>new we({x:B.x,y:B.y,width:6,height:6,attrs:{fill:st==0?"#ff0000":st==F.length-1?"#00ff00":"#666666"}})),$=new gd({points:F,attrs:{stroke:"#ff0000"},isStraight:!0});$.isStraight=!0,w.path(P),w.path($),$.isStraight=!1,E.draw([...P,$])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!s.value||!a.value)return;d?.();const w=new vd({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),E=new vd({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});s.value.getSVG().then(F=>{a.value.getCanvas().then(P=>{F.clear(),d=re(()=>(P.ctx.clearRect(),F.path(w),P.draw(E),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!s.value||!a.value)&&(d?.(),h.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${v.value} ${v.value}`,strokeDashoffset:`${_.value}`}),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{w.clear(),d=re(()=>(E.ctx.clearRect(),w.path(h),E.draw(h),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!s.value||!a.value)&&(d?.(),h.setAttr({stroke:"#ff0000",strokeWidth:"4"}),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{w.clear(),h.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{w.path(h),E.ctx.clearRect(),E.draw(h)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{w.clear(),E.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Gt()})},onGroupUpdate:()=>{w.path(p),E.ctx.clearRect(),E.draw(p)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{w.clear(),E.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Gt()})},onGroupUpdate:()=>{w.path(p),E.ctx.clearRect(),E.draw(p)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!s.value||!a.value)return;d?.();const w=new Pn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),E=new we({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),F=new Ri({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),P=Ve.generatePointsShape(100,100,100,3);P.x=100,P.y=100,P.setAttr({stroke:"#666666"});const $=Ve.generatePointsShape(100,100,100,6);$.x=50,$.y=50,$.setAttr({stroke:"#7EEDFF"});const B=new Ve([P,$,w,E,F]);s.value.getSVG().then(st=>{a.value.getCanvas().then(K=>{st.clear(),B.polymorphTween(6e3,{draw:Z=>{st.path(Z),K.ctx.clearRect(),K.draw(Z)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!s.value||!a.value)return;d?.();const w=new Pn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),E=new we({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),F=new Ri({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),P=new Ve([w,E,p,F]);s.value.getSVG().then($=>{a.value.getCanvas().then(B=>{$.clear(),P.polymorphTween(6e3,{draw:st=>{$.path(st),B.ctx.clearRect(),B.draw(st)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!s.value||!a.value)&&(d?.(),rt.setStyle(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=Ve.generateRosettaShape(120,120,55,35,6);F.setAttr({stroke:"none",fill:"none"});const P=new we({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),$=new Qt({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});w.clear(),E.ctx.clearRect();const B=new Pe({frameDuration:15e3});B.addTween({progress:0},{progress:1},{onUpdate:st=>{const K=F.trailPath($,st.progress);P.x=K.x,P.y=K.y,P.degree=K.alpha+90,w.path([$,P]),E.ctx.clearRect(),E.draw([$,P])}}),B.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!s.value||!a.value)&&(d?.(),s.value.getSVG().then(w=>{a.value.getCanvas().then(E=>{const F=new ty(E.app.width,E.app.height,{angle:qt(55,125),spread:qt(50,70),particleCount:qt(50,100)});w.clear(),d=re(()=>(E.ctx.clearRect(),w.path(F),E.draw(F),!0))})}))}}],G=[{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 J;function H(){J||(J=new Ue(i.value));const w=50,E=0,F=0,P=0,$=J.width-w,B=J.height-w,st=J.height-w,K=J.width/2-w/2,Z=J.height/2-w/2,nt={},U={};switch(u.value){case"translateTo":Object.assign(nt,{translateTo:[E,F]}),Object.assign(U,{translateTo:[$,B]});break;case"translateXTo":Object.assign(nt,{translateXTo:E}),Object.assign(U,{translateXTo:$});break;case"translateYTo":Object.assign(nt,{translateYTo:F}),Object.assign(U,{translateYTo:B});break;case"translateZTo":Object.assign(nt,{translateTo:[K,Z],translateZTo:P}),Object.assign(U,{translateTo:[K,Z],translateZTo:st});break;case"translate3dTo":Object.assign(nt,{translate3dTo:[K-50,Z-50,P]}),Object.assign(U,{translate3dTo:[K+50,Z+50,st]});break;case"rotateTo":Object.assign(nt,{translateTo:[K,Z],rotateTo:0}),Object.assign(U,{translateTo:[K,Z],rotateTo:360});break;case"rotateXTo":Object.assign(nt,{translateTo:[K,Z],rotateXTo:0}),Object.assign(U,{translateTo:[K,Z],rotateXTo:180});break;case"rotateYTo":Object.assign(nt,{translateTo:[K,Z],rotateYTo:0}),Object.assign(U,{translateTo:[K,Z],rotateYTo:180});break;case"rotateZTo":Object.assign(nt,{translateTo:[K,Z],rotateZTo:0}),Object.assign(U,{translateTo:[K,Z],rotateZTo:360});break;case"rotate3dTo":Object.assign(nt,{translateTo:[K,Z],rotate3dTo:[0,0,0]}),Object.assign(U,{translateTo:[K,Z],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(nt,{translateTo:[K,Z],scaleTo:1}),Object.assign(U,{translateTo:[K,Z],scaleTo:3});break;case"scaleXTo":Object.assign(nt,{translateTo:[K,Z],scaleXTo:1}),Object.assign(U,{translateTo:[K,Z],scaleXTo:3});break;case"scaleYTo":Object.assign(nt,{translateTo:[K,Z],scaleYTo:1}),Object.assign(U,{translateTo:[K,Z],scaleYTo:3});break;case"scaleZTo":Object.assign(nt,{translateTo:[K,Z],scaleZTo:1}),Object.assign(U,{translateTo:[K,Z],scaleZTo:3});break;case"scale3dTo":Object.assign(nt,{translateTo:[K,Z],scale3dTo:[1,1,1]}),Object.assign(U,{translateTo:[K,Z],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(nt,{translateTo:[K,Z],skewTo:0}),Object.assign(U,{translateTo:[K,Z],skewTo:30});break;case"skewXTo":Object.assign(nt,{translateTo:[K,Z],skewXTo:0}),Object.assign(U,{translateTo:[K,Z],skewXTo:30});break;case"skewYTo":Object.assign(nt,{translateTo:[K,Z],skewYTo:0}),Object.assign(U,{translateTo:[K,Z],skewYTo:30});break;case"perspective":Object.assign(nt,{translateTo:[K,Z],perspective:0}),Object.assign(U,{translateTo:[K,Z],perspective:1e3});break}const X=new Pe({frameDuration:2e3});X.addTween(nt,U,{easeFunction:e.easeFunction,onUpdate:yt=>{rt.setStyle(l.value,rt.convertAttrs(l.value,yt))}}),X.play()}function it(){return new Promise(w=>{a.value.getCanvas().then(E=>{he.downloadFromSVGString(E.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{w()},3e3)})})})}return oe(()=>{}),t({}),(w,E)=>(R(),M(Vt,null,[x("div",Zv,[ft(ne,{asyncClick:it},{default:St(()=>[jt(" downloadFromCanvasToSVG ")]),_:1})]),x("div",Wv,[(R(),M(Vt,null,pe(O,F=>ft(ne,{key:F.type,item:F,onClick:F.onClick,stylePattern:c.value==F.type?"fullfilled":"outline"},{default:St(()=>[jt(vt(F.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),ro(x("div",null," 当前缓动函数:"+vt(e.easeName),513),[[zs,c.value=="AnimateToTweenCSS"]]),ro(x("div",qv,[(R(),M(Vt,null,pe(G,F=>ft(ne,{key:F.type,item:F,onClick:F.onClick,stylePattern:u.value==F.type?"fullfilled":"outline"},{default:St(()=>[jt(vt(F.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[zs,c.value=="AnimateToTweenCSS"]]),ro(x("div",Kv,[x("div",Qv,[x("div",null,"stroke-dasharray: "+vt(v.value)+","+vt(v.value),1),ft(go,{max:988,defaultValue:v.value,onChange:z},null,8,["defaultValue"])]),x("div",Jv,[x("div",null,"stroke-dashoffset: "+vt(_.value),1),ft(go,{max:988,defaultValue:_.value,onChange:Y},null,8,["defaultValue"])])],512),[[zs,c.value=="StrokeDash"]]),ro(x("div",tb,[ft(Fn,{ref_key:"svgRef",ref:s,bgColor:"#ffffff"},null,512)],512),[[zs,c.value!=="AnimateToTweenCSS"]]),ro(x("div",eb,[ft(qe,{ref_key:"canvasRef",ref:a,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[zs,c.value!=="AnimateToTweenCSS"]]),ro(x("div",{ref_key:"tweenCSSContainerRef",ref:i,style:{height:"400px"},class:"css-area"},[x("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[zs,c.value=="AnimateToTweenCSS"]])],64))}}),eh=ct(sb,[["styles",[`.btns[data-v-279c3ed1]{display:flex;flex-wrap:wrap}.btns[data-v-279c3ed1]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-279c3ed1]{padding-top:10px;background-color:#dbffff}.css-area[data-v-279c3ed1]{background-color:#fff}.tween-css-target[data-v-279c3ed1]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
|
|
135
|
+
`]],["__scopeId","data-v-279c3ed1"]]),ob=["fill"],rb=["fill"],nb=tt({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{style:D(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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,ob),x("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,rb)],4))}}),ab=ct(nb,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
|
|
136
|
+
`]],["__scopeId","data-v-8fe3f9fd"]]),Ui=o=>(To("data-v-7aebdea0"),o=o(),So(),o),ib=[Ui(()=>x("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)),Ui(()=>x("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)),Ui(()=>x("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))],lb=tt({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{style:D(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},ib,4))}}),cb=ct(lb,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
|
|
137
|
+
`]],["__scopeId","data-v-7aebdea0"]]),ub=["width","height"],db=["fill"],hb=tt({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[x("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,db)],8,ub))}}),fb=ct(hb,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
|
|
138
|
+
`]],["__scopeId","data-v-8745630f"]]),pb=["width","height"],mb=["fill"],gb=tt({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:W.colorGrayCC}},setup(o){const t=o;return(e,s)=>(R(),M("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[x("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,mb)],8,pb))}}),yb=ct(gb,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
|
|
139
|
+
`]],["__scopeId","data-v-0e77f86d"]]),vb={class:"svg"},bb=[Dc('<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)],_b=ct(tt({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin.ce",setup(o){return(t,e)=>(R(),M("svg",vb,bb))}}),[["styles",[`.svg[data-v-ba0e36ce]{position:absolute;width:0;height:0}
|
|
140
|
+
`]],["__scopeId","data-v-ba0e36ce"]]),xb={class:"loading-1"},wb=tt({__name:"Loading1.ce",props:{color:{default:W.colorPrimary}},setup(o){const e={backgroundColor:o.color};return(s,r)=>(R(),M("div",xb,[x("div",{class:"rect1",style:e}),x("div",{class:"rect2",style:e}),x("div",{class:"rect3",style:e}),x("div",{class:"rect4",style:e}),x("div",{class:"rect5",style:e})]))}}),kb=ct(wb,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
|
|
141
|
+
`]],["__scopeId","data-v-f7deb691"]]),Cb={class:"loading-2"},Tb=tt({__name:"Loading2.ce",props:{color:{default:W.colorPrimary}},setup(o){const e={backgroundColor:o.color};return(s,r)=>(R(),M("div",Cb,[x("div",{class:"dot1",style:e}),x("div",{class:"dot2",style:e})]))}}),Sb=ct(Tb,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
|
|
142
|
+
`]],["__scopeId","data-v-945f5b2e"]]),Eb=tt({__name:"Loading3.ce",props:{fromColor:{default:W.colorPrimary},toColor:{default:W.colorRed}},setup(o){const t=o,e=`
|
|
172
143
|
@keyframes snake {
|
|
173
144
|
0% {
|
|
174
145
|
opacity: 0.3;
|
|
@@ -178,7 +149,7 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
|
|
|
178
149
|
50% {
|
|
179
150
|
opacity: 1;
|
|
180
151
|
transform: translateY(-10px);
|
|
181
|
-
background-color: ${
|
|
152
|
+
background-color: ${t.toColor};
|
|
182
153
|
box-shadow: 0px 20px 3px rgba(0, 0, 0, 0.05);
|
|
183
154
|
}
|
|
184
155
|
100% {
|
|
@@ -187,31 +158,53 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
|
|
|
187
158
|
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
188
159
|
}
|
|
189
160
|
}
|
|
190
|
-
`,
|
|
191
|
-
`]],["__scopeId","data-v-
|
|
192
|
-
`]],["__scopeId","data-v-b2b74418"]]),
|
|
193
|
-
`]],["__scopeId","data-v-2e49b1eb"]]),
|
|
194
|
-
`]],["__scopeId","data-v-0e771b32"]]),
|
|
161
|
+
`,s={backgroundColor:t.fromColor,width:"20%"},r=I();return bt(r,()=>{r.value&&rt.setStyleSheet(e,r.value)}),ao(()=>{}),oe(()=>{}),(n,a)=>(R(),M("div",{class:"loading-3",ref_key:"loading3",ref:r},[x("div",{class:"dot",style:D({...s,left:"0"})},null,4),x("div",{class:"dot",style:D({...s,left:"20%"})},null,4),x("div",{class:"dot",style:D({...s,left:"40%"})},null,4),x("div",{class:"dot",style:D({...s,left:"60%"})},null,4),x("div",{class:"dot",style:D({...s,left:"80%"})},null,4)],512))}}),Pb=ct(Eb,[["styles",[`.loading-3[data-v-58c7849d]{position:relative;display:inline-block;width:100%;height:100%;text-align:center}.dot[data-v-58c7849d]{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-58c7849d]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-58c7849d]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-58c7849d]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-58c7849d]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-58c7849d]:nth-child(5){animation-delay:.8s}
|
|
162
|
+
`]],["__scopeId","data-v-58c7849d"]]),Ob={class:"loading-4"},Ib=tt({__name:"Loading4.ce",props:{color:{default:W.colorPrimary}},setup(o){const e={backgroundColor:o.color};return(s,r)=>(R(),M("div",Ob,[x("div",{class:"rect",style:e})]))}}),Rb=ct(Ib,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
|
|
163
|
+
`]],["__scopeId","data-v-b2b74418"]]),Fb={class:"loading-5"},Db=tt({__name:"Loading5.ce",props:{color:{default:W.colorPrimary}},setup(o){const e={backgroundColor:o.color};return(s,r)=>(R(),M("div",Fb,[x("div",{class:"cube1",style:e}),x("div",{class:"cube2",style:e})]))}}),$b=ct(Db,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
|
|
164
|
+
`]],["__scopeId","data-v-2e49b1eb"]]),Lb={class:"loading-6"},Mb=tt({__name:"Loading6.ce",props:{color:{default:W.colorPrimary}},setup(o){const e={backgroundColor:o.color};return(s,r)=>(R(),M("div",Lb,[x("div",{style:e}),x("div",{style:e}),x("div",{style:e})]))}}),Nb=ct(Mb,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
|
|
165
|
+
`]],["__scopeId","data-v-0e771b32"]]),Ab=[(o=>(To("data-v-c9759bdc"),o=o(),So(),o))(()=>x("div",null,null,-1))],zb=tt({__name:"Loading7.ce",props:{color:{default:W.colorPrimary}},setup(o){const t=o,e=`
|
|
195
166
|
:root {
|
|
196
|
-
--loading-7-bg-color: ${
|
|
167
|
+
--loading-7-bg-color: ${t.color}
|
|
197
168
|
}
|
|
198
169
|
:host {
|
|
199
|
-
--loading-7-bg-color: ${
|
|
170
|
+
--loading-7-bg-color: ${t.color}
|
|
200
171
|
}
|
|
201
|
-
`,
|
|
202
|
-
`]],["__scopeId","data-v-c9759bdc"]]),
|
|
203
|
-
`]],["__scopeId","data-v-51a259a7"]]),
|
|
204
|
-
`]],["__scopeId","data-v-ee782ac8"]]),
|
|
205
|
-
`]],["__scopeId","data-v-984ad184"]]),
|
|
206
|
-
`]],["__scopeId","data-v-7fb118c9"]]),
|
|
207
|
-
`]],["__scopeId","data-v-1ee90a6e"]]),
|
|
172
|
+
`,s=I();return bt(s,()=>{s.value&&rt.setStyleSheet(e,s.value)}),ao(()=>{}),oe(()=>{}),(r,n)=>(R(),M("div",{class:"loading-7",ref_key:"loading7",ref:s},Ab,512))}}),Vb=ct(zb,[["styles",[`.loading-7[data-v-c9759bdc]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-c9759bdc]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-c9759bdc]: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-c9759bdc .5s linear infinite}.loading-7>div[data-v-c9759bdc]:after{content:"";width:100%;height:100%;animation:animate-c9759bdc .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-c9759bdc{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-c9759bdc{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
|
|
173
|
+
`]],["__scopeId","data-v-c9759bdc"]]),Yb={class:"loading-8"},Bb={viewBox:"25 25 50 50"},Xb=tt({__name:"Loading8.ce",props:{color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("div",Yb,[(R(),M("svg",Bb,[x("circle",{cx:"50",cy:"50",r:"20",style:D(["stroke: "+t.color])},null,4)]))]))}}),sh=ct(Xb,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
|
|
174
|
+
`]],["__scopeId","data-v-51a259a7"]]),Gb={class:"loading-9"},Ub=tt({__name:"Loading9.ce",props:{color:{default:W.colorPrimary}},setup(o){const e={borderTopColor:o.color};return(s,r)=>(R(),M("div",Gb,[x("div",{style:e})]))}}),jb=ct(Ub,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
|
|
175
|
+
`]],["__scopeId","data-v-ee782ac8"]]),Hb={class:"loading-10"},Zb={viewBox:"0 0 50 50"},Wb=tt({__name:"Loading10.ce",props:{color:{default:W.colorPrimary}},setup(o){const t=o;return(e,s)=>(R(),M("div",Hb,[(R(),M("svg",Zb,[x("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:D(["stroke: rgba(0,0,0,0.1)"])},null,4),x("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:D(["fill: "+t.color])},null,4)]))]))}}),qb=ct(Wb,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
|
|
176
|
+
`]],["__scopeId","data-v-984ad184"]]),Kb={class:"loading-11",ref:"loading11"},Qb={class:"container container-1"},Jb={class:"container container-2"},t_={class:"container container-3"},e_=tt({__name:"Loading11.ce",props:{color:{default:W.colorPrimary},width:{default:"0.8em"}},setup(o){const t=o;return(e,s)=>(R(),M("div",Kb,[x("div",{class:"loading-11-inner",style:D({width:t.width,height:t.width})},[x("div",Qb,[x("div",{class:"dot dot-1",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:D({backgroundColor:t.color})},null,4)]),x("div",Jb,[x("div",{class:"dot dot-1",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:D({backgroundColor:t.color})},null,4)]),x("div",t_,[x("div",{class:"dot dot-1",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-2",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-3",style:D({backgroundColor:t.color})},null,4),x("div",{class:"dot dot-4",style:D({backgroundColor:t.color})},null,4)])],4)],512))}}),oh=ct(e_,[["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)}}
|
|
177
|
+
`]],["__scopeId","data-v-7fb118c9"]]),s_={class:"face front"},o_={class:"face back"},r_=ct(tt({customOptions:{},inheritAttrs:!0,__name:"CardFlip.ce",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=I(!1),a=()=>{n.value=!n.value,r("click",n.value)};return t({}),(i,l)=>(R(),M("div",{class:"card-flip-scene",style:D({perspective:s.perspective})},[x("div",{class:te(["card",[s.type,{flip:n.value}]]),style:D({transition:`transform ${s.dur}ms`}),onClick:a},[x("div",s_,[Et(i.$slots,"front",{},()=>[jt("front")],!0)]),x("div",o_,[Et(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)}
|
|
178
|
+
`]],["__scopeId","data-v-1ee90a6e"]]),n_=["onClick"],a_=["stroke","fill"],i_=["stroke","fill"],l_=["stroke"],c_=tt({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:W.colorGrayFF},colorBgSelected:{default:W.colorPrimary},colorBgDisabled:{default:W.colorGrayCC},colorBorder:{default:W.colorGrayCC},colorBorderSelected:{default:W.colorPrimary},colorBorderDisabled:{default:W.colorGrayCC},colorPath:{default:W.colorGrayFF},colorPathDisabled:{default:W.colorGrayFF},fontSize:{default:W.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(o,{emit:t}){const e=o,s=t;let r=I(e.initIndex??0);bt(r,function(){s("change",e.options[r.value])});const n=function(a){e.disabledIndexs&&e.disabledIndexs.findIndex(i=>i==a)>=0||(r.value=a)};return(a,i)=>(R(!0),M(Vt,null,pe(a.options,(l,c)=>(R(),M("div",{class:te(["radio",a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>n(c),style:D(["margin-left:"+(c>0?e.itemPadding:0)])},[Et(a.$slots,"default",{label:l,index:c},()=>[(R(),M("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:D(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Rt("",!0):(R(),M("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r)==c?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r)==c?a.colorBgSelected:a.colorBg},null,8,a_)),e.isRounded?(R(),M("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r)==c?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r)==c?a.colorBgSelected:a.colorBg},null,8,i_)):Rt("",!0),Ct(r)==c?(R(),M("path",{key:2,d:"m7 13l3 3 7-7",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorPathDisabled:a.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,l_)):Rt("",!0)],4)),x("span",{style:D(["font-size:"+e.fontSize])},vt(l),5)],!0)],14,n_))),128))}}),J2="",rh=ct(c_,[["__scopeId","data-v-c6c82238"]]),u_=["onClick"],d_=["stroke","fill"],h_=["stroke","fill"],f_=["stroke"],p_=tt({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:W.colorGrayFF},colorBgSelected:{default:W.colorPrimary},colorBgDisabled:{default:W.colorGrayCC},colorBorder:{default:W.colorGrayCC},colorBorderSelected:{default:W.colorPrimary},colorBorderDisabled:{default:W.colorGrayCC},colorPath:{default:W.colorGrayFF},colorPathDisabled:{default:W.colorGrayFF},fontSize:{default:W.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(o,{emit:t}){const e=o,s=t;let r=Zt(e.initIndexs??[]);bt(r,function(){s("change",r.map(a=>e.options[a]))});const n=function(a){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==a)>=0)return;const i=r.findIndex(l=>l===a);i>=0?r.splice(i,1):r.push(a)};return(a,i)=>(R(!0),M(Vt,null,pe(a.options,(l,c)=>(R(),M("div",{class:te(["checkbox",a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>n(c),style:D(["margin-left:"+(c>0?e.itemPadding:0)])},[Et(a.$slots,"default",{label:l,index:c},()=>[(R(),M("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:D(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Rt("",!0):(R(),M("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBgSelected:a.colorBg},null,8,d_)),e.isRounded?(R(),M("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBorderDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBorderSelected:a.colorBorder,fill:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorBgDisabled:Ct(r).findIndex(u=>u===c)>=0?a.colorBgSelected:a.colorBg},null,8,h_)):Rt("",!0),Ct(r).findIndex(u=>u===c)>=0?(R(),M("path",{key:2,d:"m7 13l3 3 7-7",stroke:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0?a.colorPathDisabled:a.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,f_)):Rt("",!0)],4)),x("span",{style:D(["font-size:"+e.fontSize])},vt(l),5)],!0)],14,u_))),128))}}),tw="",ji=ct(p_,[["__scopeId","data-v-22ae8adc"]]),nh=ct(tt({customOptions:{RadioGroup:rh,CheckboxGroup:ji,InputRange:go},inheritAttrs:!0,__name:"Cube.ce",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(o,{expose:t,emit:e}){const s=o,r=I(Math.floor(s.width/2)),n=`
|
|
208
179
|
:root {
|
|
209
|
-
--spin-cube-z: -${
|
|
180
|
+
--spin-cube-z: -${r.value}px;
|
|
210
181
|
}
|
|
211
182
|
:host {
|
|
212
|
-
--spin-cube-z: -${
|
|
183
|
+
--spin-cube-z: -${r.value}px;
|
|
213
184
|
}
|
|
214
|
-
`,
|
|
215
|
-
`]],["__scopeId","data-v-
|
|
216
|
-
`]],["__scopeId","data-v-c2869a68"]]);class Lb extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(e=>{if(e.media){const t=()=>{(e.media===this.video.currentSrc||!this.previousSiblingIsPlaying(e,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:e.media,handler:t}),window.matchMedia(e.media).addEventListener("change",t)}})}unbindMediaListeners(){this.listenedMedia.forEach(e=>{window.matchMedia(e.media).removeEventListener("change",e.handler)})}previousSiblingIsPlaying(e,t){const n=e;for(;e.previousElementSibling;)if(n.src===t)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const e=this.video.currentTime,t=this.video.playState;this.video.load();const n=()=>{this.video.playState=t,this.video.currentTime=e.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",n)};this.video.addEventListener("loadeddata",n)}}const zb=Lb;function Fb(s,e="style.css"){for(let t of s){const n=document.querySelector(t)?.shadowRoot;if(n){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),n.appendChild(i)}}}const Ha={},Wa={},gt=(s,e,t=!0)=>{const n=s.__name;Ha[n]=[];let i=[...s.styles||[]],r=0;for(let o in s.customOptions)Ha[n].push(o),`${s.customOptions[o].__scopeId}`,i=[...(Ha[o]||[]).reduce((a,l)=>(a.push(...(Wa[l]||[]).map(c=>tu(c))),a),[]),...(e[r++]?.styles||[]).map(a=>tu(a)),...i],Wa[o]=i;if(t)s.styles=i;else for(let o of s.styles){const a=document.createElement("style");a.innerHTML=o,document.head.insertBefore(a,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return Wa[n]=i,s},Gb=()=>{customElements.define("yz-loading-1",xe(z1)),customElements.define("yz-loading-2",xe(B1)),customElements.define("yz-loading-3",xe(Y1)),customElements.define("yz-loading-4",xe(X1)),customElements.define("yz-loading-5",xe(Z1)),customElements.define("yz-loading-6",xe(J1)),customElements.define("yz-loading-7",xe(sb)),customElements.define("yz-loading-8",xe(Fh)),customElements.define("yz-loading-9",xe(lb)),customElements.define("yz-loading-10",xe(db)),customElements.define("yz-loading-11",xe(Gh));const s=xe(ih);customElements.define("yz-icon",s),gt(kn,[Gh]);const e=xe(kn);customElements.define("yz-button",e);const t=xe(Jv);customElements.define("yz-layout-mobile",t);const n=xe(ey);customElements.define("yz-layout-center",n),gt(En,[Br]);const i=xe(En);customElements.define("yz-pop",i),gt(jr,[Br,En,ih,kn]);const r=xe(jr);customElements.define("yz-dialog",r),gt(kh,[Br,En,jr,Fh]);const o=xe(kh);customElements.define("yz-dialog-loading",o),gt(Eh,[Br,En,jr]);const a=xe(Eh);customElements.define("yz-dialog-toast",a);const l=xe(C0);customElements.define("yz-select",l),gt(rh,[R1]);const c=xe(rh);customElements.define("yz-select-absolute",c);const u=xe(N0);customElements.define("yz-switch",u);const h=xe(oh);customElements.define("yz-radiogroup",h);const f=xe(ah);customElements.define("yz-checkboxgroup",f),gt(Sh,[En,kn]);const d=xe(Sh);customElements.define("yz-popover",d);const m=xe(Hy);customElements.define("yz-resize-observer",m);const v=xe(Wy);customElements.define("yz-map-tianditu",v),gt(za,[En,O1]);const b=xe(za);customElements.define("yz-plate-keyboard",b),gt(Ph,[k1,za]);const C=xe(Ph);customElements.define("yz-plate-mobile",C),gt(hh,[N1]);const O=xe(hh);customElements.define("yz-slide-left-item",O);const $=xe(Fy);customElements.define("yz-plate-display",$);const S=xe(_y);customElements.define("yz-tabs",S);const Y=xe(Xy);customElements.define("yz-fps-stats",Y),gt(Fa,[kn,Hr]);const L=xe(Fa);customElements.define("yz-ease-graph-display",L),gt(Dh,[Fa]);const H=xe(Dh);customElements.define("yz-ease-group-graph-display",H),gt(Ga,[kn,Hr]);const fe=xe(Ga);customElements.define("yz-interpolation-graph-display",fe),gt(Vh,[Ga]);const ye=xe(Vh);customElements.define("yz-interpolation-group-graph-display",ye);const ge=xe(La);customElements.define("yz-progress-bar",ge),gt(Th,[La]);const Me=xe(Th);customElements.define("yz-page-vertical-scroll-progress-bar",Me),gt(zh,[kn,Ma,Lh,Hr]);const Ae=xe(zh);customElements.define("yz-svg-and-canvas",Ae),customElements.define("yz-hand-write-panel",xe(wy)),gt(bh,[La]);const Ue=xe(bh);customElements.define("yz-video",Ue),customElements.define("yz-input",xe(J0)),customElements.define("yz-input-range",xe(Ma)),gt(ch,[Lh]),customElements.define("yz-input-range-svg",xe(ch)),customElements.define("yz-accordion",xe(Lv)),customElements.define("yz-image",xe(_h)),gt(Ch,[_h]);const qe=xe(Ch);customElements.define("yz-image-view",qe);const et=xe(Vv);customElements.define("yz-mouse-over",et);const Ge=xe(_b);customElements.define("yz-card-flip",Ge),gt(jh,[oh,ah,Ma]);const be=xe(jh);customElements.define("yz-cube",be),gt(Hh,[Hr]);const _e=xe(Hh);customElements.define("yz-chat-ring-indicator",_e),customElements.define("yz-responsive-video",zb);const te=document.getElementById("teleport")||document.documentElement,U=document.createElement("yz-dialog-toast");U.id="globalDialogToast",te?.appendChild(U);const Ce=document.createElement("yz-dialog-loading");Ce.id="globalDialogLoading",te?.appendChild(Ce);const A=document.createElement("yz-dialog");A.id="globalDialog",te?.appendChild(A);const Fe=document.createElement("yz-plate-keyboard");Fe.id="globalPlateKeyboard",te?.appendChild(Fe)};return yt.dialog=Pv,yt.install=Gb,yt.linkChildrenComponentsStyles=Fb,yt.loading=Ov,yt.mergeChildComponentCSS=gt,yt.plateKeyboard=yh,yt.popAbsolute=zr,yt.popAbsoluteSample=Av,yt.popBottom=fh,yt.popBottomSample=Iv,yt.popCenter=vh,yt.popCenterSample=Mv,yt.popLeft=mh,yt.popLeftSample=Nv,yt.popRight=gh,yt.popRightSample=$v,yt.popTop=ph,yt.popTopSample=Dv,yt.toast=Va,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"}),yt}({});
|
|
185
|
+
`,a=I();bt(a,()=>{a.value&&rt.setStyleSheet(n,a.value)});const i=I(s.perspective+"px"),l=O=>{i.value=O==2e3?"none":O+"px"},c=I("50%"),u=O=>{c.value=O+"%"},d=I("50%"),f=O=>{d.value=O+"%"},p=`translateZ(-${r.value}px)`,h=I(p),y=O=>{switch(O){case"front":h.value=p+" rotateY(0deg)";break;case"right":h.value=p+" rotateY(-90deg)";break;case"back":h.value=p+" rotateY(-180deg)";break;case"left":h.value=p+" rotateY(90deg)";break;case"top":h.value=p+" rotateX(-90deg)";break;case"bottom":h.value=p+" rotateX(90deg)";break;default:h.value=p;break}},v=I(!1),_=O=>{O.length?v.value=!0:v.value=!1},z=I("visible"),Y=O=>{O.length?z.value="visible":z.value="hidden"};return t({}),(O,G)=>(R(),M("div",{ref_key:"container",ref:a},[x("div",{class:"cube-scene",style:D({width:`${s.width}px`,height:`${s.height}px`,perspective:`${i.value}`,perspectiveOrigin:`${c.value} ${d.value}`})},[x("div",{class:te(["cube",{spinning:v.value}]),style:D({transformStyle:"preserve-3d",transform:h.value,transition:`transform ${s.dur}ms`})},[x("div",{class:"face front",style:D({transform:`rotateY(0deg) translateZ(${r.value}px)`,backfaceVisibility:z.value})},[Et(O.$slots,"front",{},()=>[jt("front")],!0)],4),x("div",{class:"face back",style:D({transform:`rotateY(180deg) translateZ(${r.value}px)`,backfaceVisibility:z.value})},[Et(O.$slots,"back",{},()=>[jt("back")],!0)],4),x("div",{class:"face right",style:D({transform:`rotateY(90deg) translateZ(${r.value}px)`,backfaceVisibility:z.value})},[Et(O.$slots,"right",{},()=>[jt("right")],!0)],4),x("div",{class:"face left",style:D({transform:`rotateY(-90deg) translateZ(${r.value}px)`,backfaceVisibility:z.value})},[Et(O.$slots,"left",{},()=>[jt("left")],!0)],4),x("div",{class:"face top",style:D({transform:`rotateX(90deg) translateZ(${r.value}px)`,backfaceVisibility:z.value})},[Et(O.$slots,"top",{},()=>[jt("top")],!0)],4),x("div",{class:"face bottom",style:D({transform:`rotateX(-90deg) translateZ(${r.value}px)`,backfaceVisibility:z.value})},[Et(O.$slots,"bottom",{},()=>[jt("bottom")],!0)],4)],6)],4),x("div",null,[ft(rh,{options:["front","right","back","left","top","bottom"],onChange:y})]),x("div",null,[ft(ji,{options:["Backface visible"],onChange:Y})]),x("div",null,[ft(ji,{options:["spin cube"],onChange:_})]),x("div",null,[jt(" perspective: "),ft(go,{min:1,max:2e3,defaultValue:s.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),x("div",null,[jt(" perspective-origin x: "),ft(go,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),x("div",null,[jt(" perspective-origin y: "),ft(go,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),[["styles",[`.cube[data-v-38bb836c]{position:relative;width:100%;height:100%}.face[data-v-38bb836c]{position:absolute;width:100%;height:100%}.front[data-v-38bb836c]{background:hsla(0,100%,50%,.7)}.right[data-v-38bb836c]{background:hsla(60,100%,50%,.7)}.back[data-v-38bb836c]{background:hsla(120,100%,50%,.7)}.left[data-v-38bb836c]{background:hsla(180,100%,50%,.7)}.top[data-v-38bb836c]{background:hsla(240,100%,50%,.7)}.bottom[data-v-38bb836c]{background:hsla(300,100%,50%,.7)}.spinning[data-v-38bb836c]{animation:spinCube-38bb836c 8s infinite ease-in-out}@keyframes spinCube-38bb836c{0%{transform:translateZ(var(--spin-cube-z)) rotateX(0) rotateY(0)}to{transform:translateZ(var(--spin-cube-z)) rotateX(360deg) rotateY(360deg)}}
|
|
186
|
+
`]],["__scopeId","data-v-38bb836c"]]),m_=o=>(To("data-v-2054ff92"),o=o(),So(),o),g_={class:"ring-indicator"},y_={class:"ring-text"},v_=m_(()=>x("span",null,"%",-1)),ah=ct(tt({customOptions:{Canvas:qe},inheritAttrs:!0,__name:"RingIndicator.ce",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(o,{expose:t}){const e=o;let s=I(0);const r=yg(()=>{const c=He(Math.floor(e.percent),0,100);return s.value<c?s.value=Math.min(s.value+1,c):s.value>c&&(s.value=Math.max(s.value-1,c)),ye(s.value/100,2)},20),n=I(0),a=I(0),i=(c,u)=>{n.value=c,a.value=u},l=I();return bt(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new _d({width:n.value,height:a.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});re(()=>(c.ctx.clearRect(),u.setPercent(r()),c.draw(u),!0))})}),t({}),(c,u)=>(R(),M("div",g_,[ft(qe,{ref_key:"canvasRef",ref:l,onResize:i},null,512),x("div",y_,[x("span",null,vt(Ct(s)),1),v_])]))}}),[["styles",[`.ring-indicator[data-v-2054ff92]{position:relative;width:100%;height:100%}.ring-text[data-v-2054ff92]{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-2054ff92]:nth-child(1){font-size:64px}.ring-text>span[data-v-2054ff92]:nth-child(2){font-size:20px}
|
|
187
|
+
`]],["__scopeId","data-v-2054ff92"]]),ih=o=>(To("data-v-8b4a3cb1"),o=o(),So(),o),b_=[ih(()=>x("div",{class:"left"},null,-1)),ih(()=>x("div",{class:"right"},null,-1))],__={key:0},x_={key:1},yo=10,Lo=4,lh=ct(tt({customOptions:{Container:Pt},inheritAttrs:!0,__name:"RingText.ce",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(o,{expose:t}){const e=o,s=I(0),r=(n,a)=>{s.value=Math.floor(Math.min(n,a))};return t({}),(n,a)=>(R(),Lt(Pt,{onResize:r,type:"full"},{default:St(()=>[x("div",{class:"ring",style:D({width:s.value+"px",height:s.value+"px",padding:yo+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[x("div",{class:"ring-rotate",style:D({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${s.value/2-yo-Lo}px, #000 ${s.value/2-yo-Lo}px)`})},b_,4),x("div",{class:"ring-content",style:D({top:yo+Lo+"px",left:yo+Lo+"px",width:s.value-(yo+Lo)*2+"px",height:s.value-(yo+Lo)*2+"px"})},[e.text?(R(),M("div",__,vt(e.text),1)):Rt("",!0),e.secondText?(R(),M("div",x_,vt(e.secondText),1)):Rt("",!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%}
|
|
188
|
+
`,`.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))}
|
|
189
|
+
`]],["__scopeId","data-v-8b4a3cb1"]]),ch=ct(tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o,s=I(),r=I(40),n=I(20),a=I(20),i=(_,z)=>{r.value=Math.floor(_/(6+1)),n.value=Math.floor(z),a.value=Math.max(12,n.value)},l=()=>{e.initStart&&y(e.startTime)};let c;const u=()=>{c?.()},d=Zt([0,0,0,0,0,0]),f=Zt([0,0,0,0,0,0]),p=[0,0,0,0,0,0];let h=0;const y=_=>{_&&(Um(Gm(_),p),p.forEach((z,Y)=>{d[Y]=z,f[Y]=z})),u(),h=0,v(ve(),0,!1),c=gg((z,Y,O)=>{v(z,Y,O)},1e3)},v=(_,z,Y)=>{if(Y)h=z;else{if(h>0){p.forEach((G,J)=>{d[J]=G,f[J]=G});const O=h+1;e.creaseType=="increase"?(Za(d,O),Za(f,O+1)):(Wa(d,O),Wa(f,O+1)),h=0}else e.creaseType=="increase"?Za(f,1):Wa(f,1);xi(()=>{f.forEach((O,G)=>{d[G]=O})},e.dur)}};return t({start:y,pause:u}),(_,z)=>(R(),Lt(Pt,{ref_key:"containerRef",ref:s,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:St(()=>[x("div",{class:"clock-flipper",style:D({fontSize:a.value+"px",lineHeight:n.value+"px"})},[(R(!0),M(Vt,null,pe(d,(Y,O)=>(R(),M(Vt,{key:O},[x("div",{class:te(["flip",[e.flipDirection,f[O]!=Y?"go":""]]),style:D({width:r.value+"px"})},[x("div",{class:te(["front digital",[`flipper_${O}`,`number_${Y}`]])},null,2),x("div",{class:te(["back digital",[`number_${f[O]}`]])},null,2)],6),O==1||O==3?(R(),M("div",{key:0,class:"gap",style:D({fontSize:Math.floor(a.value*.6)+"px",lineHeight:0})}," : ",4)):Rt("",!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)}}
|
|
190
|
+
`,`.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"}
|
|
191
|
+
`]],["__scopeId","data-v-0a7bd62f"]]),uh=tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o;return t({}),(s,r)=>(R(),Lt(Pt,null,{default:St(()=>[x("div",{style:D({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},vt(e.text),5)]),_:1}))}}),w_={class:"slide"},dh=ct(tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o,s=Zt({}),r=()=>{switch(e.direction){case"left":s.transformOrigin="center left",s.transform="scaleX(0)";break;case"right":s.transformOrigin="center right",s.transform="scaleX(0)";break;case"down":s.transformOrigin="center bottom",s.transform="scaleY(0)";break;case"up":s.transformOrigin="center top",s.transform="scaleY(0)";break}},n=()=>{switch(e.direction){case"left":s.transformOrigin="center right",s.transform="scaleX(1)";break;case"right":s.transformOrigin="center left",s.transform="scaleX(1)";break;case"down":s.transformOrigin="center top",s.transform="scaleY(1)";break;case"up":s.transformOrigin="center bottom",s.transform="scaleY(1)";break}};return t({}),(a,i)=>(R(),Lt(Pt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n,style:{overflow:"hidden"}},{default:St(()=>[x("div",{class:"slide-before",style:D({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...s})},null,4),x("div",w_,[Et(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}
|
|
192
|
+
`]],["__scopeId","data-v-370e136b"]]),k_={class:"slide-corner"},hh=ct(tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o,s=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,s.width=s.height=Math.ceil(Math.min(c,u))+"px"},i=()=>{switch(e.direction){case"fromBottomLeft":s.top="100%",s.right="100%",s.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":s.top="100%",s.left="100%",s.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":s.bottom="100%",s.right="100%",s.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":s.bottom="100%",s.left="100%",s.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":s.top="50%",s.left="50%",s.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":s.top="100%",s.right="100%",s.transform=`translate(50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromBottomRight":s.top="100%",s.left="100%",s.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopLeft":s.bottom="100%",s.right="100%",s.transform=`translate(50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopRight":s.bottom="100%",s.left="100%",s.transform=`translate(-50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromCenter":s.top="50%",s.left="50%",s.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break}};return t({}),(c,u)=>(R(),Lt(Pt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:l,onResize:a,style:{overflow:"hidden"}},{default:St(()=>[x("div",{class:"slide-corner-before",style:D({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Ct(r)}ms ease-in-out`,transformOrigin:"center",...s})},null,4),x("div",k_,[Et(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}
|
|
193
|
+
`]],["__scopeId","data-v-6065adbb"]]),C_={class:"line-single"},fh=ct(tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o;let s=1;const r=(l,c)=>{s=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)=>(R(),Lt(Pt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:i,onResize:r},{default:St(()=>[x("div",{class:"line-single-before",style:D({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Ct(s)}ms ease-in-out`,...n})},null,4),x("div",C_,[Et(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}
|
|
194
|
+
`]],["__scopeId","data-v-f6ff8ebf"]]),T_={class:"line-double"},ph=ct(tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o;let s=1;const r=(u,d)=>{s=Math.ceil(Math.max(u,d)/Math.min(u,d))},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,d)=>(R(),Lt(Pt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:r},{default:St(()=>[x("div",{class:"line-double-before",style:D({backgroundColor:e.color,transition:`transform ${e.timeGap*Ct(s)}ms ease-in-out`,...n,...a})},null,4),x("div",T_,[Et(u.$slots,"default",{},void 0,!0)]),x("div",{class:"line-double-after",style:D({backgroundColor:e.color,transition:`transform ${e.timeGap*Ct(s)}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}
|
|
195
|
+
`]],["__scopeId","data-v-dcf10fee"]]),mh=ct(tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o,s=Zt({willChange:"box-shadow, transform"}),r=()=>{switch(s.boxShadow="none",e.direction){case"left":s.transform="translateX(0)";break;case"right":s.transform="translateX(0)";break;case"down":s.transform="translateY(0)";break;case"up":s.transform="translateY(0)";break}},n=()=>{switch(s.boxShadow=e.boxShadow,e.direction){case"left":s.transform=`translateX(-${e.distance}px)`;break;case"right":s.transform=`translateX(${e.distance}px)`;break;case"down":s.transform=`translateY(${e.distance}px)`;break;case"up":s.transform=`translateY(-${e.distance}px)`;break}};return t({}),(a,i)=>(R(),Lt(Pt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n},{default:St(()=>[x("div",{class:"float",style:D({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...s})},[Et(a.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.float[data-v-e9e9dadd]{position:relative;z-index:1;cursor:pointer}
|
|
196
|
+
`]],["__scopeId","data-v-e9e9dadd"]]),Hi=ct(tt({customOptions:{Container:Pt},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(o,{expose:t,emit:e}){const s=o,r=e,n=Zt({}),a=Zt({});let i=s.name,l=s.duration,c=s.timingFunction,u=s.delay,d=s.repeat,f=s.direction;function p(){switch(i){case"superRainbow":l=s.duration||15e3;break;case"heartBeat":l=s.duration||1300;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=s.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=s.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=s.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=s.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=s.duration||600;break;default:l=s.duration||500;break}switch(i){case"superRainbow":c=s.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=s.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=s.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":c=s.timingFunction||"ease-in-out";break;default:c=s.timingFunction||"ease";break}switch(i){default:u=s.delay||0;break}switch(i){case"superRainbow":d=s.repeat||"infinite";break;default:d=s.repeat||1;break}switch(i){case"superRainbow":f=s.direction||"alternate";break;default:f=s.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}}bt(()=>s.name,()=>{i=s.name,p()},{immediate:!0});const h=I(),y=I(),v=w=>{r("cssanimationstart",w.animationName)},_=w=>{r("cssanimationend",w.animationName)},z=w=>{n.perspective=s.perspective,w.on("animationstart",E=>{v(E)}),w.on("animationend",E=>{_(E)})};function Y(){y.value.style.animation="none",y.value.offsetHeight,y.value.style.animation=null}const O=()=>{a.animation="none"},G=()=>{Y(),a.animation=`${l}ms ${c} ${u}ms ${d} ${f} ${s.fillMode} ${s.playState} ${i}`};return t({trigger:w=>{w&&(i=w,p()),h.value.startEffect(),f="normal",h.value.endEffect()},triggerReverse:w=>{w&&(i=w,p()),h.value.startEffect(),f="reverse",h.value.endEffect()},clear:()=>{a.animation="none"}}),(w,E)=>(R(),Lt(Pt,{class:"css-animation",ref_key:"containerRef",ref:h,type:s.containerType,supportCopyText:s.supportCopyText,effectTriggerTiming:s.effectTriggerTiming,onStart:O,onEnd:G,onReady:z,style:D(n)},{default:St(()=>[x("div",{class:"css-animation-inner",ref_key:"animationRef",ref:y,style:D({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[Et(w.$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%}
|
|
197
|
+
`]]]),S_={class:"circle"},gh=ct(tt({customOptions:{Container:Pt},inheritAttrs:!0,__name:"Circle.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(o,{expose:t}){const e=o,s=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",s.value?.repeatEffect?.()},a=()=>{const l=yr(e.color,.2);r.boxShadow=`
|
|
198
|
+
inset ${r.width} 0 0 ${l},
|
|
199
|
+
inset 0 ${r.width} 0 ${l},
|
|
200
|
+
inset -${r.width} 0 0 ${l},
|
|
201
|
+
inset 0 -${r.width} 0 ${l}
|
|
202
|
+
`},i=()=>{r.boxShadow=`
|
|
203
|
+
inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
|
|
204
|
+
inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
|
|
205
|
+
inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
|
|
206
|
+
inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
|
|
207
|
+
`};return t({}),(l,c)=>(R(),Lt(Pt,{ref_key:"containerRef",ref:s,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:i,onResize:n},{default:St(()=>[x("div",{class:"circle-before",style:D(r)},null,4),x("div",S_,[Et(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.circle-before[data-v-80b60045]{position:absolute;z-index:2}.circle[data-v-80b60045]{position:relative;z-index:1;cursor:pointer}
|
|
208
|
+
`]],["__scopeId","data-v-80b60045"]]),yh=ct(tt({customOptions:{Container:Pt},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(o,{expose:t}){const e=o,s=I(!0),r=()=>{s.value=!0},n=()=>{s.value=!1};return t({}),(a,i)=>(R(),Lt(Pt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n},{default:St(()=>[s.value?(R(),M("div",{key:0,class:"text",style:D({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:Ct(hd)(a.borderColor,!0,"#333333","#ffffff")})},vt(e.text),5)):Rt("",!0),x("div",{class:"inner",style:D(s.value?{border:`${a.borderWidth}px solid ${a.borderColor}`,borderRadius:`${a.borderRadius}px`}:{})},[Et(a.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.text[data-v-6b501124]{position:absolute;top:0;left:0;z-index:1}.inner[data-v-6b501124]{position:relative;overflow:hidden;box-sizing:border-box}
|
|
209
|
+
`]],["__scopeId","data-v-6b501124"]]),E_={class:"svg"},P_=[Dc('<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)],O_=tt({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(o){return(t,e)=>(R(),M("svg",E_,P_))}}),Iw="",vh=ct(O_,[["__scopeId","data-v-7ee5c19e"]]),bh=tt({customOptions:{Container:Pt,SVGMaskNapkin:vh},inheritAttrs:!0,__name:"ImageMask.ce",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(o,{expose:t}){const e=o,s=I(0),r=I(0),n=(a,i)=>{s.value=a,r.value=i};return t({}),(a,i)=>(R(),M("div",{style:D({width:`${s.value}px`,height:`${r.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[Et(a.$slots,"mask",{},()=>[ft(vh)]),ft(Pt,{type:"shrink",onResize:n},{default:St(()=>[Et(a.$slots,"default")]),_:3})],4))}});class I_ 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 s=t;for(;t.previousElementSibling;)if(s.src===e)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const t=this.video.currentTime,e=this.video.playState;this.video.load();const s=()=>{this.video.playState=e,this.video.currentTime=t.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",s)};this.video.addEventListener("loadeddata",s)}}const R_=I_;function F_(o,t="style.css"){for(let e of o){const s=document.querySelector(e)?.shadowRoot;if(s){const r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("href",t),s.appendChild(r)}}}const Zi={},Wi={},Mt=(o,t,e=!0)=>{const s=o.__name;Zi[s]=[];let r=[...o.styles||[]],n=0;for(let a in o.customOptions)Zi[s].push(a),`${o.customOptions[a].__scopeId}`,r=[...(Zi[a]||[]).reduce((i,l)=>(i.push(...(Wi[l]||[]).map(c=>iu(c))),i),[]),...(t[n++]?.styles||[]).map(i=>iu(i)),...r],Wi[a]=r;if(e)o.styles=r;else for(let a of o.styles){const i=document.createElement("style");i.innerHTML=a,document.head.insertBefore(i,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return Wi[s]=r,o},D_=()=>{customElements.define("yz-loading-1",gt(kb)),customElements.define("yz-loading-2",gt(Sb)),customElements.define("yz-loading-3",gt(Pb)),customElements.define("yz-loading-4",gt(Rb)),customElements.define("yz-loading-5",gt($b)),customElements.define("yz-loading-6",gt(Nb)),customElements.define("yz-loading-7",gt(Vb)),customElements.define("yz-loading-8",gt(sh)),customElements.define("yz-loading-9",gt(jb)),customElements.define("yz-loading-10",gt(qb)),customElements.define("yz-loading-11",gt(oh));const o=gt(xd);customElements.define("yz-icon",o),Mt(po,[oh]);const t=gt(po);customElements.define("yz-button",t);const e=gt(v1);customElements.define("yz-layout-mobile",e);const s=gt(b1);customElements.define("yz-layout-center",s),Mt(mo,[Mn,fe]);const r=gt(mo);customElements.define("yz-pop",r),Mt(Nn,[Mn,mo,xd,po]);const n=gt(Nn);customElements.define("yz-dialog",n),Mt($d,[Mn,mo,Nn,sh]);const a=gt($d);customElements.define("yz-dialog-loading",a),Mt(Ld,[Mn,mo,Nn]);const i=gt(Ld);customElements.define("yz-dialog-toast",i);const l=gt(my);customElements.define("yz-select",l),Mt(wd,[yb]);const c=gt(wd);customElements.define("yz-select-absolute",c);const u=gt(Cy);customElements.define("yz-switch",u);const d=gt(kd);customElements.define("yz-radiogroup",d);const f=gt(Cd);customElements.define("yz-checkboxgroup",f),Mt(Fd,[mo,po,fe]);const p=gt(Fd);customElements.define("yz-popover",p);const h=gt(Iv);customElements.define("yz-resize-observer",h);const y=gt(Rv);customElements.define("yz-map-tianditu",y),Mt(Bi,[mo,cb,fe]);const v=gt(Bi);customElements.define("yz-plate-keyboard",v),Mt(Ud,[ab,Bi]);const _=gt(Ud);customElements.define("yz-plate-mobile",_),Mt(Pd,[fb]);const z=gt(Pd);customElements.define("yz-slide-left-item",z);const Y=gt(Tv);customElements.define("yz-plate-display",Y);const O=gt(H1);customElements.define("yz-tabs",O);const G=gt(Fv);customElements.define("yz-fps-stats",G),Mt(Xi,[po,Yn]);const J=gt(Xi);customElements.define("yz-ease-graph-display",J),Mt(Hd,[Xi]);const H=gt(Hd);customElements.define("yz-ease-group-graph-display",H),Mt(Gi,[po,Yn]);const it=gt(Gi);customElements.define("yz-interpolation-graph-display",it),Mt(Jd,[Gi]);const w=gt(Jd);customElements.define("yz-interpolation-group-graph-display",w);const E=gt(zi);customElements.define("yz-progress-bar",E),Mt(Md,[zi]);const F=gt(Md);customElements.define("yz-page-vertical-scroll-progress-bar",F),Mt(eh,[po,$i,th,Yn]);const P=gt(eh);customElements.define("yz-svg-and-canvas",P),customElements.define("yz-hand-write-panel",gt(W1)),Mt(Od,[zi]);const $=gt(Od);customElements.define("yz-video",$),customElements.define("yz-input",gt(Uy)),customElements.define("yz-input-range",gt($i)),Mt(Sd,[th]),customElements.define("yz-input-range-svg",gt(Sd)),customElements.define("yz-accordion",gt(r1)),Mt(Li,[fe]);const B=gt(Li);customElements.define("yz-image",B);const st=gt(fe);customElements.define("yz-container",st),Mt(Hi,[fe]);const K=gt(Hi);customElements.define("yz-effect-css-animation",K),Mt(Ni,[fe,Hi]);const Z=gt(Ni);customElements.define("yz-page",Z),Mt(Ai,[Ni,fe]);const nt=gt(Ai);customElements.define("yz-routes",nt),Mt(Rd,[Li,fe,Ai]);const U=gt(Rd);customElements.define("yz-image-view",U);const X=gt(r_);customElements.define("yz-card-flip",X),Mt(nh,[kd,Cd,$i]);const yt=gt(nh);customElements.define("yz-cube",yt),Mt(ah,[Yn]);const N=gt(ah);customElements.define("yz-chat-ring-indicator",N),Mt(lh,[fe]);const A=gt(lh);customElements.define("yz-chat-ring-text",A),Mt(ch,[fe]);const k=gt(ch);customElements.define("yz-chat-clock-flipper",k),Mt(uh,[fe]);const Yt=gt(uh);customElements.define("yz-effect-text-background-clip",Yt),Mt(dh,[fe]);const zt=gt(dh);customElements.define("yz-effect-slide",zt),Mt(hh,[fe]);const Tt=gt(hh);customElements.define("yz-effect-slide-corner",Tt),Mt(fh,[fe]);const ae=gt(fh);customElements.define("yz-effect-line-single",ae),Mt(ph,[fe]);const Bt=gt(ph);customElements.define("yz-effect-line-double",Bt),Mt(mh,[fe]);const ee=gt(mh);customElements.define("yz-effect-float",ee),Mt(gh,[fe]);const De=gt(gh);customElements.define("yz-effect-circle",De),Mt(yh,[fe]);const Ye=gt(yh);customElements.define("yz-effect-border-focus-text",Ye),Mt(bh,[fe,_b]);const Ie=gt(bh);customElements.define("yz-effect-image-mask",Ie),customElements.define("yz-responsive-video",R_);const b=document.getElementById("teleport")||document.documentElement,S=document.createElement("yz-dialog-toast");S.id="globalDialogToast",b?.appendChild(S);const V=document.createElement("yz-dialog-loading");V.id="globalDialogLoading",b?.appendChild(V);const j=document.createElement("yz-dialog");j.id="globalDialog",b?.appendChild(j);const q=document.createElement("yz-plate-keyboard");q.id="globalPlateKeyboard",b?.appendChild(q)};return ce.dialog=nv,ce.install=D_,ce.linkChildrenComponentsStyles=F_,ce.loading=rv,ce.mergeChildComponentCSS=Mt,ce.plateKeyboard=Gd,ce.popAbsolute=Xd,ce.popAbsoluteSample=dv,ce.popBottom=Ad,ce.popBottomSample=av,ce.popCenter=Bd,ce.popCenterSample=uv,ce.popLeft=Vd,ce.popLeftSample=lv,ce.popRight=Yd,ce.popRightSample=cv,ce.popTop=zd,ce.popTopSample=iv,ce.toast=ov,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),ce}({});
|
|
217
210
|
//# sourceMappingURL=yz_custom_element.iife.js.map
|