@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.
Files changed (129) hide show
  1. package/ce/style.css +1 -1
  2. package/ce/yz_custom_element.iife.js +139 -146
  3. package/ce/yz_custom_element.iife.js.map +1 -1
  4. package/ce/yz_custom_element.js +21754 -18479
  5. package/ce/yz_custom_element.js.map +1 -1
  6. package/ce/yz_custom_element.umd.cjs +139 -146
  7. package/ce/yz_custom_element.umd.cjs.map +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/zyzgroup_core_vue.iife.js +46 -54
  10. package/dist/zyzgroup_core_vue.iife.js.map +1 -1
  11. package/dist/zyzgroup_core_vue.js +17892 -15890
  12. package/dist/zyzgroup_core_vue.js.map +1 -1
  13. package/dist/zyzgroup_core_vue.umd.cjs +46 -54
  14. package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
  15. package/package.json +1 -1
  16. package/types/components/Accordion.ce.vue.d.ts +6 -6
  17. package/types/components/Accordion.vue.d.ts +6 -6
  18. package/types/components/Canvas.ce.vue.d.ts +7 -0
  19. package/types/components/Canvas.vue.d.ts +7 -0
  20. package/types/components/CardFlip.ce.vue.d.ts +1 -1
  21. package/types/components/CardFlip.vue.d.ts +1 -1
  22. package/types/components/Container.ce.vue.d.ts +69 -0
  23. package/types/components/Container.vue.d.ts +69 -0
  24. package/types/components/Cube.ce.vue.d.ts +1 -1
  25. package/types/components/Cube.vue.d.ts +1 -1
  26. package/types/components/Dialog.ce.vue.d.ts +5 -10
  27. package/types/components/Dialog.vue.d.ts +5 -10
  28. package/types/components/DialogLoading.ce.vue.d.ts +5 -10
  29. package/types/components/DialogLoading.vue.d.ts +5 -10
  30. package/types/components/DialogToast.ce.vue.d.ts +5 -10
  31. package/types/components/DialogToast.vue.d.ts +5 -10
  32. package/types/components/EaseGraphDisplay.ce.vue.d.ts +1 -1
  33. package/types/components/EaseGraphDisplay.vue.d.ts +1 -1
  34. package/types/components/Icon.ce.vue.d.ts +1 -1
  35. package/types/components/Icon.vue.d.ts +1 -1
  36. package/types/components/Image.ce.vue.d.ts +14 -8
  37. package/types/components/Image.vue.d.ts +14 -8
  38. package/types/components/ImageView.ce.vue.d.ts +6 -0
  39. package/types/components/ImageView.vue.d.ts +6 -0
  40. package/types/components/InterpolationGraphDisplay.ce.vue.d.ts +6 -6
  41. package/types/components/InterpolationGraphDisplay.vue.d.ts +6 -6
  42. package/types/components/Overlay.ce.vue.d.ts +8 -7
  43. package/types/components/Overlay.vue.d.ts +8 -7
  44. package/types/components/Page.ce.vue.d.ts +75 -0
  45. package/types/components/Page.vue.d.ts +75 -0
  46. package/types/components/PageVerticalScrollProgressBar.ce.vue.d.ts +1 -1
  47. package/types/components/PageVerticalScrollProgressBar.vue.d.ts +1 -1
  48. package/types/components/Pop.ce.vue.d.ts +41 -10
  49. package/types/components/Pop.vue.d.ts +41 -10
  50. package/types/components/ProgressBar.ce.vue.d.ts +1 -3
  51. package/types/components/ProgressBar.vue.d.ts +1 -3
  52. package/types/components/Routes.ce.vue.d.ts +45 -17
  53. package/types/components/Routes.vue.d.ts +45 -17
  54. package/types/components/SVG.ce.vue.d.ts +2 -0
  55. package/types/components/SVG.vue.d.ts +2 -0
  56. package/types/components/SVGAndCanvas.ce.vue.d.ts +1 -1
  57. package/types/components/SVGAndCanvas.vue.d.ts +1 -1
  58. package/types/components/SlideLeftItem.ce.vue.d.ts +1 -1
  59. package/types/components/SlideLeftItem.vue.d.ts +1 -1
  60. package/types/components/Tabs.ce.vue.d.ts +3 -13
  61. package/types/components/Tabs.vue.d.ts +3 -13
  62. package/types/components/Video.ce.vue.d.ts +1 -1
  63. package/types/components/Video.vue.d.ts +1 -1
  64. package/types/components/chat/ClockFlipper.ce.vue.d.ts +77 -0
  65. package/types/components/chat/ClockFlipper.vue.d.ts +77 -0
  66. package/types/components/chat/RingText.ce.vue.d.ts +49 -0
  67. package/types/components/chat/RingText.vue.d.ts +49 -0
  68. package/types/components/effect/BorderFocusText.ce.vue.d.ts +72 -0
  69. package/types/components/effect/BorderFocusText.vue.d.ts +72 -0
  70. package/types/components/effect/CSSAnimation.ce.vue.d.ts +89 -0
  71. package/types/components/effect/CSSAnimation.vue.d.ts +89 -0
  72. package/types/components/effect/CSSTransition.ce.vue.d.ts +68 -0
  73. package/types/components/effect/CSSTransition.vue.d.ts +68 -0
  74. package/types/components/effect/Circle.ce.vue.d.ts +59 -0
  75. package/types/components/effect/Circle.vue.d.ts +59 -0
  76. package/types/components/effect/Float.ce.vue.d.ts +67 -0
  77. package/types/components/effect/Float.vue.d.ts +67 -0
  78. package/types/components/effect/ImageMask.ce.vue.d.ts +42 -0
  79. package/types/components/effect/ImageMask.vue.d.ts +42 -0
  80. package/types/components/effect/LineDouble.ce.vue.d.ts +72 -0
  81. package/types/components/effect/LineDouble.vue.d.ts +72 -0
  82. package/types/components/effect/LineSingle.ce.vue.d.ts +72 -0
  83. package/types/components/effect/LineSingle.vue.d.ts +72 -0
  84. package/types/components/effect/Slide.ce.vue.d.ts +62 -0
  85. package/types/components/effect/Slide.vue.d.ts +62 -0
  86. package/types/components/effect/SlideCorner.ce.vue.d.ts +62 -0
  87. package/types/components/effect/SlideCorner.vue.d.ts +62 -0
  88. package/types/components/effect/TextBackgroundClip.ce.vue.d.ts +34 -0
  89. package/types/components/effect/TextBackgroundClip.vue.d.ts +34 -0
  90. package/types/components/form/CheckboxGroup.ce.vue.d.ts +94 -0
  91. package/types/components/form/CheckboxGroup.vue.d.ts +94 -0
  92. package/types/components/form/Input.ce.vue.d.ts +98 -0
  93. package/types/components/form/Input.vue.d.ts +98 -0
  94. package/types/components/form/RadioGroup.ce.vue.d.ts +94 -0
  95. package/types/components/form/RadioGroup.vue.d.ts +94 -0
  96. package/types/components/layout/LayoutCenter.ce.vue.d.ts +3 -3
  97. package/types/components/layout/LayoutCenter.vue.d.ts +3 -3
  98. package/types/components/loading/Loading11.ce.vue.d.ts +1 -1
  99. package/types/components/loading/Loading11.vue.d.ts +1 -1
  100. package/types/components/svg/SVGCheck.ce.vue.d.ts +1 -1
  101. package/types/components/svg/SVGCheck.vue.d.ts +1 -1
  102. package/types/components/svg/SVGCleanUp.ce.vue.d.ts +1 -1
  103. package/types/components/svg/SVGCleanUp.vue.d.ts +1 -1
  104. package/types/components/svg/SVGDelete.ce.vue.d.ts +1 -1
  105. package/types/components/svg/SVGDelete.vue.d.ts +1 -1
  106. package/types/components/svg/SVGDown.ce.vue.d.ts +1 -1
  107. package/types/components/svg/SVGDown.vue.d.ts +1 -1
  108. package/types/components/svg/SVGElement.ce.vue.d.ts +65 -0
  109. package/types/components/svg/SVGElement.vue.d.ts +65 -0
  110. package/types/components/svg/SVGFail.ce.vue.d.ts +1 -1
  111. package/types/components/svg/SVGFail.vue.d.ts +1 -1
  112. package/types/components/svg/SVGHome.ce.vue.d.ts +1 -1
  113. package/types/components/svg/SVGHome.vue.d.ts +1 -1
  114. package/types/components/svg/SVGLock.ce.vue.d.ts +1 -1
  115. package/types/components/svg/SVGLock.vue.d.ts +1 -1
  116. package/types/components/svg/SVGMaskNapkin.ce.vue.d.ts +2 -0
  117. package/types/components/svg/SVGMaskNapkin.vue.d.ts +2 -0
  118. package/types/components/svg/SVGPrompt.ce.vue.d.ts +1 -1
  119. package/types/components/svg/SVGPrompt.vue.d.ts +1 -1
  120. package/types/components/svg/SVGQuestion.ce.vue.d.ts +1 -1
  121. package/types/components/svg/SVGQuestion.vue.d.ts +1 -1
  122. package/types/components/svg/SVGReturn.ce.vue.d.ts +1 -1
  123. package/types/components/svg/SVGReturn.vue.d.ts +1 -1
  124. package/types/components/svg/SVGSuccess.vue.d.ts +1 -1
  125. package/types/components/svg/SVGWaiting.ce.vue.d.ts +1 -1
  126. package/types/components/svg/SVGWaiting.vue.d.ts +1 -1
  127. package/types/globalTeleport.d.ts +42 -6
  128. package/types/lib.d.ts +20 -5
  129. package/types/types.d.ts +3 -0
@@ -1,34 +1,34 @@
1
- (function(lt,cs){typeof exports=="object"&&typeof module<"u"?cs(exports):typeof define=="function"&&define.amd?define(["exports"],cs):(lt=typeof globalThis<"u"?globalThis:lt||self,cs(lt.ZYZGroupCoreVue={}))})(this,function(lt){"use strict";/**
1
+ (function(lt,Ke){typeof exports=="object"&&typeof module<"u"?Ke(exports):typeof define=="function"&&define.amd?define(["exports"],Ke):(lt=typeof globalThis<"u"?globalThis:lt||self,Ke(lt.ZYZGroupCoreVue={}))})(this,function(lt){"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 cs(s,t){const e=new Set(s.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const Ht={}.NODE_ENV!=="production"?Object.freeze({}):{},Cn={}.NODE_ENV!=="production"?Object.freeze([]):[],ae=()=>{},Oh=()=>!1,jn=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Ni=s=>s.startsWith("onUpdate:"),te=Object.assign,Ur=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Ph=Object.prototype.hasOwnProperty,Mt=(s,t)=>Ph.call(s,t),mt=Array.isArray,sn=s=>Mi(s)==="[object Map]",sl=s=>Mi(s)==="[object Set]",St=s=>typeof s=="function",le=s=>typeof s=="string",nn=s=>typeof s=="symbol",Bt=s=>s!==null&&typeof s=="object",Wr=s=>(Bt(s)||St(s))&&St(s.then)&&St(s.catch),nl=Object.prototype.toString,Mi=s=>nl.call(s),qr=s=>Mi(s).slice(8,-1),il=s=>Mi(s)==="[object Object]",Zr=s=>le(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Bn=cs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dh=cs("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ai=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},Ih=/-(\w)/g,us=Ai(s=>s.replace(Ih,(t,e)=>e?e.toUpperCase():"")),Nh=/\B([A-Z])/g,Vs=Ai(s=>s.replace(Nh,"-$1").toLowerCase()),rn=Ai(s=>s.charAt(0).toUpperCase()+s.slice(1)),on=Ai(s=>s?`on${rn(s)}`:""),Ls=(s,t)=>!Object.is(s,t),Yn=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},rl=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},Mh=s=>{const t=parseFloat(s);return isNaN(t)?s:t};let ol;const Kr=()=>ol||(ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function W(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],i=le(n)?Vh(n):W(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(le(s)||Bt(s))return s}const Ah=/;(?![^(]*\))/g,Rh=/:([^]+)/,$h=/\/\*[^]*?\*\//g;function Vh(s){const t={};return s.replace($h,"").split(Ah).forEach(e=>{if(e){const n=e.split(Rh);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(s){let t="";if(le(s))t=s;else if(mt(s))for(let e=0;e<s.length;e++){const n=ye(s[e]);n&&(t+=n+" ")}else if(Bt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Lh=cs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function al(s){return!!s||s===""}const kt=s=>le(s)?s:s==null?"":mt(s)||Bt(s)&&(s.toString===nl||!St(s.toString))?JSON.stringify(s,ll,2):String(s),ll=(s,t)=>t&&t.__v_isRef?ll(s,t.value):sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],r)=>(e[Qr(n,r)+" =>"]=i,e),{})}:sl(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Qr(e))}:nn(t)?Qr(t):Bt(t)&&!mt(t)&&!il(t)?String(t):t,Qr=(s,t="")=>{var e;return nn(s)?`Symbol(${(e=s.description)!=null?e:t})`:s};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Ke(s,t){const e=new Set(s.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const Bt={}.NODE_ENV!=="production"?Object.freeze({}):{},mn={}.NODE_ENV!=="production"?Object.freeze([]):[],ee=()=>{},Gh=()=>!1,In=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),_i=s=>s.startsWith("onUpdate:"),qt=Object.assign,Yr=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Yh=Object.prototype.hasOwnProperty,Dt=(s,t)=>Yh.call(s,t),xt=Array.isArray,Xs=s=>bi(s)==="[object Map]",il=s=>bi(s)==="[object Set]",wt=s=>typeof s=="function",se=s=>typeof s=="string",js=s=>typeof s=="symbol",Vt=s=>s!==null&&typeof s=="object",Br=s=>(Vt(s)||wt(s))&&wt(s.then)&&wt(s.catch),rl=Object.prototype.toString,bi=s=>rl.call(s),zr=s=>bi(s).slice(8,-1),ol=s=>bi(s)==="[object Object]",Xr=s=>se(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Mn=Ke(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bh=Ke("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),xi=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},zh=/-(\w)/g,Qe=xi(s=>s.replace(zh,(t,e)=>e?e.toUpperCase():"")),Xh=/\B([A-Z])/g,Ts=xi(s=>s.replace(Xh,"-$1").toLowerCase()),Hs=xi(s=>s.charAt(0).toUpperCase()+s.slice(1)),Us=xi(s=>s?`on${Hs(s)}`:""),Es=(s,t)=>!Object.is(s,t),Dn=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},al=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},jh=s=>{const t=parseFloat(s);return isNaN(t)?s:t};let ll;const jr=()=>ll||(ll=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function G(s){if(xt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],i=se(n)?qh(n):G(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(se(s)||Vt(s))return s}const Hh=/;(?![^(]*\))/g,Uh=/:([^]+)/,Wh=/\/\*[^]*?\*\//g;function qh(s){const t={};return s.replace(Wh,"").split(Hh).forEach(e=>{if(e){const n=e.split(Uh);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Jt(s){let t="";if(se(s))t=s;else if(xt(s))for(let e=0;e<s.length;e++){const n=Jt(s[e]);n&&(t+=n+" ")}else if(Vt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Zh=Ke("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function cl(s){return!!s||s===""}const St=s=>se(s)?s:s==null?"":xt(s)||Vt(s)&&(s.toString===rl||!wt(s.toString))?JSON.stringify(s,ul,2):String(s),ul=(s,t)=>t&&t.__v_isRef?ul(s,t.value):Xs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],r)=>(e[Hr(n,r)+" =>"]=i,e),{})}:il(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Hr(e))}:js(t)?Hr(t):Vt(t)&&!xt(t)&&!ol(t)?String(t):t,Hr=(s,t="")=>{var e;return js(s)?`Symbol(${(e=s.description)!=null?e:t})`:s};/**
6
6
  * @vue/reactivity v3.4.25
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function Fs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let es;class Fh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=es,!t&&es&&(this.index=(es.scopes||(es.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=es;try{return es=this,t()}finally{es=e}}else({}).NODE_ENV!=="production"&&Fs("cannot run an inactive effect scope.")}on(){es=this}off(){es=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Gh(s,t=es){t&&t.active&&t.effects.push(s)}function zh(){return es}let an;class Jr{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Gh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,xs();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(jh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ws()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Gs,e=an;try{return Gs=!0,an=this,this._runnings++,cl(this),this.fn()}finally{ul(this),this._runnings--,an=e,Gs=t}}stop(){var t;this.active&&(cl(this),ul(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function jh(s){return s.value}function cl(s){s._trackId++,s._depsLength=0}function ul(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)hl(s.deps[t],s);s.deps.length=s._depsLength}}function hl(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Gs=!0,to=0;const dl=[];function xs(){dl.push(Gs),Gs=!1}function ws(){const s=dl.pop();Gs=s===void 0?!0:s}function eo(){to++}function so(){for(to--;!to&&no.length;)no.shift()()}function fl(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&hl(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,te({effect:s},e)))}}const no=[];function pl(s,t,e){var n;eo();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,te({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&no.push(i.scheduler)))}so()}const ml=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},io=new WeakMap,ln=Symbol({}.NODE_ENV!=="production"?"iterate":""),ro=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function we(s,t,e){if(Gs&&an){let n=io.get(s);n||io.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=ml(()=>n.delete(e))),fl(an,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function hs(s,t,e,n,i,r){const o=io.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&mt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!nn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":mt(s)?Zr(e)&&a.push(o.get("length")):(a.push(o.get(ln)),sn(s)&&a.push(o.get(ro)));break;case"delete":mt(s)||(a.push(o.get(ln)),sn(s)&&a.push(o.get(ro)));break;case"set":sn(s)&&a.push(o.get(ln));break}eo();for(const l of a)l&&pl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);so()}const Bh=cs("__proto__,__v_isRef,__isVue"),gl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(nn)),yl=Yh();function Yh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Pt(this);for(let r=0,o=this.length;r<o;r++)we(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Pt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){xs(),eo();const n=Pt(this)[t].apply(this,e);return so(),ws(),n}}),s}function Xh(s){nn(s)||(s=String(s));const t=Pt(this);return we(t,"has",s),t.hasOwnProperty(s)}class vl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?Pl:Ol:r?Tl:kl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=mt(t);if(!i){if(o&&Mt(yl,e))return Reflect.get(yl,e,n);if(e==="hasOwnProperty")return Xh}const a=Reflect.get(t,e,n);return(nn(e)?gl.has(e):Bh(e))||(i||we(t,"get",e),r)?a:Se(a)?o&&Zr(e)?a:a.value:Bt(a)?i?Dl(a):Pe(a):a}}class _l extends vl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=cn(r);if(!un(n)&&!cn(n)&&(r=Pt(r),n=Pt(n)),!mt(t)&&Se(r)&&!Se(n))return l?!1:(r.value=n,!0)}const o=mt(t)&&Zr(e)?Number(e)<t.length:Mt(t,e),a=Reflect.set(t,e,n,i);return t===Pt(i)&&(o?Ls(n,r)&&hs(t,"set",e,n,r):hs(t,"add",e,n)),a}deleteProperty(t,e){const n=Mt(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&hs(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!nn(e)||!gl.has(e))&&we(t,"has",e),n}ownKeys(t){return we(t,"iterate",mt(t)?"length":ln),Reflect.ownKeys(t)}}class bl extends vl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Fs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Fs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Hh=new _l,Uh=new bl,Wh=new _l(!0),qh=new bl(!0),oo=s=>s,Ri=s=>Reflect.getPrototypeOf(s);function $i(s,t,e=!1,n=!1){s=s.__v_raw;const i=Pt(s),r=Pt(t);e||(Ls(t,r)&&we(i,"get",t),we(i,"get",r));const{has:o}=Ri(i),a=n?oo:e?lo:Xn;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Vi(s,t=!1){const e=this.__v_raw,n=Pt(e),i=Pt(s);return t||(Ls(s,i)&&we(n,"has",s),we(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Li(s,t=!1){return s=s.__v_raw,!t&&we(Pt(s),"iterate",ln),Reflect.get(s,"size",s)}function xl(s){s=Pt(s);const t=Pt(this);return Ri(t).has.call(t,s)||(t.add(s),hs(t,"add",s,s)),this}function wl(s,t){t=Pt(t);const e=Pt(this),{has:n,get:i}=Ri(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&El(e,n,s):(s=Pt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?Ls(t,o)&&hs(e,"set",s,t,o):hs(e,"add",s,t),this}function Sl(s){const t=Pt(this),{has:e,get:n}=Ri(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&El(t,e,s):(s=Pt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&hs(t,"delete",s,void 0,r),o}function Cl(){const s=Pt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?sn(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&hs(s,"clear",void 0,void 0,e),n}function Fi(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Pt(o),l=t?oo:s?lo:Xn;return!s&&we(a,"iterate",ln),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Gi(s,t,e){return function(...n){const i=this.__v_raw,r=Pt(i),o=sn(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?oo:t?lo:Xn;return!t&&we(r,"iterate",l?ro:ln),{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 zs(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Fs(`${rn(s)} operation ${e}failed: target is readonly.`,Pt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Zh(){const s={get(r){return $i(this,r)},get size(){return Li(this)},has:Vi,add:xl,set:wl,delete:Sl,clear:Cl,forEach:Fi(!1,!1)},t={get(r){return $i(this,r,!1,!0)},get size(){return Li(this)},has:Vi,add:xl,set:wl,delete:Sl,clear:Cl,forEach:Fi(!1,!0)},e={get(r){return $i(this,r,!0)},get size(){return Li(this,!0)},has(r){return Vi.call(this,r,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:Fi(!0,!1)},n={get(r){return $i(this,r,!0,!0)},get size(){return Li(this,!0)},has(r){return Vi.call(this,r,!0)},add:zs("add"),set:zs("set"),delete:zs("delete"),clear:zs("clear"),forEach:Fi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Gi(r,!1,!1),e[r]=Gi(r,!0,!1),t[r]=Gi(r,!1,!0),n[r]=Gi(r,!0,!0)}),[s,e,t,n]}const[Kh,Qh,Jh,td]=Zh();function zi(s,t){const e=t?s?td:Jh:s?Qh:Kh;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(Mt(e,i)&&i in n?e:n,i,r)}const ed={get:zi(!1,!1)},sd={get:zi(!1,!0)},nd={get:zi(!0,!1)},id={get:zi(!0,!0)};function El(s,t,e){const n=Pt(e);if(n!==e&&t.call(s,n)){const i=qr(s);Fs(`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 kl=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Pl=new WeakMap;function rd(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function od(s){return s.__v_skip||!Object.isExtensible(s)?0:rd(qr(s))}function Pe(s){return cn(s)?s:ji(s,!1,Hh,ed,kl)}function ad(s){return ji(s,!1,Wh,sd,Tl)}function Dl(s){return ji(s,!0,Uh,nd,Ol)}function Ss(s){return ji(s,!0,qh,id,Pl)}function ji(s,t,e,n,i){if(!Bt(s))return{}.NODE_ENV!=="production"&&Fs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=od(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function En(s){return cn(s)?En(s.__v_raw):!!(s&&s.__v_isReactive)}function cn(s){return!!(s&&s.__v_isReadonly)}function un(s){return!!(s&&s.__v_isShallow)}function ao(s){return s?!!s.__v_raw:!1}function Pt(s){const t=s&&s.__v_raw;return t?Pt(t):s}function ld(s){return Object.isExtensible(s)&&rl(s,"__v_skip",!0),s}const Xn=s=>Bt(s)?Pe(s):s,lo=s=>Bt(s)?Dl(s):s,cd="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 Il{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Jr(()=>t(this._value),()=>Bi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Pt(this);return(!t._cacheable||t.effect.dirty)&&Ls(t._value,t._value=t.effect.run())&&Bi(t,4),Nl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Fs(cd,`
9
+ **/function ks(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let je;class Kh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=je;try{return je=this,t()}finally{je=e}}else({}).NODE_ENV!=="production"&&ks("cannot run an inactive effect scope.")}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Qh(s,t=je){t&&t.active&&t.effects.push(s)}function Jh(){return je}let Ws;class Ur{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Qh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,as();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(td(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ls()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ps,e=Ws;try{return Ps=!0,Ws=this,this._runnings++,hl(this),this.fn()}finally{dl(this),this._runnings--,Ws=e,Ps=t}}stop(){var t;this.active&&(hl(this),dl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function td(s){return s.value}function hl(s){s._trackId++,s._depsLength=0}function dl(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)fl(s.deps[t],s);s.deps.length=s._depsLength}}function fl(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Ps=!0,Wr=0;const pl=[];function as(){pl.push(Ps),Ps=!1}function ls(){const s=pl.pop();Ps=s===void 0?!0:s}function qr(){Wr++}function Zr(){for(Wr--;!Wr&&Kr.length;)Kr.shift()()}function ml(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&fl(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,qt({effect:s},e)))}}const Kr=[];function gl(s,t,e){var n;qr();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,qt({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Kr.push(i.scheduler)))}Zr()}const yl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},Qr=new WeakMap,qs=Symbol({}.NODE_ENV!=="production"?"iterate":""),Jr=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function pe(s,t,e){if(Ps&&Ws){let n=Qr.get(s);n||Qr.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=yl(()=>n.delete(e))),ml(Ws,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function Je(s,t,e,n,i,r){const o=Qr.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&xt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!js(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":xt(s)?Xr(e)&&a.push(o.get("length")):(a.push(o.get(qs)),Xs(s)&&a.push(o.get(Jr)));break;case"delete":xt(s)||(a.push(o.get(qs)),Xs(s)&&a.push(o.get(Jr)));break;case"set":Xs(s)&&a.push(o.get(qs));break}qr();for(const l of a)l&&gl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);Zr()}const ed=Ke("__proto__,__v_isRef,__isVue"),vl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(js)),_l=sd();function sd(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Pt(this);for(let r=0,o=this.length;r<o;r++)pe(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Pt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){as(),qr();const n=Pt(this)[t].apply(this,e);return Zr(),ls(),n}}),s}function nd(s){js(s)||(s=String(s));const t=Pt(this);return pe(t,"has",s),t.hasOwnProperty(s)}class bl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?Ml:Il:r?Ol:Pl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=xt(t);if(!i){if(o&&Dt(_l,e))return Reflect.get(_l,e,n);if(e==="hasOwnProperty")return nd}const a=Reflect.get(t,e,n);return(js(e)?vl.has(e):ed(e))||(i||pe(t,"get",e),r)?a:me(a)?o&&Xr(e)?a:a.value:Vt(a)?i?Dl(a):Zt(a):a}}class xl extends bl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=Zs(r);if(!Ks(n)&&!Zs(n)&&(r=Pt(r),n=Pt(n)),!xt(t)&&me(r)&&!me(n))return l?!1:(r.value=n,!0)}const o=xt(t)&&Xr(e)?Number(e)<t.length:Dt(t,e),a=Reflect.set(t,e,n,i);return t===Pt(i)&&(o?Es(n,r)&&Je(t,"set",e,n,r):Je(t,"add",e,n)),a}deleteProperty(t,e){const n=Dt(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&Je(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!js(e)||!vl.has(e))&&pe(t,"has",e),n}ownKeys(t){return pe(t,"iterate",xt(t)?"length":qs),Reflect.ownKeys(t)}}class wl extends bl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&ks(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&ks(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const id=new xl,rd=new wl,od=new xl(!0),ad=new wl(!0),to=s=>s,wi=s=>Reflect.getPrototypeOf(s);function Ci(s,t,e=!1,n=!1){s=s.__v_raw;const i=Pt(s),r=Pt(t);e||(Es(t,r)&&pe(i,"get",t),pe(i,"get",r));const{has:o}=wi(i),a=n?to:e?so:Rn;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Si(s,t=!1){const e=this.__v_raw,n=Pt(e),i=Pt(s);return t||(Es(s,i)&&pe(n,"has",s),pe(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Ti(s,t=!1){return s=s.__v_raw,!t&&pe(Pt(s),"iterate",qs),Reflect.get(s,"size",s)}function Cl(s){s=Pt(s);const t=Pt(this);return wi(t).has.call(t,s)||(t.add(s),Je(t,"add",s,s)),this}function Sl(s,t){t=Pt(t);const e=Pt(this),{has:n,get:i}=wi(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&kl(e,n,s):(s=Pt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?Es(t,o)&&Je(e,"set",s,t,o):Je(e,"add",s,t),this}function Tl(s){const t=Pt(this),{has:e,get:n}=wi(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&kl(t,e,s):(s=Pt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&Je(t,"delete",s,void 0,r),o}function El(){const s=Pt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Xs(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&Je(s,"clear",void 0,void 0,e),n}function Ei(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Pt(o),l=t?to:s?so:Rn;return!s&&pe(a,"iterate",qs),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function ki(s,t,e){return function(...n){const i=this.__v_raw,r=Pt(i),o=Xs(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?to:t?so:Rn;return!t&&pe(r,"iterate",l?Jr:qs),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:a?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function Os(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";ks(`${Hs(s)} operation ${e}failed: target is readonly.`,Pt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function ld(){const s={get(r){return Ci(this,r)},get size(){return Ti(this)},has:Si,add:Cl,set:Sl,delete:Tl,clear:El,forEach:Ei(!1,!1)},t={get(r){return Ci(this,r,!1,!0)},get size(){return Ti(this)},has:Si,add:Cl,set:Sl,delete:Tl,clear:El,forEach:Ei(!1,!0)},e={get(r){return Ci(this,r,!0)},get size(){return Ti(this,!0)},has(r){return Si.call(this,r,!0)},add:Os("add"),set:Os("set"),delete:Os("delete"),clear:Os("clear"),forEach:Ei(!0,!1)},n={get(r){return Ci(this,r,!0,!0)},get size(){return Ti(this,!0)},has(r){return Si.call(this,r,!0)},add:Os("add"),set:Os("set"),delete:Os("delete"),clear:Os("clear"),forEach:Ei(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=ki(r,!1,!1),e[r]=ki(r,!0,!1),t[r]=ki(r,!1,!0),n[r]=ki(r,!0,!0)}),[s,e,t,n]}const[cd,ud,hd,dd]=ld();function Pi(s,t){const e=t?s?dd:hd:s?ud:cd;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(Dt(e,i)&&i in n?e:n,i,r)}const fd={get:Pi(!1,!1)},pd={get:Pi(!1,!0)},md={get:Pi(!0,!1)},gd={get:Pi(!0,!0)};function kl(s,t,e){const n=Pt(e);if(n!==e&&t.call(s,n)){const i=zr(s);ks(`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 Pl=new WeakMap,Ol=new WeakMap,Il=new WeakMap,Ml=new WeakMap;function yd(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vd(s){return s.__v_skip||!Object.isExtensible(s)?0:yd(zr(s))}function Zt(s){return Zs(s)?s:Oi(s,!1,id,fd,Pl)}function _d(s){return Oi(s,!1,od,pd,Ol)}function Dl(s){return Oi(s,!0,rd,md,Il)}function cs(s){return Oi(s,!0,ad,gd,Ml)}function Oi(s,t,e,n,i){if(!Vt(s))return{}.NODE_ENV!=="production"&&ks(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=vd(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function gn(s){return Zs(s)?gn(s.__v_raw):!!(s&&s.__v_isReactive)}function Zs(s){return!!(s&&s.__v_isReadonly)}function Ks(s){return!!(s&&s.__v_isShallow)}function eo(s){return s?!!s.__v_raw:!1}function Pt(s){const t=s&&s.__v_raw;return t?Pt(t):s}function bd(s){return Object.isExtensible(s)&&al(s,"__v_skip",!0),s}const Rn=s=>Vt(s)?Zt(s):s,so=s=>Vt(s)?Dl(s):s,xd="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 Rl{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ur(()=>t(this._value),()=>Ii(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Pt(this);return(!t._cacheable||t.effect.dirty)&&Es(t._value,t._value=t.effect.run())&&Ii(t,4),Nl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&ks(xd,`
10
10
 
11
- getter: `,this.getter),Bi(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ud(s,t,e=!1){let n,i;const r=St(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{Fs("Write operation failed: computed value is readonly")}:ae):(n=s.get,i=s.set);const o=new Il(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function Nl(s){var t;Gs&&an&&(s=Pt(s),fl(an,(t=s.dep)!=null?t:s.dep=ml(()=>s.dep=void 0,s instanceof Il?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Bi(s,t=4,e){s=Pt(s);const n=s.dep;n&&pl(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function Se(s){return!!(s&&s.__v_isRef===!0)}function V(s){return hd(s,!1)}function hd(s,t){return Se(s)?s:new dd(s,t)}class dd{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Pt(t),this._value=e?t:Xn(t)}get value(){return Nl(this),this._value}set value(t){const e=this.__v_isShallow||un(t)||cn(t);t=e?t:Pt(t),Ls(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Xn(t),Bi(this,4,t))}}function Ft(s){return Se(s)?s.value:s}const fd={get:(s,t,e)=>Ft(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return Se(i)&&!Se(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function Ml(s){return En(s)?s:new Proxy(s,fd)}/**
11
+ getter: `,this.getter),Ii(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function wd(s,t,e=!1){let n,i;const r=wt(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{ks("Write operation failed: computed value is readonly")}:ee):(n=s.get,i=s.set);const o=new Rl(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function Nl(s){var t;Ps&&Ws&&(s=Pt(s),ml(Ws,(t=s.dep)!=null?t:s.dep=yl(()=>s.dep=void 0,s instanceof Rl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Ii(s,t=4,e){s=Pt(s);const n=s.dep;n&&gl(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function me(s){return!!(s&&s.__v_isRef===!0)}function M(s){return Cd(s,!1)}function Cd(s,t){return me(s)?s:new Sd(s,t)}class Sd{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Pt(t),this._value=e?t:Rn(t)}get value(){return Nl(this),this._value}set value(t){const e=this.__v_isShallow||Ks(t)||Zs(t);t=e?t:Pt(t),Es(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Rn(t),Ii(this,4,t))}}function At(s){return me(s)?s.value:s}const Td={get:(s,t,e)=>At(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return me(i)&&!me(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function Al(s){return gn(s)?s:new Proxy(s,Td)}/**
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 hn=[];function Yi(s){hn.push(s)}function Xi(){hn.pop()}function st(s,...t){xs();const e=hn.length?hn[hn.length-1].component:null,n=e&&e.appContext.config.warnHandler,i=pd();if(n)Cs(n,e,11,[s+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),e&&e.proxy,i.map(({vnode:r})=>`at <${lr(e,r.type)}>`).join(`
15
+ **/const Qs=[];function Mi(s){Qs.push(s)}function Di(){Qs.pop()}function rt(s,...t){as();const e=Qs.length?Qs[Qs.length-1].component:null,n=e&&e.appContext.config.warnHandler,i=Ed();if(n)us(n,e,11,[s+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),e&&e.proxy,i.map(({vnode:r})=>`at <${Wi(e,r.type)}>`).join(`
16
16
  `),i]);else{const r=[`[Vue warn]: ${s}`,...t];i.length&&r.push(`
17
- `,...md(i)),console.warn(...r)}ws()}function pd(){let s=hn[hn.length-1];if(!s)return[];const t=[];for(;s;){const e=t[0];e&&e.vnode===s?e.recurseCount++:t.push({vnode:s,recurseCount:0});const n=s.component&&s.component.parent;s=n&&n.vnode}return t}function md(s){const t=[];return s.forEach((e,n)=>{t.push(...n===0?[]:[`
18
- `],...gd(e))}),t}function gd({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${lr(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...yd(s.props),r]:[i+r]}function yd(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Al(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Al(s,t,e){return le(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:Se(t)?(t=Al(s,Pt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):St(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Pt(t),e?t:[`${s}=`,t])}const co={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 Cs(s,t,e,n){try{return n?s(...n):s()}catch(i){Hn(i,t,e)}}function ss(s,t,e,n){if(St(s)){const i=Cs(s,t,e,n);return i&&Wr(i)&&i.catch(r=>{Hn(r,t,e)}),i}if(mt(s)){const i=[];for(let r=0;r<s.length;r++)i.push(ss(s[r],t,e,n));return i}else({}).NODE_ENV!=="production"&&st(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Hn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?co[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){xs(),Cs(l,null,10,[s,o,a]),ws();return}}vd(s,e,i,n)}function vd(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=co[t];if(e&&Yi(e),st(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Xi(),n)throw s;console.error(s)}else console.error(s)}let Un=!1,uo=!1;const Oe=[];let ds=0;const kn=[];let Es=null,js=0;const Rl=Promise.resolve();let ho=null;const _d=100;function $l(s){const t=ho||Rl;return s?t.then(this?s.bind(this):s):t}function bd(s){let t=ds+1,e=Oe.length;for(;t<e;){const n=t+e>>>1,i=Oe[n],r=Wn(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Hi(s){(!Oe.length||!Oe.includes(s,Un&&s.allowRecurse?ds+1:ds))&&(s.id==null?Oe.push(s):Oe.splice(bd(s.id),0,s),Vl())}function Vl(){!Un&&!uo&&(uo=!0,ho=Rl.then(zl))}function xd(s){const t=Oe.indexOf(s);t>ds&&Oe.splice(t,1)}function Ll(s){mt(s)?kn.push(...s):(!Es||!Es.includes(s,s.allowRecurse?js+1:js))&&kn.push(s),Vl()}function Fl(s,t,e=Un?ds+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Oe.length;e++){const n=Oe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&fo(t,n))continue;Oe.splice(e,1),e--,n()}}}function Gl(s){if(kn.length){const t=[...new Set(kn)].sort((e,n)=>Wn(e)-Wn(n));if(kn.length=0,Es){Es.push(...t);return}for(Es=t,{}.NODE_ENV!=="production"&&(s=s||new Map),js=0;js<Es.length;js++)({}).NODE_ENV!=="production"&&fo(s,Es[js])||Es[js]();Es=null,js=0}}const Wn=s=>s.id==null?1/0:s.id,wd=(s,t)=>{const e=Wn(s)-Wn(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function zl(s){uo=!1,Un=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Oe.sort(wd);const t={}.NODE_ENV!=="production"?e=>fo(s,e):ae;try{for(ds=0;ds<Oe.length;ds++){const e=Oe[ds];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;Cs(e,null,14)}}}finally{ds=0,Oe.length=0,Gl(s),Un=!1,ho=null,(Oe.length||kn.length)&&zl(s)}}function fo(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>_d){const n=t.ownerInstance,i=n&&Fo(n.type);return Hn(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else s.set(t,e+1)}}let dn=!1;const Tn=new Set;({}).NODE_ENV!=="production"&&(Kr().__VUE_HMR_RUNTIME__={createRecord:po(jl),rerender:po(Ed),reload:po(kd)});const fn=new Map;function Sd(s){const t=s.type.__hmrId;let e=fn.get(t);e||(jl(t,s.type),e=fn.get(t)),e.instances.add(s)}function Cd(s){fn.get(s.type.__hmrId).instances.delete(s)}function jl(s,t){return fn.has(s)?!1:(fn.set(s,{initialDef:qn(t),instances:new Set}),!0)}function qn(s){return Vc(s)?s.__vccOpts:s}function Ed(s,t){const e=fn.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,qn(n.type).render=t),n.renderCache=[],dn=!0,n.effect.dirty=!0,n.update(),dn=!1}))}function kd(s,t){const e=fn.get(s);if(!e)return;t=qn(t),Bl(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=qn(i.type);Tn.has(r)||(r!==e.initialDef&&Bl(r,t),Tn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Tn.add(r),i.ceReload(t.styles),Tn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Hi(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.")}Ll(()=>{for(const i of n)Tn.delete(qn(i.type))})}function Bl(s,t){te(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function po(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let fs,Zn=[],mo=!1;function Kn(s,...t){fs?fs.emit(s,...t):mo||Zn.push({event:s,args:t})}function Yl(s,t){var e,n;fs=s,fs?(fs.enabled=!0,Zn.forEach(({event:i,args:r})=>fs.emit(i,...r)),Zn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Yl(r,t)}),setTimeout(()=>{fs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,mo=!0,Zn=[])},3e3)):(mo=!0,Zn=[])}function Td(s,t){Kn("app:init",s,t,{Fragment:zt,Text:si,Comment:Fe,Static:nr})}function Od(s){Kn("app:unmount",s)}const Pd=go("component:added"),Xl=go("component:updated"),Dd=go("component:removed"),Id=s=>{fs&&typeof fs.cleanupBuffer=="function"&&!fs.cleanupBuffer(s)&&Dd(s)};/*! #__NO_SIDE_EFFECTS__ */function go(s){return t=>{Kn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Nd=Hl("perf:start"),Md=Hl("perf:end");function Hl(s){return(t,e,n)=>{Kn(s,t.appContext.app,t.uid,t,e,n)}}function Ad(s,t,e){Kn("component:emit",s.appContext.app,s,t,e)}function Rd(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Ht;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(on(t)in h))&&st(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${on(t)}" prop.`);else{const f=u[t];St(f)&&(f(...e)||st(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Ht;f&&(i=e.map(d=>le(d)?d.trim():d)),h&&(i=e.map(Mh))}if({}.NODE_ENV!=="production"&&Ad(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[on(u)]&&st(`Event "${u}" is emitted in component ${lr(s,s.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Vs(t)}" instead of "${t}".`)}let a,l=n[a=on(t)]||n[a=on(us(t))];!l&&r&&(l=n[a=on(Vs(t))]),l&&ss(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,ss(c,s,6,i)}}function Ul(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!St(s)){const l=c=>{const u=Ul(c,t,!0);u&&(a=!0,te(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Bt(s)&&n.set(s,null),null):(mt(r)?r.forEach(l=>o[l]=null):te(o,r),Bt(s)&&n.set(s,o),o)}function Ui(s,t){return!s||!jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(s,t[0].toLowerCase()+t.slice(1))||Mt(s,Vs(t))||Mt(s,t))}let ce=null,Wi=null;function qi(s){const t=ce;return ce=s,Wi=s&&s.type.__scopeId||null,t}function On(s){Wi=s}function Pn(){Wi=null}function he(s,t=ce,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&Ec(-1);const r=qi(t);let o;try{o=s(...i)}finally{qi(r),n._d&&Ec(1)}return{}.NODE_ENV!=="production"&&Xl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let yo=!1;function Zi(){yo=!0}function vo(s){const{type:t,vnode:e,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,_=qi(s);let E,D;({}).NODE_ENV!=="production"&&(yo=!1);try{if(e.shapeFlag&4){const tt=i||n,R={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(tt,{get(U,vt,bt){return st(`Property '${String(vt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(U,vt,bt)}}):tt;E=is(c.call(R,tt,u,{}.NODE_ENV!=="production"?Ss(h):h,d,f,m)),D=a}else{const tt=t;({}).NODE_ENV!=="production"&&a===h&&Zi(),E=is(tt.length>1?tt({}.NODE_ENV!=="production"?Ss(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Zi(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):tt({}.NODE_ENV!=="production"?Ss(h):h,null)),D=t.props?a:$d(a)}}catch(tt){ni.length=0,Hn(tt,s,1),E=pt(Fe)}let N=E,k;if({}.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&([N,k]=Wl(E)),D&&v!==!1){const tt=Object.keys(D),{shapeFlag:R}=N;if(tt.length){if(R&7)r&&tt.some(Ni)&&(D=Vd(D,r)),N=Xs(N,D);else if({}.NODE_ENV!=="production"&&!yo&&N.type!==Fe){const U=Object.keys(a),vt=[],bt=[];for(let Ct=0,Rt=U.length;Ct<Rt;Ct++){const $t=U[Ct];jn($t)?Ni($t)||vt.push($t[2].toLowerCase()+$t.slice(3)):bt.push($t)}bt.length&&st(`Extraneous non-props attributes (${bt.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),vt.length&&st(`Extraneous non-emits event listeners (${vt.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"&&!ql(N)&&st("Runtime directive used on component with non-element root node. The directives will not function as intended."),N=Xs(N),N.dirs=N.dirs?N.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!ql(N)&&st("Component inside <Transition> renders non-element root node that cannot be animated."),N.transition=e.transition),{}.NODE_ENV!=="production"&&k?k(N):E=N,qi(_),E}const Wl=s=>{const t=s.children,e=s.dynamicChildren,n=_o(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Wl(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[is(n),o]};function _o(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(Dn(i)){if(i.type!==Fe||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return _o(e.children)}}else return}return e}const $d=s=>{let t;for(const e in s)(e==="class"||e==="style"||jn(e))&&((t||(t={}))[e]=s[e]);return t},Vd=(s,t)=>{const e={};for(const n in s)(!Ni(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},ql=s=>s.shapeFlag&7||s.type===Fe;function Ld(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&dn||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Zl(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!Ui(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Zl(n,o,c):!0:!!o;return!1}function Zl(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Ui(e,r))return!0}return!1}function Fd({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const bo="components";function Gd(s,t){return jd(bo,s,!0,t)||s}const zd=Symbol.for("v-ndc");function jd(s,t,e=!0,n=!1){const i=ce||pe;if(i){const r=i.type;if(s===bo){const a=Fo(r,!1);if(a&&(a===t||a===us(t)||a===rn(us(t))))return r}const o=Kl(i[s]||r[s],t)||Kl(i.appContext[s],t);if(!o&&n)return r;if({}.NODE_ENV!=="production"&&e&&!o){const a=s===bo?`
19
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";st(`Failed to resolve ${s.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&st(`resolve${rn(s.slice(0,-1))} can only be used in render() or setup().`)}function Kl(s,t){return s&&(s[t]||s[us(t)]||s[rn(us(t))])}const Bd=s=>s.__isSuspense;function Yd(s,t){t&&t.pendingBranch?mt(s)?t.effects.push(...s):t.effects.push(s):Ll(s)}const Xd=Symbol.for("v-scx"),Hd=()=>{{const s=tr(Xd);return s||{}.NODE_ENV!=="production"&&st("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Ql(s,t){return xo(s,null,t)}const Ki={};function Dt(s,t,e){return{}.NODE_ENV!=="production"&&!St(t)&&st("`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."),xo(s,t,e)}function xo(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Ht){if(t&&r){const U=t;t=(...vt)=>{U(...vt),R()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&st('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&&st('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&st('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&st('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=U=>{st("Invalid watch source: ",U,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=pe,u=U=>n===!0?U:pn(U,n===!1?1:void 0);let h,f=!1,d=!1;if(Se(s)?(h=()=>s.value,f=un(s)):En(s)?(h=()=>u(s),f=!0):mt(s)?(d=!0,f=s.some(U=>En(U)||un(U)),h=()=>s.map(U=>{if(Se(U))return U.value;if(En(U))return u(U);if(St(U))return Cs(U,c,2);({}).NODE_ENV!=="production"&&l(U)})):St(s)?t?h=()=>Cs(s,c,2):h=()=>(m&&m(),ss(s,c,3,[v])):(h=ae,{}.NODE_ENV!=="production"&&l(s)),t&&n){const U=h;h=()=>pn(U())}let m,v=U=>{m=k.onStop=()=>{Cs(U,c,4),m=k.onStop=void 0}},_;if(or)if(v=ae,t?e&&ss(t,c,3,[h(),d?[]:void 0,v]):h(),i==="sync"){const U=Hd();_=U.__watcherHandles||(U.__watcherHandles=[])}else return ae;let E=d?new Array(s.length).fill(Ki):Ki;const D=()=>{if(!(!k.active||!k.dirty))if(t){const U=k.run();(n||f||(d?U.some((vt,bt)=>Ls(vt,E[bt])):Ls(U,E)))&&(m&&m(),ss(t,c,3,[U,E===Ki?void 0:d&&E[0]===Ki?[]:E,v]),E=U)}else k.run()};D.allowRecurse=!!t;let N;i==="sync"?N=D:i==="post"?N=()=>Le(D,c&&c.suspense):(D.pre=!0,c&&(D.id=c.uid),N=()=>Hi(D));const k=new Jr(h,ae,N),tt=zh(),R=()=>{k.stop(),tt&&Ur(tt.effects,k)};return{}.NODE_ENV!=="production"&&(k.onTrack=o,k.onTrigger=a),t?e?D():E=k.run():i==="post"?Le(k.run.bind(k),c&&c.suspense):k.run(),_&&_.push(R),R}function Ud(s,t,e){const n=this.proxy,i=le(s)?s.includes(".")?Jl(n,s):()=>n[s]:s.bind(n,n);let r;St(t)?r=t:(r=t.handler,e=t);const o=oi(this),a=xo(i,r.bind(n),e);return o(),a}function Jl(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function pn(s,t,e=0,n){if(!Bt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),Se(s))pn(s.value,t,e,n);else if(mt(s))for(let i=0;i<s.length;i++)pn(s[i],t,e,n);else if(sl(s)||sn(s))s.forEach(i=>{pn(i,t,e,n)});else if(il(s))for(const i in s)pn(s[i],t,e,n);return s}function tc(s){Dh(s)&&st("Do not use built-in directive ids as custom directive id: "+s)}function ks(s,t){if(ce===null)return{}.NODE_ENV!=="production"&&st("withDirectives can only be used inside render functions."),s;const e=ar(ce)||ce.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Ht]=t[i];r&&(St(r)&&(r={mounted:r,updated:r}),r.deep&&pn(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function mn(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(xs(),ss(l,e,8,[s.el,a,s,t]),ws())}}/*! #__NO_SIDE_EFFECTS__ */function ct(s,t){return St(s)?(()=>te({name:s.name},t,{setup:s}))():s}const Qn=s=>!!s.type.__asyncLoader,wo=s=>s.type.__isKeepAlive;function Wd(s,t){ec(s,"a",t)}function qd(s,t){ec(s,"da",t)}function ec(s,t,e=pe){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(Qi(t,n,e),e){let i=e.parent;for(;i&&i.parent;)wo(i.parent.vnode)&&Zd(n,t,e,i),i=i.parent}}function Zd(s,t,e,n){const i=Qi(t,s,n,!0);re(()=>{Ur(n[t],i)},e)}function Qi(s,t,e=pe,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;xs();const a=oi(e),l=ss(t,e,s,o);return a(),ws(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=on(co[s].replace(/ hook$/,""));st(`${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 Ts=s=>(t,e=pe)=>(!or||s==="sp")&&Qi(s,(...n)=>t(...n),e),Kd=Ts("bm"),Bs=Ts("m"),Qd=Ts("bu"),Jd=Ts("u"),tf=Ts("bum"),re=Ts("um"),ef=Ts("sp"),sf=Ts("rtg"),nf=Ts("rtc");function rf(s,t=pe){Qi("ec",s,t)}function Ce(s,t,e,n){let i;const r=e&&e[n];if(mt(s)||le(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&st(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Bt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function Gt(s,t,e={},n,i){if(ce.isCE||ce.parent&&Qn(ce.parent)&&ce.parent.isCE)return t!=="default"&&(e.name=t),pt("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(st("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),F();const o=r&&sc(r(e)),a=Ie(zt,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function sc(s){return s.some(t=>Dn(t)?!(t.type===Fe||t.type===zt&&!sc(t.children)):!0)?s:null}const So=s=>s?Nc(s)?ar(s)||s.proxy:So(s.parent):null,gn=te(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?Ss(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?Ss(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?Ss(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?Ss(s.refs):s.refs,$parent:s=>So(s.parent),$root:s=>So(s.root),$emit:s=>s.emit,$options:s=>To(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Hi(s.update)}),$nextTick:s=>s.n||(s.n=$l.bind(s.proxy)),$watch:s=>Ud.bind(s)}),Co=s=>s==="_"||s==="$",Eo=(s,t)=>s!==Ht&&!s.__isScriptSetup&&Mt(s,t),nc={get({_:s},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(Eo(n,t))return o[t]=1,n[t];if(i!==Ht&&Mt(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&Mt(c,t))return o[t]=3,r[t];if(e!==Ht&&Mt(e,t))return o[t]=4,e[t];ko&&(o[t]=0)}}const u=gn[t];let h,f;if(u)return t==="$attrs"?(we(s.attrs,"get",""),{}.NODE_ENV!=="production"&&Zi()):{}.NODE_ENV!=="production"&&t==="$slots"&&we(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Ht&&Mt(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,Mt(f,t))return f[t];({}).NODE_ENV!=="production"&&ce&&(!le(t)||t.indexOf("__v")!==0)&&(i!==Ht&&Co(t[0])&&Mt(i,t)?st(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ce&&st(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return Eo(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Mt(i,t)?(st(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Ht&&Mt(n,t)?(n[t]=e,!0):Mt(s.props,t)?({}.NODE_ENV!=="production"&&st(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&st(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Ht&&Mt(s,o)||Eo(t,o)||(a=r[0])&&Mt(a,o)||Mt(n,o)||Mt(gn,o)||Mt(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:Mt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(nc.ownKeys=s=>(st("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 of(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(gn).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>gn[e](s),set:ae})}),t}function af(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:ae})})}function lf(s){const{ctx:t,setupState:e}=s;Object.keys(Pt(e)).forEach(n=>{if(!e.__isScriptSetup){if(Co(n[0])){st(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:ae})}})}function cf(){return uf().slots}function uf(){const s=Dc();return{}.NODE_ENV!=="production"&&!s&&st("useContext() called without active instance."),s.setupContext||(s.setupContext=$c(s))}function ic(s){return mt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function hf(){const s=Object.create(null);return(t,e)=>{s[e]?st(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let ko=!0;function df(s){const t=To(s),e=s.proxy,n=s.ctx;ko=!1,t.beforeCreate&&rc(t.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:_,beforeDestroy:E,beforeUnmount:D,destroyed:N,unmounted:k,render:tt,renderTracked:R,renderTriggered:U,errorCaptured:vt,serverPrefetch:bt,expose:Ct,inheritAttrs:Rt,components:$t,directives:se,filters:ne}=t,ue={}.NODE_ENV!=="production"?hf():null;if({}.NODE_ENV!=="production"){const[xt]=s.propsOptions;if(xt)for(const wt in xt)ue("Props",wt)}if(c&&ff(c,n,ue),o)for(const xt in o){const wt=o[xt];St(wt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,xt,{value:wt.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[xt]=wt.bind(e),{}.NODE_ENV!=="production"&&ue("Methods",xt)):{}.NODE_ENV!=="production"&&st(`Method "${xt}" has type "${typeof wt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!St(i)&&st("The data option must be a function. Plain object usage is no longer supported.");const xt=i.call(e,e);if({}.NODE_ENV!=="production"&&Wr(xt)&&st("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Bt(xt))({}).NODE_ENV!=="production"&&st("data() should return an object.");else if(s.data=Pe(xt),{}.NODE_ENV!=="production")for(const wt in xt)ue("Data",wt),Co(wt[0])||Object.defineProperty(n,wt,{configurable:!0,enumerable:!0,get:()=>xt[wt],set:ae})}if(ko=!0,r)for(const xt in r){const wt=r[xt],it=St(wt)?wt.bind(e,e):St(wt.get)?wt.get.bind(e,e):ae;({}).NODE_ENV!=="production"&&it===ae&&st(`Computed property "${xt}" has no getter.`);const q=!St(wt)&&St(wt.set)?wt.set.bind(e):{}.NODE_ENV!=="production"?()=>{st(`Write operation failed: computed property "${xt}" is readonly.`)}:ae,Et=Zf({get:it,set:q});Object.defineProperty(n,xt,{enumerable:!0,configurable:!0,get:()=>Et.value,set:$=>Et.value=$}),{}.NODE_ENV!=="production"&&ue("Computed",xt)}if(a)for(const xt in a)oc(a[xt],n,e,xt);if(l){const xt=St(l)?l.call(e):l;Reflect.ownKeys(xt).forEach(wt=>{_f(wt,xt[wt])})}u&&rc(u,s,"c");function Yt(xt,wt){mt(wt)?wt.forEach(it=>xt(it.bind(e))):wt&&xt(wt.bind(e))}if(Yt(Kd,h),Yt(Bs,f),Yt(Qd,d),Yt(Jd,m),Yt(Wd,v),Yt(qd,_),Yt(rf,vt),Yt(nf,R),Yt(sf,U),Yt(tf,D),Yt(re,k),Yt(ef,bt),mt(Ct))if(Ct.length){const xt=s.exposed||(s.exposed={});Ct.forEach(wt=>{Object.defineProperty(xt,wt,{get:()=>e[wt],set:it=>e[wt]=it})})}else s.exposed||(s.exposed={});tt&&s.render===ae&&(s.render=tt),Rt!=null&&(s.inheritAttrs=Rt),$t&&(s.components=$t),se&&(s.directives=se)}function ff(s,t,e=ae){mt(s)&&(s=Oo(s));for(const n in s){const i=s[n];let r;Bt(i)?"default"in i?r=tr(i.from||n,i.default,!0):r=tr(i.from||n):r=tr(i),Se(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function rc(s,t,e){ss(mt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function oc(s,t,e,n){const i=n.includes(".")?Jl(e,n):()=>e[n];if(le(s)){const r=t[s];St(r)?Dt(i,r):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s}"`,r)}else if(St(s))Dt(i,s.bind(e));else if(Bt(s))if(mt(s))s.forEach(r=>oc(r,t,e,n));else{const r=St(s.handler)?s.handler.bind(e):t[s.handler];St(r)?Dt(i,r,s):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&st(`Invalid watch option: "${n}"`,s)}function To(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>Ji(l,c,o,!0)),Ji(l,t,o)),Bt(t)&&r.set(t,l),l}function Ji(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&Ji(s,r,e,!0),i&&i.forEach(o=>Ji(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&st('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=pf[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const pf={data:ac,props:lc,emits:lc,methods:Jn,computed:Jn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:Jn,directives:Jn,watch:gf,provide:ac,inject:mf};function ac(s,t){return t?s?function(){return te(St(s)?s.call(this,this):s,St(t)?t.call(this,this):t)}:t:s}function mf(s,t){return Jn(Oo(s),Oo(t))}function Oo(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function De(s,t){return s?[...new Set([].concat(s,t))]:t}function Jn(s,t){return s?te(Object.create(null),s,t):t}function lc(s,t){return s?mt(s)&&mt(t)?[...new Set([...s,...t])]:te(Object.create(null),ic(s),ic(t??{})):t}function gf(s,t){if(!s)return t;if(!t)return s;const e=te(Object.create(null),s);for(const n in t)e[n]=De(s[n],t[n]);return e}function cc(){return{app:null,config:{isNativeTag:Oh,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 yf=0;function vf(s,t){return function(n,i=null){St(n)||(n=te({},n)),i!=null&&!Bt(i)&&({}.NODE_ENV!=="production"&&st("root props passed to app.mount() must be an object."),i=null);const r=cc(),o=new WeakSet;let a=!1;const l=r.app={_uid:yf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Lc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&st("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&st("Plugin has already been applied to target app."):c&&St(c.install)?(o.add(c),c.install(l,...u)):St(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&st('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"&&st("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Vo(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&st(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&tc(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&st(`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"&&st("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__&&st("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=pt(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Xs(f),c,h)}),u&&t?t(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,Td(l,Lc)),ar(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Od(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&st("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&st(`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=ti;ti=l;try{return c()}finally{ti=u}}};return l}}let ti=null;function _f(s,t){if(!pe)({}).NODE_ENV!=="production"&&st("provide() can only be used inside setup().");else{let e=pe.provides;const n=pe.parent&&pe.parent.provides;n===e&&(e=pe.provides=Object.create(n)),e[s]=t}}function tr(s,t,e=!1){const n=pe||ce;if(n||ti){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:ti._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&St(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&st(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&st("inject() can only be used inside setup() or functional components.")}const uc={},hc=()=>Object.create(uc),dc=s=>Object.getPrototypeOf(s)===uc;function bf(s,t,e,n=!1){const i={},r=hc();s.propsDefaults=Object.create(null),fc(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&vc(t||{},i,s),e?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 wf(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Pt(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(Ui(s.emitsOptions,f))continue;const d=t[f];if(l)if(Mt(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=us(f);i[m]=Po(l,a,m,d,s,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{fc(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!Mt(t,h)&&((u=Vs(h))===h||!Mt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=Po(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!Mt(t,h))&&(delete r[h],c=!0)}c&&hs(s.attrs,"set",""),{}.NODE_ENV!=="production"&&vc(t||{},i,s)}function fc(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Bn(l))continue;const c=t[l];let u;i&&Mt(i,u=us(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Ui(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Pt(e),c=a||Ht;for(let u=0;u<r.length;u++){const h=r[u];e[h]=Po(i,l,h,c[h],s,!Mt(c,h))}}return o}function Po(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=Mt(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&St(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=oi(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Vs(e))&&(n=!0))}return n}function pc(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!St(s)){const u=h=>{l=!0;const[f,d]=pc(h,t,!0);te(o,f),d&&a.push(...d)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Bt(s)&&n.set(s,Cn),Cn;if(mt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!le(r[u])&&st("props must be strings when using array syntax.",r[u]);const h=us(r[u]);mc(h)&&(o[h]=Ht)}else if(r){({}).NODE_ENV!=="production"&&!Bt(r)&&st("invalid props options",r);for(const u in r){const h=us(u);if(mc(h)){const f=r[u],d=o[h]=mt(f)||St(f)?{type:f}:te({},f);if(d){const m=yc(Boolean,d.type),v=yc(String,d.type);d[0]=m>-1,d[1]=v<0||m<v,(m>-1||Mt(d,"default"))&&a.push(h)}}}}const c=[o,a];return Bt(s)&&n.set(s,c),c}function mc(s){return s[0]!=="$"&&!Bn(s)?!0:({}.NODE_ENV!=="production"&&st(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Do(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function gc(s,t){return Do(s)===Do(t)}function yc(s,t){return mt(t)?t.findIndex(e=>gc(e,s)):St(t)&&gc(t,s)?0:-1}function vc(s,t,e){const n=Pt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Sf(r,n[r],o,{}.NODE_ENV!=="production"?Ss(n):n,!Mt(s,r)&&!Mt(s,Vs(r)))}}function Sf(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){st('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=mt(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=Ef(t,u[f]);h.push(m||""),c=d}if(!c){st(kf(s,t,h));return}}a&&!a(t,n)&&st('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Cf=cs("String,Number,Boolean,Function,Symbol,BigInt");function Ef(s,t){let e;const n=Do(t);if(Cf(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Bt(s):n==="Array"?e=mt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function kf(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(rn).join(" | ")}`;const i=e[0],r=qr(t),o=_c(t,i),a=_c(t,r);return e.length===1&&bc(i)&&!Tf(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,bc(r)&&(n+=`with value ${a}.`),n}function _c(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function bc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Tf(...s){return s.some(t=>t.toLowerCase()==="boolean")}const xc=s=>s[0]==="_"||s==="$stable",Io=s=>mt(s)?s.map(is):[is(s)],Of=(s,t,e)=>{if(t._n)return t;const n=he((...i)=>({}.NODE_ENV!=="production"&&pe&&(!e||e.root===pe.root)&&st(`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.`),Io(t(...i))),e);return n._c=!1,n},wc=(s,t,e)=>{const n=s._ctx;for(const i in s){if(xc(i))continue;const r=s[i];if(St(r))t[i]=Of(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&st(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Io(r);t[i]=()=>o}}},Sc=(s,t)=>{({}).NODE_ENV!=="production"&&!wo(s.vnode)&&st("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=Io(t);s.slots.default=()=>e},Pf=(s,t)=>{const e=s.slots=hc();if(s.vnode.shapeFlag&32){const n=t._;n?(te(e,t),rl(e,"_",n)):wc(t,e)}else t&&Sc(s,t)},Df=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Ht;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&dn?(te(i,t),hs(s,"set","$slots")):e&&a===1?r=!1:(te(i,t),!e&&a===1&&delete i._):(r=!t.$stable,wc(t,i)),o=t}else t&&(Sc(s,t),o={default:1});if(r)for(const a in i)!xc(a)&&o[a]==null&&delete i[a]};function No(s,t,e,n,i=!1){if(mt(s)){s.forEach((f,d)=>No(f,t&&(mt(t)?t[d]:t),e,n,i));return}if(Qn(n)&&!i)return;const r=n.shapeFlag&4?ar(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){st("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=a.refs===Ht?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(le(c)?(u[c]=null,Mt(h,c)&&(h[c]=null)):Se(c)&&(c.value=null)),St(l))Cs(l,a,12,[o,u]);else{const f=le(l),d=Se(l);if(f||d){const m=()=>{if(s.f){const v=f?Mt(h,l)?h[l]:u[l]:l.value;i?mt(v)&&Ur(v,r):mt(v)?v.includes(r)||v.push(r):f?(u[l]=[r],Mt(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,Mt(h,l)&&(h[l]=o)):d?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Le(m,e)):m()}else({}).NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)}}let ei,Ys;function Os(s,t){s.appContext.config.performance&&er()&&Ys.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Nd(s,t,er()?Ys.now():Date.now())}function Ps(s,t){if(s.appContext.config.performance&&er()){const e=`vue-${t}-${s.uid}`,n=e+":end";Ys.mark(n),Ys.measure(`<${lr(s,s.type)}> ${t}`,e,n),Ys.clearMarks(e),Ys.clearMarks(n)}({}).NODE_ENV!=="production"&&Md(s,t,er()?Ys.now():Date.now())}function er(){return ei!==void 0||(typeof window<"u"&&window.performance?(ei=!0,Ys=window.performance):ei=!1),ei}function If(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
17
+ `,...kd(i)),console.warn(...r)}ls()}function Ed(){let s=Qs[Qs.length-1];if(!s)return[];const t=[];for(;s;){const e=t[0];e&&e.vnode===s?e.recurseCount++:t.push({vnode:s,recurseCount:0});const n=s.component&&s.component.parent;s=n&&n.vnode}return t}function kd(s){const t=[];return s.forEach((e,n)=>{t.push(...n===0?[]:[`
18
+ `],...Pd(e))}),t}function Pd({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${Wi(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...Od(s.props),r]:[i+r]}function Od(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Ll(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Ll(s,t,e){return se(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:me(t)?(t=Ll(s,Pt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):wt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Pt(t),e?t:[`${s}=`,t])}const no={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 us(s,t,e,n){try{return n?s(...n):s()}catch(i){Nn(i,t,e)}}function He(s,t,e,n){if(wt(s)){const i=us(s,t,e,n);return i&&Br(i)&&i.catch(r=>{Nn(r,t,e)}),i}if(xt(s)){const i=[];for(let r=0;r<s.length;r++)i.push(He(s[r],t,e,n));return i}else({}).NODE_ENV!=="production"&&rt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Nn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?no[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){as(),us(l,null,10,[s,o,a]),ls();return}}Id(s,e,i,n)}function Id(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=no[t];if(e&&Mi(e),rt(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Di(),n)throw s;console.error(s)}else console.error(s)}let An=!1,io=!1;const xe=[];let ts=0;const yn=[];let hs=null,Is=0;const Fl=Promise.resolve();let ro=null;const Md=100;function Dd(s){const t=ro||Fl;return s?t.then(this?s.bind(this):s):t}function Rd(s){let t=ts+1,e=xe.length;for(;t<e;){const n=t+e>>>1,i=xe[n],r=Ln(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Ri(s){(!xe.length||!xe.includes(s,An&&s.allowRecurse?ts+1:ts))&&(s.id==null?xe.push(s):xe.splice(Rd(s.id),0,s),$l())}function $l(){!An&&!io&&(io=!0,ro=Fl.then(Bl))}function Nd(s){const t=xe.indexOf(s);t>ts&&xe.splice(t,1)}function Vl(s){xt(s)?yn.push(...s):(!hs||!hs.includes(s,s.allowRecurse?Is+1:Is))&&yn.push(s),$l()}function Gl(s,t,e=An?ts+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<xe.length;e++){const n=xe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&oo(t,n))continue;xe.splice(e,1),e--,n()}}}function Yl(s){if(yn.length){const t=[...new Set(yn)].sort((e,n)=>Ln(e)-Ln(n));if(yn.length=0,hs){hs.push(...t);return}for(hs=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Is=0;Is<hs.length;Is++)({}).NODE_ENV!=="production"&&oo(s,hs[Is])||hs[Is]();hs=null,Is=0}}const Ln=s=>s.id==null?1/0:s.id,Ad=(s,t)=>{const e=Ln(s)-Ln(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function Bl(s){io=!1,An=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(Ad);const t={}.NODE_ENV!=="production"?e=>oo(s,e):ee;try{for(ts=0;ts<xe.length;ts++){const e=xe[ts];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;us(e,null,14)}}}finally{ts=0,xe.length=0,Yl(s),An=!1,ro=null,(xe.length||yn.length)&&Bl(s)}}function oo(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>Md){const n=t.ownerInstance,i=n&&Ro(n.type);return Nn(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else s.set(t,e+1)}}let Js=!1;const vn=new Set;({}).NODE_ENV!=="production"&&(jr().__VUE_HMR_RUNTIME__={createRecord:ao(zl),rerender:ao($d),reload:ao(Vd)});const tn=new Map;function Ld(s){const t=s.type.__hmrId;let e=tn.get(t);e||(zl(t,s.type),e=tn.get(t)),e.instances.add(s)}function Fd(s){tn.get(s.type.__hmrId).instances.delete(s)}function zl(s,t){return tn.has(s)?!1:(tn.set(s,{initialDef:Fn(t),instances:new Set}),!0)}function Fn(s){return $c(s)?s.__vccOpts:s}function $d(s,t){const e=tn.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Fn(n.type).render=t),n.renderCache=[],Js=!0,n.effect.dirty=!0,n.update(),Js=!1}))}function Vd(s,t){const e=tn.get(s);if(!e)return;t=Fn(t),Xl(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=Fn(i.type);vn.has(r)||(r!==e.initialDef&&Xl(r,t),vn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(vn.add(r),i.ceReload(t.styles),vn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ri(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)vn.delete(Fn(i.type))})}function Xl(s,t){qt(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function ao(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let es,$n=[],lo=!1;function Vn(s,...t){es?es.emit(s,...t):lo||$n.push({event:s,args:t})}function jl(s,t){var e,n;es=s,es?(es.enabled=!0,$n.forEach(({event:i,args:r})=>es.emit(i,...r)),$n=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{jl(r,t)}),setTimeout(()=>{es||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,lo=!0,$n=[])},3e3)):(lo=!0,$n=[])}function Gd(s,t){Vn("app:init",s,t,{Fragment:Lt,Text:Hn,Comment:Me,Static:Un})}function Yd(s){Vn("app:unmount",s)}const Bd=co("component:added"),Hl=co("component:updated"),zd=co("component:removed"),Xd=s=>{es&&typeof es.cleanupBuffer=="function"&&!es.cleanupBuffer(s)&&zd(s)};/*! #__NO_SIDE_EFFECTS__ */function co(s){return t=>{Vn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const jd=Ul("perf:start"),Hd=Ul("perf:end");function Ul(s){return(t,e,n)=>{Vn(s,t.appContext.app,t.uid,t,e,n)}}function Ud(s,t,e){Vn("component:emit",s.appContext.app,s,t,e)}function Wd(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Bt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(Us(t)in h))&&rt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Us(t)}" prop.`);else{const d=u[t];wt(d)&&(d(...e)||rt(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:d}=n[u]||Bt;d&&(i=e.map(m=>se(m)?m.trim():m)),h&&(i=e.map(jh))}if({}.NODE_ENV!=="production"&&Ud(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Us(u)]&&rt(`Event "${u}" is emitted in component ${Wi(s,s.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Ts(t)}" instead of "${t}".`)}let a,l=n[a=Us(t)]||n[a=Us(Qe(t))];!l&&r&&(l=n[a=Us(Ts(t))]),l&&He(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,He(c,s,6,i)}}function Wl(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!wt(s)){const l=c=>{const u=Wl(c,t,!0);u&&(a=!0,qt(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Vt(s)&&n.set(s,null),null):(xt(r)?r.forEach(l=>o[l]=null):qt(o,r),Vt(s)&&n.set(s,o),o)}function Ni(s,t){return!s||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),Dt(s,t[0].toLowerCase()+t.slice(1))||Dt(s,Ts(t))||Dt(s,t))}let ne=null,Ai=null;function Li(s){const t=ne;return ne=s,Ai=s&&s.type.__scopeId||null,t}function Gn(s){Ai=s}function Yn(){Ai=null}function Ot(s,t=ne,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&Ec(-1);const r=Li(t);let o;try{o=s(...i)}finally{Li(r),n._d&&Ec(1)}return{}.NODE_ENV!=="production"&&Hl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let uo=!1;function Fi(){uo=!0}function ho(s){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:d,setupState:m,ctx:f,inheritAttrs:v}=s,b=Li(s);let S,F;({}).NODE_ENV!=="production"&&(uo=!1);try{if(e.shapeFlag&4){const K=i||n,st={}.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(K,{get(J,gt,x){return rt(`Property '${String(gt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(J,gt,x)}}):K;S=We(c.call(st,K,u,{}.NODE_ENV!=="production"?cs(h):h,m,d,f)),F=a}else{const K=t;({}).NODE_ENV!=="production"&&a===h&&Fi(),S=We(K.length>1?K({}.NODE_ENV!=="production"?cs(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Fi(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):K({}.NODE_ENV!=="production"?cs(h):h,null)),F=t.props?a:qd(a)}}catch(K){Wn.length=0,Nn(K,s,1),S=mt(Me)}let $=S,O;if({}.NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&([$,O]=ql(S)),F&&v!==!1){const K=Object.keys(F),{shapeFlag:st}=$;if(K.length){if(st&7)r&&K.some(_i)&&(F=Zd(F,r)),$=Ds($,F);else if({}.NODE_ENV!=="production"&&!uo&&$.type!==Me){const J=Object.keys(a),gt=[],x=[];for(let k=0,P=J.length;k<P;k++){const E=J[k];In(E)?_i(E)||gt.push(E[2].toLowerCase()+E.slice(3)):x.push(E)}x.length&&rt(`Extraneous non-props attributes (${x.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),gt.length&&rt(`Extraneous non-emits event listeners (${gt.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"&&!Zl($)&&rt("Runtime directive used on component with non-element root node. The directives will not function as intended."),$=Ds($),$.dirs=$.dirs?$.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Zl($)&&rt("Component inside <Transition> renders non-element root node that cannot be animated."),$.transition=e.transition),{}.NODE_ENV!=="production"&&O?O($):S=$,Li(b),S}const ql=s=>{const t=s.children,e=s.dynamicChildren,n=fo(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return ql(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[We(n),o]};function fo(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(_n(i)){if(i.type!==Me||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return fo(e.children)}}else return}return e}const qd=s=>{let t;for(const e in s)(e==="class"||e==="style"||In(e))&&((t||(t={}))[e]=s[e]);return t},Zd=(s,t)=>{const e={};for(const n in s)(!_i(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Zl=s=>s.shapeFlag&7||s.type===Me;function Kd(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&Js||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Kl(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(o[d]!==n[d]&&!Ni(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Kl(n,o,c):!0:!!o;return!1}function Kl(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Ni(e,r))return!0}return!1}function Qd({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const po="components";function Jd(s,t){return ef(po,s,!0,t)||s}const tf=Symbol.for("v-ndc");function ef(s,t,e=!0,n=!1){const i=ne||le;if(i){const r=i.type;if(s===po){const a=Ro(r,!1);if(a&&(a===t||a===Qe(t)||a===Hs(Qe(t))))return r}const o=Ql(i[s]||r[s],t)||Ql(i.appContext[s],t);if(!o&&n)return r;if({}.NODE_ENV!=="production"&&e&&!o){const a=s===po?`
19
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";rt(`Failed to resolve ${s.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&rt(`resolve${Hs(s.slice(0,-1))} can only be used in render() or setup().`)}function Ql(s,t){return s&&(s[t]||s[Qe(t)]||s[Hs(Qe(t))])}const sf=s=>s.__isSuspense;function nf(s,t){t&&t.pendingBranch?xt(s)?t.effects.push(...s):t.effects.push(s):Vl(s)}const rf=Symbol.for("v-scx"),of=()=>{{const s=Yi(rf);return s||{}.NODE_ENV!=="production"&&rt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Jl(s,t){return mo(s,null,t)}const $i={};function Et(s,t,e){return{}.NODE_ENV!=="production"&&!wt(t)&&rt("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),mo(s,t,e)}function mo(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Bt){if(t&&r){const J=t;t=(...gt)=>{J(...gt),st()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&rt('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!t&&(e!==void 0&&rt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&rt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&rt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=J=>{rt("Invalid watch source: ",J,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=le,u=J=>n===!0?J:en(J,n===!1?1:void 0);let h,d=!1,m=!1;if(me(s)?(h=()=>s.value,d=Ks(s)):gn(s)?(h=()=>u(s),d=!0):xt(s)?(m=!0,d=s.some(J=>gn(J)||Ks(J)),h=()=>s.map(J=>{if(me(J))return J.value;if(gn(J))return u(J);if(wt(J))return us(J,c,2);({}).NODE_ENV!=="production"&&l(J)})):wt(s)?t?h=()=>us(s,c,2):h=()=>(f&&f(),He(s,c,3,[v])):(h=ee,{}.NODE_ENV!=="production"&&l(s)),t&&n){const J=h;h=()=>en(J())}let f,v=J=>{f=O.onStop=()=>{us(J,c,4),f=O.onStop=void 0}},b;if(Hi)if(v=ee,t?e&&He(t,c,3,[h(),m?[]:void 0,v]):h(),i==="sync"){const J=of();b=J.__watcherHandles||(J.__watcherHandles=[])}else return ee;let S=m?new Array(s.length).fill($i):$i;const F=()=>{if(!(!O.active||!O.dirty))if(t){const J=O.run();(n||d||(m?J.some((gt,x)=>Es(gt,S[x])):Es(J,S)))&&(f&&f(),He(t,c,3,[J,S===$i?void 0:m&&S[0]===$i?[]:S,v]),S=J)}else O.run()};F.allowRecurse=!!t;let $;i==="sync"?$=F:i==="post"?$=()=>Ie(F,c&&c.suspense):(F.pre=!0,c&&(F.id=c.uid),$=()=>Ri(F));const O=new Ur(h,ee,$),K=Jh(),st=()=>{O.stop(),K&&Yr(K.effects,O)};return{}.NODE_ENV!=="production"&&(O.onTrack=o,O.onTrigger=a),t?e?F():S=O.run():i==="post"?Ie(O.run.bind(O),c&&c.suspense):O.run(),b&&b.push(st),st}function af(s,t,e){const n=this.proxy,i=se(s)?s.includes(".")?tc(n,s):()=>n[s]:s.bind(n,n);let r;wt(t)?r=t:(r=t.handler,e=t);const o=Kn(this),a=mo(i,r.bind(n),e);return o(),a}function tc(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function en(s,t,e=0,n){if(!Vt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),me(s))en(s.value,t,e,n);else if(xt(s))for(let i=0;i<s.length;i++)en(s[i],t,e,n);else if(il(s)||Xs(s))s.forEach(i=>{en(i,t,e,n)});else if(ol(s))for(const i in s)en(s[i],t,e,n);return s}function ec(s){Bh(s)&&rt("Do not use built-in directive ids as custom directive id: "+s)}function sn(s,t){if(ne===null)return{}.NODE_ENV!=="production"&&rt("withDirectives can only be used inside render functions."),s;const e=Ui(ne)||ne.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Bt]=t[i];r&&(wt(r)&&(r={mounted:r,updated:r}),r.deep&&en(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function nn(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(as(),He(l,e,8,[s.el,a,s,t]),ls())}}/*! #__NO_SIDE_EFFECTS__ */function ct(s,t){return wt(s)?(()=>qt({name:s.name},t,{setup:s}))():s}const Bn=s=>!!s.type.__asyncLoader,go=s=>s.type.__isKeepAlive;function lf(s,t){sc(s,"a",t)}function cf(s,t){sc(s,"da",t)}function sc(s,t,e=le){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(Vi(t,n,e),e){let i=e.parent;for(;i&&i.parent;)go(i.parent.vnode)&&uf(n,t,e,i),i=i.parent}}function uf(s,t,e,n){const i=Vi(t,s,n,!0);ue(()=>{Yr(n[t],i)},e)}function Vi(s,t,e=le,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;as();const a=Kn(e),l=He(t,e,s,o);return a(),ls(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=Us(no[s].replace(/ hook$/,""));rt(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const ds=s=>(t,e=le)=>(!Hi||s==="sp")&&Vi(s,(...n)=>t(...n),e),hf=ds("bm"),rn=ds("m"),df=ds("bu"),ff=ds("u"),pf=ds("bum"),ue=ds("um"),mf=ds("sp"),gf=ds("rtg"),yf=ds("rtc");function vf(s,t=le){Vi("ec",s,t)}function ge(s,t,e,n){let i;const r=e&&e[n];if(xt(s)||se(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&rt(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Vt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function Tt(s,t,e={},n,i){if(ne.isCE||ne.parent&&Bn(ne.parent)&&ne.parent.isCE)return t!=="default"&&(e.name=t),mt("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(rt("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),N();const o=r&&nc(r(e)),a=Gt(Lt,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function nc(s){return s.some(t=>_n(t)?!(t.type===Me||t.type===Lt&&!nc(t.children)):!0)?s:null}const yo=s=>s?Rc(s)?Ui(s)||s.proxy:yo(s.parent):null,on=qt(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?cs(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?cs(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?cs(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?cs(s.refs):s.refs,$parent:s=>yo(s.parent),$root:s=>yo(s.root),$emit:s=>s.emit,$options:s=>xo(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ri(s.update)}),$nextTick:s=>s.n||(s.n=Dd.bind(s.proxy)),$watch:s=>af.bind(s)}),vo=s=>s==="_"||s==="$",_o=(s,t)=>s!==Bt&&!s.__isScriptSetup&&Dt(s,t),ic={get({_:s},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(_o(n,t))return o[t]=1,n[t];if(i!==Bt&&Dt(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&Dt(c,t))return o[t]=3,r[t];if(e!==Bt&&Dt(e,t))return o[t]=4,e[t];bo&&(o[t]=0)}}const u=on[t];let h,d;if(u)return t==="$attrs"?(pe(s.attrs,"get",""),{}.NODE_ENV!=="production"&&Fi()):{}.NODE_ENV!=="production"&&t==="$slots"&&pe(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Bt&&Dt(e,t))return o[t]=4,e[t];if(d=l.config.globalProperties,Dt(d,t))return d[t];({}).NODE_ENV!=="production"&&ne&&(!se(t)||t.indexOf("__v")!==0)&&(i!==Bt&&vo(t[0])&&Dt(i,t)?rt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ne&&rt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return _o(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Dt(i,t)?(rt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Bt&&Dt(n,t)?(n[t]=e,!0):Dt(s.props,t)?({}.NODE_ENV!=="production"&&rt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&rt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Bt&&Dt(s,o)||_o(t,o)||(a=r[0])&&Dt(a,o)||Dt(n,o)||Dt(on,o)||Dt(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:Dt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(ic.ownKeys=s=>(rt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(s)));function _f(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(on).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>on[e](s),set:ee})}),t}function bf(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:ee})})}function xf(s){const{ctx:t,setupState:e}=s;Object.keys(Pt(e)).forEach(n=>{if(!e.__isScriptSetup){if(vo(n[0])){rt(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:ee})}})}function wf(){return Cf().slots}function Cf(){const s=Mc();return{}.NODE_ENV!=="production"&&!s&&rt("useContext() called without active instance."),s.setupContext||(s.setupContext=Fc(s))}function rc(s){return xt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Sf(){const s=Object.create(null);return(t,e)=>{s[e]?rt(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let bo=!0;function Tf(s){const t=xo(s),e=s.proxy,n=s.ctx;bo=!1,t.beforeCreate&&oc(t.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:m,updated:f,activated:v,deactivated:b,beforeDestroy:S,beforeUnmount:F,destroyed:$,unmounted:O,render:K,renderTracked:st,renderTriggered:J,errorCaptured:gt,serverPrefetch:x,expose:k,inheritAttrs:P,components:E,directives:D,filters:Y}=t,nt={}.NODE_ENV!=="production"?Sf():null;if({}.NODE_ENV!=="production"){const[X]=s.propsOptions;if(X)for(const it in X)nt("Props",it)}if(c&&Ef(c,n,nt),o)for(const X in o){const it=o[X];wt(it)?({}.NODE_ENV!=="production"?Object.defineProperty(n,X,{value:it.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[X]=it.bind(e),{}.NODE_ENV!=="production"&&nt("Methods",X)):{}.NODE_ENV!=="production"&&rt(`Method "${X}" has type "${typeof it}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!wt(i)&&rt("The data option must be a function. Plain object usage is no longer supported.");const X=i.call(e,e);if({}.NODE_ENV!=="production"&&Br(X)&&rt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Vt(X))({}).NODE_ENV!=="production"&&rt("data() should return an object.");else if(s.data=Zt(X),{}.NODE_ENV!=="production")for(const it in X)nt("Data",it),vo(it[0])||Object.defineProperty(n,it,{configurable:!0,enumerable:!0,get:()=>X[it],set:ee})}if(bo=!0,r)for(const X in r){const it=r[X],B=wt(it)?it.bind(e,e):wt(it.get)?it.get.bind(e,e):ee;({}).NODE_ENV!=="production"&&B===ee&&rt(`Computed property "${X}" has no getter.`);const V=!wt(it)&&wt(it.set)?it.set.bind(e):{}.NODE_ENV!=="production"?()=>{rt(`Write operation failed: computed property "${X}" is readonly.`)}:ee,yt=up({get:B,set:V});Object.defineProperty(n,X,{enumerable:!0,configurable:!0,get:()=>yt.value,set:A=>yt.value=A}),{}.NODE_ENV!=="production"&&nt("Computed",X)}if(a)for(const X in a)ac(a[X],n,e,X);if(l){const X=wt(l)?l.call(e):l;Reflect.ownKeys(X).forEach(it=>{Df(it,X[it])})}u&&oc(u,s,"c");function q(X,it){xt(it)?it.forEach(B=>X(B.bind(e))):it&&X(it.bind(e))}if(q(hf,h),q(rn,d),q(df,m),q(ff,f),q(lf,v),q(cf,b),q(vf,gt),q(yf,st),q(gf,J),q(pf,F),q(ue,O),q(mf,x),xt(k))if(k.length){const X=s.exposed||(s.exposed={});k.forEach(it=>{Object.defineProperty(X,it,{get:()=>e[it],set:B=>e[it]=B})})}else s.exposed||(s.exposed={});K&&s.render===ee&&(s.render=K),P!=null&&(s.inheritAttrs=P),E&&(s.components=E),D&&(s.directives=D)}function Ef(s,t,e=ee){xt(s)&&(s=wo(s));for(const n in s){const i=s[n];let r;Vt(i)?"default"in i?r=Yi(i.from||n,i.default,!0):r=Yi(i.from||n):r=Yi(i),me(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function oc(s,t,e){He(xt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function ac(s,t,e,n){const i=n.includes(".")?tc(e,n):()=>e[n];if(se(s)){const r=t[s];wt(r)?Et(i,r):{}.NODE_ENV!=="production"&&rt(`Invalid watch handler specified by key "${s}"`,r)}else if(wt(s))Et(i,s.bind(e));else if(Vt(s))if(xt(s))s.forEach(r=>ac(r,t,e,n));else{const r=wt(s.handler)?s.handler.bind(e):t[s.handler];wt(r)?Et(i,r,s):{}.NODE_ENV!=="production"&&rt(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&rt(`Invalid watch option: "${n}"`,s)}function xo(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>Gi(l,c,o,!0)),Gi(l,t,o)),Vt(t)&&r.set(t,l),l}function Gi(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&Gi(s,r,e,!0),i&&i.forEach(o=>Gi(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&rt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=kf[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const kf={data:lc,props:cc,emits:cc,methods:zn,computed:zn,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:zn,directives:zn,watch:Of,provide:lc,inject:Pf};function lc(s,t){return t?s?function(){return qt(wt(s)?s.call(this,this):s,wt(t)?t.call(this,this):t)}:t:s}function Pf(s,t){return zn(wo(s),wo(t))}function wo(s){if(xt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Se(s,t){return s?[...new Set([].concat(s,t))]:t}function zn(s,t){return s?qt(Object.create(null),s,t):t}function cc(s,t){return s?xt(s)&&xt(t)?[...new Set([...s,...t])]:qt(Object.create(null),rc(s),rc(t??{})):t}function Of(s,t){if(!s)return t;if(!t)return s;const e=qt(Object.create(null),s);for(const n in t)e[n]=Se(s[n],t[n]);return e}function uc(){return{app:null,config:{isNativeTag:Gh,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 If=0;function Mf(s,t){return function(n,i=null){wt(n)||(n=qt({},n)),i!=null&&!Vt(i)&&({}.NODE_ENV!=="production"&&rt("root props passed to app.mount() must be an object."),i=null);const r=uc(),o=new WeakSet;let a=!1;const l=r.app={_uid:If++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Vc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&rt("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&rt("Plugin has already been applied to target app."):c&&wt(c.install)?(o.add(c),c.install(l,...u)):wt(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&rt('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&rt("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Mo(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&rt(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&ec(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&rt(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&rt("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&rt("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=mt(n,i);return d.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Ds(d),c,h)}),u&&t?t(d,c):s(d,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=d.component,Gd(l,Vc)),Ui(d.component)||d.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Yd(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&rt("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&rt(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=Xn;Xn=l;try{return c()}finally{Xn=u}}};return l}}let Xn=null;function Df(s,t){if(!le)({}).NODE_ENV!=="production"&&rt("provide() can only be used inside setup().");else{let e=le.provides;const n=le.parent&&le.parent.provides;n===e&&(e=le.provides=Object.create(n)),e[s]=t}}function Yi(s,t,e=!1){const n=le||ne;if(n||Xn){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Xn._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&wt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&rt(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&rt("inject() can only be used inside setup() or functional components.")}const hc={},dc=()=>Object.create(hc),fc=s=>Object.getPrototypeOf(s)===hc;function Rf(s,t,e,n=!1){const i={},r=dc();s.propsDefaults=Object.create(null),pc(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&_c(t||{},i,s),e?s.props=n?i:_d(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function Nf(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function Af(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Pt(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Nf(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Ni(s.emitsOptions,d))continue;const m=t[d];if(l)if(Dt(r,d))m!==r[d]&&(r[d]=m,c=!0);else{const f=Qe(d);i[f]=Co(l,a,f,m,s,!1)}else m!==r[d]&&(r[d]=m,c=!0)}}}else{pc(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!Dt(t,h)&&((u=Ts(h))===h||!Dt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=Co(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!Dt(t,h))&&(delete r[h],c=!0)}c&&Je(s.attrs,"set",""),{}.NODE_ENV!=="production"&&_c(t||{},i,s)}function pc(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Mn(l))continue;const c=t[l];let u;i&&Dt(i,u=Qe(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Ni(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Pt(e),c=a||Bt;for(let u=0;u<r.length;u++){const h=r[u];e[h]=Co(i,l,h,c[h],s,!Dt(c,h))}}return o}function Co(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=Dt(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&wt(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=Kn(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Ts(e))&&(n=!0))}return n}function mc(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!wt(s)){const u=h=>{l=!0;const[d,m]=mc(h,t,!0);qt(o,d),m&&a.push(...m)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Vt(s)&&n.set(s,mn),mn;if(xt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!se(r[u])&&rt("props must be strings when using array syntax.",r[u]);const h=Qe(r[u]);gc(h)&&(o[h]=Bt)}else if(r){({}).NODE_ENV!=="production"&&!Vt(r)&&rt("invalid props options",r);for(const u in r){const h=Qe(u);if(gc(h)){const d=r[u],m=o[h]=xt(d)||wt(d)?{type:d}:qt({},d);if(m){const f=vc(Boolean,m.type),v=vc(String,m.type);m[0]=f>-1,m[1]=v<0||f<v,(f>-1||Dt(m,"default"))&&a.push(h)}}}}const c=[o,a];return Vt(s)&&n.set(s,c),c}function gc(s){return s[0]!=="$"&&!Mn(s)?!0:({}.NODE_ENV!=="production"&&rt(`Invalid prop name: "${s}" is a reserved property.`),!1)}function So(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function yc(s,t){return So(s)===So(t)}function vc(s,t){return xt(t)?t.findIndex(e=>yc(e,s)):wt(t)&&yc(t,s)?0:-1}function _c(s,t,e){const n=Pt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Lf(r,n[r],o,{}.NODE_ENV!=="production"?cs(n):n,!Dt(s,r)&&!Dt(s,Ts(r)))}}function Lf(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){rt('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=xt(r)?r:[r],h=[];for(let d=0;d<u.length&&!c;d++){const{valid:m,expectedType:f}=$f(t,u[d]);h.push(f||""),c=m}if(!c){rt(Vf(s,t,h));return}}a&&!a(t,n)&&rt('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Ff=Ke("String,Number,Boolean,Function,Symbol,BigInt");function $f(s,t){let e;const n=So(t);if(Ff(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Vt(s):n==="Array"?e=xt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function Vf(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(Hs).join(" | ")}`;const i=e[0],r=zr(t),o=bc(t,i),a=bc(t,r);return e.length===1&&xc(i)&&!Gf(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,xc(r)&&(n+=`with value ${a}.`),n}function bc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function xc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Gf(...s){return s.some(t=>t.toLowerCase()==="boolean")}const wc=s=>s[0]==="_"||s==="$stable",To=s=>xt(s)?s.map(We):[We(s)],Yf=(s,t,e)=>{if(t._n)return t;const n=Ot((...i)=>({}.NODE_ENV!=="production"&&le&&(!e||e.root===le.root)&&rt(`Slot "${s}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),To(t(...i))),e);return n._c=!1,n},Cc=(s,t,e)=>{const n=s._ctx;for(const i in s){if(wc(i))continue;const r=s[i];if(wt(r))t[i]=Yf(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&rt(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=To(r);t[i]=()=>o}}},Sc=(s,t)=>{({}).NODE_ENV!=="production"&&!go(s.vnode)&&rt("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=To(t);s.slots.default=()=>e},Bf=(s,t)=>{const e=s.slots=dc();if(s.vnode.shapeFlag&32){const n=t._;n?(qt(e,t),al(e,"_",n)):Cc(t,e)}else t&&Sc(s,t)},zf=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Bt;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Js?(qt(i,t),Je(s,"set","$slots")):e&&a===1?r=!1:(qt(i,t),!e&&a===1&&delete i._):(r=!t.$stable,Cc(t,i)),o=t}else t&&(Sc(s,t),o={default:1});if(r)for(const a in i)!wc(a)&&o[a]==null&&delete i[a]};function Eo(s,t,e,n,i=!1){if(xt(s)){s.forEach((d,m)=>Eo(d,t&&(xt(t)?t[m]:t),e,n,i));return}if(Bn(n)&&!i)return;const r=n.shapeFlag&4?Ui(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){rt("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=a.refs===Bt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(se(c)?(u[c]=null,Dt(h,c)&&(h[c]=null)):me(c)&&(c.value=null)),wt(l))us(l,a,12,[o,u]);else{const d=se(l),m=me(l);if(d||m){const f=()=>{if(s.f){const v=d?Dt(h,l)?h[l]:u[l]:l.value;i?xt(v)&&Yr(v,r):xt(v)?v.includes(r)||v.push(r):d?(u[l]=[r],Dt(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else d?(u[l]=o,Dt(h,l)&&(h[l]=o)):m?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&rt("Invalid template ref type:",l,`(${typeof l})`)};o?(f.id=-1,Ie(f,e)):f()}else({}).NODE_ENV!=="production"&&rt("Invalid template ref type:",l,`(${typeof l})`)}}let jn,Ms;function fs(s,t){s.appContext.config.performance&&Bi()&&Ms.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&jd(s,t,Bi()?Ms.now():Date.now())}function ps(s,t){if(s.appContext.config.performance&&Bi()){const e=`vue-${t}-${s.uid}`,n=e+":end";Ms.mark(n),Ms.measure(`<${Wi(s,s.type)}> ${t}`,e,n),Ms.clearMarks(e),Ms.clearMarks(n)}({}).NODE_ENV!=="production"&&Hd(s,t,Bi()?Ms.now():Date.now())}function Bi(){return jn!==void 0||(typeof window<"u"&&window.performance?(jn=!0,Ms=window.performance):jn=!1),jn}function Xf(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
20
20
 
21
- For more details, see https://link.vuejs.org/feature-flags.`)}}const Le=Yd;function Nf(s){return Mf(s)}function Mf(s,t){If();const e=Kr();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Yl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=ae,insertStaticContent:m}=s,v=(y,x,I,A=null,L=null,J=null,K=void 0,z=null,Q={}.NODE_ENV!=="production"&&dn?!1:!!x.dynamicChildren)=>{if(y===x)return;y&&!ri(y,x)&&(A=$e(y),Ut(y,L,J,!0),y=null),x.patchFlag===-2&&(Q=!1,x.dynamicChildren=null);const{type:Y,ref:rt,shapeFlag:ft}=x;switch(Y){case si:_(y,x,I,A);break;case Fe:E(y,x,I,A);break;case nr:y==null?D(x,I,A,K):{}.NODE_ENV!=="production"&&N(y,x,I,K);break;case zt:se(y,x,I,A,L,J,K,z,Q);break;default:ft&1?R(y,x,I,A,L,J,K,z,Q):ft&6?ne(y,x,I,A,L,J,K,z,Q):ft&64||ft&128?Y.process(y,x,I,A,L,J,K,z,Q,Ue):{}.NODE_ENV!=="production"&&st("Invalid VNode type:",Y,`(${typeof Y})`)}rt!=null&&L&&No(rt,y&&y.ref,J,x||y,!x)},_=(y,x,I,A)=>{if(y==null)n(x.el=a(x.children),I,A);else{const L=x.el=y.el;x.children!==y.children&&c(L,x.children)}},E=(y,x,I,A)=>{y==null?n(x.el=l(x.children||""),I,A):x.el=y.el},D=(y,x,I,A)=>{[y.el,y.anchor]=m(y.children,x,I,A,y.el,y.anchor)},N=(y,x,I,A)=>{if(x.children!==y.children){const L=f(y.anchor);tt(y),[x.el,x.anchor]=m(x.children,I,L,A)}else x.el=y.el,x.anchor=y.anchor},k=({el:y,anchor:x},I,A)=>{let L;for(;y&&y!==x;)L=f(y),n(y,I,A),y=L;n(x,I,A)},tt=({el:y,anchor:x})=>{let I;for(;y&&y!==x;)I=f(y),i(y),y=I;i(x)},R=(y,x,I,A,L,J,K,z,Q)=>{x.type==="svg"?K="svg":x.type==="math"&&(K="mathml"),y==null?U(x,I,A,L,J,K,z,Q):Ct(y,x,L,J,K,z,Q)},U=(y,x,I,A,L,J,K,z)=>{let Q,Y;const{props:rt,shapeFlag:ft,transition:ht,dirs:_t}=y;if(Q=y.el=o(y.type,J,rt&&rt.is,rt),ft&8?u(Q,y.children):ft&16&&bt(y.children,Q,null,A,L,Mo(y,J),K,z),_t&&mn(y,null,A,"created"),vt(Q,y,y.scopeId,K,A),rt){for(const Vt in rt)Vt!=="value"&&!Bn(Vt)&&r(Q,Vt,null,rt[Vt],J,y.children,A,L,Nt);"value"in rt&&r(Q,"value",null,rt.value,J),(Y=rt.onVnodeBeforeMount)&&ps(Y,A,y)}({}).NODE_ENV!=="production"&&(Object.defineProperty(Q,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(Q,"__vueParentComponent",{value:A,enumerable:!1})),_t&&mn(y,null,A,"beforeMount");const Ot=Af(L,ht);Ot&&ht.beforeEnter(Q),n(Q,x,I),((Y=rt&&rt.onVnodeMounted)||Ot||_t)&&Le(()=>{Y&&ps(Y,A,y),Ot&&ht.enter(Q),_t&&mn(y,null,A,"mounted")},L)},vt=(y,x,I,A,L)=>{if(I&&d(y,I),A)for(let J=0;J<A.length;J++)d(y,A[J]);if(L){let J=L.subTree;if({}.NODE_ENV!=="production"&&J.patchFlag>0&&J.patchFlag&2048&&(J=_o(J.children)||J),x===J){const K=L.vnode;vt(y,K,K.scopeId,K.slotScopeIds,L.parent)}}},bt=(y,x,I,A,L,J,K,z,Q=0)=>{for(let Y=Q;Y<y.length;Y++){const rt=y[Y]=z?Hs(y[Y]):is(y[Y]);v(null,rt,x,I,A,L,J,K,z)}},Ct=(y,x,I,A,L,J,K)=>{const z=x.el=y.el;let{patchFlag:Q,dynamicChildren:Y,dirs:rt}=x;Q|=y.patchFlag&16;const ft=y.props||Ht,ht=x.props||Ht;let _t;if(I&&yn(I,!1),(_t=ht.onVnodeBeforeUpdate)&&ps(_t,I,x,y),rt&&mn(x,y,I,"beforeUpdate"),I&&yn(I,!0),{}.NODE_ENV!=="production"&&dn&&(Q=0,K=!1,Y=null),Y?(Rt(y.dynamicChildren,Y,z,I,A,Mo(x,L),J),{}.NODE_ENV!=="production"&&sr(y,x)):K||it(y,x,z,null,I,A,Mo(x,L),J,!1),Q>0){if(Q&16)$t(z,x,ft,ht,I,A,L);else if(Q&2&&ft.class!==ht.class&&r(z,"class",null,ht.class,L),Q&4&&r(z,"style",ft.style,ht.style,L),Q&8){const Ot=x.dynamicProps;for(let Vt=0;Vt<Ot.length;Vt++){const Xt=Ot[Vt],O=ft[Xt],C=ht[Xt];(C!==O||Xt==="value")&&r(z,Xt,O,C,L,y.children,I,A,Nt)}}Q&1&&y.children!==x.children&&u(z,x.children)}else!K&&Y==null&&$t(z,x,ft,ht,I,A,L);((_t=ht.onVnodeUpdated)||rt)&&Le(()=>{_t&&ps(_t,I,x,y),rt&&mn(x,y,I,"updated")},A)},Rt=(y,x,I,A,L,J,K)=>{for(let z=0;z<x.length;z++){const Q=y[z],Y=x[z],rt=Q.el&&(Q.type===zt||!ri(Q,Y)||Q.shapeFlag&70)?h(Q.el):I;v(Q,Y,rt,null,A,L,J,K,!0)}},$t=(y,x,I,A,L,J,K)=>{if(I!==A){if(I!==Ht)for(const z in I)!Bn(z)&&!(z in A)&&r(y,z,I[z],null,K,x.children,L,J,Nt);for(const z in A){if(Bn(z))continue;const Q=A[z],Y=I[z];Q!==Y&&z!=="value"&&r(y,z,Y,Q,K,x.children,L,J,Nt)}"value"in A&&r(y,"value",I.value,A.value,K)}},se=(y,x,I,A,L,J,K,z,Q)=>{const Y=x.el=y?y.el:a(""),rt=x.anchor=y?y.anchor:a("");let{patchFlag:ft,dynamicChildren:ht,slotScopeIds:_t}=x;({}).NODE_ENV!=="production"&&(dn||ft&2048)&&(ft=0,Q=!1,ht=null),_t&&(z=z?z.concat(_t):_t),y==null?(n(Y,I,A),n(rt,I,A),bt(x.children||[],I,rt,L,J,K,z,Q)):ft>0&&ft&64&&ht&&y.dynamicChildren?(Rt(y.dynamicChildren,ht,I,L,J,K,z),{}.NODE_ENV!=="production"?sr(y,x):(x.key!=null||L&&x===L.subTree)&&sr(y,x,!0)):it(y,x,I,rt,L,J,K,z,Q)},ne=(y,x,I,A,L,J,K,z,Q)=>{x.slotScopeIds=z,y==null?x.shapeFlag&512?L.ctx.activate(x,I,A,K,Q):ue(x,I,A,L,J,K,Q):Yt(y,x,Q)},ue=(y,x,I,A,L,J,K)=>{const z=y.component=jf(y,A,L);if({}.NODE_ENV!=="production"&&z.type.__hmrId&&Sd(z),{}.NODE_ENV!=="production"&&(Yi(y),Os(z,"mount")),wo(y)&&(z.ctx.renderer=Ue),{}.NODE_ENV!=="production"&&Os(z,"init"),Yf(z),{}.NODE_ENV!=="production"&&Ps(z,"init"),z.asyncDep){if(L&&L.registerDep(z,xt),!y.el){const Q=z.subTree=pt(Fe);E(null,Q,x,I)}}else xt(z,y,x,I,L,J,K);({}).NODE_ENV!=="production"&&(Xi(),Ps(z,"mount"))},Yt=(y,x,I)=>{const A=x.component=y.component;if(Ld(y,x,I))if(A.asyncDep&&!A.asyncResolved){({}).NODE_ENV!=="production"&&Yi(x),wt(A,x,I),{}.NODE_ENV!=="production"&&Xi();return}else A.next=x,xd(A.update),A.effect.dirty=!0,A.update();else x.el=y.el,A.vnode=x},xt=(y,x,I,A,L,J,K)=>{const z=()=>{if(y.isMounted){let{next:rt,bu:ft,u:ht,parent:_t,vnode:Ot}=y;{const w=Cc(y);if(w){rt&&(rt.el=Ot.el,wt(y,rt,K)),w.asyncDep.then(()=>{y.isUnmounted||z()});return}}let Vt=rt,Xt;({}).NODE_ENV!=="production"&&Yi(rt||y.vnode),yn(y,!1),rt?(rt.el=Ot.el,wt(y,rt,K)):rt=Ot,ft&&Yn(ft),(Xt=rt.props&&rt.props.onVnodeBeforeUpdate)&&ps(Xt,_t,rt,Ot),yn(y,!0),{}.NODE_ENV!=="production"&&Os(y,"render");const O=vo(y);({}).NODE_ENV!=="production"&&Ps(y,"render");const C=y.subTree;y.subTree=O,{}.NODE_ENV!=="production"&&Os(y,"patch"),v(C,O,h(C.el),$e(C),y,L,J),{}.NODE_ENV!=="production"&&Ps(y,"patch"),rt.el=O.el,Vt===null&&Fd(y,O.el),ht&&Le(ht,L),(Xt=rt.props&&rt.props.onVnodeUpdated)&&Le(()=>ps(Xt,_t,rt,Ot),L),{}.NODE_ENV!=="production"&&Xl(y),{}.NODE_ENV!=="production"&&Xi()}else{let rt;const{el:ft,props:ht}=x,{bm:_t,m:Ot,parent:Vt}=y,Xt=Qn(x);if(yn(y,!1),_t&&Yn(_t),!Xt&&(rt=ht&&ht.onVnodeBeforeMount)&&ps(rt,Vt,x),yn(y,!0),ft&&as){const O=()=>{({}).NODE_ENV!=="production"&&Os(y,"render"),y.subTree=vo(y),{}.NODE_ENV!=="production"&&Ps(y,"render"),{}.NODE_ENV!=="production"&&Os(y,"hydrate"),as(ft,y.subTree,y,L,null),{}.NODE_ENV!=="production"&&Ps(y,"hydrate")};Xt?x.type.__asyncLoader().then(()=>!y.isUnmounted&&O()):O()}else{({}).NODE_ENV!=="production"&&Os(y,"render");const O=y.subTree=vo(y);({}).NODE_ENV!=="production"&&Ps(y,"render"),{}.NODE_ENV!=="production"&&Os(y,"patch"),v(null,O,I,A,y,L,J),{}.NODE_ENV!=="production"&&Ps(y,"patch"),x.el=O.el}if(Ot&&Le(Ot,L),!Xt&&(rt=ht&&ht.onVnodeMounted)){const O=x;Le(()=>ps(rt,Vt,O),L)}(x.shapeFlag&256||Vt&&Qn(Vt.vnode)&&Vt.vnode.shapeFlag&256)&&y.a&&Le(y.a,L),y.isMounted=!0,{}.NODE_ENV!=="production"&&Pd(y),x=I=A=null}},Q=y.effect=new Jr(z,ae,()=>Hi(Y),y.scope),Y=y.update=()=>{Q.dirty&&Q.run()};Y.id=y.uid,yn(y,!0),{}.NODE_ENV!=="production"&&(Q.onTrack=y.rtc?rt=>Yn(y.rtc,rt):void 0,Q.onTrigger=y.rtg?rt=>Yn(y.rtg,rt):void 0,Y.ownerInstance=y),Y()},wt=(y,x,I)=>{x.component=y;const A=y.vnode.props;y.vnode=x,y.next=null,wf(y,x.props,A,I),Df(y,x.children,I),xs(),Fl(y),ws()},it=(y,x,I,A,L,J,K,z,Q=!1)=>{const Y=y&&y.children,rt=y?y.shapeFlag:0,ft=x.children,{patchFlag:ht,shapeFlag:_t}=x;if(ht>0){if(ht&128){Et(Y,ft,I,A,L,J,K,z,Q);return}else if(ht&256){q(Y,ft,I,A,L,J,K,z,Q);return}}_t&8?(rt&16&&Nt(Y,L,J),ft!==Y&&u(I,ft)):rt&16?_t&16?Et(Y,ft,I,A,L,J,K,z,Q):Nt(Y,L,J,!0):(rt&8&&u(I,""),_t&16&&bt(ft,I,A,L,J,K,z,Q))},q=(y,x,I,A,L,J,K,z,Q)=>{y=y||Cn,x=x||Cn;const Y=y.length,rt=x.length,ft=Math.min(Y,rt);let ht;for(ht=0;ht<ft;ht++){const _t=x[ht]=Q?Hs(x[ht]):is(x[ht]);v(y[ht],_t,I,null,L,J,K,z,Q)}Y>rt?Nt(y,L,J,!0,!1,ft):bt(x,I,A,L,J,K,z,Q,ft)},Et=(y,x,I,A,L,J,K,z,Q)=>{let Y=0;const rt=x.length;let ft=y.length-1,ht=rt-1;for(;Y<=ft&&Y<=ht;){const _t=y[Y],Ot=x[Y]=Q?Hs(x[Y]):is(x[Y]);if(ri(_t,Ot))v(_t,Ot,I,null,L,J,K,z,Q);else break;Y++}for(;Y<=ft&&Y<=ht;){const _t=y[ft],Ot=x[ht]=Q?Hs(x[ht]):is(x[ht]);if(ri(_t,Ot))v(_t,Ot,I,null,L,J,K,z,Q);else break;ft--,ht--}if(Y>ft){if(Y<=ht){const _t=ht+1,Ot=_t<rt?x[_t].el:A;for(;Y<=ht;)v(null,x[Y]=Q?Hs(x[Y]):is(x[Y]),I,Ot,L,J,K,z,Q),Y++}}else if(Y>ht)for(;Y<=ft;)Ut(y[Y],L,J,!0),Y++;else{const _t=Y,Ot=Y,Vt=new Map;for(Y=Ot;Y<=ht;Y++){const nt=x[Y]=Q?Hs(x[Y]):is(x[Y]);nt.key!=null&&({}.NODE_ENV!=="production"&&Vt.has(nt.key)&&st("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),Vt.set(nt.key,Y))}let Xt,O=0;const C=ht-Ot+1;let w=!1,G=0;const M=new Array(C);for(Y=0;Y<C;Y++)M[Y]=0;for(Y=_t;Y<=ft;Y++){const nt=y[Y];if(O>=C){Ut(nt,L,J,!0);continue}let j;if(nt.key!=null)j=Vt.get(nt.key);else for(Xt=Ot;Xt<=ht;Xt++)if(M[Xt-Ot]===0&&ri(nt,x[Xt])){j=Xt;break}j===void 0?Ut(nt,L,J,!0):(M[j-Ot]=Y+1,j>=G?G=j:w=!0,v(nt,x[j],I,null,L,J,K,z,Q),O++)}const B=w?Rf(M):Cn;for(Xt=B.length-1,Y=C-1;Y>=0;Y--){const nt=Ot+Y,j=x[nt],et=nt+1<rt?x[nt+1].el:A;M[Y]===0?v(null,j,I,et,L,J,K,z,Q):w&&(Xt<0||Y!==B[Xt]?$(j,I,et,2):Xt--)}}},$=(y,x,I,A,L=null)=>{const{el:J,type:K,transition:z,children:Q,shapeFlag:Y}=y;if(Y&6){$(y.component.subTree,x,I,A);return}if(Y&128){y.suspense.move(x,I,A);return}if(Y&64){K.move(y,x,I,Ue);return}if(K===zt){n(J,x,I);for(let ft=0;ft<Q.length;ft++)$(Q[ft],x,I,A);n(y.anchor,x,I);return}if(K===nr){k(y,x,I);return}if(A!==2&&Y&1&&z)if(A===0)z.beforeEnter(J),n(J,x,I),Le(()=>z.enter(J),L);else{const{leave:ft,delayLeave:ht,afterLeave:_t}=z,Ot=()=>n(J,x,I),Vt=()=>{ft(J,()=>{Ot(),_t&&_t()})};ht?ht(J,Ot,Vt):Vt()}else n(J,x,I)},Ut=(y,x,I,A=!1,L=!1)=>{const{type:J,props:K,ref:z,children:Q,dynamicChildren:Y,shapeFlag:rt,patchFlag:ft,dirs:ht}=y;if(z!=null&&No(z,null,I,y,!0),rt&256){x.ctx.deactivate(y);return}const _t=rt&1&&ht,Ot=!Qn(y);let Vt;if(Ot&&(Vt=K&&K.onVnodeBeforeUnmount)&&ps(Vt,x,y),rt&6)Re(y.component,I,A);else{if(rt&128){y.suspense.unmount(I,A);return}_t&&mn(y,null,x,"beforeUnmount"),rt&64?y.type.remove(y,x,I,L,Ue,A):Y&&(J!==zt||ft>0&&ft&64)?Nt(Y,x,I,!1,!0):(J===zt&&ft&384||!L&&rt&16)&&Nt(Q,x,I),A&&ge(y)}(Ot&&(Vt=K&&K.onVnodeUnmounted)||_t)&&Le(()=>{Vt&&ps(Vt,x,y),_t&&mn(y,null,x,"unmounted")},I)},ge=y=>{const{type:x,el:I,anchor:A,transition:L}=y;if(x===zt){({}).NODE_ENV!=="production"&&y.patchFlag>0&&y.patchFlag&2048&&L&&!L.persisted?y.children.forEach(K=>{K.type===Fe?i(K.el):ge(K)}):Ae(I,A);return}if(x===nr){tt(y);return}const J=()=>{i(I),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(y.shapeFlag&1&&L&&!L.persisted){const{leave:K,delayLeave:z}=L,Q=()=>K(I,J);z?z(y.el,J,Q):Q()}else J()},Ae=(y,x)=>{let I;for(;y!==x;)I=f(y),i(y),y=I;i(x)},Re=(y,x,I)=>{({}).NODE_ENV!=="production"&&y.type.__hmrId&&Cd(y);const{bum:A,scope:L,update:J,subTree:K,um:z}=y;A&&Yn(A),L.stop(),J&&(J.active=!1,Ut(K,y,x,I)),z&&Le(z,x),Le(()=>{y.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&Id(y)},Nt=(y,x,I,A=!1,L=!1,J=0)=>{for(let K=J;K<y.length;K++)Ut(y[K],x,I,A,L)},$e=y=>y.shapeFlag&6?$e(y.component.subTree):y.shapeFlag&128?y.suspense.next():f(y.anchor||y.el);let Lt=!1;const ie=(y,x,I)=>{y==null?x._vnode&&Ut(x._vnode,null,null,!0):v(x._vnode||null,y,x,null,null,null,I),Lt||(Lt=!0,Fl(),Gl(),Lt=!1),x._vnode=y},Ue={p:v,um:Ut,m:$,r:ge,mt:ue,mc:bt,pc:it,pbc:Rt,n:$e,o:s};let os,as;return t&&([os,as]=t(Ue)),{render:ie,hydrate:os,createApp:vf(ie,os)}}function Mo({type:s,props:t},e){return e==="svg"&&s==="foreignObject"||e==="mathml"&&s==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function yn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function Af(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function sr(s,t,e=!1){const n=s.children,i=t.children;if(mt(n)&&mt(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]=Hs(i[r]),a.el=o.el),e||sr(o,a)),a.type===si&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Fe&&!a.el&&(a.el=o.el)}}function Rf(s){const t=s.slice(),e=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=e[e.length-1],s[i]<c){t[n]=i,e.push(n);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,s[e[a]]<c?r=a+1:o=a;c<s[e[r]]&&(r>0&&(t[n]=e[r-1]),e[r]=n)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function Cc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cc(t)}const $f=s=>s.__isTeleport,zt=Symbol.for("v-fgt"),si=Symbol.for("v-txt"),Fe=Symbol.for("v-cmt"),nr=Symbol.for("v-stc"),ni=[];let ns=null;function F(s=!1){ni.push(ns=s?null:[])}function Vf(){ni.pop(),ns=ni[ni.length-1]||null}let ii=1;function Ec(s){ii+=s}function kc(s){return s.dynamicChildren=ii>0?ns||Cn:null,Vf(),ii>0&&ns&&ns.push(s),s}function X(s,t,e,n,i,r){return kc(S(s,t,e,n,i,r,!0))}function Ie(s,t,e,n,i){return kc(pt(s,t,e,n,i,!0))}function Dn(s){return s?s.__v_isVNode===!0:!1}function ri(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&Tn.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Lf=(...s)=>Oc(...s),Tc=({key:s})=>s??null,ir=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?le(s)||Se(s)||St(s)?{i:ce,r:s,k:t,f:!!e}:s:null);function S(s,t=null,e=null,n=0,i=null,r=s===zt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Tc(t),ref:t&&ir(t),scopeId:Wi,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ce};return a?(Ao(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=le(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&st("VNode created with invalid key (NaN). VNode type:",l.type),ii>0&&!o&&ns&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&ns.push(l),l}const pt={}.NODE_ENV!=="production"?Lf:Oc;function Oc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===zd)&&({}.NODE_ENV!=="production"&&!s&&st(`Invalid vnode type when creating vnode: ${s}.`),s=Fe),Dn(s)){const a=Xs(s,t,!0);return e&&Ao(a,e),ii>0&&!r&&ns&&(a.shapeFlag&6?ns[ns.indexOf(s)]=a:ns.push(a)),a.patchFlag|=-2,a}if(Vc(s)&&(s=s.__vccOpts),t){t=Ff(t);let{class:a,style:l}=t;a&&!le(a)&&(t.class=ye(a)),Bt(l)&&(ao(l)&&!mt(l)&&(l=te({},l)),t.style=W(l))}const o=le(s)?1:Bd(s)?128:$f(s)?64:Bt(s)?4:St(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&ao(s)&&(s=Pt(s),st("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`.",`
22
- Component that was made reactive: `,s)),S(s,t,e,n,i,o,r,!0)}function Ff(s){return s?ao(s)||dc(s)?te({},s):s:null}function Xs(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?Ro(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&Tc(a),ref:t&&t.ref?e&&i?mt(i)?i.concat(ir(t)):[i,ir(t)]:ir(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&mt(o)?o.map(Pc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==zt?r===-1?16:r|16:r,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Xs(s.ssContent),ssFallback:s.ssFallback&&Xs(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function Pc(s){const t=Xs(s);return mt(s.children)&&(t.children=s.children.map(Pc)),t}function Kt(s=" ",t=0){return pt(si,null,s,t)}function qt(s="",t=!1){return t?(F(),Ie(Fe,null,s)):pt(Fe,null,s)}function is(s){return s==null||typeof s=="boolean"?pt(Fe):mt(s)?pt(zt,null,s.slice()):typeof s=="object"?Hs(s):pt(si,null,String(s))}function Hs(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Xs(s)}function Ao(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(mt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Ao(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!dc(t)?t._ctx=ce:i===3&&ce&&(ce.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else St(t)?(t={default:t,_ctx:ce},e=32):(t=String(t),n&64?(e=16,t=[Kt(t)]):e=8);s.children=t,s.shapeFlag|=e}function Ro(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=ye([t.class,n.class]));else if(i==="style")t.style=W([t.style,n.style]);else if(jn(i)){const r=t[i],o=n[i];o&&r!==o&&!(mt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function ps(s,t,e,n=null){ss(s,t,7,[e,n])}const Gf=cc();let zf=0;function jf(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||Gf,r={uid:zf++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:pc(n,i),emitsOptions:Ul(n,i),emit:null,emitted:null,propsDefaults:Ht,inheritAttrs:n.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"?r.ctx=of(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Rd.bind(null,r),s.ce&&s.ce(r),r}let pe=null;const Dc=()=>pe||ce;let rr,$o;{const s=Kr(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};rr=t("__VUE_INSTANCE_SETTERS__",e=>pe=e),$o=t("__VUE_SSR_SETTERS__",e=>or=e)}const oi=s=>{const t=pe;return rr(s),s.scope.on(),()=>{s.scope.off(),rr(t)}},Ic=()=>{pe&&pe.scope.off(),rr(null)},Bf=cs("slot,component");function Vo(s,{isNativeTag:t}){(Bf(s)||t(s))&&st("Do not use built-in or reserved HTML elements as component id: "+s)}function Nc(s){return s.vnode.shapeFlag&4}let or=!1;function Yf(s,t=!1){t&&$o(t);const{props:e,children:n}=s.vnode,i=Nc(s);bf(s,e,i,t),Pf(s,n);const r=i?Xf(s,t):void 0;return t&&$o(!1),r}function Xf(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Vo(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)Vo(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)tc(r[o])}n.compilerOptions&&Hf()&&st('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}s.accessCache=Object.create(null),s.proxy=new Proxy(s.ctx,nc),{}.NODE_ENV!=="production"&&af(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?$c(s):null,o=oi(s);xs();const a=Cs(i,s,0,[{}.NODE_ENV!=="production"?Ss(s.props):s.props,r]);if(ws(),o(),Wr(a)){if(a.then(Ic,Ic),t)return a.then(l=>{Mc(s,l,t)}).catch(l=>{Hn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";st(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Mc(s,a,t)}else Ac(s,t)}function Mc(s,t,e){St(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Bt(t)?({}.NODE_ENV!=="production"&&Dn(t)&&st("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=Ml(t),{}.NODE_ENV!=="production"&&lf(s)):{}.NODE_ENV!=="production"&&t!==void 0&&st(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Ac(s,e)}let Lo;const Hf=()=>!Lo;function Ac(s,t,e){const n=s.type;if(!s.render){if(!t&&Lo&&!n.render){const i=n.template||To(s).template;if(i){({}).NODE_ENV!=="production"&&Os(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=te(te({isCustomElement:r,delimiters:a},o),l);n.render=Lo(i,c),{}.NODE_ENV!=="production"&&Ps(s,"compile")}}s.render=n.render||ae}{const i=oi(s);xs();try{df(s)}finally{ws(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===ae&&!t&&(n.template?st('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".'):st("Component is missing template or render function."))}const Rc={}.NODE_ENV!=="production"?{get(s,t){return Zi(),we(s,"get",""),s[t]},set(){return st("setupContext.attrs is readonly."),!1},deleteProperty(){return st("setupContext.attrs is readonly."),!1}}:{get(s,t){return we(s,"get",""),s[t]}};function Uf(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return we(s,"get","$slots"),t[e]}}))}function $c(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&st("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(mt(e)?n="array":Se(e)&&(n="ref")),n!=="object"&&st(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};if({}.NODE_ENV!=="production"){let e;return Object.freeze({get attrs(){return e||(e=new Proxy(s.attrs,Rc))},get slots(){return Uf(s)},get emit(){return(n,...i)=>s.emit(n,...i)},expose:t})}else return{attrs:new Proxy(s.attrs,Rc),slots:s.slots,emit:s.emit,expose:t}}function ar(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(Ml(ld(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in gn)return gn[e](s)},has(t,e){return e in t||e in gn}}))}const Wf=/(?:^|[-_])(\w)/g,qf=s=>s.replace(Wf,t=>t.toUpperCase()).replace(/[-_]/g,"");function Fo(s,t=!0){return St(s)?s.displayName||s.name:s.name||t&&s.__name}function lr(s,t,e=!1){let n=Fo(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?qf(n):e?"App":"Anonymous"}function Vc(s){return St(s)&&"__vccOpts"in s}const Zf=(s,t)=>{const e=ud(s,t,or);if({}.NODE_ENV!=="production"){const n=Dc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function Ge(s,t,e){const n=arguments.length;return n===2?Bt(t)&&!mt(t)?Dn(t)?pt(s,null,[t]):pt(s,t):pt(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&Dn(e)&&(e=[e]),pt(s,t,e))}function Kf(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Bt(h)?h.__isVue?["div",s,"VueInstance"]:Se(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:En(h)?["div",{},["span",s,un(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${cn(h)?" (readonly)":""}`]:cn(h)?["div",{},["span",s,un(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...r(h.$)]}};function r(h){const f=[];h.type.props&&h.props&&f.push(o("props",Pt(h.props))),h.setupState!==Ht&&f.push(o("setup",h.setupState)),h.data!==Ht&&f.push(o("data",Pt(h.data)));const d=l(h,"computed");d&&f.push(o("computed",d));const m=l(h,"inject");return m&&f.push(o("injected",m)),f.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=te({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",n,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Bt(h)?["object",{object:f?Pt(h):h}]:["span",e,String(h)]}function l(h,f){const d=h.type;if(St(d))return;const m={};for(const v in h.ctx)c(d,v,f)&&(m[v]=h.ctx[v]);return m}function c(h,f,d){const m=h[d];if(mt(m)&&m.includes(f)||Bt(m)&&f in m||h.extends&&c(h.extends,f,d)||h.mixins&&h.mixins.some(v=>c(v,f,d)))return!0}function u(h){return un(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Lc="3.4.25",Go={}.NODE_ENV!=="production"?st:ae;/**
21
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const Ie=nf;function jf(s){return Hf(s)}function Hf(s,t){Xf();const e=jr();e.__VUE__=!0,{}.NODE_ENV!=="production"&&jl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:m=ee,insertStaticContent:f}=s,v=(y,w,R,z=null,j=null,et=null,at=void 0,U=null,ot={}.NODE_ENV!=="production"&&Js?!1:!!w.dynamicChildren)=>{if(y===w)return;y&&!Zn(y,w)&&(z=ae(y),W(y,j,et,!0),y=null),w.patchFlag===-2&&(ot=!1,w.dynamicChildren=null);const{type:Z,ref:ht,shapeFlag:_t}=w;switch(Z){case Hn:b(y,w,R,z);break;case Me:S(y,w,R,z);break;case Un:y==null?F(w,R,z,at):{}.NODE_ENV!=="production"&&$(y,w,R,at);break;case Lt:D(y,w,R,z,j,et,at,U,ot);break;default:_t&1?st(y,w,R,z,j,et,at,U,ot):_t&6?Y(y,w,R,z,j,et,at,U,ot):_t&64||_t&128?Z.process(y,w,R,z,j,et,at,U,ot,Fe):{}.NODE_ENV!=="production"&&rt("Invalid VNode type:",Z,`(${typeof Z})`)}ht!=null&&j&&Eo(ht,y&&y.ref,et,w||y,!w)},b=(y,w,R,z)=>{if(y==null)n(w.el=a(w.children),R,z);else{const j=w.el=y.el;w.children!==y.children&&c(j,w.children)}},S=(y,w,R,z)=>{y==null?n(w.el=l(w.children||""),R,z):w.el=y.el},F=(y,w,R,z)=>{[y.el,y.anchor]=f(y.children,w,R,z,y.el,y.anchor)},$=(y,w,R,z)=>{if(w.children!==y.children){const j=d(y.anchor);K(y),[w.el,w.anchor]=f(w.children,R,j,z)}else w.el=y.el,w.anchor=y.anchor},O=({el:y,anchor:w},R,z)=>{let j;for(;y&&y!==w;)j=d(y),n(y,R,z),y=j;n(w,R,z)},K=({el:y,anchor:w})=>{let R;for(;y&&y!==w;)R=d(y),i(y),y=R;i(w)},st=(y,w,R,z,j,et,at,U,ot)=>{w.type==="svg"?at="svg":w.type==="math"&&(at="mathml"),y==null?J(w,R,z,j,et,at,U,ot):k(y,w,j,et,at,U,ot)},J=(y,w,R,z,j,et,at,U)=>{let ot,Z;const{props:ht,shapeFlag:_t,transition:vt,dirs:Ct}=y;if(ot=y.el=o(y.type,et,ht&&ht.is,ht),_t&8?u(ot,y.children):_t&16&&x(y.children,ot,null,z,j,ko(y,et),at,U),Ct&&nn(y,null,z,"created"),gt(ot,y,y.scopeId,at,z),ht){for(const Ft in ht)Ft!=="value"&&!Mn(Ft)&&r(ot,Ft,null,ht[Ft],et,y.children,z,j,It);"value"in ht&&r(ot,"value",null,ht.value,et),(Z=ht.onVnodeBeforeMount)&&ss(Z,z,y)}({}).NODE_ENV!=="production"&&(Object.defineProperty(ot,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(ot,"__vueParentComponent",{value:z,enumerable:!1})),Ct&&nn(y,null,z,"beforeMount");const Mt=Uf(j,vt);Mt&&vt.beforeEnter(ot),n(ot,w,R),((Z=ht&&ht.onVnodeMounted)||Mt||Ct)&&Ie(()=>{Z&&ss(Z,z,y),Mt&&vt.enter(ot),Ct&&nn(y,null,z,"mounted")},j)},gt=(y,w,R,z,j)=>{if(R&&m(y,R),z)for(let et=0;et<z.length;et++)m(y,z[et]);if(j){let et=j.subTree;if({}.NODE_ENV!=="production"&&et.patchFlag>0&&et.patchFlag&2048&&(et=fo(et.children)||et),w===et){const at=j.vnode;gt(y,at,at.scopeId,at.slotScopeIds,j.parent)}}},x=(y,w,R,z,j,et,at,U,ot=0)=>{for(let Z=ot;Z<y.length;Z++){const ht=y[Z]=U?Rs(y[Z]):We(y[Z]);v(null,ht,w,R,z,j,et,at,U)}},k=(y,w,R,z,j,et,at)=>{const U=w.el=y.el;let{patchFlag:ot,dynamicChildren:Z,dirs:ht}=w;ot|=y.patchFlag&16;const _t=y.props||Bt,vt=w.props||Bt;let Ct;if(R&&an(R,!1),(Ct=vt.onVnodeBeforeUpdate)&&ss(Ct,R,w,y),ht&&nn(w,y,R,"beforeUpdate"),R&&an(R,!0),{}.NODE_ENV!=="production"&&Js&&(ot=0,at=!1,Z=null),Z?(P(y.dynamicChildren,Z,U,R,z,ko(w,j),et),{}.NODE_ENV!=="production"&&zi(y,w)):at||B(y,w,U,null,R,z,ko(w,j),et,!1),ot>0){if(ot&16)E(U,w,_t,vt,R,z,j);else if(ot&2&&_t.class!==vt.class&&r(U,"class",null,vt.class,j),ot&4&&r(U,"style",_t.style,vt.style,j),ot&8){const Mt=w.dynamicProps;for(let Ft=0;Ft<Mt.length;Ft++){const jt=Mt[Ft],Qt=_t[jt],ke=vt[jt];(ke!==Qt||jt==="value")&&r(U,jt,Qt,ke,j,y.children,R,z,It)}}ot&1&&y.children!==w.children&&u(U,w.children)}else!at&&Z==null&&E(U,w,_t,vt,R,z,j);((Ct=vt.onVnodeUpdated)||ht)&&Ie(()=>{Ct&&ss(Ct,R,w,y),ht&&nn(w,y,R,"updated")},z)},P=(y,w,R,z,j,et,at)=>{for(let U=0;U<w.length;U++){const ot=y[U],Z=w[U],ht=ot.el&&(ot.type===Lt||!Zn(ot,Z)||ot.shapeFlag&70)?h(ot.el):R;v(ot,Z,ht,null,z,j,et,at,!0)}},E=(y,w,R,z,j,et,at)=>{if(R!==z){if(R!==Bt)for(const U in R)!Mn(U)&&!(U in z)&&r(y,U,R[U],null,at,w.children,j,et,It);for(const U in z){if(Mn(U))continue;const ot=z[U],Z=R[U];ot!==Z&&U!=="value"&&r(y,U,Z,ot,at,w.children,j,et,It)}"value"in z&&r(y,"value",R.value,z.value,at)}},D=(y,w,R,z,j,et,at,U,ot)=>{const Z=w.el=y?y.el:a(""),ht=w.anchor=y?y.anchor:a("");let{patchFlag:_t,dynamicChildren:vt,slotScopeIds:Ct}=w;({}).NODE_ENV!=="production"&&(Js||_t&2048)&&(_t=0,ot=!1,vt=null),Ct&&(U=U?U.concat(Ct):Ct),y==null?(n(Z,R,z),n(ht,R,z),x(w.children||[],R,ht,j,et,at,U,ot)):_t>0&&_t&64&&vt&&y.dynamicChildren?(P(y.dynamicChildren,vt,R,j,et,at,U),{}.NODE_ENV!=="production"?zi(y,w):(w.key!=null||j&&w===j.subTree)&&zi(y,w,!0)):B(y,w,R,ht,j,et,at,U,ot)},Y=(y,w,R,z,j,et,at,U,ot)=>{w.slotScopeIds=U,y==null?w.shapeFlag&512?j.ctx.activate(w,R,z,at,ot):nt(w,R,z,j,et,at,ot):q(y,w,ot)},nt=(y,w,R,z,j,et,at)=>{const U=y.component=sp(y,z,j);if({}.NODE_ENV!=="production"&&U.type.__hmrId&&Ld(U),{}.NODE_ENV!=="production"&&(Mi(y),fs(U,"mount")),go(y)&&(U.ctx.renderer=Fe),{}.NODE_ENV!=="production"&&fs(U,"init"),ip(U),{}.NODE_ENV!=="production"&&ps(U,"init"),U.asyncDep){if(j&&j.registerDep(U,X),!y.el){const ot=U.subTree=mt(Me);S(null,ot,w,R)}}else X(U,y,w,R,j,et,at);({}).NODE_ENV!=="production"&&(Di(),ps(U,"mount"))},q=(y,w,R)=>{const z=w.component=y.component;if(Kd(y,w,R))if(z.asyncDep&&!z.asyncResolved){({}).NODE_ENV!=="production"&&Mi(w),it(z,w,R),{}.NODE_ENV!=="production"&&Di();return}else z.next=w,Nd(z.update),z.effect.dirty=!0,z.update();else w.el=y.el,z.vnode=w},X=(y,w,R,z,j,et,at)=>{const U=()=>{if(y.isMounted){let{next:ht,bu:_t,u:vt,parent:Ct,vnode:Mt}=y;{const Bs=Tc(y);if(Bs){ht&&(ht.el=Mt.el,it(y,ht,at)),Bs.asyncDep.then(()=>{y.isUnmounted||U()});return}}let Ft=ht,jt;({}).NODE_ENV!=="production"&&Mi(ht||y.vnode),an(y,!1),ht?(ht.el=Mt.el,it(y,ht,at)):ht=Mt,_t&&Dn(_t),(jt=ht.props&&ht.props.onVnodeBeforeUpdate)&&ss(jt,Ct,ht,Mt),an(y,!0),{}.NODE_ENV!=="production"&&fs(y,"render");const Qt=ho(y);({}).NODE_ENV!=="production"&&ps(y,"render");const ke=y.subTree;y.subTree=Qt,{}.NODE_ENV!=="production"&&fs(y,"patch"),v(ke,Qt,h(ke.el),ae(ke),y,j,et),{}.NODE_ENV!=="production"&&ps(y,"patch"),ht.el=Qt.el,Ft===null&&Qd(y,Qt.el),vt&&Ie(vt,j),(jt=ht.props&&ht.props.onVnodeUpdated)&&Ie(()=>ss(jt,Ct,ht,Mt),j),{}.NODE_ENV!=="production"&&Hl(y),{}.NODE_ENV!=="production"&&Di()}else{let ht;const{el:_t,props:vt}=w,{bm:Ct,m:Mt,parent:Ft}=y,jt=Bn(w);if(an(y,!1),Ct&&Dn(Ct),!jt&&(ht=vt&&vt.onVnodeBeforeMount)&&ss(ht,Ft,w),an(y,!0),_t&&Ne){const Qt=()=>{({}).NODE_ENV!=="production"&&fs(y,"render"),y.subTree=ho(y),{}.NODE_ENV!=="production"&&ps(y,"render"),{}.NODE_ENV!=="production"&&fs(y,"hydrate"),Ne(_t,y.subTree,y,j,null),{}.NODE_ENV!=="production"&&ps(y,"hydrate")};jt?w.type.__asyncLoader().then(()=>!y.isUnmounted&&Qt()):Qt()}else{({}).NODE_ENV!=="production"&&fs(y,"render");const Qt=y.subTree=ho(y);({}).NODE_ENV!=="production"&&ps(y,"render"),{}.NODE_ENV!=="production"&&fs(y,"patch"),v(null,Qt,R,z,y,j,et),{}.NODE_ENV!=="production"&&ps(y,"patch"),w.el=Qt.el}if(Mt&&Ie(Mt,j),!jt&&(ht=vt&&vt.onVnodeMounted)){const Qt=w;Ie(()=>ss(ht,Ft,Qt),j)}(w.shapeFlag&256||Ft&&Bn(Ft.vnode)&&Ft.vnode.shapeFlag&256)&&y.a&&Ie(y.a,j),y.isMounted=!0,{}.NODE_ENV!=="production"&&Bd(y),w=R=z=null}},ot=y.effect=new Ur(U,ee,()=>Ri(Z),y.scope),Z=y.update=()=>{ot.dirty&&ot.run()};Z.id=y.uid,an(y,!0),{}.NODE_ENV!=="production"&&(ot.onTrack=y.rtc?ht=>Dn(y.rtc,ht):void 0,ot.onTrigger=y.rtg?ht=>Dn(y.rtg,ht):void 0,Z.ownerInstance=y),Z()},it=(y,w,R)=>{w.component=y;const z=y.vnode.props;y.vnode=w,y.next=null,Af(y,w.props,z,R),zf(y,w.children,R),as(),Gl(y),ls()},B=(y,w,R,z,j,et,at,U,ot=!1)=>{const Z=y&&y.children,ht=y?y.shapeFlag:0,_t=w.children,{patchFlag:vt,shapeFlag:Ct}=w;if(vt>0){if(vt&128){yt(Z,_t,R,z,j,et,at,U,ot);return}else if(vt&256){V(Z,_t,R,z,j,et,at,U,ot);return}}Ct&8?(ht&16&&It(Z,j,et),_t!==Z&&u(R,_t)):ht&16?Ct&16?yt(Z,_t,R,z,j,et,at,U,ot):It(Z,j,et,!0):(ht&8&&u(R,""),Ct&16&&x(_t,R,z,j,et,at,U,ot))},V=(y,w,R,z,j,et,at,U,ot)=>{y=y||mn,w=w||mn;const Z=y.length,ht=w.length,_t=Math.min(Z,ht);let vt;for(vt=0;vt<_t;vt++){const Ct=w[vt]=ot?Rs(w[vt]):We(w[vt]);v(y[vt],Ct,R,null,j,et,at,U,ot)}Z>ht?It(y,j,et,!0,!1,_t):x(w,R,z,j,et,at,U,ot,_t)},yt=(y,w,R,z,j,et,at,U,ot)=>{let Z=0;const ht=w.length;let _t=y.length-1,vt=ht-1;for(;Z<=_t&&Z<=vt;){const Ct=y[Z],Mt=w[Z]=ot?Rs(w[Z]):We(w[Z]);if(Zn(Ct,Mt))v(Ct,Mt,R,null,j,et,at,U,ot);else break;Z++}for(;Z<=_t&&Z<=vt;){const Ct=y[_t],Mt=w[vt]=ot?Rs(w[vt]):We(w[vt]);if(Zn(Ct,Mt))v(Ct,Mt,R,null,j,et,at,U,ot);else break;_t--,vt--}if(Z>_t){if(Z<=vt){const Ct=vt+1,Mt=Ct<ht?w[Ct].el:z;for(;Z<=vt;)v(null,w[Z]=ot?Rs(w[Z]):We(w[Z]),R,Mt,j,et,at,U,ot),Z++}}else if(Z>vt)for(;Z<=_t;)W(y[Z],j,et,!0),Z++;else{const Ct=Z,Mt=Z,Ft=new Map;for(Z=Mt;Z<=vt;Z++){const _e=w[Z]=ot?Rs(w[Z]):We(w[Z]);_e.key!=null&&({}.NODE_ENV!=="production"&&Ft.has(_e.key)&&rt("Duplicate keys found during update:",JSON.stringify(_e.key),"Make sure keys are unique."),Ft.set(_e.key,Z))}let jt,Qt=0;const ke=vt-Mt+1;let Bs=!1,Dr=0;const fn=new Array(ke);for(Z=0;Z<ke;Z++)fn[Z]=0;for(Z=Ct;Z<=_t;Z++){const _e=y[Z];if(Qt>=ke){W(_e,j,et,!0);continue}let Pe;if(_e.key!=null)Pe=Ft.get(_e.key);else for(jt=Mt;jt<=vt;jt++)if(fn[jt-Mt]===0&&Zn(_e,w[jt])){Pe=jt;break}Pe===void 0?W(_e,j,et,!0):(fn[Pe-Mt]=Z+1,Pe>=Dr?Dr=Pe:Bs=!0,v(_e,w[Pe],R,null,j,et,at,U,ot),Qt++)}const Rr=Bs?Wf(fn):mn;for(jt=Rr.length-1,Z=ke-1;Z>=0;Z--){const _e=Mt+Z,Pe=w[_e],Nr=_e+1<ht?w[_e+1].el:z;fn[Z]===0?v(null,Pe,R,Nr,j,et,at,U,ot):Bs&&(jt<0||Z!==Rr[jt]?A(Pe,R,Nr,2):jt--)}}},A=(y,w,R,z,j=null)=>{const{el:et,type:at,transition:U,children:ot,shapeFlag:Z}=y;if(Z&6){A(y.component.subTree,w,R,z);return}if(Z&128){y.suspense.move(w,R,z);return}if(Z&64){at.move(y,w,R,Fe);return}if(at===Lt){n(et,w,R);for(let _t=0;_t<ot.length;_t++)A(ot[_t],w,R,z);n(y.anchor,w,R);return}if(at===Un){O(y,w,R);return}if(z!==2&&Z&1&&U)if(z===0)U.beforeEnter(et),n(et,w,R),Ie(()=>U.enter(et),j);else{const{leave:_t,delayLeave:vt,afterLeave:Ct}=U,Mt=()=>n(et,w,R),Ft=()=>{_t(et,()=>{Mt(),Ct&&Ct()})};vt?vt(et,Mt,Ft):Ft()}else n(et,w,R)},W=(y,w,R,z=!1,j=!1)=>{const{type:et,props:at,ref:U,children:ot,dynamicChildren:Z,shapeFlag:ht,patchFlag:_t,dirs:vt}=y;if(U!=null&&Eo(U,null,R,y,!0),ht&256){w.ctx.deactivate(y);return}const Ct=ht&1&&vt,Mt=!Bn(y);let Ft;if(Mt&&(Ft=at&&at.onVnodeBeforeUnmount)&&ss(Ft,w,y),ht&6)oe(y.component,R,z);else{if(ht&128){y.suspense.unmount(R,z);return}Ct&&nn(y,null,w,"beforeUnmount"),ht&64?y.type.remove(y,w,R,j,Fe,z):Z&&(et!==Lt||_t>0&&_t&64)?It(Z,w,R,!1,!0):(et===Lt&&_t&384||!j&&ht&16)&&It(ot,w,R),z&&L(y)}(Mt&&(Ft=at&&at.onVnodeUnmounted)||Ct)&&Ie(()=>{Ft&&ss(Ft,w,y),Ct&&nn(y,null,w,"unmounted")},R)},L=y=>{const{type:w,el:R,anchor:z,transition:j}=y;if(w===Lt){({}).NODE_ENV!=="production"&&y.patchFlag>0&&y.patchFlag&2048&&j&&!j.persisted?y.children.forEach(at=>{at.type===Me?i(at.el):L(at)}):te(R,z);return}if(w===Un){K(y);return}const et=()=>{i(R),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(y.shapeFlag&1&&j&&!j.persisted){const{leave:at,delayLeave:U}=j,ot=()=>at(R,et);U?U(y.el,et,ot):ot()}else et()},te=(y,w)=>{let R;for(;y!==w;)R=d(y),i(y),y=R;i(w)},oe=(y,w,R)=>{({}).NODE_ENV!=="production"&&y.type.__hmrId&&Fd(y);const{bum:z,scope:j,update:et,subTree:at,um:U}=y;z&&Dn(z),j.stop(),et&&(et.active=!1,W(at,y,w,R)),U&&Ie(U,w),Ie(()=>{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"&&Xd(y)},It=(y,w,R,z=!1,j=!1,et=0)=>{for(let at=et;at<y.length;at++)W(y[at],w,R,z,j)},ae=y=>y.shapeFlag&6?ae(y.component.subTree):y.shapeFlag&128?y.suspense.next():d(y.anchor||y.el);let zt=!1;const ie=(y,w,R)=>{y==null?w._vnode&&W(w._vnode,null,null,!0):v(w._vnode||null,y,w,null,null,null,R),zt||(zt=!0,Gl(),Yl(),zt=!1),w._vnode=y},Fe={p:v,um:W,m:A,r:L,mt:nt,mc:x,pc:B,pbc:P,n:ae,o:s};let ze,Ne;return t&&([ze,Ne]=t(Fe)),{render:ie,hydrate:ze,createApp:Mf(ie,ze)}}function ko({type:s,props:t},e){return e==="svg"&&s==="foreignObject"||e==="mathml"&&s==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function an({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function Uf(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function zi(s,t,e=!1){const n=s.children,i=t.children;if(xt(n)&&xt(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Rs(i[r]),a.el=o.el),e||zi(o,a)),a.type===Hn&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Me&&!a.el&&(a.el=o.el)}}function Wf(s){const t=s.slice(),e=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=e[e.length-1],s[i]<c){t[n]=i,e.push(n);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,s[e[a]]<c?r=a+1:o=a;c<s[e[r]]&&(r>0&&(t[n]=e[r-1]),e[r]=n)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function Tc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tc(t)}const qf=s=>s.__isTeleport,Lt=Symbol.for("v-fgt"),Hn=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Un=Symbol.for("v-stc"),Wn=[];let Ue=null;function N(s=!1){Wn.push(Ue=s?null:[])}function Zf(){Wn.pop(),Ue=Wn[Wn.length-1]||null}let qn=1;function Ec(s){qn+=s}function kc(s){return s.dynamicChildren=qn>0?Ue||mn:null,Zf(),qn>0&&Ue&&Ue.push(s),s}function H(s,t,e,n,i,r){return kc(C(s,t,e,n,i,r,!0))}function Gt(s,t,e,n,i){return kc(mt(s,t,e,n,i,!0))}function _n(s){return s?s.__v_isVNode===!0:!1}function Zn(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&vn.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Kf=(...s)=>Oc(...s),Pc=({key:s})=>s??null,Xi=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?se(s)||me(s)||wt(s)?{i:ne,r:s,k:t,f:!!e}:s:null);function C(s,t=null,e=null,n=0,i=null,r=s===Lt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Pc(t),ref:t&&Xi(t),scopeId:Ai,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ne};return a?(Po(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=se(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&rt("VNode created with invalid key (NaN). VNode type:",l.type),qn>0&&!o&&Ue&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Ue.push(l),l}const mt={}.NODE_ENV!=="production"?Kf:Oc;function Oc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===tf)&&({}.NODE_ENV!=="production"&&!s&&rt(`Invalid vnode type when creating vnode: ${s}.`),s=Me),_n(s)){const a=Ds(s,t,!0);return e&&Po(a,e),qn>0&&!r&&Ue&&(a.shapeFlag&6?Ue[Ue.indexOf(s)]=a:Ue.push(a)),a.patchFlag|=-2,a}if($c(s)&&(s=s.__vccOpts),t){t=Qf(t);let{class:a,style:l}=t;a&&!se(a)&&(t.class=Jt(a)),Vt(l)&&(eo(l)&&!xt(l)&&(l=qt({},l)),t.style=G(l))}const o=se(s)?1:sf(s)?128:qf(s)?64:Vt(s)?4:wt(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&eo(s)&&(s=Pt(s),rt("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
22
+ Component that was made reactive: `,s)),C(s,t,e,n,i,o,r,!0)}function Qf(s){return s?eo(s)||fc(s)?qt({},s):s:null}function Ds(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?Oo(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&Pc(a),ref:t&&t.ref?e&&i?xt(i)?i.concat(Xi(t)):[i,Xi(t)]:Xi(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&xt(o)?o.map(Ic):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==Lt?r===-1?16:r|16:r,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Ds(s.ssContent),ssFallback:s.ssFallback&&Ds(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function Ic(s){const t=Ds(s);return xt(s.children)&&(t.children=s.children.map(Ic)),t}function Kt(s=" ",t=0){return mt(Hn,null,s,t)}function Jf(s,t){const e=mt(Un,null,s);return e.staticCount=t,e}function Yt(s="",t=!1){return t?(N(),Gt(Me,null,s)):mt(Me,null,s)}function We(s){return s==null||typeof s=="boolean"?mt(Me):xt(s)?mt(Lt,null,s.slice()):typeof s=="object"?Rs(s):mt(Hn,null,String(s))}function Rs(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Ds(s)}function Po(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(xt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Po(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!fc(t)?t._ctx=ne:i===3&&ne&&(ne.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else wt(t)?(t={default:t,_ctx:ne},e=32):(t=String(t),n&64?(e=16,t=[Kt(t)]):e=8);s.children=t,s.shapeFlag|=e}function Oo(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Jt([t.class,n.class]));else if(i==="style")t.style=G([t.style,n.style]);else if(In(i)){const r=t[i],o=n[i];o&&r!==o&&!(xt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function ss(s,t,e,n=null){He(s,t,7,[e,n])}const tp=uc();let ep=0;function sp(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||tp,r={uid:ep++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Kh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:mc(n,i),emitsOptions:Wl(n,i),emit:null,emitted:null,propsDefaults:Bt,inheritAttrs:n.inheritAttrs,ctx:Bt,data:Bt,props:Bt,attrs:Bt,slots:Bt,refs:Bt,setupState:Bt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:e,suspenseId:e?e.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?r.ctx=_f(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Wd.bind(null,r),s.ce&&s.ce(r),r}let le=null;const Mc=()=>le||ne;let ji,Io;{const s=jr(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};ji=t("__VUE_INSTANCE_SETTERS__",e=>le=e),Io=t("__VUE_SSR_SETTERS__",e=>Hi=e)}const Kn=s=>{const t=le;return ji(s),s.scope.on(),()=>{s.scope.off(),ji(t)}},Dc=()=>{le&&le.scope.off(),ji(null)},np=Ke("slot,component");function Mo(s,{isNativeTag:t}){(np(s)||t(s))&&rt("Do not use built-in or reserved HTML elements as component id: "+s)}function Rc(s){return s.vnode.shapeFlag&4}let Hi=!1;function ip(s,t=!1){t&&Io(t);const{props:e,children:n}=s.vnode,i=Rc(s);Rf(s,e,i,t),Bf(s,n);const r=i?rp(s,t):void 0;return t&&Io(!1),r}function rp(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Mo(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)Mo(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)ec(r[o])}n.compilerOptions&&op()&&rt('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}s.accessCache=Object.create(null),s.proxy=new Proxy(s.ctx,ic),{}.NODE_ENV!=="production"&&bf(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?Fc(s):null,o=Kn(s);as();const a=us(i,s,0,[{}.NODE_ENV!=="production"?cs(s.props):s.props,r]);if(ls(),o(),Br(a)){if(a.then(Dc,Dc),t)return a.then(l=>{Nc(s,l,t)}).catch(l=>{Nn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";rt(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Nc(s,a,t)}else Ac(s,t)}function Nc(s,t,e){wt(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Vt(t)?({}.NODE_ENV!=="production"&&_n(t)&&rt("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=Al(t),{}.NODE_ENV!=="production"&&xf(s)):{}.NODE_ENV!=="production"&&t!==void 0&&rt(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Ac(s,e)}let Do;const op=()=>!Do;function Ac(s,t,e){const n=s.type;if(!s.render){if(!t&&Do&&!n.render){const i=n.template||xo(s).template;if(i){({}).NODE_ENV!=="production"&&fs(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=qt(qt({isCustomElement:r,delimiters:a},o),l);n.render=Do(i,c),{}.NODE_ENV!=="production"&&ps(s,"compile")}}s.render=n.render||ee}{const i=Kn(s);as();try{Tf(s)}finally{ls(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===ee&&!t&&(n.template?rt('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):rt("Component is missing template or render function."))}const Lc={}.NODE_ENV!=="production"?{get(s,t){return Fi(),pe(s,"get",""),s[t]},set(){return rt("setupContext.attrs is readonly."),!1},deleteProperty(){return rt("setupContext.attrs is readonly."),!1}}:{get(s,t){return pe(s,"get",""),s[t]}};function ap(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return pe(s,"get","$slots"),t[e]}}))}function Fc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&rt("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(xt(e)?n="array":me(e)&&(n="ref")),n!=="object"&&rt(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};if({}.NODE_ENV!=="production"){let e;return Object.freeze({get attrs(){return e||(e=new Proxy(s.attrs,Lc))},get slots(){return ap(s)},get emit(){return(n,...i)=>s.emit(n,...i)},expose:t})}else return{attrs:new Proxy(s.attrs,Lc),slots:s.slots,emit:s.emit,expose:t}}function Ui(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(Al(bd(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in on)return on[e](s)},has(t,e){return e in t||e in on}}))}const lp=/(?:^|[-_])(\w)/g,cp=s=>s.replace(lp,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ro(s,t=!0){return wt(s)?s.displayName||s.name:s.name||t&&s.__name}function Wi(s,t,e=!1){let n=Ro(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?cp(n):e?"App":"Anonymous"}function $c(s){return wt(s)&&"__vccOpts"in s}const up=(s,t)=>{const e=wd(s,t,Hi);if({}.NODE_ENV!=="production"){const n=Mc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function ms(s,t,e){const n=arguments.length;return n===2?Vt(t)&&!xt(t)?_n(t)?mt(s,null,[t]):mt(s,t):mt(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&_n(e)&&(e=[e]),mt(s,t,e))}function hp(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Vt(h)?h.__isVue?["div",s,"VueInstance"]:me(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:gn(h)?["div",{},["span",s,Ks(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Zs(h)?" (readonly)":""}`]:Zs(h)?["div",{},["span",s,Ks(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...r(h.$)]}};function r(h){const d=[];h.type.props&&h.props&&d.push(o("props",Pt(h.props))),h.setupState!==Bt&&d.push(o("setup",h.setupState)),h.data!==Bt&&d.push(o("data",Pt(h.data)));const m=l(h,"computed");m&&d.push(o("computed",m));const f=l(h,"inject");return f&&d.push(o("injected",f)),d.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),d}function o(h,d){return d=qt({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(m=>["div",{},["span",n,m+": "],a(d[m],!1)])]]:["span",{}]}function a(h,d=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Vt(h)?["object",{object:d?Pt(h):h}]:["span",e,String(h)]}function l(h,d){const m=h.type;if(wt(m))return;const f={};for(const v in h.ctx)c(m,v,d)&&(f[v]=h.ctx[v]);return f}function c(h,d,m){const f=h[m];if(xt(f)&&f.includes(d)||Vt(f)&&d in f||h.extends&&c(h.extends,d,m)||h.mixins&&h.mixins.some(v=>c(v,d,m)))return!0}function u(h){return Ks(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Vc="3.4.25",No={}.NODE_ENV!=="production"?rt:ee;/**
23
23
  * @vue/runtime-dom v3.4.25
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
26
- **/const Qf="http://www.w3.org/2000/svg",Jf="http://www.w3.org/1998/Math/MathML",Us=typeof document<"u"?document:null,Fc=Us&&Us.createElement("template"),tp={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,n)=>{const i=t==="svg"?Us.createElementNS(Qf,s):t==="mathml"?Us.createElementNS(Jf,s):Us.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>Us.createTextNode(s),createComment:s=>Us.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Us.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,n,i,r){const o=e?e.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===r||!(i=i.nextSibling)););else{Fc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=Fc.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},ep=Symbol("_vtc");function sp(s,t,e){const n=s[ep];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const cr=Symbol("_vod"),Gc=Symbol("_vsh"),ms={beforeMount(s,{value:t},{transition:e}){s[cr]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):ai(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(s),ai(s,!0),n.enter(s)):n.leave(s,()=>{ai(s,!1)}):ai(s,t))},beforeUnmount(s,{value:t}){ai(s,t)}};({}).NODE_ENV!=="production"&&(ms.name="show");function ai(s,t){s.style.display=t?s[cr]:"none",s[Gc]=!t}const np=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ip=/(^|;)\s*display\s*:/;function rp(s,t,e){const n=s.style,i=le(e);let r=!1;if(e&&!i){if(t)if(le(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&ur(n,a,"")}else for(const o in t)e[o]==null&&ur(n,o,"");for(const o in e)o==="display"&&(r=!0),ur(n,o,e[o])}else if(i){if(t!==e){const o=n[np];o&&(e+=";"+o),n.cssText=e,r=ip.test(e)}}else t&&s.removeAttribute("style");cr in s&&(s[cr]=r?n.display:"",s[Gc]&&(n.display="none"))}const op=/[^\\];\s*$/,zc=/\s*!important$/;function ur(s,t,e){if(mt(e))e.forEach(n=>ur(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&op.test(e)&&Go(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=ap(s,t);zc.test(e)?s.setProperty(Vs(n),e.replace(zc,""),"important"):s[n]=e}}const jc=["Webkit","Moz","ms"],zo={};function ap(s,t){const e=zo[t];if(e)return e;let n=us(t);if(n!=="filter"&&n in s)return zo[t]=n;n=rn(n);for(let i=0;i<jc.length;i++){const r=jc[i]+n;if(r in s)return zo[t]=r}return t}const Bc="http://www.w3.org/1999/xlink";function lp(s,t,e,n,i){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(Bc,t.slice(6,t.length)):s.setAttributeNS(Bc,t,e);else{const r=Lh(t);e==null||r&&!al(e)?s.removeAttribute(t):s.setAttribute(t,r?"":e)}}function cp(s,t,e,n,i,r,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,r),s[t]=e??"";return}const a=s.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?s.getAttribute("value")||"":s.value,u=e??"";(c!==u||!("_value"in s))&&(s.value=u),e==null&&s.removeAttribute(t),s._value=e;return}let l=!1;if(e===""||e==null){const c=typeof s[t];c==="boolean"?e=al(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&Go(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function up(s,t,e,n){s.addEventListener(t,e,n)}function hp(s,t,e,n){s.removeEventListener(t,e,n)}const Yc=Symbol("_vei");function dp(s,t,e,n,i=null){const r=s[Yc]||(s[Yc]={}),o=r[t];if(n&&o)o.value={}.NODE_ENV!=="production"?Hc(n,t):n;else{const[a,l]=fp(t);if(n){const c=r[t]=gp({}.NODE_ENV!=="production"?Hc(n,t):n,i);up(s,a,c,l)}else o&&(hp(s,a,o,l),r[t]=void 0)}}const Xc=/(?:Once|Passive|Capture)$/;function fp(s){let t;if(Xc.test(s)){t={};let n;for(;n=s.match(Xc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):Vs(s.slice(2)),t]}let jo=0;const pp=Promise.resolve(),mp=()=>jo||(pp.then(()=>jo=0),jo=Date.now());function gp(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ss(yp(n,e.value),t,5,[n])};return e.value=s,e.attached=mp(),e}function Hc(s,t){return St(s)||mt(s)?s:(Go(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
27
- Expected function or array of functions, received type ${typeof s}.`),ae)}function yp(s,t){if(mt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Uc=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,vp=(s,t,e,n,i,r,o,a,l)=>{const c=i==="svg";t==="class"?sp(s,n,c):t==="style"?rp(s,e,n):jn(t)?Ni(t)||dp(s,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_p(s,t,n,c))?cp(s,t,n,r,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),lp(s,t,n,c))};function _p(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Uc(t)&&St(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&s.tagName==="INPUT"||t==="type"&&s.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=s.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Uc(t)&&le(e)?!1:t in s}const bp=te({patchProp:vp},tp);let Wc;function xp(){return Wc||(Wc=Nf(bp))}const hr=(...s)=>{xp().render(...s)};/**
26
+ **/const dp="http://www.w3.org/2000/svg",fp="http://www.w3.org/1998/Math/MathML",Ns=typeof document<"u"?document:null,Gc=Ns&&Ns.createElement("template"),pp={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,n)=>{const i=t==="svg"?Ns.createElementNS(dp,s):t==="mathml"?Ns.createElementNS(fp,s):Ns.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>Ns.createTextNode(s),createComment:s=>Ns.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Ns.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,n,i,r){const o=e?e.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===r||!(i=i.nextSibling)););else{Gc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=Gc.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},mp=Symbol("_vtc");function gp(s,t,e){const n=s[mp];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const qi=Symbol("_vod"),Yc=Symbol("_vsh"),As={beforeMount(s,{value:t},{transition:e}){s[qi]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):Qn(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(s),Qn(s,!0),n.enter(s)):n.leave(s,()=>{Qn(s,!1)}):Qn(s,t))},beforeUnmount(s,{value:t}){Qn(s,t)}};({}).NODE_ENV!=="production"&&(As.name="show");function Qn(s,t){s.style.display=t?s[qi]:"none",s[Yc]=!t}const yp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),vp=/(^|;)\s*display\s*:/;function _p(s,t,e){const n=s.style,i=se(e);let r=!1;if(e&&!i){if(t)if(se(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&Zi(n,a,"")}else for(const o in t)e[o]==null&&Zi(n,o,"");for(const o in e)o==="display"&&(r=!0),Zi(n,o,e[o])}else if(i){if(t!==e){const o=n[yp];o&&(e+=";"+o),n.cssText=e,r=vp.test(e)}}else t&&s.removeAttribute("style");qi in s&&(s[qi]=r?n.display:"",s[Yc]&&(n.display="none"))}const bp=/[^\\];\s*$/,Bc=/\s*!important$/;function Zi(s,t,e){if(xt(e))e.forEach(n=>Zi(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&bp.test(e)&&No(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=xp(s,t);Bc.test(e)?s.setProperty(Ts(n),e.replace(Bc,""),"important"):s[n]=e}}const zc=["Webkit","Moz","ms"],Ao={};function xp(s,t){const e=Ao[t];if(e)return e;let n=Qe(t);if(n!=="filter"&&n in s)return Ao[t]=n;n=Hs(n);for(let i=0;i<zc.length;i++){const r=zc[i]+n;if(r in s)return Ao[t]=r}return t}const Xc="http://www.w3.org/1999/xlink";function wp(s,t,e,n,i){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(Xc,t.slice(6,t.length)):s.setAttributeNS(Xc,t,e);else{const r=Zh(t);e==null||r&&!cl(e)?s.removeAttribute(t):s.setAttribute(t,r?"":e)}}function Cp(s,t,e,n,i,r,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,r),s[t]=e??"";return}const a=s.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?s.getAttribute("value")||"":s.value,u=e??"";(c!==u||!("_value"in s))&&(s.value=u),e==null&&s.removeAttribute(t),s._value=e;return}let l=!1;if(e===""||e==null){const c=typeof s[t];c==="boolean"?e=cl(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&No(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function Sp(s,t,e,n){s.addEventListener(t,e,n)}function Tp(s,t,e,n){s.removeEventListener(t,e,n)}const jc=Symbol("_vei");function Ep(s,t,e,n,i=null){const r=s[jc]||(s[jc]={}),o=r[t];if(n&&o)o.value={}.NODE_ENV!=="production"?Uc(n,t):n;else{const[a,l]=kp(t);if(n){const c=r[t]=Ip({}.NODE_ENV!=="production"?Uc(n,t):n,i);Sp(s,a,c,l)}else o&&(Tp(s,a,o,l),r[t]=void 0)}}const Hc=/(?:Once|Passive|Capture)$/;function kp(s){let t;if(Hc.test(s)){t={};let n;for(;n=s.match(Hc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):Ts(s.slice(2)),t]}let Lo=0;const Pp=Promise.resolve(),Op=()=>Lo||(Pp.then(()=>Lo=0),Lo=Date.now());function Ip(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;He(Mp(n,e.value),t,5,[n])};return e.value=s,e.attached=Op(),e}function Uc(s,t){return wt(s)||xt(s)?s:(No(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
27
+ Expected function or array of functions, received type ${typeof s}.`),ee)}function Mp(s,t){if(xt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Wc=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,Dp=(s,t,e,n,i,r,o,a,l)=>{const c=i==="svg";t==="class"?gp(s,n,c):t==="style"?_p(s,e,n):In(t)?_i(t)||Ep(s,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rp(s,t,n,c))?Cp(s,t,n,r,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),wp(s,t,n,c))};function Rp(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Wc(t)&&wt(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&s.tagName==="INPUT"||t==="type"&&s.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=s.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Wc(t)&&se(e)?!1:t in s}const Np=qt({patchProp:Dp},pp);let qc;function Ap(){return qc||(qc=jf(Np))}const Zc=(...s)=>{Ap().render(...s)};/**
28
28
  * vue v3.4.25
29
29
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
30
30
  * @license MIT
31
- **/function wp(){Kf()}({}).NODE_ENV!=="production"&&wp();const li=/^[a-z0-9]+(-[a-z0-9]+)*$/,dr=(s,t,e,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 t&&!fr(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 t&&!fr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:r};return t&&!fr(a,e)?null:a}return null},fr=(s,t)=>s?!!((s.provider===""||s.provider.match(li))&&(t&&s.prefix===""||s.prefix.match(li))&&s.name.match(li)):!1,qc=Object.freeze({left:0,top:0,width:16,height:16}),pr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),mr=Object.freeze({...qc,...pr}),Bo=Object.freeze({...mr,body:"",hidden:!1});function Sp(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const n=((s.rotate||0)+(t.rotate||0))%4;return n&&(e.rotate=n),e}function Zc(s,t){const e=Sp(s,t);for(const n in Bo)n in pr?n in s&&!(n in e)&&(e[n]=pr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function Cp(s,t){const e=s.icons,n=s.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[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(t||Object.keys(e).concat(Object.keys(n))).forEach(r),i}function Ep(s,t,e){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=Zc(n[a]||i[a],r)}return o(t),e.forEach(o),Zc(s,r)}function Kc(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(i=>{t(i,null),e.push(i)});const n=Cp(s);for(const i in n){const r=n[i];r&&(t(i,Ep(s,i,r)),e.push(i))}return e}const kp={provider:"",aliases:{},not_found:{},...qc};function Yo(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function Qc(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Yo(s,kp))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i.match(li)||typeof r.body!="string"||!Yo(r,Bo))return null}const n=t.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(li)||typeof o!="string"||!e[o]&&!n[o]||!Yo(r,Bo))return null}return t}const Jc=Object.create(null);function Tp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function vn(s,t){const e=Jc[s]||(Jc[s]=Object.create(null));return e[t]||(e[t]=Tp(s,t))}function Xo(s,t){return Qc(t)?Kc(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function Op(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let ci=!1;function tu(s){return typeof s=="boolean"&&(ci=s),ci}function Pp(s){const t=typeof s=="string"?dr(s,!0,ci):s;if(t){const e=vn(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Dp(s,t){const e=dr(s,!0,ci);if(!e)return!1;const n=vn(e.provider,e.prefix);return Op(n,e.name,t)}function Ip(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),ci&&!t&&!s.prefix){let i=!1;return Qc(s)&&(s.prefix="",Kc(s,(r,o)=>{o&&Dp(r,o)&&(i=!0)})),i}const e=s.prefix;if(!fr({provider:t,prefix:e,name:"a"}))return!1;const n=vn(t,e);return!!Xo(n,s)}const eu=Object.freeze({width:null,height:null}),su=Object.freeze({...eu,...pr}),Np=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Mp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function nu(s,t,e){if(t===1)return s;if(e=e||100,typeof s=="number")return Math.ceil(s*t*e)/e;if(typeof s!="string")return s;const n=s.split(Np);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=Mp.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=n.shift(),r===void 0)return i.join("");o=!o}}function Ap(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const i=s.indexOf(">",n),r=s.indexOf("</"+t);if(i===-1||r===-1)break;const o=s.indexOf(">",r);if(o===-1)break;e+=s.slice(i+1,r).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function Rp(s,t){return s?"<defs>"+s+"</defs>"+t:t}function $p(s,t,e){const n=Ap(s);return Rp(n.defs,t+n.content+e)}const Vp=s=>s==="unset"||s==="undefined"||s==="none";function Lp(s,t){const e={...mr,...s},n={...su,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,n].forEach(v=>{const _=[],E=v.hFlip,D=v.vFlip;let N=v.rotate;E?D?N+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):D&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let k;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:k=i.height/2+i.top,_.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:k=i.width/2+i.left,_.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}N%2===1&&(i.left!==i.top&&(k=i.left,i.left=i.top,i.top=k),i.width!==i.height&&(k=i.width,i.width=i.height,i.height=k)),_.length&&(r=$p(r,'<g transform="'+_.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=nu(h,l/c)):(u=o==="auto"?l:o,h=a===null?nu(u,c/l):a==="auto"?c:a);const f={},d=(v,_)=>{Vp(_)||(f[v]=_.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 Fp=/\sid="(\S+)"/g,Gp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let zp=0;function jp(s,t=Gp){const e=[];let n;for(;n=Fp.exec(s);)e.push(n[1]);if(!e.length)return s;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(zp++).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 Ho=Object.create(null);function Bp(s,t){Ho[s]=t}function Uo(s){return Ho[s]||Ho[""]}function Wo(s){let t;if(typeof s.resources=="string")t=[s.resources];else if(t=s.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const qo=Object.create(null),ui=["https://api.simplesvg.com","https://api.unisvg.com"],gr=[];for(;ui.length>0;)ui.length===1||Math.random()>.5?gr.push(ui.shift()):gr.push(ui.pop());qo[""]=Wo({resources:["https://api.iconify.design"].concat(gr)});function Yp(s,t){const e=Wo(t);return e===null?!1:(qo[s]=e,!0)}function Zo(s){return qo[s]}let iu=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Xp(s,t){const e=Zo(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";n=e.maxURL-i-e.path.length-r.length}return n}function Hp(s){return s===404}const Up=(s,t,e)=>{const n=[],i=Xp(s,t),r="icons";let o={type:r,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(o),o={type:r,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function Wp(s){if(typeof s=="string"){const t=Zo(s);if(t)return t.path}return"/"}const qp={prepare:Up,send:(s,t,e)=>{if(!iu){e("abort",424);return}let n=Wp(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;n+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;iu(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(Hp(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function Zp(s){const t={loaded:[],missing:[],pending:[]},e=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=e[r]||(e[r]=Object.create(null)),c=l[o]||(l[o]=vn(r,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),t}function ru(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(i=>i.id!==t))})}function Kp(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const t=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const n=s.provider,i=s.prefix;t.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 e=!0,!0;return!1}),o.pending.length!==a&&(e||ru([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let Qp=0;function Jp(s,t,e){const n=Qp++,i=ru.bind(null,e,n);if(!t.pending.length)return i;const r={id:n,icons:t,callback:s,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function tm(s,t=!0,e=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?dr(i,t,e):i;r&&n.push(r)}),n}var em={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sm(s,t,e,n){const i=s.resources.length,r=s.random?Math.floor(Math.random()*i):s.index;let o;if(s.random){let R=s.resources.slice(0);for(o=[];R.length>1;){const U=Math.floor(Math.random()*R.length);o.push(R[U]),R=R.slice(0,U).concat(R.slice(U+1))}o=o.concat(R)}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(R=>{R.status==="pending"&&(R.status="aborted")}),f=[]}function _(R,U){U&&(d=[]),typeof R=="function"&&d.push(R)}function E(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:_,abort:v}}function D(){l="failed",d.forEach(R=>{R(void 0,u)})}function N(){f.forEach(R=>{R.status==="pending"&&(R.status="aborted")}),f=[]}function k(R,U,vt){const bt=U!=="success";switch(f=f.filter(Ct=>Ct!==R),l){case"pending":break;case"failed":if(bt||!s.dataAfterTimeout)return;break;default:return}if(U==="abort"){u=vt,D();return}if(bt){u=vt,f.length||(o.length?tt():D());return}if(m(),N(),!s.random){const Ct=s.resources.indexOf(R.resource);Ct!==-1&&Ct!==s.index&&(s.index=Ct)}l="completed",d.forEach(Ct=>{Ct(vt)})}function tt(){if(l!=="pending")return;m();const R=o.shift();if(R===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(N(),D())},s.timeout);return}D();return}const U={status:"pending",resource:R,callback:(vt,bt)=>{k(U,vt,bt)}};f.push(U),c++,h=setTimeout(tt,s.rotate),e(R,t,U.callback)}return setTimeout(tt),E}function ou(s){const t={...em,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function i(a,l,c){const u=sm(t,a,l,(h,f)=>{n(),c&&c(h,f)});return e.push(u),u}function r(a){return e.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function au(){}const Ko=Object.create(null);function nm(s){if(!Ko[s]){const t=Zo(s);if(!t)return;const e=ou(t),n={config:t,redundancy:e};Ko[s]=n}return Ko[s]}function im(s,t,e){let n,i;if(typeof s=="string"){const r=Uo(s);if(!r)return e(void 0,424),au;i=r.send;const o=nm(s);o&&(n=o.redundancy)}else{const r=Wo(s);if(r){n=ou(r);const o=s.resources?s.resources[0]:"",a=Uo(o);a&&(i=a.send)}}return!n||!i?(e(void 0,424),au):n.query(t,i,e)().abort}const lu="iconify2",hi="iconify",cu=hi+"-count",uu=hi+"-version",hu=36e5,rm=168,om=50;function Qo(s,t){try{return s.getItem(t)}catch{}}function Jo(s,t,e){try{return s.setItem(t,e),!0}catch{}}function du(s,t){try{s.removeItem(t)}catch{}}function ta(s,t){return Jo(s,cu,t.toString())}function ea(s){return parseInt(Qo(s,cu))||0}const yr={local:!0,session:!0},fu={local:new Set,session:new Set};let sa=!1;function am(s){sa=s}let vr=typeof window>"u"?{}:window;function pu(s){const t=s+"Storage";try{if(vr&&vr[t]&&typeof vr[t].length=="number")return vr[t]}catch{}yr[s]=!1}function mu(s,t){const e=pu(s);if(!e)return;const n=Qo(e,uu);if(n!==lu){if(n){const a=ea(e);for(let l=0;l<a;l++)du(e,hi+l.toString())}Jo(e,uu,lu),ta(e,0);return}const i=Math.floor(Date.now()/hu)-rm,r=a=>{const l=hi+a.toString(),c=Qo(e,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"&&t(u,a))return!0}catch{}du(e,l)}};let o=ea(e);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,ta(e,o)):fu[s].add(a))}function gu(){if(!sa){am(!0);for(const s in yr)mu(s,t=>{const e=t.data,n=t.provider,i=e.prefix,r=vn(n,i);if(!Xo(r,e).length)return!1;const o=e.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function lm(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in yr)mu(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===t});return!0}function cm(s,t){sa||gu();function e(n){let i;if(!yr[n]||!(i=pu(n)))return;const r=fu[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=ea(i),o>=om||!ta(i,o+1))return;const a={cached:Math.floor(Date.now()/hu),provider:s.provider,data:t};return Jo(i,hi+o.toString(),JSON.stringify(a))}t.lastModified&&!lm(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function yu(){}function um(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Kp(s)}))}function hm(s,t){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:e,prefix:n}=s,i=s.iconsToLoad;delete s.iconsToLoad;let r;if(!i||!(r=Uo(e)))return;r.prepare(e,n,i).forEach(a=>{im(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Xo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),cm(s,l)}catch(c){console.error(c)}um(s)})})}))}const dm=(s,t)=>{const e=tm(s,!0,tu()),n=Zp(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,yu)}),()=>{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(vn(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=vn(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&&hm(l,i[c][u])}),t?Jp(t,n,r):yu};function fm(s,t){const e={...s};for(const n in t){const i=t[n],r=typeof i;n in eu?(i===null||i&&(r==="string"||r==="number"))&&(e[n]=i):r===typeof e[n]&&(e[n]=n==="rotate"?i%4:i)}return e}const pm=/[\s,]+/;function mm(s,t){t.split(pm).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function gm(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(s);return isNaN(i)?0:n(i)}else if(e!==s){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(s.slice(0,s.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?n(r):0)}}return t}function ym(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)e+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function vm(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _m(s){return"data:image/svg+xml,"+vm(s)}function bm(s){return'url("'+_m(s)+'")'}const vu={...su,inline:!1},xm={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},wm={display:"inline-block"},na={backgroundColor:"currentColor"},_u={backgroundColor:"transparent"},bu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},xu={webkitMask:na,mask:na,background:_u};for(const s in xu){const t=xu[s];for(const e in bu)t[s+e]=bu[e]}const _r={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";_r[s+"-flip"]=t,_r[s.slice(0,1)+"-flip"]=t,_r[s+"Flip"]=t});function wu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Su=(s,t)=>{const e=fm(vu,t),n={...xm},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in t){const _=t[v];if(_!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[v]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&mm(e,_);break;case"color":r.color=_;break;case"rotate":typeof _=="string"?e[v]=gm(_):typeof _=="number"&&(e[v]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete n["aria-hidden"];break;default:{const E=_r[v];E?(_===!0||_==="true"||_===1)&&(e[E]=!0):vu[v]===void 0&&(n[v]=_)}}}const l=Lp(s,e),c=l.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let v=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),n.innerHTML=jp(l.body,_?()=>_+"ID"+v++:"iconifyVue"),Ge("svg",n)}const{body:u,width:h,height:f}=s,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=ym(u,{...c,width:h+"",height:f+""});return n.style={...r,"--svg":bm(m),width:wu(c.width),height:wu(c.height),...wm,...d?na:_u,...a},Ge("span",n)};if(tu(!0),Bp("",qp),typeof document<"u"&&typeof window<"u"){gu();const s=window;if(s.IconifyPreload!==void 0){const t=s.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Ip(n))&&console.error(e)}catch{console.error(e)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;Yp(e,i)||console.error(n)}catch{console.error(n)}}}}const Sm={...mr,body:""},Cm=ct({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(s,t){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let e;if(typeof s!="string"||(e=dr(s,!1,!0))===null)return this.abortLoading(),null;const n=Pp(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:dm([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const i=["iconify"];return e.prefix!==""&&i.push("iconify--"+e.prefix),e.provider!==""&&i.push("iconify--"+e.provider),{data:n,classes:i}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return Su(Sm,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),Su({...mr,...t.data},e)}});function Cu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function Eu(s){this.message=s}Eu.prototype=new Error,Eu.prototype.name="InvalidCharacterError";class ia{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,n]=t[0];return this.delete(e),n}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=this.entries();for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,i=e.length;n<i;n++){const[r,o]=e[n];t(r,o)===!1&&this.delete(r)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}const In=new ia,ra=s=>{let t=null;switch(s){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"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._-]+$/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"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
+ **/function Lp(){hp()}({}).NODE_ENV!=="production"&&Lp();const Jn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ki=(s,t,e,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 t&&!Qi(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 t&&!Qi(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:r};return t&&!Qi(a,e)?null:a}return null},Qi=(s,t)=>s?!!((s.provider===""||s.provider.match(Jn))&&(t&&s.prefix===""||s.prefix.match(Jn))&&s.name.match(Jn)):!1,Kc=Object.freeze({left:0,top:0,width:16,height:16}),Ji=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),tr=Object.freeze({...Kc,...Ji}),Fo=Object.freeze({...tr,body:"",hidden:!1});function Fp(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const n=((s.rotate||0)+(t.rotate||0))%4;return n&&(e.rotate=n),e}function Qc(s,t){const e=Fp(s,t);for(const n in Fo)n in Ji?n in s&&!(n in e)&&(e[n]=Ji[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function $p(s,t){const e=s.icons,n=s.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[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(t||Object.keys(e).concat(Object.keys(n))).forEach(r),i}function Vp(s,t,e){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=Qc(n[a]||i[a],r)}return o(t),e.forEach(o),Qc(s,r)}function Jc(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(i=>{t(i,null),e.push(i)});const n=$p(s);for(const i in n){const r=n[i];r&&(t(i,Vp(s,i,r)),e.push(i))}return e}const Gp={provider:"",aliases:{},not_found:{},...Kc};function $o(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function tu(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!$o(s,Gp))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i.match(Jn)||typeof r.body!="string"||!$o(r,Fo))return null}const n=t.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(Jn)||typeof o!="string"||!e[o]&&!n[o]||!$o(r,Fo))return null}return t}const eu=Object.create(null);function Yp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function ln(s,t){const e=eu[s]||(eu[s]=Object.create(null));return e[t]||(e[t]=Yp(s,t))}function Vo(s,t){return tu(t)?Jc(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function Bp(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let ti=!1;function su(s){return typeof s=="boolean"&&(ti=s),ti}function zp(s){const t=typeof s=="string"?Ki(s,!0,ti):s;if(t){const e=ln(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Xp(s,t){const e=Ki(s,!0,ti);if(!e)return!1;const n=ln(e.provider,e.prefix);return Bp(n,e.name,t)}function jp(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),ti&&!t&&!s.prefix){let i=!1;return tu(s)&&(s.prefix="",Jc(s,(r,o)=>{o&&Xp(r,o)&&(i=!0)})),i}const e=s.prefix;if(!Qi({provider:t,prefix:e,name:"a"}))return!1;const n=ln(t,e);return!!Vo(n,s)}const nu=Object.freeze({width:null,height:null}),iu=Object.freeze({...nu,...Ji}),Hp=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Up=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ru(s,t,e){if(t===1)return s;if(e=e||100,typeof s=="number")return Math.ceil(s*t*e)/e;if(typeof s!="string")return s;const n=s.split(Hp);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=Up.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=n.shift(),r===void 0)return i.join("");o=!o}}function Wp(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const i=s.indexOf(">",n),r=s.indexOf("</"+t);if(i===-1||r===-1)break;const o=s.indexOf(">",r);if(o===-1)break;e+=s.slice(i+1,r).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function qp(s,t){return s?"<defs>"+s+"</defs>"+t:t}function Zp(s,t,e){const n=Wp(s);return qp(n.defs,t+n.content+e)}const Kp=s=>s==="unset"||s==="undefined"||s==="none";function Qp(s,t){const e={...tr,...s},n={...iu,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,n].forEach(v=>{const b=[],S=v.hFlip,F=v.vFlip;let $=v.rotate;S?F?$+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):F&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let O;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:O=i.height/2+i.top,b.unshift("rotate(90 "+O.toString()+" "+O.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:O=i.width/2+i.left,b.unshift("rotate(-90 "+O.toString()+" "+O.toString()+")");break}$%2===1&&(i.left!==i.top&&(O=i.left,i.left=i.top,i.top=O),i.width!==i.height&&(O=i.width,i.width=i.height,i.height=O)),b.length&&(r=Zp(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=ru(h,l/c)):(u=o==="auto"?l:o,h=a===null?ru(u,c/l):a==="auto"?c:a);const d={},m=(v,b)=>{Kp(b)||(d[v]=b.toString())};m("width",u),m("height",h);const f=[i.left,i.top,l,c];return d.viewBox=f.join(" "),{attributes:d,viewBox:f,body:r}}const Jp=/\sid="(\S+)"/g,tm="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let em=0;function sm(s,t=tm){const e=[];let n;for(;n=Jp.exec(s);)e.push(n[1]);if(!e.length)return s;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(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 Go=Object.create(null);function nm(s,t){Go[s]=t}function Yo(s){return Go[s]||Go[""]}function Bo(s){let t;if(typeof s.resources=="string")t=[s.resources];else if(t=s.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const zo=Object.create(null),ei=["https://api.simplesvg.com","https://api.unisvg.com"],er=[];for(;ei.length>0;)ei.length===1||Math.random()>.5?er.push(ei.shift()):er.push(ei.pop());zo[""]=Bo({resources:["https://api.iconify.design"].concat(er)});function im(s,t){const e=Bo(t);return e===null?!1:(zo[s]=e,!0)}function Xo(s){return zo[s]}let ou=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function rm(s,t){const e=Xo(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";n=e.maxURL-i-e.path.length-r.length}return n}function om(s){return s===404}const am=(s,t,e)=>{const n=[],i=rm(s,t),r="icons";let o={type:r,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(o),o={type:r,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function lm(s){if(typeof s=="string"){const t=Xo(s);if(t)return t.path}return"/"}const cm={prepare:am,send:(s,t,e)=>{if(!ou){e("abort",424);return}let n=lm(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;n+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;ou(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(om(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function um(s){const t={loaded:[],missing:[],pending:[]},e=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=e[r]||(e[r]=Object.create(null)),c=l[o]||(l[o]=ln(r,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),t}function au(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(i=>i.id!==t))})}function hm(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const t=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const n=s.provider,i=s.prefix;t.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 e=!0,!0;return!1}),o.pending.length!==a&&(e||au([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let dm=0;function fm(s,t,e){const n=dm++,i=au.bind(null,e,n);if(!t.pending.length)return i;const r={id:n,icons:t,callback:s,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function pm(s,t=!0,e=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?Ki(i,t,e):i;r&&n.push(r)}),n}var mm={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function gm(s,t,e,n){const i=s.resources.length,r=s.random?Math.floor(Math.random()*i):s.index;let o;if(s.random){let st=s.resources.slice(0);for(o=[];st.length>1;){const J=Math.floor(Math.random()*st.length);o.push(st[J]),st=st.slice(0,J).concat(st.slice(J+1))}o=o.concat(st)}else o=s.resources.slice(r).concat(s.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,d=[],m=[];typeof n=="function"&&m.push(n);function f(){h&&(clearTimeout(h),h=null)}function v(){l==="pending"&&(l="aborted"),f(),d.forEach(st=>{st.status==="pending"&&(st.status="aborted")}),d=[]}function b(st,J){J&&(m=[]),typeof st=="function"&&m.push(st)}function S(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:b,abort:v}}function F(){l="failed",m.forEach(st=>{st(void 0,u)})}function $(){d.forEach(st=>{st.status==="pending"&&(st.status="aborted")}),d=[]}function O(st,J,gt){const x=J!=="success";switch(d=d.filter(k=>k!==st),l){case"pending":break;case"failed":if(x||!s.dataAfterTimeout)return;break;default:return}if(J==="abort"){u=gt,F();return}if(x){u=gt,d.length||(o.length?K():F());return}if(f(),$(),!s.random){const k=s.resources.indexOf(st.resource);k!==-1&&k!==s.index&&(s.index=k)}l="completed",m.forEach(k=>{k(gt)})}function K(){if(l!=="pending")return;f();const st=o.shift();if(st===void 0){if(d.length){h=setTimeout(()=>{f(),l==="pending"&&($(),F())},s.timeout);return}F();return}const J={status:"pending",resource:st,callback:(gt,x)=>{O(J,gt,x)}};d.push(J),c++,h=setTimeout(K,s.rotate),e(st,t,J.callback)}return setTimeout(K),S}function lu(s){const t={...mm,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function i(a,l,c){const u=gm(t,a,l,(h,d)=>{n(),c&&c(h,d)});return e.push(u),u}function r(a){return e.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function cu(){}const jo=Object.create(null);function ym(s){if(!jo[s]){const t=Xo(s);if(!t)return;const e=lu(t),n={config:t,redundancy:e};jo[s]=n}return jo[s]}function vm(s,t,e){let n,i;if(typeof s=="string"){const r=Yo(s);if(!r)return e(void 0,424),cu;i=r.send;const o=ym(s);o&&(n=o.redundancy)}else{const r=Bo(s);if(r){n=lu(r);const o=s.resources?s.resources[0]:"",a=Yo(o);a&&(i=a.send)}}return!n||!i?(e(void 0,424),cu):n.query(t,i,e)().abort}const uu="iconify2",si="iconify",hu=si+"-count",du=si+"-version",fu=36e5,_m=168,bm=50;function Ho(s,t){try{return s.getItem(t)}catch{}}function Uo(s,t,e){try{return s.setItem(t,e),!0}catch{}}function pu(s,t){try{s.removeItem(t)}catch{}}function Wo(s,t){return Uo(s,hu,t.toString())}function qo(s){return parseInt(Ho(s,hu))||0}const sr={local:!0,session:!0},mu={local:new Set,session:new Set};let Zo=!1;function xm(s){Zo=s}let nr=typeof window>"u"?{}:window;function gu(s){const t=s+"Storage";try{if(nr&&nr[t]&&typeof nr[t].length=="number")return nr[t]}catch{}sr[s]=!1}function yu(s,t){const e=gu(s);if(!e)return;const n=Ho(e,du);if(n!==uu){if(n){const a=qo(e);for(let l=0;l<a;l++)pu(e,si+l.toString())}Uo(e,du,uu),Wo(e,0);return}const i=Math.floor(Date.now()/fu)-_m,r=a=>{const l=si+a.toString(),c=Ho(e,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"&&t(u,a))return!0}catch{}pu(e,l)}};let o=qo(e);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,Wo(e,o)):mu[s].add(a))}function vu(){if(!Zo){xm(!0);for(const s in sr)yu(s,t=>{const e=t.data,n=t.provider,i=e.prefix,r=ln(n,i);if(!Vo(r,e).length)return!1;const o=e.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function wm(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in sr)yu(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===t});return!0}function Cm(s,t){Zo||vu();function e(n){let i;if(!sr[n]||!(i=gu(n)))return;const r=mu[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=qo(i),o>=bm||!Wo(i,o+1))return;const a={cached:Math.floor(Date.now()/fu),provider:s.provider,data:t};return Uo(i,si+o.toString(),JSON.stringify(a))}t.lastModified&&!wm(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function _u(){}function Sm(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,hm(s)}))}function Tm(s,t){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:e,prefix:n}=s,i=s.iconsToLoad;delete s.iconsToLoad;let r;if(!i||!(r=Yo(e)))return;r.prepare(e,n,i).forEach(a=>{vm(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Vo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),Cm(s,l)}catch(c){console.error(c)}Sm(s)})})}))}const Em=(s,t)=>{const e=pm(s,!0,su()),n=um(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,_u)}),()=>{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(ln(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,d=ln(c,u),m=d.pendingIcons||(d.pendingIcons=new Set);m.has(h)||(m.add(h),i[c][u].push(h))}),r.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&Tm(l,i[c][u])}),t?fm(t,n,r):_u};function km(s,t){const e={...s};for(const n in t){const i=t[n],r=typeof i;n in nu?(i===null||i&&(r==="string"||r==="number"))&&(e[n]=i):r===typeof e[n]&&(e[n]=n==="rotate"?i%4:i)}return e}const Pm=/[\s,]+/;function Om(s,t){t.split(Pm).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function Im(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(s);return isNaN(i)?0:n(i)}else if(e!==s){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(s.slice(0,s.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?n(r):0)}}return t}function Mm(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)e+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function Dm(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Rm(s){return"data:image/svg+xml,"+Dm(s)}function Nm(s){return'url("'+Rm(s)+'")'}const bu={...iu,inline:!1},Am={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Lm={display:"inline-block"},Ko={backgroundColor:"currentColor"},xu={backgroundColor:"transparent"},wu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Cu={webkitMask:Ko,mask:Ko,background:xu};for(const s in Cu){const t=Cu[s];for(const e in wu)t[s+e]=wu[e]}const ir={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";ir[s+"-flip"]=t,ir[s.slice(0,1)+"-flip"]=t,ir[s+"Flip"]=t});function Su(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Tu=(s,t)=>{const e=km(bu,t),n={...Am},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in t){const b=t[v];if(b!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[v]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&Om(e,b);break;case"color":r.color=b;break;case"rotate":typeof b=="string"?e[v]=Im(b):typeof b=="number"&&(e[v]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete n["aria-hidden"];break;default:{const S=ir[v];S?(b===!0||b==="true"||b===1)&&(e[S]=!0):bu[v]===void 0&&(n[v]=b)}}}const l=Qp(s,e),c=l.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let v=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),n.innerHTML=sm(l.body,b?()=>b+"ID"+v++:"iconifyVue"),ms("svg",n)}const{body:u,width:h,height:d}=s,m=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),f=Mm(u,{...c,width:h+"",height:d+""});return n.style={...r,"--svg":Nm(f),width:Su(c.width),height:Su(c.height),...Lm,...m?Ko:xu,...a},ms("span",n)};if(su(!0),nm("",cm),typeof document<"u"&&typeof window<"u"){vu();const s=window;if(s.IconifyPreload!==void 0){const t=s.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!jp(n))&&console.error(e)}catch{console.error(e)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;im(e,i)||console.error(n)}catch{console.error(n)}}}}const Fm={...tr,body:""},$m=ct({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(s,t){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let e;if(typeof s!="string"||(e=Ki(s,!1,!0))===null)return this.abortLoading(),null;const n=zp(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:Em([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const i=["iconify"];return e.prefix!==""&&i.push("iconify--"+e.prefix),e.provider!==""&&i.push("iconify--"+e.provider),{data:n,classes:i}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return Tu(Fm,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),Tu({...tr,...t.data},e)}});function Eu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}function ku(s){this.message=s}ku.prototype=new Error,ku.prototype.name="InvalidCharacterError";class rr{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,n]=t[0];return this.delete(e),[e,n]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,i=e.length;n<i;n++){const[r,o]=e[n];t(r,o)===!1&&this.delete(r)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}const bn=new rr,or=s=>{let t=null;switch(s){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(or("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`
32
32
  [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
33
33
  |[\u{4E00}-\u{9FCC}]
34
34
  |[\u{3400}-\u{4DB5}]
@@ -37,33 +37,33 @@ Expected function or array of functions, received type ${typeof s}.`),ae)}functi
37
37
  |[\u{2B740}-\u{2B81D}]
38
38
  |[\u{2B820}-\u{2CEAF}]
39
39
  |[\u{2CEB0}-\u{2EBEF}]
40
- `.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},Ds=(s,t)=>(typeof s=="string"&&(s=ra(s)||new RegExp(s)),s.test(t)),ku=(s,t)=>{if(typeof s=="string"&&(s=ra(s)||new RegExp(s)),!t)return null;const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},Tu=(s,t)=>{typeof s=="string"&&(s=ra(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const i of n)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function Ou(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function Pu(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function Em(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let n="";for(let i=0;i<s;i++)n+=t[Math.floor(Math.random()*e)];return n}function km(s){const t=In.get(s);if(t)return t;const e=s.replace(/(^\w)/g,function(n){return n.toLowerCase()});return In.set(s,e),e}const Ye=(s,t="-")=>{const e=In.get(s);if(e)return e;let n=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return n=n.replace(new RegExp(`^${t}`),""),In.set(s,n),n};function oa(s){const t=In.get(s);if(t)return t;const e=s.replace(/(^\w|[_-]\w)/g,function(n){return n.slice(-1).toUpperCase()});return In.set(s,e),e}function Du(s){return km(oa(s))}function Tm(s,t,e="0",n="left"){const i=Ou(s);if(t>i){const r=t-i;switch(n){case"left":s=Array(r+1).join(e)+s;break;case"right":s=s+Array(r+1).join(e);break;default:const o=Math.ceil(r/2),a=r-o;s=Array(a+1).join(e)+s+Array(o+1).join(e);break}}return s}function Om(s){const t=typeof s;return t!=="object"?t:Object.prototype.toString.call(s).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Pm(s){return s!=null}function br(s){return Om(s)==="object"}function Dm(s,t){for(const e of Reflect.ownKeys(t))if(e!=="constructor"&&e!=="prototype"&&e!=="name"&&e!=="displayName"){const n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(s,e,n)}}function Iu(s,t=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(t.has(s))return t.get(s);const e=Object.create(Object.getPrototypeOf(s),Object.getOwnPropertyDescriptors(s));for(const n of Reflect.ownKeys(s))e[n]=br(s[n])?Iu(s[n],t):s[n];return t.set(s,e),e}function aa(s,t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(br(t[e])?(typeof s[e]>"u"&&(s[e]={}),aa(s[e],t[e])):typeof s[e]>"u"&&(s[e]=t[e]));return s}function Nu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function di(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function fi(s,t){const e=s.length,n=t.length;for(let r=0;r<n;r++)s[r]=t[r];let i=Math.max(0,e-n);for(;i>0;)s.pop(),i--}function Im(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function pi(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const Xe=(s,t,e)=>s<t?t:s>e?e:s,Nm=(s,t,e)=>n=>{const i=Math.min(Math.max(s,n),t);return t-i<e?t:Math.round(i/e)*e};function Mm(s,t=12){return Im(s).toFixed(t)}function qe(s,t=12){return+Mm(s,t)}function Ws(s,t){const e=ku("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Pm(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(e.matchIndex+e.fullMatch.length):""}}function Mu(s){const t=ku("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Am(s=0,t=100){return Math.random()*(t-s)+s}function ee(s=0,t=100){return Math.floor(Am(s,t))}function Rm(s,t){let e=!0;return function(...n){e&&(e=!1,s.apply(this,n),setTimeout(()=>{e=!0},t))}}function $m(s,t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{s.apply(this,n)},t)}}class Au{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get readableStream(){return this.rs}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(n=>n()));this.results.push(...e),e.forEach(n=>{n.status=="fulfilled"?this.controller?.enqueue(n.value):n.status=="rejected"&&this.controller?.enqueue(new Error(n.reason))}),this.activeTaskCount-=e.length}}}class xr{events;constructor(){this.events={}}on(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}addListener(t,e){return this.on(t,e),this}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}removeListener(t,e){if(this.events[t])return this.events[t]=this.events[t].filter(n=>n!==e),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].forEach(n=>{Reflect.apply(n,this,e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(e,this,o),this.off(t,i))}})();return this.on(t,i),this}}var Ru=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Vm(s,t={}){var e=1,n=1;function i(it){var q=it.match(/\n/g);q&&(e+=q.length);var Et=it.lastIndexOf(`
41
- `);n=~Et?it.length-Et:n+it.length}function r(){var it={line:e,column:n};return function(q){return q.position=new o(it),m(),q}}function o(it){this.start=it,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(it){var q=new Error(t.source+":"+e+":"+n+": "+it);if(q.reason=it,q.filename=t.source,q.line=e,q.column=n,q.source=s,t.silent)a.push(q);else throw q}function c(){var it=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:it,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var it,q=[];for(m(),v(q);s.length&&s.charAt(0)!="}"&&(it=xt()||wt());)it!==!1&&(q.push(it),v(q));return q}function d(it){var q=it.exec(s);if(q){var Et=q[0];return i(Et),s=s.slice(Et.length),q}}function m(){d(/^\s*/)}function v(it){var q;for(it=it||[];q=_();)q!==!1&&it.push(q);return it}function _(){var it=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var q=2;s.charAt(q)!=""&&(s.charAt(q)!="*"||s.charAt(q+1)!="/");)++q;if(q+=2,s.charAt(q-1)==="")return l("End of comment missing");var Et=s.slice(2,q-2);return n+=2,i(Et),s=s.slice(q),n+=2,it({type:"comment",comment:Et})}}function E(){var it=d(/^([^{]+)/);if(it)return Is(it[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(q){return q.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(q){return q.replace(/\u200C/g,",")})}function D(){var it=r(),q=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(q){if(q=Is(q[0]),!d(/^:\s*/))return l("property missing ':'");var Et=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),$=it({type:"declaration",property:q.replace(Ru,""),value:Et?Is(Et[0]).replace(Ru,""):""});return d(/^[;\s]*/),$}}function N(){var it=[];if(!u())return l("missing '{'");v(it);for(var q;q=D();)q!==!1&&(it.push(q),v(it));return h()?it:l("missing '}'")}function k(){for(var it,q=[],Et=r();it=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)q.push(it[1]),d(/^,\s*/);if(q.length)return Et({type:"keyframe",values:q,declarations:N()})}function tt(){var it=r(),q=d(/^@([-\w]+)?keyframes\s*/);if(q){var Et=q[1];if(q=d(/^([-\w]+)\s*/),!q)return l("@keyframes missing name");var $=q[1];if(!u())return l("@keyframes missing '{'");for(var Ut,ge=v();Ut=k();)ge.push(Ut),ge=ge.concat(v());return h()?it({type:"keyframes",name:$,vendor:Et,keyframes:ge}):l("@keyframes missing '}'")}}function R(){var it=r(),q=d(/^@supports *([^{]+)/);if(q){var Et=Is(q[1]);if(!u())return l("@supports missing '{'");var $=v().concat(f());return h()?it({type:"supports",supports:Et,rules:$}):l("@supports missing '}'")}}function U(){var it=r(),q=d(/^@host\s*/);if(q){if(!u())return l("@host missing '{'");var Et=v().concat(f());return h()?it({type:"host",rules:Et}):l("@host missing '}'")}}function vt(){var it=r(),q=d(/^@media *([^{]+)/);if(q){var Et=Is(q[1]);if(!u())return l("@media missing '{'");var $=v().concat(f());return h()?it({type:"media",media:Et,rules:$}):l("@media missing '}'")}}function bt(){var it=r(),q=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return it({type:"custom-media",name:Is(q[1]),media:Is(q[2])})}function Ct(){var it=r(),q=d(/^@page */);if(q){var Et=E()||[];if(!u())return l("@page missing '{'");for(var $=v(),Ut;Ut=D();)$.push(Ut),$=$.concat(v());return h()?it({type:"page",selectors:Et,declarations:$}):l("@page missing '}'")}}function Rt(){var it=r(),q=d(/^@([-\w]+)?document *([^{]+)/);if(q){var Et=Is(q[1]),$=Is(q[2]);if(!u())return l("@document missing '{'");var Ut=v().concat(f());return h()?it({type:"document",document:$,vendor:Et,rules:Ut}):l("@document missing '}'")}}function $t(){var it=r(),q=d(/^@font-face\s*/);if(q){if(!u())return l("@font-face missing '{'");for(var Et=v(),$;$=D();)Et.push($),Et=Et.concat(v());return h()?it({type:"font-face",declarations:Et}):l("@font-face missing '}'")}}var se=Yt("import"),ne=Yt("charset"),ue=Yt("namespace");function Yt(it){var q=new RegExp("^@"+it+"\\s*([^;]+);");return function(){var Et=r(),$=d(q);if($){var Ut={type:it};return Ut[it]=$[1].trim(),Et(Ut)}}}function xt(){if(s[0]=="@")return tt()||vt()||bt()||R()||se()||ne()||ue()||Rt()||Ct()||U()||$t()}function wt(){var it=r(),q=E();return q?(v(),it({type:"rule",selectors:q,declarations:N()})):l("selector missing")}return la(c())}function Is(s){return s?s.replace(/^\s+|\s+$/g,""):""}function la(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){la(o,n)}):r&&typeof r=="object"&&la(r,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const $u=(s,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([s],{type:`${t};${e}`}):new Blob([s],{type:`${t};charset=${e}`}),Vu=s=>new XMLSerializer().serializeToString(s),Lm=(s,t="image/svg+xml",e="utf-8")=>$u(Vu(s),t,e),Lu=(s,t)=>new Promise(e=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof s=="string"?n.href=s:n.href=window.URL.createObjectURL(s),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href),e()});function Fm(s=["*"],t){return new Promise((e,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(",")),t&&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(`.${zm(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),e(o)}};i.addEventListener("change",r),i.click()})}function Gm(s,t="text",e){return new Promise((n,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{e?.(o.loaded,o.total)}),r.addEventListener("load",o=>{n(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),t){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 zm=s=>{let t;return s instanceof File?t=s.name:t=s,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function wr(){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 Fu(){const{clientWidth:s,clientHeight:t}=wr();return{width:s||window.innerWidth,height:t||window.innerHeight}}function jm(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=wr();return{x:e+r,y:t+o,width:n,height:i}}function Bm(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=wr(),n=e-s;return n<=0?0:t/n*100}function Ym(s){if("center"in s)return s.center;if(s.pageX&&s.pageY)return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=wr();return{x:s.clientX+t,y:s.clientY+e}}function Xm(s,t){const e=Ym(t),n=jm(s);return{x:e.x-n.x,y:e.y-n.y}}const Hm=()=>{const s=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(s)?t="macOS":/win/i.test(s)?t="Windows":/android/i.test(s)?t="Android":/iphone|ipad|ipod/i.test(s)?t="iOS":/linux/i.test(s)?t="Linux":/bsd/i.test(s)&&(t="BSD"),t.toLowerCase()};function Um(){return Hm()==="macos"}function Wm(){const s=window.navigator.userAgent,t=s.indexOf("MSIE ");if(t>0)return parseInt(s.substring(t+5,s.indexOf(".",t)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const ca=Wm()!==-1;(()=>{const s=Cu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!Cu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const n=t.transferToImageBitmap();try{e.createPattern(n,"no-repeat")}catch{return!1}return!0}();function qm(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const i=function(){const r=Math.min(t.clientWidth,s);t.dataset.width=r,t.dataset.rem=n=Math.round(100*(r/s)),t.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function It(s){return s*Math.PI/180}function ze(s){return s*180/Math.PI}function ua(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function ha(s,t,e,n){const i=s-e,r=t-n;return ua(i,r)}function da(s,t,e,n){const i=s-e,r=t-n;return i*i+r*r}function Nn(s,t,e,n){const i=e-s,r=n-t;let o=Math.atan2(r,i);return o<0&&(o+=Math.PI*2),o}function Ns(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const mi=Math.PI*2;function Gu(s,t,e,n){const i=s*n-t*e<0?-1:1;let r=s*e+t*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function Zm(s,t,e,n,i,r,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,f=o*o,d=a*a,m=u*u,v=h*h;let _=f*d-f*v-d*m;_<0&&(_=0),_/=f*v+d*m,_=Math.sqrt(_)*(i===r?-1:1);const E=_*o/a*h,D=_*-a/o*u,N=c*E-l*D+(s+e)/2,k=l*E+c*D+(t+n)/2,tt=(u-E)/o,R=(h-D)/a,U=(-u-E)/o,vt=(-h-D)/a,bt=Gu(1,0,tt,R);let Ct=Gu(tt,R,U,vt);return r===0&&Ct>0&&(Ct-=mi),r===1&&Ct<0&&(Ct+=mi),[N,k,bt,Ct]}function Km(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+t),o=Math.sin(s+t);return[n,i,n-i*e,i+n*e,r+o*e,o-r*e,r,o]}function zu(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*mi/360),u=Math.cos(l*mi/360),h=u*(s-e)/2+c*(t-n)/2,f=-c*(s-e)/2+u*(t-n)/2;if(h===0&&f===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const d=h*h/(o*o)+f*f/(a*a);d>1&&(o*=Math.sqrt(d),a*=Math.sqrt(d));const m=Zm(s,t,e,n,i,r,o,a,c,u),v=[];let _=m[2],E=m[3];const D=Math.max(Math.ceil(Math.abs(E)/(mi/4)),1);E/=D;for(let N=0;N<D;N++)v.push(Km(_,E)),_+=E;return v.map(N=>{for(let k=0;k<N.length;k+=2){let tt=N[k+0],R=N[k+1];tt*=o,R*=a;const U=u*tt-c*R,vt=c*tt+u*R;N[k+0]=U+m[0],N[k+1]=vt+m[1]}return N})}function fa(s,t,e,n,i,r){return[s/3+2/3*e,t/3+2/3*n,i/3+2/3*e,r/3+2/3*n,i,r]}function gi(s,t,e,n){return[s,t,e,n,e,n]}const Sr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class _n{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&H.attribute(n,e),n}static createSvgPath(t){return this.createSVGElement("path",{d:t})}static downloadFromSVGElement(t,e="shape"){return Lu(Lm(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Lu($u(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Vu(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 t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=Mu(r);for(o=="m"&&a.length>Sr[o]&&(e.push([i,...a.splice(0,Sr[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Sr[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,Sr[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=e,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){let e=[],n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=t.length;f<d;f++){let m=t[f];const v=m[0];switch(v){case"M":n=m[1],i=m[2];break;case"A":const _=zu(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!_.length)continue;_.forEach((N,k)=>{const[tt,R,U,vt,bt,Ct,Rt,$t]=N;m=["C",U,vt,bt,Ct,Rt,$t],k<_.length-1&&e.push(m)});break;case"S":let E=r,D=o;(h=="C"||h=="S")&&(E+=E-c,D+=D-u),m=["C",E,D,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",...fa(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...fa(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...gi(r,o,m[1],m[2])];break;case"H":m=["C",...gi(r,o,m[1],o)];break;case"V":m=["C",...gi(r,o,r,m[1])];break;case"Z":m=["C",...gi(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),e.push(m)}return e}static catmullRom2bezier(t){let e=[];for(let n=0,i=t.length;i-2>n;n+=2){let r;n==0?r=[{x:t[n],y:t[n+1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}]:i-4==n?r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+2],y:t[n+3]}]:r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){let e=[],n=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){let a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const l=t[o],c=e[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return t}static curveDim(t,e,n,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,v,_,E,D;for(let R=0;R<2;++R){if(R===0?(f=6*t-12*n+6*r,h=-3*t+9*n-9*r+3*a,d=3*n-3*t):(f=6*e-12*i+6*o,h=-3*e+9*i-9*o+3*l,d=3*i-3*e),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;m=-d/f,m>0&&m<1&&c.push(m);continue}E=f*f-4*d*h,D=Math.sqrt(E),!(E<0)&&(v=(-f+D)/(2*h),v>0&&v<1&&c.push(v),_=(-f-D)/(2*h),_>0&&_<1&&c.push(_))}let N=c.length,k;const tt=N;for(;N--;)m=c[N],k=1-m,u[0][N]=k*k*k*t+3*k*k*m*n+3*k*m*m*r+m*m*m*a,u[1][N]=k*k*k*e+3*k*k*m*i+3*k*m*m*o+m*m*m*l;return u[0][tt]=t,u[1][tt]=e,u[0][tt+1]=a,u[1][tt+1]=l,u[0].length=u[1].length=tt+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(t,e,n,i,r){const o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}static bezlen(t,e,n,i,r,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=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 _=u*f[v]+u,E=this.base3(_,t,n,r,a),D=this.base3(_,e,i,o,l),N=E*E+D*D;m+=d[v]*Math.sqrt(N)}return u*m}}const Qt=_n;class ju extends xr{shapes=[];removes=[];x;y;constructor(t){super(),this.x=t?.x||0,this.y=t?.y||0}register(...t){this.shapes.push(...t);const e=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};t.forEach(n=>{const i=e(n);n.on("moving",i),this.removes.push(()=>{n.off("moving",i)})})}destroy(){this.removes.forEach(t=>t())}}class Jt extends xr{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(t){super(),this.id=Em(),this.cX=t?.cX||0,this.cY=t?.cY||0,this.prevX=this.x=t?.x||0,this.prevY=this.y=t?.y||0,this.prevDegree=this.degree=t?.degree||0,this.prevScalexOnOrigin=this.scalexOnOrigin=1,this.prevScaleyOnOrigin=this.scaleyOnOrigin=1,t?.scaleOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scaleOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleOnOrigin),t?.scalexOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scalexOnOrigin),t?.scaleyOnOrigin!==void 0&&(this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleyOnOrigin),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin=t?.skewxDegreeOnOrigin||0,this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin=t?.skewyDegreeOnOrigin||0,this.transformBaseOnSelfInRenderGroup=typeof t?.transformBaseOnSelfInRenderGroup=="boolean"?t.transformBaseOnSelfInRenderGroup:!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=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(t?.attrs||{}).map(([e,n])=>[Ye(e),n]))),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.renderGroup=t?.renderGroup,this.shapeGroup=t?.shapeGroup,this.autoRender=typeof t?.autoRender=="boolean"?t?.autoRender:!1}save(){this.history.push(Iu(this))}restore(){const t=this.history.pop();t&&Dm(this,t)}group(...t){this.renderGroup||(this.renderGroup=new ju({x:this.x,y:this.y}),this.renderGroup.register(this)),t.forEach(e=>{e.renderGroup=this.renderGroup,this.renderGroup?.register(e)})}ungroup(){this.renderGroup&&(this.renderGroup.shapes.forEach(t=>delete t.renderGroup),this.renderGroup.destroy(),this.renderGroup=void 0)}setAttr(t,e){br(t)?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,i])=>[Ye(n),i]))):typeof t=="string"&&e&&(this.attrs[Ye(t)]=e)}getAttr(t,e){return this.attrs[Ye(t)]||e}hasAttr(t){return!!this.attrs[Ye(t)]}get centerX(){const t=this.getBoundingClientRect();return t?t.x+t.width/2:this.x}get centerY(){const t=this.getBoundingClientRect();return t?t.y+t.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}frameUpdate(){const t=new Date().getTime();if(!(t-this.now<1e3/this.frameRate)&&(this.now=t,this.strokeArmyAnts&&!this.isMouseIn)){const e=this.getAttr("stroke-dasharray","4 4");if(typeof e=="string"){this.setAttr("stroke-dasharray",e);const n=Mu(e);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>n.reduce((i,r)=>i+r,0)&&(this.strokeArmyAntsOffset=0)}}}toSVGPathD(t=!1){let e=[];const n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?e.push(...n):e.push(n),t&&(e=Qt.relativeSVGPath(e)),Qt.SVGPathDataToD(e)}distance(t){return ha(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ze(Nn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=Ns(It(this.degree),e);this.vx=n,this.vy=i,this.nextFrame()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=Ns(It(this.degree),e);this.ax=n,this.ay=i,this.nextFrame()}checkCollision(t){}gravitate(t){const e=t.x-this.x,n=t.y-this.y,i=e*e+n*n,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,t.vx-=a/t.mass,t.vy-=l/t.mass}static comboGravitate(t){const e=t.length;t.forEach((n,i)=>{n.nextFrame();for(let r=i+1;r<e;r++)n.checkCollision(t[r]),n.gravitate(t[r])})}nextFrame(t){this.vx+=this.ax,this.vy+=this.ay;const e=t?.gravity??0;this.vy+=e;const n=t?.friction??1;this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,e){const n=e?.easing??.05,{dx:i,dy:r}=this.centerDiff,o=t.x-i-this.x,a=t.y-r-this.y;this.vx=o*n,this.vy=a*n,this.nextFrame(e)}nextFrameSpringTo(t,e){const n=e?.spring??.03,{dx:i,dy:r}=this.centerDiff;(Array.isArray(t)?t:[t]).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,...e})}static comboSpringChain(t,e){t.forEach((n,i)=>{i>0&&n.nextFrameSpringTo(t[i-1],e)})}static comboSpringConnect(t,e){const n=e?.springLength??100;t.forEach(i=>{i.isDragging||t.filter(r=>r.id!==i.id).forEach(r=>{const o=Nn(i.x,i.y,r.x,r.y);i.nextFrameSpringTo({x:r.x-Math.cos(o)*n,y:r.y-Math.sin(o)*n},e)})})}spring(t,e){const n=e?.springLength??100,i=e?.spring??1e-4;let r=[0,0,0,0,0];const o=t.x-this.x,a=t.y-this.y,l=Math.sqrt(o*o+a*a);if(l<n){r=[this.x,this.y,t.x,t.y,1-l/n];const c=o*i,u=a*i;this.vx+=c/this.mass,this.vy+=u/this.mass,t.vx-=c/t.mass,t.vy-=u/t.mass}return r}static comboSpringMass(t,e,n){const i=[];return t.forEach((r,o)=>{r.nextFrame(n),r.x>e.x+e.width?r.x=e.x:r.x<e.x&&(r.x=e.x+e.width),r.y>e.y+e.height?r.y=e.y:r.y<e.y&&(r.y=e.y+e.height);for(let a=o+1,l=t.length;a<l;a++)i.push(r.spring(t[a],n))}),i}}class pa extends Jt{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}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(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,n){this.cX=t,this.cY=e,this.cZ=n}rotateX(t){({x:this.y,y:this.z}=gs(It(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=gs(It(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=gs(It(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 ua(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+n*n+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y,i=this.z;return{x:n*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}clone(t){return new pa({x:t.x,y:t.y,z:t.z,radius:t.radius,mass:t.mass})}}const Cr=pa;class de extends Jt{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromBezier(t,e,n,i,r,o,a,l){const c=_n.curveDim(t,e,n,i,r,o,a,l);return new de({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 de({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(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}clone(t){return new de({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const yi=de,Bu=[1,0,0,1,0,0],Yu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class je{value;m13_value=0;m23_value=0;m33_value=1;matrix3d;constructor(t=Bu){this.value=Array.from(t),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(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.m13_value=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this.m23_value=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this.m33_value=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 qs(e)}identity(){return this.value=Array.from(Bu),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(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)}applyToPoint(t,e,n=0,i=0){const r=t-n,o=e-i;return t=this.m11*r+this.m21*o+this.m31,e=this.m12*r+this.m22*o+this.m32,{x:t+n,y:e+i}}fromString(t){const e=Tu("number",t);return e.length===6?(e.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 t=new je;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t}multiply(t){const e=this.clone();let n;return t instanceof je?n=t:n=new je(t),this.m11=n.m11*e.m11+n.m12*e.m21+n.m13*e.m31,this.m12=n.m11*e.m12+n.m12*e.m22+n.m13*e.m32,this.m13=n.m11*e.m13+n.m12*e.m23+n.m13*e.m33,this.m21=n.m21*e.m11+n.m22*e.m21+n.m23*e.m31,this.m22=n.m21*e.m12+n.m22*e.m22+n.m23*e.m32,this.m23=n.m21*e.m13+n.m22*e.m23+n.m23*e.m33,this.m31=n.m31*e.m11+n.m32*e.m21+n.m33*e.m31,this.m32=n.m31*e.m12+n.m32*e.m22+n.m33*e.m32,this.m33=n.m31*e.m13+n.m32*e.m23+n.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}inverse(){const t=this.m11,e=this.m12,n=this.m21,i=this.m22,r=this.m31,o=this.m32,a=t*i-e*n;return this.m11=i/a,this.m12=-e/a,this.m21=-n/a,this.m22=t/a,this.m31=(n*o-i*r)/a,this.m32=-(t*o-e*r)/a,this.m13=0,this.m23=0,this.m33=1,this}adjugate(){const t=new je;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,rotate: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],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],d=t.value[5],m=l*h,v=c*u,_=(u*n-e*h)/(v-m),E=(l*n-e*c)/(m-v),D=(u*r-i*h)/(v-m),N=(l*r-i*c)/(m-v),k=(u*(a-d)+h*(f-o))/(v-m),tt=(l*(a-d)+c*(f-o))/(m-v),R=[_,E,D,N,k,tt];return new je(R)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>qe(e,t)).join(",")})`:this.matrix3d.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix3d.translate(0,0,t),this.matrix3d.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix3d.m43),this}translate3d(t,e,n){return this.matrix3d.translate(t,e,n),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,n){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(t,e=0,n=0){const i=It(t),r=Math.cos(i),o=Math.sin(i);return this.multiply([r,o,-o,r,e,n]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{rotate:i}=this.split();return this.rotate(t-i,e,n),this}rotateX(t){return this.matrix3d.rotate(t,0,0),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{rotateX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotate(0,t,0),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{rotateY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotate(0,0,t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{rotateZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,n){return this.matrix3d.rotate(t,e,n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{rotateX:i,rotateY:r,rotateZ:o}=this.matrix3d.split();return this.rotate3d(t-i,e-r,n-o),this}scale(t,e=t,n=0,i=0){return this.multiply([t,0,0,e,n,i]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,i=0){return this.scale(t/this.m11,e/this.m22,n,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scaleZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,n=t){return this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scaleX:i,scaleY:r,scaleZ:o}=this.matrix3d.split();return this.scale3d(t/i,e/r,n/o),this}skew(t,e=t){return this.multiply([Math.cos(It(e)),Math.sin(It(e)),-Math.sin(It(t)),Math.cos(It(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:n,skewY:i}=this.split();return this.skew(t-n,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class qs{value;is3dSpecial=!1;constructor(t=Yu){this.value=Array.from(t)}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(Yu),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 t=new qs;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m14=this.m14,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m24=this.m24,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t.m34=this.m34,t.m41=this.m41,t.m42=this.m42,t.m43=this.m43,t.m44=this.m44,t}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))}applyToPoint(t){const e=t.x*this.m11+t.y*this.m21+t.z*this.m31+t.mass*this.m41,n=t.x*this.m12+t.y*this.m22+t.z*this.m32+t.mass*this.m42,i=t.x*this.m13+t.y*this.m23+t.z*this.m33+t.mass*this.m43,r=t.x*this.m14+t.y*this.m24+t.z*this.m34+t.mass*this.m44;t.x=e,t.y=n,t.z=i,t.mass=r}fromString(t){const e=Tu("number",t);return e.length===16?e.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.identity(),this}toMatrix(t){const{scaleX:e,scaleY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[e,r,i,n,o,a];return t?(t.value=l,t):new je(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=>qe(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33);let i=ze(Xe(Math.asin(-this.m13),-1,1)),r=ze(Math.atan2(this.m23,this.m33));Math.cos(It(i))===0&&(r=ze(Math.atan2(-this.m31,this.m22)));let o=ze(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:t,scaleY:e,scaleZ:n,rotateX:r,rotateY:i,rotateZ:o,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,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,_=this.m43,E=this.m44;t[0]=l*d*v-c*f*v+c*h*_-a*d*_-l*h*E+a*f*E,t[1]=r*f*v-i*d*v-r*h*_+n*d*_+i*h*E-n*f*E,t[2]=i*c*v-r*l*v+r*a*_-n*c*_-i*a*E+n*l*E,t[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*d-n*l*d;const D=e*t[0]+o*t[1]+u*t[2]+m*t[3];if(D==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*m-l*d*m-c*u*_+o*d*_+l*u*E-o*f*E,t[5]=i*d*m-r*f*m+r*u*_-e*d*_-i*u*E+e*f*E,t[6]=r*l*m-i*c*m-r*o*_+e*c*_+i*o*E-e*l*E,t[7]=i*c*u-r*l*u+r*o*f-e*c*f-i*o*d+e*l*d,t[8]=a*d*m-c*h*m+c*u*v-o*d*v-a*u*E+o*h*E,t[9]=r*h*m-n*d*m-r*u*v+e*d*v+n*u*E-e*h*E,t[10]=n*c*m-r*a*m+r*o*v-e*c*v-n*o*E+e*a*E,t[11]=r*a*u-n*c*u-r*o*h+e*c*h+n*o*d-e*a*d,t[12]=l*h*m-a*f*m-l*u*v+o*f*v+a*u*_-o*h*_,t[13]=n*f*m-i*h*m+i*u*v-e*f*v-n*u*_+e*h*_,t[14]=i*a*m-n*l*m-i*o*v+e*l*v+n*o*_-e*a*_,t[15]=n*l*u-i*a*u+i*o*h-e*l*h-n*o*f+e*a*f,this.value=t,this.scalar(1/D)}multiply(t){const e=this.clone(),n=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,i=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,r=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,o=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,a=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,l=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,c=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,u=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,h=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,f=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,d=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,m=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,v=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,_=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,E=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,D=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.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=_,this.m43=E,this.m44=D,this}translate(t=0,e=0,n=0){return this.multiply(new qs([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]))}scale(t=1,e=1,n=1){return this.multiply(new qs([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}skew(t=0,e=0,n=0){return this.multiply(new qs([1,0,0,It(t),0,1,0,It(e),0,0,1,It(n),0,0,0,1]))}rotate(t=0,e=0,n=0){n&&(this.is3dSpecial=!0);const i=It(t),r=It(e),o=It(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,_=l*f;return this.m11=c*h,this.m21=-c*f,this.m31=u,this.m12=m+v*u,this.m22=d-_*u,this.m32=-l*c,this.m13=_-d*u,this.m23=v+m*u,this.m33=a*c,this}perspective(t){return this.multiply(new qs([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,n=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),e/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:e,y:n,z:i,mass:r};const h=-i/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:i,mass:r}}project(t){let e=t.z,n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:e,mass:r}}bounds(t,e,n,i){const r=new Cr({x:t,y:e}),o=new Cr({x:t+n,y:e}),a=new Cr({x:t+n,y:e+i}),l=new Cr({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return new yi({x:c,y:u,width:h,height:f})}}function Xu(s){const t=new je;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(r[0],r[1]);break;case"translatex":t.translateX(r[0]);break;case"translatey":t.translateY(r[0]);break;case"translatez":t.translateZ(r[0]);break;case"translate3d":t.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":t.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":t.rotateX(r[0]);break;case"rotatey":t.rotateY(r[0]);break;case"rotatez":t.rotateZ(r[0]);break;case"rotate3d":t.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":t.scale(r[0],r[1]??r[0]);break;case"scalex":t.scaleX(r[0]);break;case"scaley":t.scaleY(r[0]);break;case"scalez":t.scaleZ(r[0]);break;case"scale3d":t.scale3d(r[0],r[1],r[2]);break;case"skew":t.skew(r[0],r[1]??0);break;case"skewx":t.skewX(r[0]);break;case"skewy":t.skewY(r[0]);break;case"skewz":t.skewZ(r[0]);break;case"skew3d":t.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":t.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new qs(r)),t.matrix3d.toMatrix(t);break}return""}),t}function gs(s,t,e,n=0,i=0){const r=new je;return r.rotate(ze(s),n,i),r.applyToPoint(t,e,n,i)}function Qm(s){const{tx:t,ty:e,scaleX:n,scaleY:i,degree:r}=aa(s||{},{tx:0,ty:0,scaleX:1,scaleY:1,degree:0}),o=new DOMMatrix([Math.cos(It(r))*n,Math.sin(It(r))*n,-Math.sin(It(r))*i,Math.cos(It(r))*i,t,e]);return o.multiplySelf(new DOMMatrix(s?.originMatrix)),o}class H{static onDocumentReady(t){let e=!1;function n(){document.readyState==="loading"||e||(e=!0,t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static onBeforeUnload(t){function e(){t(),document.removeEventListener("beforeunload",e)}typeof document<"u"&&document.addEventListener("beforeunload",e)}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,e){document.documentElement.style.setProperty(t,e)}static add3DSupport(t,e="1000px"){if(t.parentElement){const n=H.getStyle(t.parentElement,"position");H.setStyle(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}H.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:H.getStyle(t,"transform")||""});const i=Xu(n.transform),r={};for(let o in e){const a=e[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]=H.getStyle(t,o)),Object.assign(r,{[o]:`${a}`});break}}return Object.assign(r,{transform:i.toString()}),r}static attrsToCanvas(t,e){for(const n in e){const i=e[n];switch(Ye(n)){case"fill":i!=="none"&&(t.fillStyle=i);break;case"stroke":i!=="none"&&(t.strokeStyle=i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":t.lineJoin=i;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":t.miterLimit=Number(i);break;case"stroke-opacity":break;case"stroke-dashoffset":t.lineDashOffset=Number(i);break;case"stroke-dasharray":typeof i=="string"&&t.setLineDash(i.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof i=="string"&&(t.font=i);break;case"font-size":t.font+=` ${i}`;break;case"font-family":t.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=i;break;default:t.textBaseline="alphabetic";break}break}}}static getStyle(t,e,n){const i=t;if(getComputedStyle)if(e){e=Ye(e);const r=getComputedStyle(i,n).getPropertyPriority(e);return getComputedStyle(i,n).getPropertyValue(e).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(t.currentStyle){if(e)return e=Du(e),t.currentStyle[e];{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(t,e,n){if(typeof e=="string"&&n){const i=String(n).toLowerCase().includes("!important")?"important":"";t.style.setProperty(Ye(e),n.replace(/!important/i,""),i)}else e instanceof Object&&Object.keys(e).forEach(i=>{const r=String(e[i]).toLowerCase().includes("!important")?"important":"";t.style.setProperty(Ye(i),String(e[i]).replace(/!important/i,""),r)})}static setStyleSheet(t,e){let n;if(typeof e=="string"){const r=document.querySelector(e)?.shadowRoot;r?n=r:n=document.querySelector(e)}else n=e;const i=document.createElement("style");if(i.innerHTML=t,n)return n.appendChild(i),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(i)};{const r=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(t,e,n="toggle"){e.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&t.classList[n](i.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(n=>n.trim()!==""?Array.from(t.classList||[]).includes(n.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 origins=new ia;static updates=new ia;static attribute(t,e,n){let i={};if(e===void 0&&n===void 0){for(let r=0,o=t.attributes,a=o.length;r<a;r++){const l=o[r];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof e=="string"&&n===void 0)return t.getAttribute(Ye(e));typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{t.setAttribute(Ye(r),o)})}static removeAttribute(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&t.removeAttribute(n.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,n){if(n===void 0&&typeof e=="string")return t[e];{let i={};typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);t[a]=o,a=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t[this.fixProp(n.trim())]})}static data(t,e,n){if(typeof e=="string"&&(e=Du(e)),(typeof e=="string"||e===void 0)&&n===void 0){const i=Object.assign({},t.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]||"")}catch{}}),typeof e=="string"?i[e]:i}else{let i={};typeof e=="object"?i=e:typeof e=="string"&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{o!=null?t.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete t.dataset[r]})}}static removeData(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t.dataset[n.trim()]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static dispatchEvent(t,e,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof e=="string"?r.includes(e)?i=new MouseEvent(e,n):o.includes(e)?i=new KeyboardEvent(e,n):i=new Event(e,n):i=e,t.dispatchEvent(i)}static scriptConvert(t){const e=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 t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static insert(t,e,n="append"){return typeof e=="string"?t[n](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[n](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const i=this.scriptConvert(n);i!=n&&e.content.replaceChild(i,n)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const n=t.options;for(let i=0,r=n.length;i<r;i++)n[i].value==e?n[i].selected=!0:n[i].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let n;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?n=parseInt(t.substring(2),16):n=parseInt(t.substring(1),10):n=e[t],n?String.fromCharCode(n):"&"+t}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length||0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})});static loadScript(t,e=()=>{},n=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=t,i.async=!1,i.onload=e,i.onerror=n,document.body.appendChild(i)}static runInSafe(t){const e=new Proxy(window,{get(n,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?e:Reflect.get(n,i,r)},set(n,i,r,o){return Reflect.set(n,i,r,o)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(n={},...i){const r=document.createElement(e);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(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
40
+ `.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},gs=(s,t)=>(typeof s=="string"&&(s=or(s)||new RegExp(s)),s.test(t)),Pu=(s,t)=>{if(typeof s=="string"&&(s=or(s)||new RegExp(s)),!t)return null;const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},Ou=(s,t)=>{typeof s=="string"&&(s=or(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const i of n)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function Iu(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function Mu(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}const we=["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 ni(){const s=Math.random()*4294967295|0,t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0;return(we[s&255]+we[s>>8&255]+we[s>>16&255]+we[s>>24&255]+"-"+we[t&255]+we[t>>8&255]+"-"+we[t>>16&15|64]+we[t>>24&255]+"-"+we[e&63|128]+we[e>>8&255]+"-"+we[e>>16&255]+we[e>>24&255]+we[n&255]+we[n>>8&255]+we[n>>16&255]+we[n>>24&255]).toLowerCase()}function Vm(s){const t=bn.get(s);if(t)return t;const e=s.replace(/(^\w)/g,function(n){return n.toLowerCase()});return bn.set(s,e),e}const $e=(s,t="-")=>{const e=bn.get(s);if(e)return e;let n=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return n=n.replace(new RegExp(`^${t}`),""),bn.set(s,n),n};function Qo(s){const t=bn.get(s);if(t)return t;const e=s.replace(/(^\w|[_-]\w)/g,function(n){return n.slice(-1).toUpperCase()});return bn.set(s,e),e}function Du(s){return Vm(Qo(s))}function Gm(s,t,e="0",n="left"){const i=Iu(s);if(t>i){const r=t-i;let o,a;switch(n){case"left":s=Array(r+1).join(e)+s;break;case"right":s=s+Array(r+1).join(e);break;default:o=Math.ceil(r/2),a=r-o,s=Array(a+1).join(e)+s+Array(o+1).join(e);break}}return s}let ii;class Ym{subscribers;constructor(){this.subscribers=new Set}add(){ii&&!this.subscribers.has(ii)&&this.subscribers.add(ii)}notify(){this.subscribers.forEach(t=>t())}}const Ru=new WeakMap;function Nu(s,t){let e=Ru.get(s);e||(e=new Map,Ru.set(s,e));let n=e.get(t);return n||(n=new Ym,e.set(t,n)),n}function Jo(s){ii=s,s(),ii=null}const Bm=Symbol("isProxy");function zm(s){return new Proxy(s,{get(t,e,n){return e===Bm?!0:(Nu(s,e).add(),Reflect.get(t,e,n))},set(t,e,n,i){const r=Nu(s,e);return s[e]!=n&&(s[e]=n,r.notify()),Reflect.set(t,e,n,i)}})}const Xm=zm,jm="[object Object]";function Hm(s){return Object.prototype.toString.call(s)}function Um(s){return s!=null}function Wm(s){return Hm(s)===jm}function qm(s,...t){return new s.constructor(...t)}function Au(s,t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(Wm(t[e])?(typeof s[e]>"u"&&(s[e]={}),Au(s[e],t[e])):typeof s[e]>"u"&&(s[e]=t[e]));return s}function Lu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function Fu(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function ri(s=[],t=[]){const e=s.length,n=t.length;for(let r=0;r<n;r++)s[r]=t[r];let i=Math.max(0,e-n);for(;i>0;)s.pop(),i--;return s}function Zm(s,t){const e=s.findIndex(n=>n===t);return e>=0&&s.splice(e,1),s}let $u;try{$u=Map}catch{$u=function(){}}let Vu;try{Vu=Set}catch{Vu=function(){}}function Ls(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function ar(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const Ve=(s,t,e)=>s<t?t:s>e?e:s,Km=(s,t,e)=>n=>{const i=Math.min(Math.max(s,n),t);return t-i<e?t:Math.round(i/e)*e};function Qm(s,t=12){return Ls(s).toFixed(t)}function Te(s,t=12){return+Qm(s,t)}function ys(s,t){const e=Pu("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Um(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(e.matchIndex+e.fullMatch.length):""}}function ta(s){const t=Pu("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Jm(s=0,t=100){return Math.random()*(t-s)+s}function Xt(s=0,t=100){return Math.floor(Jm(s,t))}tg();function tg(){const s=new ArrayBuffer(4),t=new Float32Array(s),e=new Uint32Array(s),n=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(n[l]=0,n[l|256]=32768,i[l]=24,i[l|256]=24):c<-14?(n[l]=1024>>-c-14,n[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,i[l]=24,i[l|256]=24):(n[l]=31744,n[l|256]=64512,i[l]=13,i[l|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;!(c&8388608);)c<<=1,u-=8388608;c&=-8388609,u+=947912704,r[l]=c|u}for(let l=1024;l<2048;++l)r[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)o[l]=l<<23;o[31]=1199570944,o[32]=2147483648;for(let l=33;l<63;++l)o[l]=2147483648+(l-32<<23);o[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(a[l]=1024);return{floatView:t,uint32View:e,baseTable:n,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}function he(){return(performance||Date).now()}function eg(s){let t=0;for(let e=5;e>=0;e=e-2)e==5?t+=s[e-1]*10+s[e]:e==3?t+=(s[e-1]*10+s[e])*60:e==1&&(t+=(s[e-1]*10+s[e])*60*60);return t=Math.floor(Math.max(0,t)),t*1e3}function sg(s){const t=[0,0,0,0,0,0],e=ta(s);for(let n=0,i=Math.min(e.length,3);n<i;n++){const r=Math.floor(Math.abs(e[n]));t[2*n+1]=r%10,t[2*n]=Math.floor(r/10)}return ea(t)}function ea(s){let t=eg(s)/1e3;const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const n=t%60;s[3]=n%10,s[2]=Math.floor(n/10),t=Math.floor(t/60);const i=t%60%24;return s[1]=i%10,s[0]=Math.floor(i/10),s}function sa(s,t=1){return s[5]+=t,ea(s)}function na(s,t=1){return s[5]-=t,ea(s)}function ng(s,t){s.forEach((e,n)=>{t[n]=e})}function ig(s,t){let e=!0;return function(...n){e&&(e=!1,s.apply(this,n),setTimeout(()=>{e=!0},t))}}function rg(s,t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{s.apply(this,n)},t)}}class lr{events;constructor(){this.events={}}on(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}addListener(t,e){return this.on(t,e),this}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}removeListener(t,e){if(this.events[t])return this.events[t]=this.events[t].filter(n=>n!==e),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].forEach(n=>{Reflect.apply(n,this,e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(e,this,o),this.off(t,i))}})();return this.on(t,i),this}}class cr extends lr{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(i=>i())),n=this.results.length;e.forEach((i,r)=>{if(i.status=="fulfilled"){const o=i.value;this.results.push(o),this.controller?.enqueue(o),this.emit("success",n+r,o)}else if(i.status=="rejected"){const o=new Error(i.reason);this.results.push(o),this.controller?.enqueue(o),this.emit("error",n+r,o)}}),this.activeTaskCount-=e.length}}}function og(s,t=(e,n)=>e<=n){const e=s.length;let n=Math.floor(e/2);for(;n>0;){for(let i=n;i<e;i++){const r=s[i];let o=i;for(;o>=n&&!t(s[o-n],r);)s[o]=s[o-n],o-=n;s[o]=r}n=Math.floor(n/2)}}var Gu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function ag(s,t={}){var e=1,n=1;function i(B){var V=B.match(/\n/g);V&&(e+=V.length);var yt=B.lastIndexOf(`
41
+ `);n=~yt?B.length-yt:n+B.length}function r(){var B={line:e,column:n};return function(V){return V.position=new o(B),f(),V}}function o(B){this.start=B,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(B){var V=new Error(t.source+":"+e+":"+n+": "+B);if(V.reason=B,V.filename=t.source,V.line=e,V.column=n,V.source=s,t.silent)a.push(V);else throw V}function c(){var B=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:B,parsingErrors:a}}}function u(){return m(/^{\s*/)}function h(){return m(/^}/)}function d(){var B,V=[];for(f(),v(V);s.length&&s.charAt(0)!="}"&&(B=X()||it());)B!==!1&&(V.push(B),v(V));return V}function m(B){var V=B.exec(s);if(V){var yt=V[0];return i(yt),s=s.slice(yt.length),V}}function f(){m(/^\s*/)}function v(B){var V;for(B=B||[];V=b();)V!==!1&&B.push(V);return B}function b(){var B=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var V=2;s.charAt(V)!=""&&(s.charAt(V)!="*"||s.charAt(V+1)!="/");)++V;if(V+=2,s.charAt(V-1)==="")return l("End of comment missing");var yt=s.slice(2,V-2);return n+=2,i(yt),s=s.slice(V),n+=2,B({type:"comment",comment:yt})}}function S(){var B=m(/^([^{]+)/);if(B)return vs(B[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(V){return V.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(V){return V.replace(/\u200C/g,",")})}function F(){var B=r(),V=m(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(V){if(V=vs(V[0]),!m(/^:\s*/))return l("property missing ':'");var yt=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),A=B({type:"declaration",property:V.replace(Gu,""),value:yt?vs(yt[0]).replace(Gu,""):""});return m(/^[;\s]*/),A}}function $(){var B=[];if(!u())return l("missing '{'");v(B);for(var V;V=F();)V!==!1&&(B.push(V),v(B));return h()?B:l("missing '}'")}function O(){for(var B,V=[],yt=r();B=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)V.push(B[1]),m(/^,\s*/);if(V.length)return yt({type:"keyframe",values:V,declarations:$()})}function K(){var B=r(),V=m(/^@([-\w]+)?keyframes\s*/);if(V){var yt=V[1];if(V=m(/^([-\w]+)\s*/),!V)return l("@keyframes missing name");var A=V[1];if(!u())return l("@keyframes missing '{'");for(var W,L=v();W=O();)L.push(W),L=L.concat(v());return h()?B({type:"keyframes",name:A,vendor:yt,keyframes:L}):l("@keyframes missing '}'")}}function st(){var B=r(),V=m(/^@supports *([^{]+)/);if(V){var yt=vs(V[1]);if(!u())return l("@supports missing '{'");var A=v().concat(d());return h()?B({type:"supports",supports:yt,rules:A}):l("@supports missing '}'")}}function J(){var B=r(),V=m(/^@host\s*/);if(V){if(!u())return l("@host missing '{'");var yt=v().concat(d());return h()?B({type:"host",rules:yt}):l("@host missing '}'")}}function gt(){var B=r(),V=m(/^@media *([^{]+)/);if(V){var yt=vs(V[1]);if(!u())return l("@media missing '{'");var A=v().concat(d());return h()?B({type:"media",media:yt,rules:A}):l("@media missing '}'")}}function x(){var B=r(),V=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(V)return B({type:"custom-media",name:vs(V[1]),media:vs(V[2])})}function k(){var B=r(),V=m(/^@page */);if(V){var yt=S()||[];if(!u())return l("@page missing '{'");for(var A=v(),W;W=F();)A.push(W),A=A.concat(v());return h()?B({type:"page",selectors:yt,declarations:A}):l("@page missing '}'")}}function P(){var B=r(),V=m(/^@([-\w]+)?document *([^{]+)/);if(V){var yt=vs(V[1]),A=vs(V[2]);if(!u())return l("@document missing '{'");var W=v().concat(d());return h()?B({type:"document",document:A,vendor:yt,rules:W}):l("@document missing '}'")}}function E(){var B=r(),V=m(/^@font-face\s*/);if(V){if(!u())return l("@font-face missing '{'");for(var yt=v(),A;A=F();)yt.push(A),yt=yt.concat(v());return h()?B({type:"font-face",declarations:yt}):l("@font-face missing '}'")}}var D=q("import"),Y=q("charset"),nt=q("namespace");function q(B){var V=new RegExp("^@"+B+"\\s*([^;]+);");return function(){var yt=r(),A=m(V);if(A){var W={type:B};return W[B]=A[1].trim(),yt(W)}}}function X(){if(s[0]=="@")return K()||gt()||x()||st()||D()||Y()||nt()||P()||k()||J()||E()}function it(){var B=r(),V=S();return V?(v(),B({type:"rule",selectors:V,declarations:$()})):l("selector missing")}return ia(c())}function vs(s){return s?s.replace(/^\s+|\s+$/g,""):""}function ia(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){ia(o,n)}):r&&typeof r=="object"&&ia(r,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const Yu=(s,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([s],{type:`${t};${e}`}):new Blob([s],{type:`${t};charset=${e}`}),Bu=s=>new XMLSerializer().serializeToString(s),lg=(s,t="image/svg+xml",e="utf-8")=>Yu(Bu(s),t,e),zu=(s,t)=>new Promise(e=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof s=="string"?n.href=s:n.href=window.URL.createObjectURL(s),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href),e()});function cg(s=["*"],t){return new Promise((e,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(",")),t&&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(`.${hg(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),e(o)}};i.addEventListener("change",r),i.click()})}function ug(s,t="text",e){return new Promise((n,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{e?.(o.loaded,o.total)}),r.addEventListener("load",o=>{n(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),t){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 hg=s=>{let t;return s instanceof File?t=s.name:t=s,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function Xu(s,t={},e=[],n){return{tag:s,props:t,children:e,el:n}}function ur(s,t){if(s.el)return s.el;if(s.el=document.createElement(s.tag),s.props)for(const e in s.props){const n=s.props[e];e.startsWith("on")?s.el.addEventListener(e.slice(2).toLowerCase(),n):s.el.setAttribute(e,n)}return s.children&&(typeof s.children=="string"?s.el.textContent=s.children:s.children.forEach(e=>{ur(e,s.el)})),t?.appendChild(s.el),s.el}function ju(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(ur(t),s.el);return}const e=t.el=s.el,n=s.props,i=t.props;for(const a in n)a in i||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),n[a]):e.removeAttribute(a));for(const a in i){const l=n[a],c=i[a];if(c!=l)if(a.startsWith("on")){const u=a.slice(2).toLowerCase();e.removeEventListener(u,l),e.addEventListener(u,c)}else a==="style"?Object.keys(c||{}).forEach(u=>{const h=String(c[u]).toLowerCase().includes("!important")?"important":"";e.style.setProperty($e(u),String(c[u]).replace(/!important/i,""),h)}):e.setAttribute(a,c)}const r=s.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof r=="string")e.innerHTML="",o.forEach(a=>{ur(a,e)});else{const a=Math.min(r.length,o.length);for(let l=0;l<a;l++)ju(r[l],o[l]);o.length>r.length&&o.slice(r.length).forEach(l=>{ur(l,e)}),o.length<r.length&&r.slice(o.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function ra(){const s=document.documentElement;return{clientWidth:s.clientWidth,clientHeight:s.clientHeight,clientTop:s.clientTop,clientLeft:s.clientLeft,scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,offsetTop:s.offsetTop,offsetLeft:s.offsetLeft,offsetParent:s.offsetParent}}function oa(){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 dg(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=ra();return{x:e+r,y:t+o,width:n,height:i}}function fg(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=ra(),n=e-s;return n<=0?0:t/n*100}function pg(s){if("center"in s)return s.center;if(typeof s.pageX=="number"&&typeof s.pageY=="number")return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=ra();return{x:s.clientX+t,y:s.clientY+e}}function _s(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=pg(s),n=dg(t||s.target);return{x:e.x-n.x,y:e.y-n.y}}const mg=()=>{const s=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(s)?t="macOS":/win/i.test(s)?t="Windows":/android/i.test(s)?t="Android":/iphone|ipad|ipod/i.test(s)?t="iOS":/linux/i.test(s)?t="Linux":/bsd/i.test(s)&&(t="BSD"),t.toLowerCase()};function gg(){return mg()==="macos"}function yg(){const s=window.navigator.userAgent,t=s.indexOf("MSIE ");if(t>0)return parseInt(s.substring(t+5,s.indexOf(".",t)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const aa=yg()!==-1;(()=>{const s=Eu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!Eu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const n=t.transferToImageBitmap();try{e.createPattern(n,"no-repeat")}catch{return!1}return!0}();function vg(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const i=function(){const r=Math.min(t.clientWidth,s);t.dataset.width=r,t.dataset.rem=n=Math.round(100*(r/s)),t.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function Nt(s){return s*Math.PI/180}function De(s){return s*180/Math.PI}function la(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function ca(s,t,e,n){return la(e-s,n-t)}function ua(s,t,e,n){const i=e-s,r=n-t;return i*i+r*r}function xn(s,t,e,n){let i=Math.atan2(n-t,e-s);return i<0&&(i+=Math.PI*2),i}function bs(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const Hu=_g("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 _g(s,t=10){const e={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],t);e[r]="&#"+o+";"}return e["\\xa0"]="&#160;",e}function Ee(s,t){const e=Object.keys(t);for(let n=0;n<e.length;n++)s=s.replace(new RegExp("{"+e[n]+"}","gi"),""+t[e[n]]);return s}function hr(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=n[Math.floor(Math.random()*n.length)];while(s[t]);return t}function bg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function xg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const oi={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class ha{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(n.setAttribute("stop-color",Ee("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class Uu{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class dr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:n=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=n),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(oi);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=oi[i].canvas}}__getStyleState(){const t={},e=Object.keys(oi);for(let n=0,i=e.length;n<i;n++){const r=e[n];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=t[r]}}__createElement(t,e={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(oi);for(let r=0;r<i.length;r++){const o=oi[i[r]],a=this[i[r]];if(o.apply){if(a instanceof Uu){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(o.apply,Ee("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof ha)e.setAttribute(o.apply,Ee("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(c){e.setAttribute(o.svgAttr,Ee("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),e.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=t+"-"+o.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(Hu);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=Hu[a],c=new RegExp(a,"gi");c.test(e)&&(e=e.replace(c,l))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Ee("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Ee("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Ee("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Ee("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(Ee("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(Ee("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Ee("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Ee("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Ee("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,n,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===n&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,i-e]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(t,e);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),d=this.normalize([l[0]+c[0],l[1]+c[1]]),m=r/Math.sin(h/2),f=t+m*d[0],v=e+m*d[1],b=[-l[1],l[0]],S=[c[1],-c[0]],F=function(K){const st=K[0];return K[1]>=0?Math.acos(st):-Math.acos(st)},$=F(b),O=F(S);this.lineTo(f+b[0]*r,v+b[1]*r),this.arc(f,v,r,$,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,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,i){if(t===0&&e===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,n,i){const r=this.__createElement("linearGradient",{id:hr(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new ha(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:hr(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new ha(a,this)}__parseFont(){const e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),n={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(t,e){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e}__applyText(t,e,n,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:n,"text-anchor":bg(this.textAlign),"dominant-baseline":xg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,n){this.__applyText(t,e,n,"fill")}strokeText(t,e,n){this.__applyText(t,e,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,n,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),u=e+n*Math.sin(i),h=o?0:1;let d=0,m=r-i;m<0&&(m+=2*Math.PI),o?d=m>Math.PI?0:1:d=m>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Ee("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:d,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=hr(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Ee("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],n,i,r,o,a=0,l=0,c,u,h,d,m,f,v,b;if(t.length===3)n=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)n=t[1],i=t[2],r=t[3],o=t[4],c=e.width,u=e.height;else if(t.length===9)a=t[1],l=t[2],c=t[3],u=t[4],n=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const S=this.__closestGroupOrSvg();this.__currentElement;const F="translate("+n+", "+i+")";if(e instanceof dr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(d=h.childNodes[0];d.childNodes.length;)b=d.childNodes[0].getAttribute("id"),this.__ids[b]=b,this.__SVGdefs.appendChild(d.childNodes[0]);if(m=h.childNodes[1],m){const $=m.getAttribute("transform");let O;$?O=$+" "+F:O=F,m.setAttribute("transform",O),S.appendChild(m)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(f=this.__createElement("image"),f.setAttribute("width",r),f.setAttribute("height",o),f.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(v=this.__document.createElement("canvas"),v.width=r,v.height=o,v.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=v),f.setAttribute("transform",F),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),S.appendChild(f))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=hr(this.__ids);let r;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):t instanceof dr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new Uu(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class da{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new dr({canvas:this.canvas,width:e||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,n,i){return this.context.fillRect(t,e,n,i),this.customContext&&this.customContext.fillRect(t,e,n,i),this}fillText(t,e,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,i),this.customContext&&this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,n,i){return this.context.strokeText(t,e,n,i),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,i){return this.context.strokeRect(t,e,n,i),this.customContext&&this.customContext.strokeRect(t,e,n,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,n,i),this.customContext&&this.customContext.clearRect(t,e,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const n=new Path2D;n.addPath(t,e),this.currentPath2D=n}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,n=0){return this.translate(e,n),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-n),this.changePath2D(),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,i,r,o){return this.context.arc(t,e,n,i,r,o),this.customContext&&this.customContext.arc(t,e,n,i,r,o?-1:1),this.currentPath2D.arc(t,e,n,i,r,o),this}arcTo(t,e,n,i,r){return this.context.arcTo(t,e,n,i,r),this.customContext&&this.customContext.arcTo(t,e,n,i,r),this.currentPath2D.arcTo(t,e,n,i,r),this}ellipse(t,e,n,i,r,o,a,l){return this.context.ellipse(t,e,n,i,r,o,a,l),this.currentPath2D.ellipse(t,e,n,i,r,o,a,l),this}quadraticCurveTo(t,e,n,i){return this.context.quadraticCurveTo(t,e,n,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,i),this.currentPath2D.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.context.bezierCurveTo(t,e,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,i,r,o),this.currentPath2D.bezierCurveTo(t,e,n,i,r,o),this}rect(t,e,n,i){return this.context.rect(t,e,n,i),this.customContext&&this.customContext.rect(t,e,n,i),this.currentPath2D.rect(t,e,n,i),this}createLinearGradient(t,e,n,i,r){const o=this.context.createLinearGradient(t,e,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,i,r,o,a){const l=this.context.createRadialGradient(t,e,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],i=e[1];this.context.drawImage(t,n,i)}else if(e.length===4){const n=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,n,i,r,o)}else if(e.length===8){const n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,n,i,r)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class fr{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=xn(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),n=Math.min(this.y,this.toY),i=Math.max(this.x,this.toX),r=Math.max(this.y,this.toY);return{x:e,y:n,width:i-e,height:r-n}}else{const e=Math.sin(t),n=Math.cos(t),i=n*this.x-e*this.y,r=n*this.toX-e*this.toY,o=n*this.y+e*this.x,a=n*this.toY+e*this.toX;return{x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,n=this.y,i=t.toX,r=t.toY,o=this.toX-e,a=t.x-i;if(!o&&!a)return null;const l=(this.toY-n)/o,c=(t.y-r)/a;if(o){if(!a)return{x:i,y:l*(i-e)+n}}else return{x:e,y:c*(e-i)+r};const u=(-c*i+r+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}const Wu=fr;class fa extends fr{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,n,i,r,o,a,l]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,n,i,r,o,a,l,!this.sweepFlag)}convert(t,e,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,d=(e-i)/2,m=Math.cos(u)*h+Math.sin(u)*d,f=-Math.sin(u)*h+Math.cos(u)*d,v=m*m/(r*r)+f*f/(o*o);if(v>1){const P=Math.sqrt(v);throw r=P*r,o=P*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*f*f-o*o*m*m)/(r*r*f*f+o*o*m*m)),S=l!=c?1:-1,F=S*b*r*f/o,$=S*b*-o*m/r,O=(t+n)/2,K=(e+i)/2,st=Math.cos(u)*F-Math.sin(u)*$+O,J=Math.sin(u)*F+Math.cos(u)*$+K,gt=(P,E,D,Y)=>(P*Y>=E*D?1:-1)*Math.acos((P*D+E*Y)/(Math.sqrt(P*P+E*E)*Math.sqrt(D*D+Y*Y))),x=gt(1,0,t-st,e-J)-u,k=gt(t-st,e-J,n-st,i-J);return[st,J,r,o,u,x,x+k]}}const wg=fa;class Cg extends fr{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,n=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,n,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let n,i,r,o;for(let c=0;c<2;++c)n=c==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,i=c==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,r=c==0?this.x:this.y,Math.abs(n)>1e-12&&(o=-i/(2*n),0<o&&o<1&&[t,e][c].push(n*o*o+i*o+r));const a={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},l={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:a.x,y:a.y,width:l.x-a.x,height:l.y-a.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const Sg=Cg;class cn extends fr{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),n=this.x-this.c1x,i=(-e+Math.sqrt(e*e-4*t*n))/2/t,r=(-e-Math.sqrt(e*e-4*t*n))/2/t;const o=[this.y,this.toY],a=[this.x,this.toX];let l;const c=[];Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(l=this.interpolate(i),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),n=this.y-this.c1y,i=(-e+Math.sqrt(e*e-4*t*n))/2/t,r=(-e-Math.sqrt(e*e-4*t*n))/2/t,Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(l=this.interpolate(i),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y})),r>=0&&r<=1&&(l=this.interpolate(r),a.push(l.x),o.push(l.y),c.push({X:l.x,Y:l.y}));let u=[],h=c.length;for(let f=0;f<h;f++){for(let v=f+1;v<h;v++)c[f].X===c[v].X&&c[f].Y===c[v].Y&&(v=++f);u.push({X:c[f].X,Y:c[f].Y})}const d={x:Math.min.apply(Math,a),y:Math.min.apply(Math,o)},m={x:Math.max.apply(Math,a),y:Math.max.apply(Math,o)};return{x:d.x,y:d.y,width:m.x-d.x,height:m.y-d.y,dots:u}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.toX,y:Math.pow(1-t,3)*this.y+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.toY}}static base3(t,e,n,i,r){const o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}static bezlen(t,e,n,i,r,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let f=0;f<12;f++){const v=u*h[f]+u,b=this.base3(v,t,n,r,a),S=this.base3(v,e,i,o,l);m+=d[f]*Math.sqrt(b*b+S*S)}return u*m}length(t=1){return cn.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,n=this.y,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.toX,c=this.toY;if(t<0||cn.bezlen(e,n,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,d=u-h,m=cn.bezlen(e,n,i,r,o,a,l,c,d);for(;Math.abs(m-t)>.01;)h/=2,d+=(m<t?1:-1)*h,m=cn.bezlen(e,n,i,r,o,a,l,c,d);return d}getPointAtSegmentLength(t){const e=this.getTatLen(t);let n=1-e,i=Math.pow(n,3),r=Math.pow(n,2),o=e*e,a=o*e,l=i*this.x+r*3*e*this.c1x+n*3*e*e*this.c2x+a*this.toX,c=i*this.y+r*3*e*this.c1y+n*3*e*e*this.c2y+a*this.toY,u=this.x+2*e*(this.c1x-this.x)+o*(this.c2x-2*this.c1x+this.x),h=this.y+2*e*(this.c1y-this.y)+o*(this.c2y-2*this.c1y+this.y),d=this.c1x+2*e*(this.c2x-this.c1x)+o*(this.toX-2*this.c2x+this.c1x),m=this.c1y+2*e*(this.c2y-this.c1y)+o*(this.toY-2*this.c2y+this.c1y),f=n*this.x+e*this.c1x,v=n*this.y+e*this.c1y,b=n*this.c2x+e*this.toX,S=n*this.c2y+e*this.toY,F=90-Math.atan2(u-d,h-m)*180/Math.PI;return{x:l,y:c,m:{x:u,y:h},n:{x:d,y:m},start:{x:f,y:v},end:{x:b,y:S},alpha:F}}}const Fs=cn,ai=Math.PI*2;function qu(s,t,e,n){const i=s*n-t*e<0?-1:1;let r=s*e+t*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function Tg(s,t,e,n,i,r,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,d=o*o,m=a*a,f=u*u,v=h*h;let b=d*m-d*v-m*f;b<0&&(b=0),b/=d*v+m*f,b=Math.sqrt(b)*(i===r?-1:1);const S=b*o/a*h,F=b*-a/o*u,$=c*S-l*F+(s+e)/2,O=l*S+c*F+(t+n)/2,K=(u-S)/o,st=(h-F)/a,J=(-u-S)/o,gt=(-h-F)/a,x=qu(1,0,K,st);let k=qu(K,st,J,gt);return r===0&&k>0&&(k-=ai),r===1&&k<0&&(k+=ai),[$,O,x,k]}function Eg(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+t),o=Math.sin(s+t);return[n,i,n-i*e,i+n*e,r+o*e,o-r*e,r,o]}function Zu(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*ai/360),u=Math.cos(l*ai/360),h=u*(s-e)/2+c*(t-n)/2,d=-c*(s-e)/2+u*(t-n)/2;if(h===0&&d===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const m=h*h/(o*o)+d*d/(a*a);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));const f=Tg(s,t,e,n,i,r,o,a,c,u),v=[];let b=f[2],S=f[3];const F=Math.max(Math.ceil(Math.abs(S)/(ai/4)),1);S/=F;for(let $=0;$<F;$++)v.push(Eg(b,S)),b+=S;return v.map($=>{for(let O=0;O<$.length;O+=2){let K=$[O+0],st=$[O+1];K*=o,st*=a;const J=u*K-c*st,gt=c*K+u*st;$[O+0]=J+f[0],$[O+1]=gt+f[1]}return $})}function pa(s,t,e,n,i,r){return[s/3+2/3*e,t/3+2/3*n,i/3+2/3*e,r/3+2/3*n,i,r]}function li(s,t,e,n){return[s,t,e,n,e,n]}const pr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class re{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&tt.attribute(n,e),n}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||ni()})}static downloadFromSVGElement(t,e="shape"){return zu(lg(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return zu(Yu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return Bu(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 re.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=ta(r);for(o=="m"&&a.length>pr[o]&&(e.push([i,...a.splice(0,pr[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<pr[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,pr[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=e,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let d=0,m=t.length;d<m;d++){let f=t[d];const v=f[0];switch(v){case"M":n=f[1],i=f[2];break;case"A":const b=Zu(r,o,f[6],f[7],f[4],f[5],f[1],f[2],f[3]);if(!b.length)continue;b.forEach(($,O)=>{const[K,st,J,gt,x,k,P,E]=$;f=["C",J,gt,x,k,P,E],O<b.length-1&&e.push(f)});break;case"S":let S=r,F=o;(h=="C"||h=="S")&&(S+=S-c,F+=F-u),f=["C",S,F,f[1],f[2],f[3],f[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),f=["C",...pa(r,o,a,l,f[1],f[2])];break;case"Q":a=f[1],l=f[2],f=["C",...pa(r,o,f[1],f[2],f[3],f[4])];break;case"L":f=["C",...li(r,o,f[1],f[2])];break;case"H":f=["C",...li(r,o,f[1],o)];break;case"V":f=["C",...li(r,o,r,f[1])];break;case"Z":f=["C",...li(r,o,n,i)];break}h=v,r=f[f.length-2],o=f[f.length-1],f.length>4?(c=f[f.length-4],u=f[f.length-3]):(c=r,u=o),e.push(f)}return e}static catmullRom2bezier(t){const e=[];for(let n=0,i=t.length;i-2>n;n+=2){let r;n==0?r=[{x:t[n],y:t[n+1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}]:i-4==n?r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+2],y:t[n+3]}]:r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){const e=[];let n=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){const a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const l=t[o],c=e[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return t}}class Ae{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(re.parseSVGPath(t),e):t instanceof Ae?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const n=re.normalizeSVGPath(re.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let i=!1;for(let r=0,o=n.length;r<o;r++){const a=n[r];if(a[0]=="M"){i||(i=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Fs({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],toX:a[5],toY:a[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(r=>{({x:r.x,y:r.y}=e.transformPoint({x:r.x,y:r.y})),{x:r.c1x,y:r.c1y}=e.transformPoint({x:r.c1x,y:r.c1y}),{x:r.c2x,y:r.c2y}=e.transformPoint({x:r.c2x,y:r.c2y}),{x:r.toX,y:r.toY}=e.transformPoint({x:r.toX,y:r.toY})}))}static fromPolymorphPoints(t){const e=new Ae;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let n=2,i=t.length;n+5<i;n+=6)e.appendLine(new Fs({c1x:t[n],c1y:t[n+1],c2x:t[n+2],c2y:t[n+3],toX:t[n+4],toY:t[n+5]}));return e}static fromLines(t){const e=new Ae;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let n=0,i=t.length;n<i;n++)e.appendLine(t[n]);return e}appendLine(t){if(t instanceof wg){Zu(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,d,m,f,v,b,S]=c;this.normalizedLines.push(new Fs({x:this.prevPathX,y:this.prevPathY,c1x:d,c1y:m,c2x:f,c2y:v,toX:b,toY:S})),this.prevPathX=b,this.prevPathY=S});return}let e,n,i,r,o,a;t instanceof Fs?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.toX,a=t.toY):t instanceof Sg?[e,n,i,r,o,a]=pa(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,n,i,r,o,a]=li(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Fs({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:n,c2x:i,c2y:r,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform(),i=[];i.push(["M",t,e]);for(let r=0,o=n.length;r<o;r++)i.push(...n[r].toSVGPathData());return i}toSVGPathD(){return re.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:n,normalizedLines:i}=this.updateTransform();t.beginPath(),t.moveTo(e,n),i.forEach(r=>{r.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],n=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),n.push(c.y,c.y+c.height)}),e.length==0||n.length==0)return{x:0,y:0,width:0,height:0};const i=Math.min.apply(0,e),r=Math.min.apply(0,n),o=Math.max.apply(0,e),a=Math.max.apply(0,n);return{x:i,y:r,width:o-i,height:a-r}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new Le;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,n=this.startPathY;({x:e,y:n}=t.transformPoint({x:e,y:n}));const i=[];return this.normalizedLines.forEach(r=>{let o=r.x,a=r.y,l=r.c1x,c=r.c1y,u=r.c2x,h=r.c2y,d=r.toX,m=r.toY;({x:o,y:a}=t.transformPoint({x:o,y:a})),{x:l,y:c}=t.transformPoint({x:l,y:c}),{x:u,y:h}=t.transformPoint({x:u,y:h}),{x:d,y:m}=t.transformPoint({x:d,y:m}),i.push(new Fs({x:o,y:a,c1x:l,c1y:c,c2x:u,c2y:h,toX:d,toY:m}))}),{startPathX:e,startPathY:n,normalizedLines:i}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,n)=>e+=n.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let n=0;const i=e.length;for(let r=0;r<i;r++){const o=e[r],a=o.length();if(n+a>=t)return o.getPointAtSegmentLength(t-n);n+=a}return e[i-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:n,normalizedLines:i}=this.updateTransform(),r=i.length;if(r===0)return{x:e,y:n};if(r===1)return i[0].interpolate(t);{let o=t*r,a=i[0];if(o--,o>1)for(let l=1;l<r&&(a=i[l],o>1);l++)o-=1;return a.interpolate(o)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const n=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(n,t):n}}getSubpathsAtLength(t,e,n){const{startPathX:i,startPathY:r,normalizedLines:o}=t.updateTransform();let a=null,l=0;const c=new Ae;c.prevPathX=c.startPathX=i,c.prevPathY=c.startPathY=r;for(let u=0,h=o.length;u<h;u++){const d=o[u],m=d.length();if(l+m>e&&!a){const f=d.getPointAtSegmentLength(e-l);if(c.appendLine(new Fs({c1x:f.start.x,c1y:f.start.y,c2x:f.m.x,c2y:f.m.y,toX:f.x,toY:f.y})),n)return c;a=c,c.appendLine(new Fs({c1x:f.n.x,c1y:f.n.y,c2x:f.end.x,c2y:f.end.y,toX:d.x,toY:d.y})),l+=m;continue}l+=m,c.appendLine(d)}return c}closestPoint(t,e){const n=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ua(u.x,u.y,t,e);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=ua(u.x,u.y,t,e),d=r+a,m=this.getPointAtLength(d),f=ua(m.x,m.y,t,e);c>=0&&h<o?(i=u,r=c,o=h):d<=n&&f<o?(i=m,r=d,o=f):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?xn(l.x,l.y,i.x,i.y):xn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:n}=this.updateTransform();return[t,e].concat(n.reduce((i,r)=>i.concat([r.c1x,r.c1y,r.c2x,r.c2y,r.toX,r.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=ca(t[o],t[o+1],n,i),n=t[o],i=t[o+1];return Math.floor(r)}expendFill(t){const e=this.polymorphPoints,n=e.length;let i=t-n;const r=Math.ceil(t/n),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=n-1;){const l=e[a++],c=e[a++],u=e[a++],h=e[a++],d=e[a++],m=e[a++];o.push(["C",l,c,u,h,d,m]);let f=0;for(;f<r&&i>0;)o.push(["C",d,m,d,m,d,m]),i-=6,f++}return o}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Te(t[o]+(e[o]-t[o])*n,6);return r}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t:Math.abs(n-1)<Number.EPSILON?e:Ae.fromPolymorphPoints(Ae.mixPoints(new Ae({d:t}).polymorphPoints,new Ae({d:e}).polymorphPoints,n)).toSVGPathData()}}(function(){if(!window.requestAnimationFrame){let s=he();window.requestAnimationFrame=function(t){const e=he(),n=Math.max(0,16-(e-s)),i=window.setTimeout(function(){t(e+n)},n);return s=e+n,i}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(s){clearTimeout(s)})})();const Wt=s=>{let t=!1;return window.requestAnimationFrame(function e(n){!t&&s(n)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function ma(s,t=0){if(t==0)return s(he()),()=>{};{const e=he();return Wt(n=>n-e>=t?(s(n),!1):!0)}}function kg(s,t=0){let e=!1,n=0,i=he();const r=o=>{if(e)return;n++;const a=o-i-n*t;s(o,n,t-a<=0),ma(r,Math.max(0,t-a))};return ma(r,t),()=>{e=!0}}function Pg(s,t=20){const e=1e3/t;let n=0,i;return()=>(he()-n>=e&&(n=he(),i=s()),i)}const mr=new rr;let ga=!1;function Ku(s,t,e){if(s&&t&&mr.set(s,t),ga)return;ga=!0;const n=he();Ig(i=>{for(ga=!1;(i.timeRemaining()>0||e&&he()-n>=e)&&mr.length>0;){const r=mr.shift();r&&r[1]()}mr.length>0&&Ku()})}let gr=0,un=33,$s=33,ya;const Qu=new MessageChannel,Og=Qu.port2;Qu.port1.onmessage=s=>{ya!==null&&ya({didTimeout:gr<=he(),timeRemaining:()=>Math.max(0,gr-he())})};function Ig(s){return ya=s,requestAnimationFrame(t=>{let e=t-gr+$s;e<$s&&un<$s?(e<8&&(e=8),$s=e<un?un:e):e>$s&&un>$s?$s=e<un?un:e:un=e,gr=t+$s,Og.postMessage(null)})}class ci{static _nextId=0;static nextId(){return ci._nextId++}}const ut={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const t=2.5949095;return(s*=2)<1?.5*(s*s*((t+1)*s-t)):.5*((s-=2)*s*((t+1)*s+t)+2)}},Bounce:{In:function(s){return 1-ut.Bounce.Out(1-s)},Out:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},InOut:function(s){return s<.5?ut.Bounce.In(s*2)*.5:ut.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(t){return t**s},Out:function(t){return 1-(1-t)**s},InOut:function(t){return t<.5?(t*2)**s/2:(1-(2-t*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(t){return Math.floor(t*s)/s}},createNoisyEasing:function(s,t=.1){const e=1-t;return function(n){return t*Math.random()+e*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},va=ut;function Mg(s){switch(s){case ut.Quadratic.In:return ut.Quadratic.Out;case ut.Quadratic.Out:return ut.Quadratic.In;case ut.Quadratic.InOut:return ut.Quadratic.InOut;case ut.Cubic.In:return ut.Cubic.Out;case ut.Cubic.Out:return ut.Cubic.In;case ut.Cubic.InOut:return ut.Cubic.InOut;case ut.Quartic.In:return ut.Quartic.Out;case ut.Quartic.Out:return ut.Quartic.In;case ut.Quartic.InOut:return ut.Quartic.InOut;case ut.Quintic.In:return ut.Quintic.Out;case ut.Quintic.Out:return ut.Quintic.In;case ut.Quintic.InOut:return ut.Quintic.InOut;case ut.Sinusoidal.In:return ut.Sinusoidal.Out;case ut.Sinusoidal.Out:return ut.Sinusoidal.In;case ut.Sinusoidal.InOut:return ut.Sinusoidal.InOut;case ut.Exponential.In:return ut.Exponential.Out;case ut.Exponential.Out:return ut.Exponential.In;case ut.Exponential.InOut:return ut.Exponential.InOut;case ut.Circular.In:return ut.Circular.Out;case ut.Circular.Out:return ut.Circular.In;case ut.Circular.InOut:return ut.Circular.InOut;case ut.Elastic.In:return ut.Elastic.Out;case ut.Elastic.Out:return ut.Elastic.In;case ut.Elastic.InOut:return ut.Elastic.InOut;case ut.Back.In:return ut.Back.Out;case ut.Back.Out:return ut.Back.In;case ut.Back.InOut:return ut.Back.InOut;case ut.Bounce.In:return ut.Bounce.Out;case ut.Bounce.Out:return ut.Bounce.In;case ut.Bounce.InOut:return ut.Bounce.InOut;default:return s}}const wn={Utils:{Linear:function(s,t,e){return(t-s)*e+s},Factorial:function(){const s=[1];return function(t){let e=1;if(s[t])return s[t];for(let n=t;n>1;n--)e*=n;return s[t]=e,e}}(),Bernstein:function(s,t){const e=wn.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,i){const r=(e-s)*.5,o=(n-t)*.5,a=i*i,l=i*a;return(2*t-2*e+r+o)*l+(-3*t+3*e-2*r-o)*a+r*i+t},QuadraticBezier:(s,t,e,n)=>{const i=1-n;return i*i*s+2*i*n*t+n*n*e},CubicBezier:(s,t,e,n,i)=>{const r=1-i;return r*r*r*s+3*r*r*i*t+3*r*i*i*e+i*i*i*n}},Linear:function(s,t){const e=s.length-1,n=e*t,i=Math.floor(n),r=wn.Utils.Linear;return t<0?r(s[0],s[1],n):t>1?r(s[e],s[e-1],e-n):r(s[i],s[i+1>e?e:i+1],n-i)},Bezier:function(s,t){let e=0;const n=s.length-1,i=Math.pow,r=wn.Utils.Bernstein;for(let o=0;o<=n;o++)e+=i(1-t,n-o)*i(t,o)*s[o]*r(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,i=Math.floor(n);const r=wn.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(i=Math.floor(n=e*(1+t))),r(s[(i-1+e)%e],s[i],s[(i+1)%e],s[(i+2)%e],n-i)):t<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(r(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):r(s[i?i-1:0],s[i],s[e<i+1?e:i+1],s[e<i+2?e:i+2],n-i)}},_a=wn;class Ju{_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=he(),e=!1){const n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const Ge=new Ju;class th{constructor(t,e=Ge){this._object=t,this._group=e}_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=va.Linear.None;_interpolationFunction=_a.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=he()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,n,i){for(const r in n){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=e[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=he()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=he()){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=Ge){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=va.Linear.None){return this._easingFunction=t,this}interpolation(t=_a.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=he(),e=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,n,i){for(const r in n){if(e[r]===void 0)continue;const o=e[r]||0;let a=n[r];const l=Array.isArray(t[r]),c=Array.isArray(a);!l&&c?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=e}}const Dg=th,Rg=ci.nextId,Ng=Ge.getAll.bind(Ge),Ag=Ge.removeAll.bind(Ge),Lg=Ge.add.bind(Ge),Fg=Ge.remove.bind(Ge),$g=Ge.update.bind(Ge),bt={now:he,Sequence:ci,Easing:va,Interpolation:_a,Group:Ju,Tween:Dg,nextId:Rg,getAll:Ng,removeAll:Ag,add:Lg,remove:Fg,update:$g};class qe{tweens=[];taskQueue=new cr(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){og(this.tweens,(e,n)=>t?e.delay>n.delay:e.delay<=n.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(n=>{const i={...n};delete i.tween,i.toValues={...i.toValues},i.fromValues={...i.fromValues},e.push(i)}),e}addTween(t,e,n){const i={fromValues:t,toValues:e,frames:typeof n?.frames=="number"?n.frames:1,delay:typeof n?.delay=="number"?n.delay:this.tweens.length,easeFunction:n?.easeFunction||ut.Linear.None,interpolationFunction:n?.interpolationFunction||wn.Linear,repeat:typeof n?.repeat=="number"?n.repeat:0,yoyo:n?.yoyo||!1,onStart:n?.onStart||(()=>{}),onUpdate:n?.onUpdate||(()=>{}),onComplete:n?.onComplete||(()=>{})};return this.tweens.push(i),this}runTweens(t){return new Promise(e=>{this.onGroupStart?.();let n=0;Wt(i=>{n==0&&(n=i);const r=i-n;t.filter(a=>a.delay*this.frameDuration<=r).forEach(a=>{a.tween||(a.tween=new th({...a.fromValues}).to({...a.toValues},a.frames*this.frameDuration).easing(a.easeFunction).interpolation(a.interpolationFunction).repeat(a.repeat).yoyo(a.yoyo).onStart(a.onStart).onUpdate(a.onUpdate).onComplete(a.onComplete),a.tween.start(i)),(a.delay+a.frames*(a.repeat+1))*this.frameDuration>r?a.tween.update(i):(a.tween.isPlaying()&&a.tween.end(),Zm(t,a))});const o=!!t.length;return o||(this.onGroupComplete?.(),e()),o})})}play(t=this.cloneTweens(this.tweens)){this.taskQueue.addTask(()=>this.runTweens(t))}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(n=>{e=Math.max(e,n.delay+n.frames),n.easeFunction=Mg(n.easeFunction);const i={...n.toValues};n.toValues={...n.fromValues},n.fromValues={...i}}),t.forEach(n=>{n.delay=e-n.frames}),this.play(t)}pause(){}resume(){}}class Ht extends lr{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=ni(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.strokeArmyAnts){const n=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",n),this.strokeDashTotalLength=ta(n).reduce((i,r)=>i+r,0)}return Xm(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Ae,Jo(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(n=>{const i=n.originMatrix?n.originMatrix.clone():new Le;i.translate(-t.x+n.x,-t.y+n.y),n.originMatrix=i});const e=this.originMatrix?this.originMatrix.clone():new Le;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,n){if(n instanceof da)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(i);{const r=this.getBoundingClientRect();if(r)return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height}return!1}isPointInStroke(t,e,n){if(n instanceof da)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}clone(){return qm(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,i])=>[$e(n),i]))):e&&(this.attrs[$e(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[$e(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[$e(t)]}distance(t){return ca(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=De(xn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=bs(Nt(this.degree),e);this.vx=n,this.vy=i,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=bs(Nt(this.degree),e);this.ax=n,this.ay=i,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,n=t.y-this.y,i=e*e+n*n,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,t.vx-=a/t.mass,t.vy-=l/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=Ls(t?.gravity,0);this.vy+=e;const n=Ls(t?.friction,1);this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const n=Ls(e?.easing,.05),i=t.x-this.cX-this.x,r=t.y-this.cY-this.y;this.vx=i*n,this.vy=r*n,this.run(e)}runSpringTo(t,e){const n=Ls(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(i=>{const r=i.x-this.cX-this.x,o=i.y-this.cY-this.y,a=r*n,l=o*n;this.vx+=a,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const n=Ls(e?.springLength,100),i=Ls(e?.spring,1e-4),r=t.x-this.x,o=t.y-this.y,a=Math.sqrt(r*r+o*o);if(a<n){const l=r*i,c=o*i;return this.vx+=l/this.mass,this.vy+=c/this.mass,t.vx-=l/t.mass,t.vy-=c/t.mass,1-a/n}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const n=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*n),this.getPointAtLength(e*n)}strokeDashTween(t=1e3,e){const n=this.initPathD(),i=Te(n.getTotalLength(),0);this.setAttr({strokeDasharray:`${i} ${i}`,strokeDashoffset:`${i}`});const r=e?.onUpdate,o=new qe({frameDuration:t});o.addTween({offset:i},{offset:0},Object.assign(e||{},{onUpdate:(a,l)=>{this.setAttr("strokeDashoffset",""+Te(a.offset,2)),r?.(a,l)}})),o.play()}}class Vg extends Ht{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["M",this.getScreenX(),this.getScreenY()]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,n){this.cX=t,this.cY=e,this.cZ=n}rotateX(t){({x:this.y,y:this.z}=ns(Nt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=ns(Nt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=ns(Nt(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return la(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+n*n+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y,i=this.z;return{x:n*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}}const yr=Vg,eh=[1,0,0,1,0,0],sh=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Le{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=eh){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Le,n=Ou("number",t);return n.length===6&&n.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=t}toMatrix3D(t=this.matrix3d){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new Ye(e)}identity(){return this.value=Array.from(eh),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 Le([...this.value])}multiply(t){const e=this.clone(),n=t instanceof Le?t:new Le(t);return this.m11=n.m11*e.m11+n.m12*e.m21+n.m13*e.m31,this.m12=n.m11*e.m12+n.m12*e.m22+n.m13*e.m32,this.m13=n.m11*e.m13+n.m12*e.m23+n.m13*e.m33,this.m21=n.m21*e.m11+n.m22*e.m21+n.m23*e.m31,this.m22=n.m21*e.m12+n.m22*e.m22+n.m23*e.m32,this.m23=n.m21*e.m13+n.m22*e.m23+n.m23*e.m33,this.m31=n.m31*e.m11+n.m32*e.m21+n.m33*e.m31,this.m32=n.m31*e.m12+n.m32*e.m22+n.m33*e.m32,this.m33=n.m31*e.m13+n.m32*e.m23+n.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}inverse(){const t=this.m11,e=this.m12,n=this.m13,i=this.m21,r=this.m22,o=this.m23,a=this.m31,l=this.m32,c=this.m33,u=c*r-o*l,h=-c*i+o*a,d=l*i-r*a;let m=t*u+e*h+n*d;return m?(m=1/m,this.m11=u*m,this.m12=(-c*e+n*l)*m,this.m13=(o*e-n*r)*m,this.m21=h*m,this.m22=(c*t-n*a)*m,this.m23=(-o*t+n*i)*m,this.m31=d*m,this.m32=(-l*t+e*a)*m,this.m33=(r*t-e*i)*m,this):null}adjugate(){const t=new Le;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=De(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:De(Math.atan2(-this.m21,this.m22)),skewY:De(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],d=t.value[4],m=t.value[5],f=l*h,v=c*u,b=(u*n-e*h)/(v-f),S=(l*n-e*c)/(f-v),F=(u*r-i*h)/(v-f),$=(l*r-i*c)/(f-v),O=(u*(a-m)+h*(d-o))/(v-f),K=(l*(a-m)+c*(d-o))/(f-v),st=[b,S,F,$,O,K];return new Le(st)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>Te(e,t)).join(",")})`:this.matrix3d.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix3d.translate(0,0,t),this.matrix3d.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix3d.m43),this}translate3d(t,e,n){return this.matrix3d.translate(t,e,n),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,n){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(t,e=0,n=0){const i=Nt(t),r=Math.cos(i),o=Math.sin(i);return this.translate(e,n),this.multiply([r,o,-o,r,0,0]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{degree:i}=this.split();return this.rotate(t-i,e,n),this}rotateX(t){return this.matrix3d.rotateX(t),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotateY(t),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotateZ(t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,n){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{degreeX:i,degreeY:r,degreeZ:o}=this.matrix3d.split();return this.rotate3d(t-i,e-r,n-o),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.multiply([t,0,0,e,0,0]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,i=0){return this.scale(t/this.m11,e/this.m22,n,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,n=t){return this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scalarX:i,scalarY:r,scalarZ:o}=this.matrix3d.split();return this.scale3d(t/i,e/r,n/o),this}skew(t,e=t){return this.multiply([Math.cos(Nt(e)),Math.sin(Nt(e)),-Math.sin(Nt(t)),Math.cos(Nt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:n,skewY:i}=this.split();return this.skew(t-n,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class Ye{value;is3dSpecial=!1;constructor(t=sh){this.value=Array.from(t)}static fromString(t){const e=new Ye,n=Ou("number",t);return n.length===16&&n.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(sh),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 Ye([...this.value])}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this.m41*=t,this.m42*=t,this.m43*=t,this.m44*=t,this}normalize(){return this.scalar(1/(this.m44||1e-4))}transformPoint(t){const e=t.z||1,n=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+n*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+n*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+n*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+n*this.m44}}toMatrix(t){const{scalarX:e,scalarY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[e,r,i,n,o,a];return t?(t.value=l,t):new Le(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=>Te(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),i=De(Ve(Math.asin(-this.m13),-1,1));let r=De(Math.atan2(this.m23,this.m33));Math.cos(Nt(i))===0&&(r=De(Math.atan2(-this.m31,this.m22)));let o=De(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:n,degreeX:r,degreeY:i,degreeZ:o,skewX:De(this.m14),skewY:De(this.m24),skewZ:De(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,d=this.m33,m=this.m34,f=this.m41,v=this.m42,b=this.m43,S=this.m44;t[0]=l*m*v-c*d*v+c*h*b-a*m*b-l*h*S+a*d*S,t[1]=r*d*v-i*m*v-r*h*b+n*m*b+i*h*S-n*d*S,t[2]=i*c*v-r*l*v+r*a*b-n*c*b-i*a*S+n*l*S,t[3]=r*l*h-i*c*h-r*a*d+n*c*d+i*a*m-n*l*m;const F=e*t[0]+o*t[1]+u*t[2]+f*t[3];if(F==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*d*f-l*m*f-c*u*b+o*m*b+l*u*S-o*d*S,t[5]=i*m*f-r*d*f+r*u*b-e*m*b-i*u*S+e*d*S,t[6]=r*l*f-i*c*f-r*o*b+e*c*b+i*o*S-e*l*S,t[7]=i*c*u-r*l*u+r*o*d-e*c*d-i*o*m+e*l*m,t[8]=a*m*f-c*h*f+c*u*v-o*m*v-a*u*S+o*h*S,t[9]=r*h*f-n*m*f-r*u*v+e*m*v+n*u*S-e*h*S,t[10]=n*c*f-r*a*f+r*o*v-e*c*v-n*o*S+e*a*S,t[11]=r*a*u-n*c*u-r*o*h+e*c*h+n*o*m-e*a*m,t[12]=l*h*f-a*d*f-l*u*v+o*d*v+a*u*b-o*h*b,t[13]=n*d*f-i*h*f+i*u*v-e*d*v-n*u*b+e*h*b,t[14]=i*a*f-n*l*f-i*o*v+e*l*v+n*o*b-e*a*b,t[15]=n*l*u-i*a*u+i*o*h-e*l*h-n*o*d+e*a*d,this.value=t,this.scalar(1/F)}multiply(t){const e=this.clone();return this.m11=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,this.m12=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,this.m13=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,this.m14=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,this.m21=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,this.m22=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,this.m23=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,this.m24=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,this.m31=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,this.m32=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,this.m33=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,this.m34=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,this.m41=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,this.m42=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,this.m43=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,this.m44=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44,this}translate(t=0,e=0,n=0){return this.multiply(new Ye([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]))}scale(t=1,e=1,n=1){return this.multiply(new Ye([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}rotateX(t){const e=Nt(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new Ye([1,0,0,0,0,n,i,0,0,-i,n,0,0,0,0,1]))}rotateY(t){const e=Nt(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new Ye([n,0,-i,0,0,1,0,0,i,0,n,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Nt(t),n=Math.cos(e),i=Math.sin(e);return this.multiply(new Ye([n,i,0,0,-i,n,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,n=0){return this.multiply(new Ye([1,0,0,Nt(t),0,1,0,Nt(e),0,0,1,Nt(n),0,0,0,1]))}perspective(t){return this.multiply(new Ye([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,n=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),e/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:e,y:n,z:i,mass:r};const h=-i/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:i,mass:r}}project(t){const e=t.z;let n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:e,mass:r}}bounds(t,e,n,i){const r=new yr({x:t,y:e}),o=new yr({x:t+n,y:e}),a=new yr({x:t+n,y:e+i}),l=new yr({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,d=Math.max(r.y,o.y,a.y,l.y)-u;return{x:c,y:u,width:h,height:d}}}function nh(s){const t=new Le;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(r[0],r[1]);break;case"translatex":t.translateX(r[0]);break;case"translatey":t.translateY(r[0]);break;case"translatez":t.translateZ(r[0]);break;case"translate3d":t.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":t.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":t.rotateX(r[0]);break;case"rotatey":t.rotateY(r[0]);break;case"rotatez":t.rotateZ(r[0]);break;case"rotate3d":t.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":t.scale(r[0],r[1]??r[0]);break;case"scalex":t.scaleX(r[0]);break;case"scaley":t.scaleY(r[0]);break;case"scalez":t.scaleZ(r[0]);break;case"scale3d":t.scale3d(r[0],r[1],r[2]);break;case"skew":t.skew(r[0],r[1]??0);break;case"skewx":t.skewX(r[0]);break;case"skewy":t.skewY(r[0]);break;case"skewz":t.skewZ(r[0]);break;case"skew3d":t.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":t.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new Ye(r)),t.matrix3d.toMatrix(t);break}return""}),t}function ns(s,t,e){const n=new Le;return n.rotate(De(s)),n.transformPoint({x:t,y:e})}class tt{static createElementNS(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}static origins=new rr;static updates=new rr;static patchDom=()=>{this.origins.filter((t,e)=>{const n=this.updates.get(t);return n&&ju(e,n),this.updates.delete(t),!1})};static getVNode(t,e){let n=t.getAttribute("id")||"";n||(n=e||ni(),t.setAttribute("id",n)),this.origins.get(n)||this.origins.set(n,Xu(t.tagName,{},[],t));const i=this.updates.get(n)||Xu(t.tagName,{},[],t);return{vnode:i,immediate:()=>{this.updates.set(n,i),tt.patchDom()},schedule:()=>{this.updates.set(n,i),Ku("FLUSH_DOM_ACTIONS",tt.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 n=tt.getStyle(t.parentElement,"position");tt.setStyle(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}tt.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){Object.prototype.hasOwnProperty.call(n,"transform")||Object.assign(n,{transform:tt.getStyle(t,"transform")||""});const i=nh(n.transform),r={};for(const o in e){const a=e[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:Object.prototype.hasOwnProperty.call(n,o)||(n[o]=tt.getStyle(t,o)),Object.assign(r,{[o]:`${a}`});break}}return Object.assign(r,{transform:i.toString()}),r}static attrsToCanvas(t,e){for(const n in e){const i=e[n];switch(n){case"fill":i!=="none"&&(t.fillStyle=i);break;case"stroke":i!=="none"&&(t.strokeStyle=i);break;case"stroke-width":case"strokeWidth":t.lineWidth=Number(i);break;case"stroke-linecap":case"strokeLinecap":t.lineCap=i;break;case"stroke-linejoin":case"strokeLinejoin":switch(i){case"round":case"bevel":case"miter":t.lineJoin=i;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":t.miterLimit=Number(i);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":t.lineDashOffset=Number(i);break;case"stroke-dasharray":case"strokeDasharray":typeof i=="string"&&t.setLineDash(i.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof i=="string"&&(t.font=i);break;case"font-size":case"fontSize":t.font+=` ${i}`;break;case"font-family":case"fontFamily":t.font+=` ${i}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(i){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(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=i;break;default:t.textBaseline="alphabetic";break}break}}}static getStyle(t,e,n){const i=t;if(getComputedStyle)if(e){e=$e(e);const r=getComputedStyle(i,n).getPropertyPriority(e);return getComputedStyle(i,n).getPropertyValue(e).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(t.currentStyle){if(e)return e=Du(e),t.currentStyle[e];{const r=[],o=i.currentStyle;for(const 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(t,e,n){typeof e=="string"&&n?t.style.setProperty($e(e),n.replace(/!important/i,""),String(n).toLowerCase().includes("!important")?"important":""):e instanceof Object&&Object.keys(e).forEach(i=>{t.style.setProperty($e(i),String(e[i]).replace(/!important/i,""),String(e[i]).toLowerCase().includes("!important")?"important":"")})}static setStyleSheet(t,e){let n;if(typeof e=="string"){const r=document.querySelector(e)?.shadowRoot;r?n=r:n=document.querySelector(e)}else n=e;const i=document.createElement("style");if(i.innerHTML=t,n)return n.appendChild(i),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(i)};{const r=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(t,e,n="toggle"){e.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&t.classList[n](i.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(n=>n.trim()!==""?Array.from(t.classList||[]).includes(n.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,n){let i={};if(e===void 0&&n===void 0){for(let a=0,l=t.attributes,c=l.length;a<c;a++){const u=l[a];u.nodeName&&u.nodeValue&&(i[u.nodeName]=u.nodeValue)}return i}if(typeof e=="string"&&n===void 0)return t.getAttribute($e(e));typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n);const{vnode:r,schedule:o}=this.getVNode(t,i.id);Object.entries(i).forEach(([a,l])=>{r.props[$e(a)]=l}),o()}static removeAttribute(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&t.removeAttribute(n.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,n){if(n===void 0&&typeof e=="string")return t[e];{let i={};typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);t[a]=o,a=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t[this.fixProp(n.trim())]})}static data(t,e,n){if(typeof e=="string"&&(e=Du(e)),(typeof e=="string"||e===void 0)&&n===void 0){const i=Object.assign({},t.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]||"")}catch{}}),typeof e=="string"?i[e]:i}else{let i={};typeof e=="object"?i=e:typeof e=="string"&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{o!=null?t.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete t.dataset[r]})}}static removeData(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t.dataset[n.trim()]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static dispatchEvent(t,e,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof e=="string"?r.includes(e)?i=new MouseEvent(e,n):o.includes(e)?i=new KeyboardEvent(e,n):i=new Event(e,n):i=e,t.dispatchEvent(i)}static scriptConvert(t){const e=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 t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static insert(t,e,n="append"){return typeof e=="string"?t[n](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[n](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const i=this.scriptConvert(n);i!=n&&e.content.replaceChild(i,n)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const n=t.options;for(let i=0,r=n.length;i<r;i++)n[i].value==e?n[i].selected=!0:n[i].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let n;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?n=parseInt(t.substring(2),16):n=parseInt(t.substring(1),10):n=e[t],n?String.fromCharCode(n):"&"+t}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length||0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})});static loadScript(t,e=()=>{},n=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=t,i.async=!1,i.onload=e,i.onerror=n,document.body.appendChild(i)}static runInSafe(t){const e=new Proxy(window,{get(n,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?e:Reflect.get(n,i,r)},set(n,i,r,o){return Reflect.set(n,i,r,o)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(n={},...i){const r=document.createElement(e);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(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){
42
42
  let output = "";
43
43
  function echo(html){
44
44
  output += html;
45
45
  }
46
46
  ${t}
47
47
  return output;
48
- })`}static escape(t,e="encode"){const n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=t.replace(new RegExp(e=="encode"?i:n[i],"g"),e=="encode"?n[i]:i));return t}static getInnerText=t=>{let e=t.innerText;if(!e){const n=t.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!e&&i<=n.length-1;)"innerText"in n[i]&&(e=n[i].innerText),i++}return e};static copyToClipboard=t=>new Promise((e,n)=>{if(navigator.clipboard)navigator.clipboard.writeText(t).then(e).catch(n);else{const i=document.createElement("textarea");i.value=t,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?e():n()}catch(r){n(r)}document.body.removeChild(i)}});static scrollTo=(t,e)=>window.scrollTo(t,e);static setScrollRestoration(t){try{window.history.scrollRestoration=t}catch{}}static getLocation(){return new Promise((t,e)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{t(n.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 n=document.createElement("iframe");n.src=e,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(t,e)},4e3),setTimeout(function(){n.remove()},6e3)}static measureText=(t,e=12,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e+"px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}};static getFixedWidthText=(t,e,n=12,i=400,r=!0)=>{let o="";if(!t||e<n)return o;const a=t.split(""),l="...";let c=r?H.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=H.measureText(a[u],n,i).width,c>e){r&&(o+=l);break}else o+=a[u];return o}}function Jm(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Hu={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
48
+ })`}static escape(t,e="encode"){const n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=t.replace(new RegExp(e=="encode"?i:n[i],"g"),e=="encode"?n[i]:i));return t}static getInnerText=t=>{let e=t.innerText;if(!e){const n=t.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!e&&i<=n.length-1;)"innerText"in n[i]&&(e=n[i].innerText),i++}return e};static copyToClipboard=t=>new Promise((e,n)=>{if(navigator.clipboard)navigator.clipboard.writeText(t).then(e).catch(n);else{const i=document.createElement("textarea");i.value=t,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?e():n()}catch(r){n(r)}document.body.removeChild(i)}});static scrollTo=(t,e)=>window.scrollTo(t,e);static getLocation(){return new Promise((t,e)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{t(n.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 n=document.createElement("iframe");n.src=e,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(t,e)},4e3),setTimeout(function(){n.remove()},6e3)}static measureText=(t,e=12,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e+"px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}};static getFixedWidthText=(t,e,n=12,i=400,r=!0)=>{let o="";if(!t||e<n)return o;const a=t.split(""),l="...";let c=r?tt.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=tt.measureText(a[u],n,i).width,c>e){r&&(o+=l);break}else o+=a[u];return o};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 Gg(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ih={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
49
49
  * http://hammerjs.github.io/
50
50
  *
51
51
  * Copyright (c) 2016 Jorik Tangelder;
52
- * Licensed under the MIT license */(function(s){(function(t,e,n,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,b){return setTimeout(N(p,b),g)}function f(p,g,b){return Array.isArray(p)?(d(p,b[g],b),!0):!1}function d(p,g,b){var P;if(p)if(p.forEach)p.forEach(g,b);else if(p.length!==i)for(P=0;P<p.length;)g.call(b,p[P],P,p),P++;else for(P in p)p.hasOwnProperty(P)&&g.call(b,p[P],P,p)}function m(p,g,b){var P="DEPRECATED METHOD: "+g+`
53
- `+b+` AT
54
- `;return function(){var Z=new Error("get-stack-trace"),at=Z&&Z.stack?Z.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",At=t.console&&(t.console.warn||t.console.log);return At&&At.call(t.console,P,at),p.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(g),P=1;P<arguments.length;P++){var Z=arguments[P];if(Z!==i&&Z!==null)for(var at in Z)Z.hasOwnProperty(at)&&(b[at]=Z[at])}return b}:v=Object.assign;var _=m(function(g,b,P){for(var Z=Object.keys(b),at=0;at<Z.length;)(!P||P&&g[Z[at]]===i)&&(g[Z[at]]=b[Z[at]]),at++;return g},"extend","Use `assign`."),E=m(function(g,b){return _(g,b,!0)},"merge","Use `assign`.");function D(p,g,b){var P=g.prototype,Z;Z=p.prototype=Object.create(P),Z.constructor=p,Z._super=P,b&&v(Z,b)}function N(p,g){return function(){return p.apply(g,arguments)}}function k(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function tt(p,g){return p===i?g:p}function R(p,g,b){d(Ct(g),function(P){p.addEventListener(P,b,!1)})}function U(p,g,b){d(Ct(g),function(P){p.removeEventListener(P,b,!1)})}function vt(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function bt(p,g){return p.indexOf(g)>-1}function Ct(p){return p.trim().split(/\s+/g)}function Rt(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var P=0;P<p.length;){if(b&&p[P][b]==g||!b&&p[P]===g)return P;P++}return-1}function $t(p){return Array.prototype.slice.call(p,0)}function se(p,g,b){for(var P=[],Z=[],at=0;at<p.length;){var At=g?p[at][g]:p[at];Rt(Z,At)<0&&P.push(p[at]),Z[at]=At,at++}return b&&(g?P=P.sort(function(Te,Ve){return Te[g]>Ve[g]}):P=P.sort()),P}function ne(p,g){for(var b,P,Z=g[0].toUpperCase()+g.slice(1),at=0;at<r.length;){if(b=r[at],P=b?b+Z:g,P in p)return P;at++}return i}var ue=1;function Yt(){return ue++}function xt(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||t}var wt=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in t,q=ne(t,"PointerEvent")!==i,Et=it&&wt.test(navigator.userAgent),$="touch",Ut="pen",ge="mouse",Ae="kinect",Re=25,Nt=1,$e=2,Lt=4,ie=8,Ue=1,os=2,as=4,y=8,x=16,I=os|as,A=y|x,L=I|A,J=["x","y"],K=["clientX","clientY"];function z(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(P){k(p.options.enable,[p])&&b.handler(P)},this.init()}z.prototype={handler:function(){},init:function(){this.evEl&&R(this.element,this.evEl,this.domHandler),this.evTarget&&R(this.target,this.evTarget,this.domHandler),this.evWin&&R(xt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&U(this.element,this.evEl,this.domHandler),this.evTarget&&U(this.target,this.evTarget,this.domHandler),this.evWin&&U(xt(this.element),this.evWin,this.domHandler)}};function Q(p){var g,b=p.options.inputClass;return b?g=b:q?g=Be:Et?g=vs:it?g=Wa:g=j,new g(p,Y)}function Y(p,g,b){var P=b.pointers.length,Z=b.changedPointers.length,at=g&Nt&&P-Z===0,At=g&(Lt|ie)&&P-Z===0;b.isFirst=!!at,b.isFinal=!!At,at&&(p.session={}),b.eventType=g,rt(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function rt(p,g){var b=p.session,P=g.pointers,Z=P.length;b.firstInput||(b.firstInput=_t(g)),Z>1&&!b.firstMultiple?b.firstMultiple=_t(g):Z===1&&(b.firstMultiple=!1);var at=b.firstInput,At=b.firstMultiple,xe=At?At.center:at.center,Te=g.center=Ot(P);g.timeStamp=u(),g.deltaTime=g.timeStamp-at.timeStamp,g.angle=C(xe,Te),g.distance=O(xe,Te),ft(b,g),g.offsetDirection=Xt(g.deltaX,g.deltaY);var Ve=Vt(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Ve.x,g.overallVelocityY=Ve.y,g.overallVelocity=c(Ve.x)>c(Ve.y)?Ve.x:Ve.y,g.scale=At?G(At.pointers,P):1,g.rotation=At?w(At.pointers,P):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,ht(b,g);var bs=p.element;vt(g.srcEvent.target,bs)&&(bs=g.srcEvent.target),g.target=bs}function ft(p,g){var b=g.center,P=p.offsetDelta||{},Z=p.prevDelta||{},at=p.prevInput||{};(g.eventType===Nt||at.eventType===Lt)&&(Z=p.prevDelta={x:at.deltaX||0,y:at.deltaY||0},P=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=Z.x+(b.x-P.x),g.deltaY=Z.y+(b.y-P.y)}function ht(p,g){var b=p.lastInterval||g,P=g.timeStamp-b.timeStamp,Z,at,At,xe;if(g.eventType!=ie&&(P>Re||b.velocity===i)){var Te=g.deltaX-b.deltaX,Ve=g.deltaY-b.deltaY,bs=Vt(P,Te,Ve);at=bs.x,At=bs.y,Z=c(bs.x)>c(bs.y)?bs.x:bs.y,xe=Xt(Te,Ve),p.lastInterval=g}else Z=b.velocity,at=b.velocityX,At=b.velocityY,xe=b.direction;g.velocity=Z,g.velocityX=at,g.velocityY=At,g.direction=xe}function _t(p){for(var g=[],b=0;b<p.pointers.length;)g[b]={clientX:l(p.pointers[b].clientX),clientY:l(p.pointers[b].clientY)},b++;return{timeStamp:u(),pointers:g,center:Ot(g),deltaX:p.deltaX,deltaY:p.deltaY}}function Ot(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,P=0,Z=0;Z<g;)b+=p[Z].clientX,P+=p[Z].clientY,Z++;return{x:l(b/g),y:l(P/g)}}function Vt(p,g,b){return{x:g/p||0,y:b/p||0}}function Xt(p,g){return p===g?Ue:c(p)>=c(g)?p<0?os:as:g<0?y:x}function O(p,g,b){b||(b=J);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.sqrt(P*P+Z*Z)}function C(p,g,b){b||(b=J);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.atan2(Z,P)*180/Math.PI}function w(p,g){return C(g[1],g[0],K)+C(p[1],p[0],K)}function G(p,g){return O(g[0],g[1],K)/O(p[0],p[1],K)}var M={mousedown:Nt,mousemove:$e,mouseup:Lt},B="mousedown",nt="mousemove mouseup";function j(){this.evEl=B,this.evWin=nt,this.pressed=!1,z.apply(this,arguments)}D(j,z,{handler:function(g){var b=M[g.type];b&Nt&&g.button===0&&(this.pressed=!0),b&$e&&g.which!==1&&(b=Lt),this.pressed&&(b&Lt&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:ge,srcEvent:g}))}});var et={pointerdown:Nt,pointermove:$e,pointerup:Lt,pointercancel:ie,pointerout:ie},yt={2:$,3:Ut,4:ge,5:Ae},Tt="pointerdown",oe="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Tt="MSPointerDown",oe="MSPointerMove MSPointerUp MSPointerCancel");function Be(){this.evEl=Tt,this.evWin=oe,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}D(Be,z,{handler:function(g){var b=this.store,P=!1,Z=g.type.toLowerCase().replace("ms",""),at=et[Z],At=yt[g.pointerType]||g.pointerType,xe=At==$,Te=Rt(b,g.pointerId,"pointerId");at&Nt&&(g.button===0||xe)?Te<0&&(b.push(g),Te=b.length-1):at&(Lt|ie)&&(P=!0),!(Te<0)&&(b[Te]=g,this.callback(this.manager,at,{pointers:b,changedPointers:[g],pointerType:At,srcEvent:g}),P&&b.splice(Te,1))}});var Wt={touchstart:Nt,touchmove:$e,touchend:Lt,touchcancel:ie},Je="touchstart",Zt="touchstart touchmove touchend touchcancel";function be(){this.evTarget=Je,this.evWin=Zt,this.started=!1,z.apply(this,arguments)}D(be,z,{handler:function(g){var b=Wt[g.type];if(b===Nt&&(this.started=!0),!!this.started){var P=We.call(this,g,b);b&(Lt|ie)&&P[0].length-P[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:$,srcEvent:g})}}});function We(p,g){var b=$t(p.touches),P=$t(p.changedTouches);return g&(Lt|ie)&&(b=se(b.concat(P),"identifier",!0)),[b,P]}var wn={touchstart:Nt,touchmove:$e,touchend:Lt,touchcancel:ie},Oi="touchstart touchmove touchend touchcancel";function vs(){this.evTarget=Oi,this.targetIds={},z.apply(this,arguments)}D(vs,z,{handler:function(g){var b=wn[g.type],P=Gn.call(this,g,b);P&&this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:$,srcEvent:g})}});function Gn(p,g){var b=$t(p.touches),P=this.targetIds;if(g&(Nt|$e)&&b.length===1)return P[b[0].identifier]=!0,[b,b];var Z,at,At=$t(p.changedTouches),xe=[],Te=this.target;if(at=b.filter(function(Ve){return vt(Ve.target,Te)}),g===Nt)for(Z=0;Z<at.length;)P[at[Z].identifier]=!0,Z++;for(Z=0;Z<At.length;)P[At[Z].identifier]&&xe.push(At[Z]),g&(Lt|ie)&&delete P[At[Z].identifier],Z++;if(xe.length)return[se(at.concat(xe),"identifier",!0),xe]}var zr=2500,vh=25;function Wa(){z.apply(this,arguments);var p=N(this.handler,this);this.touch=new vs(this.manager,p),this.mouse=new j(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}D(Wa,z,{handler:function(g,b,P){var Z=P.pointerType==$,at=P.pointerType==ge;if(!(at&&P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents)){if(Z)g_.call(this,b,P);else if(at&&y_.call(this,P))return;this.callback(g,b,P)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function g_(p,g){p&Nt?(this.primaryTouch=g.changedPointers[0].identifier,_h.call(this,g)):p&(Lt|ie)&&_h.call(this,g)}function _h(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var P=this.lastTouches,Z=function(){var at=P.indexOf(b);at>-1&&P.splice(at,1)};setTimeout(Z,zr)}}function y_(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,P=0;P<this.lastTouches.length;P++){var Z=this.lastTouches[P],at=Math.abs(g-Z.x),At=Math.abs(b-Z.y);if(at<=vh&&At<=vh)return!0}return!1}var bh=ne(o.style,"touchAction"),xh=bh!==i,wh="compute",Sh="auto",qa="manipulation",Sn="none",Pi="pan-x",Di="pan-y",jr=__();function Za(p,g){this.manager=p,this.set(g)}Za.prototype={set:function(p){p==wh&&(p=this.compute()),xh&&this.manager.element.style&&jr[p]&&(this.manager.element.style[bh]=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){k(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),v_(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var P=this.actions,Z=bt(P,Sn)&&!jr[Sn],at=bt(P,Di)&&!jr[Di],At=bt(P,Pi)&&!jr[Pi];if(Z){var xe=p.pointers.length===1,Te=p.distance<2,Ve=p.deltaTime<250;if(xe&&Te&&Ve)return}if(!(At&&at)&&(Z||at&&b&I||At&&b&A))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function v_(p){if(bt(p,Sn))return Sn;var g=bt(p,Pi),b=bt(p,Di);return g&&b?Sn:g||b?g?Pi:Di:bt(p,qa)?qa:Sh}function __(){if(!xh)return!1;var p={},g=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=g?t.CSS.supports("touch-action",b):!0}),p}var Br=1,ts=2,zn=4,en=8,As=en,Ii=16,_s=32;function Rs(p){this.options=v({},this.defaults,p||{}),this.id=Yt(),this.manager=null,this.options.enable=tt(this.options.enable,!0),this.state=Br,this.simultaneous={},this.requireFail=[]}Rs.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=Yr(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=Yr(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=Yr(p,this),Rt(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=Yr(p,this);var g=Rt(this.requireFail,p);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var g=this,b=this.state;function P(Z){g.manager.emit(Z,p)}b<en&&P(g.options.event+Ch(b)),P(g.options.event),p.additionalEvent&&P(p.additionalEvent),b>=en&&P(g.options.event+Ch(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=_s},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(_s|Br)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!k(this.options.enable,[this,g])){this.reset(),this.state=_s;return}this.state&(As|Ii|_s)&&(this.state=Br),this.state=this.process(g),this.state&(ts|zn|en|Ii)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Ch(p){return p&Ii?"cancel":p&en?"end":p&zn?"move":p&ts?"start":""}function Eh(p){return p==x?"down":p==y?"up":p==os?"left":p==as?"right":""}function Yr(p,g){var b=g.manager;return b?b.get(p):p}function ls(){Rs.apply(this,arguments)}D(ls,Rs,{defaults:{pointers:1},attrTest:function(p){var g=this.options.pointers;return g===0||p.pointers.length===g},process:function(p){var g=this.state,b=p.eventType,P=g&(ts|zn),Z=this.attrTest(p);return P&&(b&ie||!Z)?g|Ii:P||Z?b&Lt?g|en:g&ts?g|zn:ts:_s}});function Xr(){ls.apply(this,arguments),this.pX=null,this.pY=null}D(Xr,ls,{defaults:{event:"pan",threshold:10,pointers:1,direction:L},getTouchAction:function(){var p=this.options.direction,g=[];return p&I&&g.push(Di),p&A&&g.push(Pi),g},directionTest:function(p){var g=this.options,b=!0,P=p.distance,Z=p.direction,at=p.deltaX,At=p.deltaY;return Z&g.direction||(g.direction&I?(Z=at===0?Ue:at<0?os:as,b=at!=this.pX,P=Math.abs(p.deltaX)):(Z=At===0?Ue:At<0?y:x,b=At!=this.pY,P=Math.abs(p.deltaY))),p.direction=Z,b&&P>g.threshold&&Z&g.direction},attrTest:function(p){return ls.prototype.attrTest.call(this,p)&&(this.state&ts||!(this.state&ts)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Eh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Ka(){ls.apply(this,arguments)}D(Ka,ls,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Sn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&ts)},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 Qa(){Rs.apply(this,arguments),this._timer=null,this._input=null}D(Qa,Rs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Sh]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime>g.time;if(this._input=p,!P||!b||p.eventType&(Lt|ie)&&!Z)this.reset();else if(p.eventType&Nt)this.reset(),this._timer=h(function(){this.state=As,this.tryEmit()},g.time,this);else if(p.eventType&Lt)return As;return _s},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===As&&(p&&p.eventType&Lt?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Ja(){ls.apply(this,arguments)}D(Ja,ls,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Sn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&ts)}});function tl(){ls.apply(this,arguments)}D(tl,ls,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:I|A,pointers:1},getTouchAction:function(){return Xr.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(I|A)?b=p.overallVelocity:g&I?b=p.overallVelocityX:g&A&&(b=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(b)>this.options.velocity&&p.eventType&Lt},emit:function(p){var g=Eh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Hr(){Rs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}D(Hr,Rs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[qa]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime<g.time;if(this.reset(),p.eventType&Nt&&this.count===0)return this.failTimeout();if(P&&Z&&b){if(p.eventType!=Lt)return this.failTimeout();var at=this.pTime?p.timeStamp-this.pTime<g.interval:!0,At=!this.pCenter||O(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!At||!at?this.count=1:this.count+=1,this._input=p;var xe=this.count%g.taps;if(xe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=As,this.tryEmit()},g.interval,this),ts):As}return _s},failTimeout:function(){return this._timer=h(function(){this.state=_s},this.options.interval,this),_s},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==As&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function $s(p,g){return g=g||{},g.recognizers=tt(g.recognizers,$s.defaults.preset),new el(p,g)}$s.VERSION="2.0.7",$s.defaults={domEvents:!1,touchAction:wh,enable:!0,inputTarget:null,inputClass:null,preset:[[Ja,{enable:!1}],[Ka,{enable:!1},["rotate"]],[tl,{direction:I}],[Xr,{direction:I},["swipe"]],[Hr],[Hr,{event:"doubletap",taps:2},["tap"]],[Qa]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var b_=1,kh=2;function el(p,g){this.options=v({},$s.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=Q(this),this.touchAction=new Za(this,this.options.touchAction),Th(this,!0),d(this.options.recognizers,function(b){var P=this.add(new b[0](b[1]));b[2]&&P.recognizeWith(b[2]),b[3]&&P.requireFailure(b[3])},this)}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?kh:b_},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,P=this.recognizers,Z=g.curRecognizer;(!Z||Z&&Z.state&As)&&(Z=g.curRecognizer=null);for(var at=0;at<P.length;)b=P[at],g.stopped!==kh&&(!Z||b==Z||b.canRecognizeWith(Z))?b.recognize(p):b.reset(),!Z&&b.state&(ts|zn|en)&&(Z=g.curRecognizer=b),at++}},get:function(p){if(p instanceof Rs)return p;for(var g=this.recognizers,b=0;b<g.length;b++)if(g[b].options.event==p)return g[b];return null},add:function(p){if(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,b=Rt(g,p);b!==-1&&(g.splice(b,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var b=this.handlers;return d(Ct(p),function(P){b[P]=b[P]||[],b[P].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return d(Ct(p),function(P){g?b[P]&&b[P].splice(Rt(b[P],g),1):delete b[P]}),this}},emit:function(p,g){this.options.domEvents&&x_(p,g);var b=this.handlers[p]&&this.handlers[p].slice();if(!(!b||!b.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var P=0;P<b.length;)b[P](g),P++}},destroy:function(){this.element&&Th(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Th(p,g){var b=p.element;if(b.style){var P;d(p.options.cssProps,function(Z,at){P=ne(b.style,at),g?(p.oldCssProps[P]=b.style[P],b.style[P]=Z):b.style[P]=p.oldCssProps[P]||""}),g||(p.oldCssProps={})}}function x_(p,g){var b=e.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}v($s,{INPUT_START:Nt,INPUT_MOVE:$e,INPUT_END:Lt,INPUT_CANCEL:ie,STATE_POSSIBLE:Br,STATE_BEGAN:ts,STATE_CHANGED:zn,STATE_ENDED:en,STATE_RECOGNIZED:As,STATE_CANCELLED:Ii,STATE_FAILED:_s,DIRECTION_NONE:Ue,DIRECTION_LEFT:os,DIRECTION_RIGHT:as,DIRECTION_UP:y,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:I,DIRECTION_VERTICAL:A,DIRECTION_ALL:L,Manager:el,Input:z,TouchAction:Za,TouchInput:vs,MouseInput:j,PointerEventInput:Be,TouchMouseInput:Wa,SingleTouchInput:be,Recognizer:Rs,AttrRecognizer:ls,Tap:Hr,Pan:Xr,Swipe:tl,Pinch:Ka,Rotate:Ja,Press:Qa,on:R,off:U,each:d,merge:E,extend:_,assign:v,inherit:D,bindFn:N,prefixed:ne});var w_=typeof t<"u"?t:typeof self<"u"?self:{};w_.Hammer=$s,typeof i=="function"&&i.amd?i(function(){return $s}):s.exports?s.exports=$s:t[n]=$s})(window,document,"Hammer")})(Hu);var tg=Hu.exports;const eg=Jm(tg);class Ee extends Jt{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return new de({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(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 ua(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}clone(t){return new Ee({x:t.x,y:t.y,radius:t.radius,mass:t.mass})}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=gs(-r,e,n),l=gs(-r,this.vx,this.vy),c=gs(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const d=gs(r,o.x,o.y),m=gs(r,a.x,a.y);t.x=this.x+m.x,t.y=this.y+m.y,this.x=this.x+d.x,this.y=this.y+d.y;const v=gs(r,l.x,l.y),_=gs(r,c.x,c.y);this.vx=v.x,this.vy=v.y,t.vx=_.x,t.vy=_.y}}checkWalls(t,e){const n=e?.bounce??-1,i=t.x,r=t.y,o=t.x+t.width,a=t.y+t.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(t,e,n){t.forEach(r=>{r.nextFrame(),e&&r.checkWalls(e,n)});const i=t.length;for(let r=0,o=i-1;r<o;r++){const a=t[r];for(let l,c=r+1;c<i;c++)l=t[c],a.checkCollision(l)}}}class sg{constructor(){}static getFormatKeyNames(t){const e=Um(),n=[];return t.ctrl&&n.push(e?"Cmd":"Ctrl"),t.shift&&n.push("Shift"),t.alt&&n.push("Alt"),typeof t.key=="string"?n.push(oa(t.key)):Array.isArray(t.key)&&(t.key.map(i=>oa(i)),n.push(...t.key)),n}static matchKeyScheme(t,e){const n=t.ctrl??!1,i=t.shift??!1,r=t.alt??!1;if(t.exact)return(n===e.metaKey||n===e.ctrlKey)&&i===e.shiftKey&&r===e.altKey;const o=[];return n&&o.push(n===e.metaKey||n===e.ctrlKey),i&&o.push(i===e.shiftKey),r&&o.push(r===e.altKey),o.every(a=>a)}static on(t,e){if(t?.key===void 0||t?.key===null)return e;const n=t?.target??window;let i=!1;const r=this.getFormatKeyNames(t),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(t,a)){a.preventDefault();const l=e(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),n.removeEventListener("keyup",c)};n.addEventListener("keyup",c)}};return e.title=t?.title??"",e.formatedKeyNames=r,e.pause=()=>i=!0,e.restart=()=>i=!1,e.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),e}}let Ze;const Mn=[];class me extends xr{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(t=document.documentElement,e=!0){super(),this.container=t,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight;const n=H.getStyle(this.container,"position");H.setStyle(this.container,{position:n=="static"?"relative":n}),this.hammer=new eg(this.container),this.mousePoint=new Ee({x:0,y:0}),e&&this.start()}emitDebounce=$m((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}static get page(){if(Ze)return Ze;Ze=new me,window.addEventListener("hashchange",()=>{Ze.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Ze.emit("popstate")}),Ze.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Fm().then(e=>Gm(e[0])).then(e=>{Ze.emit("openFile",e)}).catch(e=>{Ze.emit("openFileError",e)})}),Ze.registerMatchMediaChange("(prefers-color-scheme: dark)");const t=()=>Mn.forEach(e=>e());return Ze.registerGlobalScrollChange=e=>{Mn.push(e),Mn.length==1&&document.addEventListener("scroll",t)},Ze.removeGlobalScrollChange=e=>{const n=Mn.findIndex(i=>i==e);n>=0&&(Mn.splice(n,1),Mn.length==0&&document.removeEventListener("scroll",t))},Ze}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(t=>t()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(t){this.domEventBusRemoves.push(t)}setMousePoint(t){const e=Xm(this.container,t);return this.mousePoint.x=e.x,this.mousePoint.y=e.y,e}registerMouseEventListeners(){const t=$=>{this.emit("mouseDown",$)},e=$=>{this.emit("mouseUp",$)},n=$=>{this.emit("mouseMove",$)},i=$=>{this.emit("mouseOver",$)},r=$=>{this.emit("mouseOut",$)},o=$=>{this.emit("mouseClick",$)},a=$=>{this.emit("mouseDoubleClick",$)},l=$=>{this.emit("mouseWheel",$)},c=$=>{this.emit("mouseContextMenu",$)},u=$=>{this.emit("touchStart",$)},h=$=>{this.emit("touchEnd",$)},f=$=>{this.emit("touchCancel",$)},d=$=>{this.emit("touchMove",$)},m=$=>{this.emit("pointerDown",$)},v=$=>{this.emit("pointerUp",$)},_=$=>{this.emit("pointerCancel",$)},E=$=>{this.emit("pointerMove",$)},D=$=>{this.emit("pan",$)},N=$=>{this.emit("panStart",$)},k=$=>{this.emit("panMove",$)},tt=$=>{this.emit("panEnd",$)},R=$=>{this.emit("panCancel",$)},U=$=>{this.emit("panLeft",$)},vt=$=>{this.emit("panRight",$)},bt=$=>{this.emit("panUp",$)},Ct=$=>{this.emit("panDown",$)},Rt=$=>{this.emit("pinch",$)},$t=$=>{this.emit("press",$)},se=$=>{this.emit("rotate",$)},ne=$=>{this.emit("swipe",$)},ue=$=>{this.emit("swipeLeft",$)},Yt=$=>{this.emit("swipeRight",$)},xt=$=>{this.emit("swipeUp",$)},wt=$=>{this.emit("swipeDown",$)},it=$=>{this.emit("tap",$)},q=$=>{!$.target||this.container==$.target||this.container.contains($.target)||this.emit("tapOutSide",$)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),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",_),this.container.addEventListener("pointermove",E),this.hammer.on("pan",D),this.hammer.on("panstart",N),this.hammer.on("panmove",k),this.hammer.on("panend",tt),this.hammer.on("pancancel",R),this.hammer.on("panleft",U),this.hammer.on("panright",vt),this.hammer.on("panup",bt),this.hammer.on("pandown",Ct),this.hammer.on("pinch",Rt),this.hammer.on("press",$t),this.hammer.on("rotate",se),this.hammer.on("swipe",ne),this.hammer.on("swipeleft",ue),this.hammer.on("swiperight",Yt),this.hammer.on("swipeup",xt),this.hammer.on("swipedown",wt),this.hammer.on("tap",it),document.addEventListener("pointerdown",q,!1);const Et=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),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",_),this.container.removeEventListener("pointermove",E),this.hammer.off("pan",D),this.hammer.off("panstart",N),this.hammer.off("panmove",k),this.hammer.off("panend",tt),this.hammer.off("pancancel",R),this.hammer.off("panleft",U),this.hammer.off("panright",vt),this.hammer.off("panup",bt),this.hammer.off("pandown",Ct),this.hammer.off("pinch",Rt),this.hammer.off("press",$t),this.hammer.off("rotate",se),this.hammer.off("swipe",ne),this.hammer.off("swipeleft",ue),this.hammer.off("swiperight",Yt),this.hammer.off("swipeup",xt),this.hammer.off("swipedown",wt),this.hammer.off("tap",it),document.removeEventListener("pointerdown",q,!1),document.removeEventListener("touchstart",q,!1),document.removeEventListener("mousedown",q,!1)};return this.addDOMEventBusRemoves(Et),Et}registerInputEventListeners(){const t=l=>{this.emit("inputChange",l,this.container.files)},e=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",t,!1),this.container.addEventListener("dragstart",e,!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",t,!1),this.container.removeEventListener("dragstart",e,!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 t=n=>{this.emit("transitionend",n)};this.container.addEventListener("transitionend",t);const e=()=>{this.container.removeEventListener("transitionend",t)};return this.addDOMEventBusRemoves(e),e}registerKeyDown(t,e,n){const i=sg.on(t,o=>(e(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(r),r}registerResizeObserver(){const t=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});t.observe(this.container);const e=()=>{t.unobserve(this.container)};return this.addDOMEventBusRemoves(e),e}registerMatchMediaChange(t){let e="";switch(t){case"(prefers-color-scheme: dark)":e="matchMediaChangePrefersColorSchemeDark";break;default:e=t;break}const n=r=>{this.emit(e,r.matches)};window.matchMedia(t).addEventListener("change",n);const i=()=>{window.matchMedia(t).removeEventListener("change",n)};return this.addDOMEventBusRemoves(i),i}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},n=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addDOMEventBusRemoves(i),i}registerPullDownRefresh(t){const e=t?.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<e&&this.emit("pullDownIng",i)},end:()=>{i>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.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<e&&this.emit("pullUpIng",i)},end:()=>{i>=e&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(t){return this.captureMoveUsePointer(t)}captureMoveUsePointer(t){const e=o=>{this.container.setPointerCapture(o.pointerId),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("pointerDown",e),this.on("pointerUp",n),this.on("pointerCancel",n),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",e),this.off("pointerUp",n),this.off("pointerCancel",n),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(r),r}captureMoveUseMouse(t){const e=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",n,!1),t?.start?.(o)},n=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",n,!1),t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("mouseDown",e);const r=()=>{this.off("mouseDown",e)};return this.addDOMEventBusRemoves(r),r}captureMoveUseTouch(t){const e=o=>{o.preventDefault(),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("touchStart",e),this.on("touchEnd",n),this.on("touchCancel",n),this.on("touchMove",i);const r=()=>{this.off("touchStart",e),this.off("touchEnd",n),this.off("touchCancel",n),this.off("touchMove",i)};return this.addDOMEventBusRemoves(r),r}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}}}class ma{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",e=>{e.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const e=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(n),setTimeout(()=>{e.width="15"}),setTimeout(()=>{e.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(e=>{t.play().then(()=>{t.autoplay=!0,e(!0)}).catch(()=>{ma.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 xr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Ou(this.source);if(t===0){this.emit("finish");return}let e,n,i=Pu(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=Pu(this.source,r),this.raw+=n,n&&this.step(n,i,e);i&&this.step(i,void 0,n),this.emit("finish")}step(t,e,n){t==`
55
- `&&this.emit("newline"),this.act(t,e,n)}act(t,e,n){switch(this.mode){case"text":switch(t){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t;break}break;case"entity":Ds("whitespace",t)?(this.textchunk+=H.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=H.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(n=="!"&&t=="-"&&e=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&t=="["){this.mode="cdata",this.textchunk="";break}if(t==">"||t=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=t;break;case"cdata":if(n=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,n)),this.textchunk+=t;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":e==">"||t=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":t=="-"&&n=="-"&&e==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):t=="eof"?this.emit("comment",this.textchunk):this.textchunk+=t;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(t=="?"&&e==">"){this.mode="declaration end";break}t=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=t;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(t=="eof"){this.emit("text","<");break}if(!Ds("whitespace",t)){if(this.mode="tag name",t=="/"){this.mode="close tag name start";break}else if(t=="!"){this.mode="special",this.textchunk="";break}else if(t=="?"){this.mode="declaration";break}this.act(t,e,n)}break;case"close tag name start":Ds("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(Ds("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(Ds("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":Ds("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(Ds("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(!Ds("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,n)}break;case"attr value":if(Ds("whitespace",t)&&!this.quote)this.mode="attr start";else if(t==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(t){case'"':case"'":this.quote==t&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function Uu(s,t,e){if(typeof t<"u")window.localStorage.setItem(s,JSON.stringify({value:t,expires:typeof e=="number"?e:-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}}}me.page.on("matchMediaChangePrefersColorSchemeDark",s=>{ga(s?"dark":"light")}),ig();function ga(s){Uu("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function ig(){const s=Uu("colorScheme");if(s=="dark"||s=="light")return ga(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return ga(t),t}}const ot={safeAreaTop:H.getCSSVar("--safe-area-inset-top"),safeAreaRight:H.getCSSVar("--safe-area-inset-right"),safeAreaBottom:H.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:H.getCSSVar("--safe-area-inset-left"),colorPrimary:H.getCSSVar("--color-primary")||"#5078f0",colorRed:H.getCSSVar("--color-red")||"#ff5050",colorOrange:H.getCSSVar("--color-orange")||"#fa8c00",colorYellow:H.getCSSVar("--color-yellow")||"#fadc32",colorGreen:H.getCSSVar("--color-green")||"#00c878",colorBlue:H.getCSSVar("--color-blue")||"#00b4fa",colorPurple:H.getCSSVar("--color-purple")||"#6464fa",colorBlack:H.getCSSVar("--color-black")||"#001428",colorGray00:H.getCSSVar("--color-gray-00")||"#000000",colorGray33:H.getCSSVar("--color-gray-33")||"#333333",colorGray66:H.getCSSVar("--color-gray-66")||"#666666",colorGray99:H.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:H.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:H.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:H.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:H.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:H.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:H.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:H.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:H.getCSSVar("--font-line-height")||"1,4",fontSize32:H.getCSSVar("--font-size-32")||"32px",fontSize24:H.getCSSVar("--font-size-24")||"24px",fontSize20:H.getCSSVar("--font-size-20")||"20px",fontSize18:H.getCSSVar("--font-size-18")||"18px",fontSize16:H.getCSSVar("--font-size-16")||"16px",fontSize14:H.getCSSVar("--font-size-14")||"14px",fontSize12:H.getCSSVar("--font-size-12")||"12px",fontSize11:H.getCSSVar("--font-size-11")||"11px",gap4:H.getCSSVar("--gap-4")||"4px",gap8:H.getCSSVar("--gap-8")||"8px",gap12:H.getCSSVar("--gap-12")||"12px",gap16:H.getCSSVar("--gap-16")||"16px",gap20:H.getCSSVar("--gap-20")||"20px",gap40:H.getCSSVar("--gap-40")||"40px",height44:H.getCSSVar("--height-44")||"44px",height32:H.getCSSVar("--height-32")||"32px",borderRadius:H.getCSSVar("--border-radius")||"4px"},rg=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function Zs(s,t){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(Xe(s.r,0,255)),s.g=Math.round(Xe(s.g,0,255)),s.b=Math.round(Xe(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof t=="number"?t:s.a:s.a=typeof t=="number"?t:1,s.a=Xe(s.a,0,1),s;const e={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]&&(e.a=qe(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(e.a=qe(parseInt(s.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+s);return n>=0&&(e.r=n>>16&255,e.g=n>>8&255,e.b=n&255),typeof t=="number"&&(e.a=t),e.a=Xe(e.a,0,1),e}function og(s,t=!1){let e=Zs(s);return t?e=Zs(e.r*.299+e.g*.587+e.b*.114>186?"#000000":"#FFFFFF"):(e.r=255-e.r,e.g=255-e.g,e.b=255-e.b),e}function Er(s,t){const e=Zs(s,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function kr(s){return Tm(s.toString(16),2,"0","left")}function Ks(s,t){const e=Zs(s,t);let n=`#${kr(e.r)}${kr(e.g)}${kr(e.b)}`;return e.a===1?n:n+`${kr(Math.ceil(e.a*255))}`}function ag(s,t=!1){return Ks(og(s,t))}const lg=()=>Math.random()*16777215,Ne=()=>Ks(lg());function vi(s,t){const e=Zs(s);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(Xe(e.r,0,255)),e.g=Math.round(Xe(e.g,0,255)),e.b=Math.round(Xe(e.b,0,255)),Ks(e)}function Wu(s,t,e){try{const n=Zs(s),i=Zs(t);return Ks({r:(i.r-n.r)*e+n.r,g:(i.g-n.g)*e+n.g,b:(i.b-n.b)*e+n.b,a:(i.a-n.a)*e+n.a})}catch{return t}}function An(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()}(function(){let s=An();window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const e=An(),n=Math.max(0,16-(e-s)),i=window.setTimeout(function(){t(e+n)},n);return s=e+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const cg=s=>{let t=!1;return window.requestAnimationFrame(function e(n){s(n),t||window.requestAnimationFrame(e)}),()=>{t=!0}};class ug{id=0;cbs={};cancelAnimateCycle;constructor(){}get length(){return Object.keys(this.cbs).length}run(t){this.cbs[this.id++]=t,!this.cancelAnimateCycle&&(this.cancelAnimateCycle=cg(e=>{const n=[];for(let i in this.cbs)this.cbs[i](e)===!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(t,e=0){let n=!1,i=An();return this.run(r=>n?!1:r-i>=e?(t(),!1):!0),()=>{n=!0}}}const jt=new ug,Tr=new Map;async function hg(s){return new Promise((t,e)=>{dg(s,(n,i)=>n?e(n):t({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const dg=(s,t)=>{if(Tr.has(s))return t(null,Tr.get(s));const e=new Image;e.onload=function(){Tr.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,Tr.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class rs extends Jt{shapes=[];renderGroup;constructor(t){super(t),this.renderGroup=new ju({x:this.x,y:this.y})}setAttrs(t,e){this.shapes.forEach(n=>{br(t)?n.setAttr(t):typeof t=="string"&&e&&n.setAttr(t,e)})}addShape(t){this.shapes.push(...(Array.isArray(t)?t:[t]).map(e=>(e.shapeGroup=this,e.renderGroup=this.renderGroup,this.renderGroup.register(e),e)))}toSVGPathData(){return this.shapes.reduce((t,e,n)=>{const i=e.toSVGPathData();return Array.isArray(i[0])?t.push(...i):t.push(i),t},[])}toCanvasContext(t){}frameUpdate(){super.frameUpdate()}groupTranslate(t,e){this.x+=t,this.y+=e,this.renderGroup.x=this.x,this.renderGroup.y=this.y,this.shapes.forEach(n=>{n.x+=t,n.y+=e})}groupTranslateTo(t,e){this.groupTranslate(t-this.x,e-this.y)}groupRotate(t){this.degree+=t,this.shapes.forEach(e=>{e.degree+=t})}groupRotateTo(t){this.groupRotate(t-this.degree)}groupScaleTo(t){this.scalexOnOrigin=t,this.scaleyOnOrigin=t,this.shapes.forEach(e=>{e.scalexOnOrigin=t,e.scaleyOnOrigin=t})}}const fg=rs;let _i;typeof self>"u"&&typeof process<"u"&&process.hrtime?_i=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?_i=self.performance.now.bind(self.performance):Date.now!==void 0?_i=Date.now:_i=function(){return new Date().getTime()};const Rn=_i;class bi{static _nextId=0;static nextId(){return bi._nextId++}}const Or={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const t=2.5949095;return(s*=2)<1?.5*(s*s*((t+1)*s-t)):.5*((s-=2)*s*((t+1)*s+t)+2)}},Bounce:{In:function(s){return 1-Or.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?Or.Bounce.In(s*2)*.5:Or.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(t){return t**s},Out:function(t){return 1-(1-t)**s},InOut:function(t){return t<.5?(t*2)**s/2:(1-(2-t*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(t){return Math.floor(t*s)/s}},createNoisyEasing:function(s,t=.1){const e=1-t;return function(n){return t*Math.random()+e*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},ya=Or,xi={Utils:{Linear:function(s,t,e){return(t-s)*e+s},Factorial:function(){const s=[1];return function(t){let e=1;if(s[t])return s[t];for(let n=t;n>1;n--)e*=n;return s[t]=e,e}}(),Bernstein:function(s,t){const e=xi.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,i){const r=(e-s)*.5,o=(n-t)*.5,a=i*i,l=i*a;return(2*t-2*e+r+o)*l+(-3*t+3*e-2*r-o)*a+r*i+t}},Linear:function(s,t){const e=s.length-1,n=e*t,i=Math.floor(n),r=xi.Utils.Linear;return t<0?r(s[0],s[1],n):t>1?r(s[e],s[e-1],e-n):r(s[i],s[i+1>e?e:i+1],n-i)},Bezier:function(s,t){let e=0;const n=s.length-1,i=Math.pow,r=xi.Utils.Bernstein;for(let o=0;o<=n;o++)e+=i(1-t,n-o)*i(t,o)*s[o]*r(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,i=Math.floor(n);const r=xi.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(i=Math.floor(n=e*(1+t))),r(s[(i-1+e)%e],s[i],s[(i+1)%e],s[(i+2)%e],n-i)):t<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(r(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):r(s[i?i-1:0],s[i],s[e<i+1?e:i+1],s[e<i+2?e:i+2],n-i)}},va=xi;class qu{_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=Rn(),e=!1){let n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const Ke=new qu;class Zu{constructor(t,e=Ke){this._object=t,this._group=e}_id=bi.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=ya.Linear.None;_interpolationFunction=va.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=Rn()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,n,i){for(const r in n){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=e[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=Rn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=Rn()){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=Ke){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=ya.Linear.None){return this._easingFunction=t,this}interpolation(t=va.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=Rn(),e=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,n,i){for(const r in n){if(e[r]===void 0)continue;const o=e[r]||0;let a=n[r];const l=Array.isArray(t[r]),c=Array.isArray(a);!l&&c?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=e}}const pg=Zu,mg=bi.nextId,gg=Ke.getAll.bind(Ke),yg=Ke.removeAll.bind(Ke),vg=Ke.add.bind(Ke),_g=Ke.remove.bind(Ke),bg=Ke.update.bind(Ke),dt={now:Rn,Sequence:bi,Easing:ya,Interpolation:va,Group:qu,Tween:pg,nextId:mg,getAll:gg,removeAll:yg,add:vg,remove:_g,update:bg};function xg(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},He={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class fe{objects=[];animateObjects=[];currentAnimateName;constructor(){}fromDOM(t){return this.objects.forEach(e=>{e.app.destroy()}),this.objects=[],(Array.isArray(t)?t:[t]).forEach(e=>{this.objects.push({el:e,app:new me(e),originAttrs:{}})}),this}static toTween(t,e,n){const i=n?.onStart||(()=>{}),r=n?.onUpdate||(()=>{}),o=n?.onComplete||(()=>{}),a=n?.duration||1e3,l=n?.delay||0,c=n?.easeFunction||dt.Easing.Linear.None,u=n?.repeat||0,h=n?.yoyo||!1,f=new dt.Tween(t).to(e,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?.()),jt.run(()=>{const m=f.update(d?.());if(n?.precision){let v=!0;for(let _ in t)pi(t[_],e[_],n.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenGroup(t,e){if(t instanceof Zu)return n=>{t.start(),e?.onGroupStart?.(),jt.run(()=>{const i=dt.update(n?.());return i?e?.onGroupUpdate?.():e?.onGroupComplete?.(),i})};{const n=new dt.Group;return t.forEach(i=>{n.add(i)}),i=>{t.forEach(r=>r.start()),e?.onGroupStart?.(),jt.run(()=>{const r=n.update(i?.());return r?e?.onGroupUpdate?.():e?.onGroupComplete?.(),r})}}}static toTweenCSS(t,e,n,i){H.add3DSupport(t);const r=i?.onUpdate||(()=>{});return fe.toTween(e,n,Object.assign(i||{},{onUpdate:(o,a)=>{const l=H.convertAttrs(t,o);H.setStyle(t,l),r(o,a)}}))}addAnimateObject(t=wg,e=He,n=0,i=!1){const r=e.easeName||"linear",o=e.dur||300,a=e.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(xg(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:t.attributeName,values:t.values,immediate:t.immediate||!1,easeName:r,begin:e.begin||0,dur:o,repeatCount:e.repeatCount||1,direction:e.direction||"normal",fill:e.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>o*u),keySplines:l,calcMode:e.calcMode||"linear",onComplete:e.onComplete||(()=>{})}),this}resetAnimateObjects(t,e,n,i,r=He,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=Xe(o,0,h);let f=o-1;f=Xe(f,0,h);let d=o+1;d=Xe(d,0,h);const m=this.objects[o],v=this.objects[f],_=this.objects[d];if(v&&f!==o){const E=t(v);E&&(this.addAnimateObject(E,r,f,a),a=!1,l=!0)}if(m){const E=e(m);E&&(this.addAnimateObject(E,r,o,a),a=!1,c=!0)}if(_&&d!==o){const E=n(_);E&&(this.addAnimateObject(E,r,d,a),a=!1,u=!0)}this.objects.forEach((E,D)=>{if(!(D==f&&l||D==o&&c||D==d&&u)){const N=i(E);N&&(this.addAnimateObject(N,r,D,a),a=!1)}})}toCSS(t,...e){if(this.objects.length==0)return;this.currentAnimateName=t,this[t](...e),H.add3DSupport(this.objects[0].el),this.objects.forEach((r,o)=>{H.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,_)=>{const E=l[_][r.direction=="reverse"?c-1-f:f];d[v]=E});const m=H.convertAttrs(r.el,d,r.originAttrs);f==0||r.immediate?H.setStyle(r.el,Object.assign(m,{transition:"none"})):(jt.runAccurateSetTimeout(()=>{H.setStyle(r.el,Object.assign(m,{transition:`all ${r.realKeyTimes[f]}ms cubic-bezier(${r.keySplines[f-1].join(",")})`}))},u),u+=r.realKeyTimes[f])}),jt.runAccurateSetTimeout(()=>{r.fill==="remove"&&H.setStyle(r.el,r.originAttrs||{}),o==this.animateObjects.length-1&&(r.onComplete?.(),this.currentAnimateName==t&&(r.repeatCount=="infinite"||typeof r.repeatCount=="number"&&++n<r.repeatCount)&&i())},r.begin+r.dur)})};i()}slideLeft(t=He,e=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}),t,e)}slideRight(t=He,e=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}),t,e)}slideDown(t=He,e=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}),t,e)}slideUp(t=He,e=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}),t,e)}flipLeft(t=He,e=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}),t,e)}flipRight(t=He,e=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}),t,e)}flipDown(t=He,e=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}),t,e)}flipUp(t=He,e=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}),t,e)}popIn(t=He,e=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}),t,e)}popOut(t=He,e=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}),t,e)}rotate(t=He,e=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const n=t.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}}class Sg extends ng{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,n)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,n)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const n=Vm(e);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: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(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),ba(this.currentItem.style,this.currentItem,xa)}switch(this.processAttrs(e,n),e){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(t,e){let n=[],i;switch(t){case"svg":let r="",o="";if(e.width&&e.height)r=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(r=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}r&&o&&this.items.push({type:"viewbox",width:r,height:o});break;case"line":typeof e.x1=="number"&&typeof e.y1=="number"&&typeof e.x2=="number"&&typeof e.y2=="number"&&(this.currentItem.path="M"+[e.x1,e.y1,e.x2,e.y2]);break;case"stop":i={},e.style&&ba(e.style,i),i.offset=i.offset||e.offset,i.color=i["stop-color"]||e["stop-color"],i.opacity=i["stop-opacity"]||e["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+_a(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)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 e){const o=e[r];if(xa.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"&&ba(o,this.currentItem,xa),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 _a(s,t,e,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return _a(s,t,i,r)-_a(e,n,i,r)}function ba(s,t,e){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()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const xa=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];class Cg{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e,n){this.app=t,this.rootEl=Qt.createSVGElement("svg"),H.empty(this.app.container),H.insert(this.app.container,this.rootEl),e&&n?this.setSize(e,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.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 gt)&&!o.pathd){o.isMouseIn=!1,o.mouseX=0,o.mouseY=0;continue}const a=o instanceof gt&&(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 gt&&(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 Jt&&(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(t=>{t.autoRender&&this.path(t.shapeGroup||t)}))):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}setSize(t,e){return H.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return Qt.downloadFromSVGElement(this.rootEl)}path(t){[...Array.isArray(t)?t:[t]].forEach(e=>{if(e instanceof rs){e.frameUpdate(),e.shapes.forEach(n=>this.path(n));return}if(!e.el){if(e instanceof Ir)e.el=this.text(e.text,e.x,e.y,Nu(e.attrs,(n,i)=>typeof i=="string"));else if(e instanceof ke)e.el=Qt.createSvgPath(`M ${e.fromX} ${e.fromY} `+e.toSVGPathD()),H.insert(this.rootEl,e.el);else if(e instanceof gt)e.el=Qt.createSvgPath(e.toSVGPathD()),H.insert(this.rootEl,e.el);else if(e instanceof Jt){const n=gt.fromShape(e)||e;e.el=n.el=Qt.createSvgPath(n.toSVGPathD()),H.insert(this.rootEl,e.el),n instanceof gt&&(e.pathd=n)}}this.shapes.find(n=>n.id==e.id)||this.shapes.push(e),this.update(e)})}update(t){[...Array.isArray(t)?t:[t]].forEach(e=>{const n=[];e instanceof rs?(e.frameUpdate(),n.push(...e.shapes)):n.push(e),n.forEach(i=>{if(i.followMouse&&(!pi(i.x,this.app.mousePoint.x,5)||!pi(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 Jt&&(i.isDragging=!1);(i instanceof ke||i instanceof gt||i.pathd instanceof gt)&&this.attr(i,"d",i instanceof ke?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof gt?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof Ir&&(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 gt?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),i.el&&(i.isShow?H.show(i.el):H.hide(i.el))})})}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof gt&&(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 gt&&(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)))&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}delete(t){[...t instanceof rs?t.shapes:[t]].forEach(e=>{e.el&&H.remove(e.el),e.pathd?.el&&H.remove(e.pathd?.el),delete e.el,delete e.pathd,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&H.remove(t.el),t.pathd?.el&&H.remove(t.pathd?.el),delete t.el,delete t.pathd}),H.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?H.attribute(i):typeof e=="string"&&n===void 0?H.attribute(i,Ye(e))||"":(typeof e=="object"?H.attribute(i,e):typeof e=="string"&&n!==void 0&&H.attribute(i,Ye(e),n),this):this}circle(t,e,n){return this.path(new Ee({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=Qt.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return H.insert(this.rootEl,i),i}ellipse(t,e,n,i){return this.path(new Pg({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=Qt.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return H.insert(this.rootEl,r),r}rect(t,e,n,i){return this.path(new de({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=Qt.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return H.insert(this.rootEl,r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=Qt.createSVGElement("text",{x:String(e),y:String(n)});return H.html(r,t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),H.insert(this.rootEl,r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=Qt.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
56
- `).forEach((a,l)=>{if(a.trim()){const c=Qt.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});H.html(c,a),H.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),H.insert(this.rootEl,o),o}}const Ku=Eg("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 Eg(s,t=10){const e={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],t);e[r]="&#"+o+";"}return e["\\xa0"]="&#160;",e}function Me(s,t){const e=Object.keys(t);for(let n=0;n<e.length;n++)s=s.replace(new RegExp("{"+e[n]+"}","gi"),""+t[e[n]]);return s}function Pr(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=n[Math.floor(Math.random()*n.length)];while(s[t]);return t}function kg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function Tg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const wi={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 wa{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(n.setAttribute("stop-color",Me("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class Qu{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class Dr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:n=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=n),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(wi);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=wi[i].canvas}}__getStyleState(){const t={},e=Object.keys(wi);for(let n=0,i=e.length;n<i;n++){const r=e[n];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=t[r]}}__createElement(t,e={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(wi);for(let r=0;r<i.length;r++){const o=wi[i[r]],a=this[i[r]];if(o.apply){if(a instanceof Qu){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(o.apply,Me("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof wa)e.setAttribute(o.apply,Me("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(c){e.setAttribute(o.svgAttr,Me("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),e.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=t+"-"+o.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(Ku);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=Ku[a],c=new RegExp(a,"gi");c.test(e)&&(e=e.replace(c,l))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Me("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Me("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Me("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Me("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(Me("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(Me("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Me("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Me("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Me("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,n,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===n&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,i-e]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(t,e);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),d=r/Math.sin(h/2),m=t+d*f[0],v=e+d*f[1],_=[-l[1],l[0]],E=[c[1],-c[0]],D=function(tt){const R=tt[0];return tt[1]>=0?Math.acos(R):-Math.acos(R)},N=D(_),k=D(E);this.lineTo(m+_[0]*r,v+_[1]*r),this.arc(m,v,r,N,k)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,e,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,i){if(t===0&&e===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,n,i){const r=this.__createElement("linearGradient",{id:Pr(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new wa(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:Pr(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new wa(a,this)}__parseFont(){const e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),n={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(t,e){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e}__applyText(t,e,n,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:n,"text-anchor":kg(this.textAlign),"dominant-baseline":Tg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,n){this.__applyText(t,e,n,"fill")}strokeText(t,e,n){this.__applyText(t,e,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,n,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),u=e+n*Math.sin(i),h=o?0:1;let f=0,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(Me("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=Pr(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Me("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],n,i,r,o,a=0,l=0,c,u,h,f,d,m,v,_;if(t.length===3)n=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)n=t[1],i=t[2],r=t[3],o=t[4],c=e.width,u=e.height;else if(t.length===9)a=t[1],l=t[2],c=t[3],u=t[4],n=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const E=this.__closestGroupOrSvg();this.__currentElement;const D="translate("+n+", "+i+")";if(e instanceof Dr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)_=f.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const N=d.getAttribute("transform");let k;N?k=N+" "+D:k=D,d.setAttribute("transform",k),E.appendChild(d)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(v=this.__document.createElement("canvas"),v.width=r,v.height=o,v.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=v),m.setAttribute("transform",D),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),E.appendChild(m))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Pr(this.__ids);let r;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):t instanceof Dr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new Qu(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Sa{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new Dr({canvas:this.canvas,width:e||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,n,i){return this.context.fillRect(t,e,n,i),this.customContext&&this.customContext.fillRect(t,e,n,i),this}fillText(t,e,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,i),this.customContext&&this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,n,i){return this.context.strokeText(t,e,n,i),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,i){return this.context.strokeRect(t,e,n,i),this.customContext&&this.customContext.strokeRect(t,e,n,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,n,i),this.customContext&&this.customContext.clearRect(t,e,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const n=new Path2D;n.addPath(t,e),this.currentPath2D=n}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,n=0){return this.translate(e,n),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-n),this.changePath2D(),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,i,r,o){return this.context.arc(t,e,n,i,r,o),this.customContext&&this.customContext.arc(t,e,n,i,r,o?-1:1),this.currentPath2D.arc(t,e,n,i,r,o),this}arcTo(t,e,n,i,r){return this.context.arcTo(t,e,n,i,r),this.customContext&&this.customContext.arcTo(t,e,n,i,r),this.currentPath2D.arcTo(t,e,n,i,r),this}ellipse(t,e,n,i,r,o,a,l){return this.context.ellipse(t,e,n,i,r,o,a,l),this.currentPath2D.ellipse(t,e,n,i,r,o,a,l),this}quadraticCurveTo(t,e,n,i){return this.context.quadraticCurveTo(t,e,n,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,i),this.currentPath2D.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.context.bezierCurveTo(t,e,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,i,r,o),this.currentPath2D.bezierCurveTo(t,e,n,i,r,o),this}rect(t,e,n,i){return this.context.rect(t,e,n,i),this.customContext&&this.customContext.rect(t,e,n,i),this.currentPath2D.rect(t,e,n,i),this}createLinearGradient(t,e,n,i,r){const o=this.context.createLinearGradient(t,e,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,i,r,o,a){const l=this.context.createRadialGradient(t,e,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],i=e[1];this.context.drawImage(t,n,i)}else if(e.length===4){const n=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,n,i,r,o)}else if(e.length===8){const n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,n,i,r)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class ke extends Jt{fromX;fromY;constructor(t){super(t),this.fromX=t?.fromX||0,this.fromY=t?.fromY||0}static fromSVGPathData(t,e){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new ke({x:t[1],y:t[2],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.lineTo(this.x,this.y)}getBoundingClientRect(){const t=Nn(this.fromX,this.fromY,this.x,this.y);if(t===0){const e=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 yi({x:e,y:n,width:i-e,height:r-n})}else{const e=Math.sin(t),n=Math.cos(t),i=n*this.fromX-e*this.fromY,r=n*this.x-e*this.y,o=n*this.fromY+e*this.fromX,a=n*this.y+e*this.x;return new yi({x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)})}}interpolate(t){return{x:this.fromX+t*(this.x-this.fromX),y:this.fromY+t*(this.y-this.fromY)}}intersection(t){const e=this.fromX,n=this.fromY,i=t.x,r=t.y,o=this.x-e,a=t.fromX-i;if(!o&&!a)return null;const l=(this.y-n)/o,c=(t.fromY-r)/a;if(o){if(!a)return{x:i,y:l*(i-e)+n}}else return{x:e,y:c*(e-i)+r};const u=(-c*i+r+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}class Ca extends ke{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}static fromSVGPathData(t,e){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Ca({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const t=Qt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new yi({x:t.min.x,y:t.min.y,width:t.max.x-t.min.x,height:t.max.y-t.min.y})}interpolate(t){return{x:Math.pow(1-t,3)*this.fromX+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.x,y:Math.pow(1-t,3)*this.fromY+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.y}}length(t=1){return Qt.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,t)}getTatLen(t){const e=this.fromX,n=this.fromY,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(t<0||Qt.bezlen(e,n,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,d,m=.01;for(d=Qt.bezlen(e,n,i,r,o,a,l,c,f);Math.abs(d-t)>m;)h/=2,f+=(d<t?1:-1)*h,d=Qt.bezlen(e,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t),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-e,f=Math.pow(h,3),d=Math.pow(h,2),m=e*e,v=m*e,_=f*n+d*3*e*r+h*3*e*e*a+v*c,E=f*i+d*3*e*o+h*3*e*e*l+v*u,D=n+2*e*(r-n)+m*(a-2*r+n),N=i+2*e*(o-i)+m*(l-2*o+i),k=r+2*e*(a-r)+m*(c-2*a+r),tt=o+2*e*(l-o)+m*(u-2*l+o),R=h*n+e*r,U=h*i+e*o,vt=h*a+e*c,bt=h*l+e*u,Ct=90-Math.atan2(D-k,N-tt)*180/Math.PI;return{x:_,y:E,m:{x:D,y:N},n:{x:k,y:tt},start:{x:R,y:U},end:{x:vt,y:bt},alpha:Ct}}}const Qs=Ca;class bn extends ke{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!0}static fromSVGPathData(t,e){if(t.length<5)throw new Error("QuadraticBezier 参数个数错误");if(t[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new bn({cx:t[1],cy:t[2],x:t[3],y:t[4],fromX:e?.x,fromY:e?.y})}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,e=this.cy*2-(this.fromY+this.y)/2;return["Q",t,e,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(t){if(t.beginPath(),t.moveTo(this.fromX,this.fromY),this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,n=this.cy*2-(this.fromY+this.y)/2;t.quadraticCurveTo(e,n,this.x,this.y)}else t.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(t){return{x:(1-t)*(1-t)*this.fromX+2*(1-t)*t*this.cx+t*t*this.x,y:(1-t)*(1-t)*this.fromY+2*(1-t)*t*this.cy+t*t*this.y}}}const Og=bn;class Ea extends ke{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}static fromSVGPathData(t,e){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Ea({rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5],x:t[6],y:t[7],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(t){t.beginPath();const[e,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);t.ellipse(e-this.x,n-this.y,i,r,o,a,l,!this.sweepFlag)}convertSVGToCanvas(t,e,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-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 Rt=Math.sqrt(v);throw r=Rt*r,o=Rt*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const _=Math.sqrt((r*r*o*o-r*r*m*m-o*o*d*d)/(r*r*m*m+o*o*d*d)),E=l!=c?1:-1,D=E*_*r*m/o,N=E*_*-o*d/r,k=(t+n)/2,tt=(e+i)/2,R=Math.cos(u)*D-Math.sin(u)*N+k,U=Math.sin(u)*D+Math.cos(u)*N+tt,vt=(Rt,$t,se,ne)=>(Rt*ne>=$t*se?1:-1)*Math.acos((Rt*se+$t*ne)/(Math.sqrt(Rt*Rt+$t*$t)*Math.sqrt(se*se+ne*ne))),bt=vt(1,0,t-R,e-U)-u,Ct=vt(t-R,e-U,n-R,i-U);return[R,U,r,o,u,bt,bt+Ct]}}const ka=Ea;class gt extends Jt{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){super(t),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(t){if(t instanceof ka){zu(this.prevPathX,this.prevPathY,t.x,t.y,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,d,m,v,_,E]=c;this.normalizedLines.push(new Qs({c1x:f,c1y:d,c2x:m,c2y:v,x:_,y:E,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=_,this.prevPathY=E});return}let e,n,i,r,o,a;t instanceof Qs?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.x,a=t.y):t instanceof Og?[e,n,i,r,o,a]=fa(this.prevPathX,this.prevPathY,t.cx,t.cy,t.x,t.y):[e,n,i,r,o,a]=gi(this.prevPathX,this.prevPathY,t.x,t.y),this.normalizedLines.push(new Qs({c1x:e,c1y:n,c2x:i,c2y:r,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromSVGPathD(t="M0,0",e){const n=new gt(e);return n.updateFromSVGPathD(t),n}static fromSVGPathData(t,e){const n=new gt(e);return n.updateFromSVGPathData(t),n}static fromShape(t,e){const n=new gt(Object.assign({attrs:{...t.attrs}},e));return n.updateFromShape(t),n}updateFromShape(t){this.degree=t.degree,this.scalexOnOrigin=t.scalexOnOrigin,this.scaleyOnOrigin=t.scaleyOnOrigin,this.skewxDegreeOnOrigin=t.skewxDegreeOnOrigin,this.skewyDegreeOnOrigin=t.skewyDegreeOnOrigin,this.updateFromSVGPathD(t.toSVGPathD())}updateFromSVGPathD(t){Qt.isSVGPath(t)&&this.updateFromSVGPathData(Qt.parseSVGPath(t))}updateFromSVGPathData(t){this.normalizedLines=[];const e=Qt.normalizeSVGPath(Qt.absolutizeSVGPath(t));for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r[0]=="M"){this.prevPathX=this.startPathX=r[1],this.prevPathY=this.startPathY=r[2];continue}this.appendLine(new Qs({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(t=!1){let e=[];e.push(["M",this.startPathX,this.startPathY]);for(let n=0,i=this.normalizedLines.length;n<i;n++)e.push(this.normalizedLines[n].toSVGPathData());return t&&(e=Qt.relativeSVGPath(e)),e}toCanvasContext(t){t.beginPath(),t.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(e=>{const[n,...i]=e.toSVGPathData();t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}static toCanvasContextUsePath2D(t,e,n,i){t.beginPath();const r=new Path2D(e),o=new Path2D;o.addPath(r,new DOMMatrix(n));const a=new Path2D;return a.addPath(o,Qm(i)),t.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 t=this.getBoundingClientRect();this.scale(this.scalexOnOrigin/this.prevScalexOnOrigin,this.scaleyOnOrigin/this.prevScaleyOnOrigin,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}if(this.degree!=this.prevDegree){const t=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}this.skewxDegreeOnOrigin!=this.prevSkewxDegreeOnOrigin&&this.skewx(this.skewxDegreeOnOrigin-this.prevSkewxDegreeOnOrigin),this.skewyDegreeOnOrigin!=this.prevSkewyDegreeOnOrigin&&this.skewy(this.skewyDegreeOnOrigin-this.prevSkewyDegreeOnOrigin)}transform(t){return{x:this.startPathX,y:this.startPathY}=t.applyToPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=t.applyToPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(e=>{({x:e.fromX,y:e.fromY}=t.applyToPoint(e.fromX,e.fromY)),{x:e.c1x,y:e.c1y}=t.applyToPoint(e.c1x,e.c1y),{x:e.c2x,y:e.c2y}=t.applyToPoint(e.c2x,e.c2y),{x:e.x,y:e.y}=t.applyToPoint(e.x,e.y)}),this}translate(t,e){const n=new je().translate(t,e);return this.transform(n),this.prevX=this.x,this.prevY=this.y,this}rotate(t,e=0,n=0){const i=new je().rotate(t,e,n);return this.transform(i),this.prevDegree=this.degree,this}scale(t,e=t,n=0,i=0){const r=new je().scale(t,e,n,i);return this.transform(r),this.prevScalexOnOrigin=this.scalexOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin,this}skewx(t){const e=new je().skew(t,0);return this.transform(e),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin,this}skewy(t){const e=new je().skew(0,t);return this.transform(e),this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin,this}trim(){const t=this.getBoundingClientRect();return this.translate(-t.x,-t.y),this}getBoundingClientRect(){let t=0,e=0,n=[],i=[];t=this.startPathX,e=this.startPathY,n.push(t),i.push(e),this.normalizedLines.forEach(c=>{const u=Qt.curveDim(t,e,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),t=c.x,e=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 yi({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((t,e)=>t+=e.length(),0)}getPointAtLength(t){let e=0;const n=this.normalizedLines.length;for(let i=0;i<n;i++){const r=this.normalizedLines[i],o=r.length();if(e+o>=t)return r.getPointAtSegmentLength(t-e);e+=o}return this.normalizedLines[n-1].getPointAtSegmentLength(1)}interpolate(t){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(t);{let e=t*this.normalizedLines.length,n=this.normalizedLines[0];if(e--,e>1)for(let i=1,r=this.normalizedLines.length;i<r&&(n=this.normalizedLines[i],e>1);i++)e-=1;return n.interpolate(e)}}getSubpathsAtLength(t,e,n){let i=null,r=0;const o=new gt;o.prevPathX=o.startPathX=t.x,o.prevPathY=o.startPathY=t.y;for(let a=0,l=t.normalizedLines.length;a<l;a++){const c=t.normalizedLines[a],u=c.length();if(r+u>e&&!i){const h=c.getPointAtSegmentLength(e-r);if(o.appendLine(new Qs({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 Qs({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(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const n=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(n,t):n}}trailPath(t,e=0){const n=this.getTotalLength();return t.updateFromSVGPathD(this.getSubpath(0,e*n).toSVGPathD()),this.getPointAtLength(e*n)}closestPoint(t,e){const n=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=da(u.x,u.y,t,e);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=da(u.x,u.y,t,e),f=r+a,d=this.getPointAtLength(f),m=da(d.x,d.y,t,e);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?Nn(l.x,l.y,i.x,i.y):Nn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}isPointInPath(t,e,n){if(n instanceof Sa)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(t,e,n){if(n instanceof Sa)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}strokeDashToTween(t){const e=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${e} ${e}`,strokeDashoffset:`${e}`});const n=t?.onUpdate;return fe.toTween({offset:e},{offset:0},Object.assign(t||{},{onUpdate:(i,r)=>{this.setAttr("strokeDashoffset",""+qe(i.offset,2)),n?.(i,r)}}))}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((t,e)=>t.concat([e.c1x,e.c1y,e.c2x,e.c2y,e.x,e.y]),[]))}static fromPolymorphPoints(t){const e=new gt({x:t[0],y:t[1]});for(let n=2;n+5<t.length;n+=6)e.appendLine(new Qs({c1x:t[n],c1y:t[n+1],c2x:t[n+2],c2y:t[n+3],x:t[n+4],y:t[n+5]}));return e}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=ha(t[o],t[o+1],n,i),n=t[o],i=t[o+1];return Math.floor(r)}fillPathD(t){const e=this.polymorphPoints,n=e.length;let i=t-n;const r=Math.ceil(t/n),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=n-1;){const l=e[a++],c=e[a++],u=e[a++],h=e[a++],f=e[a++],d=e[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 gt.fromSVGPathData(o)}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=qe(t[o]+(e[o]-t[o])*n,6);return r}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t.toSVGPathD():Math.abs(n-1)<Number.EPSILON?e.toSVGPathD():gt.fromPolymorphPoints(this.mixPoints(t.polymorphPoints,e.polymorphPoints,n)).toSVGPathD()}static polymorph(t){if(!t.length)throw new Error("paths 为空!");const e=t.length-1,n=new Array(e);for(let r=0;r<e;r++){const o=Math.max(t[r].polymorphPoints.length,t[r+1].polymorphPoints.length);n[r]=this.getPathInterpolator(t[r].fillPathD(o),t[r+1].fillPathD(o))}const i=gt.fromSVGPathD(n[0](0));return r=>{const o=qe(e*r,6),a=Math.min(Math.floor(o),e-1),l=qe(o-a,6);i.updateFromSVGPathD(n[a](l));const c=t[a].getAttr("fill","none"),u=t[a+1].getAttr("fill","none");typeof c=="string"&&typeof u=="string"&&i.setAttr("fill",Wu(c,u,l));const h=t[a].getAttr("stroke","none"),f=t[a+1].getAttr("stroke","none");return typeof h=="string"&&typeof f=="string"&&i.setAttr("stroke",Wu(h,f,l)),i}}static generateRosetta(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new gt({x:t,y:e}),a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.appendLine(new ka({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new ka({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class ys extends fg{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(t){if(super(t),!t?.svg)return;const e=new Sg(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!_n.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=_n.absolutizeSVGPath(_n.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=gt.fromSVGPathData(u,t),f=Xu(r.transform??"");h.transform(f),h.attrs={...h.attrs,...o,...t.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.addShape(h)})}}addShape(t,e){(Array.isArray(t)?t:[t]).forEach(n=>{if(n instanceof gt)super.addShape(n);else{const i=gt.fromShape(n,{...e});i&&super.addShape(i)}})}static fromShape(t,e){const n=new ys;return n.addShape(t,e),n}strokeDashToTween(t){const e=t?.type||"parallel",n=this.shapes.map(i=>i.strokeDashToTween({...t}).tween);switch(e){case"sequence":return n.forEach((i,r)=>{r>0&&n[r-1].chain(i)}),{startAuto:fe.toTweenGroup(n[0],t)};case"parallel":default:return{startAuto:fe.toTweenGroup(n,t)}}}sortPathD(){this.shapes=this.shapes.map(t=>({path:t,perimeter:t.perimeterPoints()})).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.path)}fillPathDGroup(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.fillPathDGroup(this);for(let i=n;i<e;i++){const r=t.shapes[i].polymorphPoints,o=r[0],a=r[1],l=new gt({x:o,y:a,attrs:{...t.shapes[i].attrs}});for(let c=2;c+5<r.length;c+=6)l.appendLine(new Qs({c1x:o,c1y:a,c2x:o,c2y:a,x:o,y:a}));this.addShape(l)}}static polymorph(t){if(!t.length)throw new Error("groups 为空!");let e=-1,n=0;t.forEach((a,l)=>{a.sortPathD(),n<a.shapes.length&&(n=a.shapes.length,e=l)}),t.forEach(a=>a.fillPathDGroup(t[e]));const i=[];t.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>r.push(gt.polymorph(a)));const o=new ys;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}}class Pg extends Jt{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return new de({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(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class $n extends Jt{points;constructor(t=[]){if(!t.length)throw new Error("points can't be null");super(t[0]),this.points=t}toSVGPathData(){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");const e=[];e.push(["M",this.points[0].x,this.points[0].y]);for(let n=0;n<=t-1;n++)e.push(["L",this.points[n].x,this.points[n].y]);return e.push(["L",this.points[0].x,this.points[0].y]),e}toCanvasContext(t){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");t.beginPath(),t.moveTo(0,0);for(let n=0;n<=e-1;n++)t.lineTo(this.points[n].x-this.points[0].x,this.points[n].y-this.points[0].y);t.lineTo(0,0)}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t,e){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===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const f=(u-l)/(h-c),d=l+f*(e-c);if(d===t||Math.abs(d-t)<r)return!0;d>t&&(i=!i)}}return i}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generatePoints(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=Ns(a,n);r.push(new Ee({x:t+l,y:e+c}))}return new $n(r)}}class Ir extends Jt{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.attrs});const e=Ws(this.getAttr("fontSize"),10).number,n=Ws(this.getAttr("fontWeight"),400).number,i=H.measureText(this.text,e,n);this.width=i.width,this.height=i.height,this.frameUpdate()}frameUpdate(){super.frameUpdate()}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Nr extends Jt{constructor(t){super(t)}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(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 Ta extends Jt{constructor(t){super(t)}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(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 Dg extends gt{constructor(t){super(t),this.rx=t?.rx??10,this.ry=t?.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 Ig extends gt{constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.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 Ju extends gt{constructor(t){super(t),this.r=t?.r??20;let e="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(It(i)),o=this.y+this.r*Math.sin(It(i));e+="L"+r+","+o}this.updateFromSVGPathD(e)}}class Ng extends gt{constructor(t){super(t),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,2*15],["a",15,15,0,1,1,0,-2*15]])}}class Mg extends gt{constructor(t){super(t),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 Ag extends ys{constructor(t){super(t),this.addShape(gt.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],{renderGroup:this.renderGroup,...t})),this.addShape(gt.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,...t})),this.addShape(gt.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,...t}))}}class Rg extends rs{width=0;height=0;bg;padding;offset;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.textShape=new Ir({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.attrs,fill:ag(this.bg,!0),textAnchor:"start"}}),this.bgShape=new de({...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.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(t){}}class $g extends rs{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Ee;p1Offset=10;p2=new Ee;p2Offset=40;p3=new Ee;p3Offset=10;p4=new Ee;p4Offset=10;direction=1;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||"";const e=Object.assign({...this.attrs},{fill:"none"});this.line12=new ke({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new ke({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Ir({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.tipShape=new Rg({x:0,y:0,text:this.tip,isShow:!1}),this.sector=new Vg({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 t=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:e,dy:n}=Ns(It(t),this.sector.radius+this.p1Offset);this.p1.x=this.x+e,this.p1.y=this.y+n;const{dx:i,dy:r}=Ns(It(t),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 Vg extends Jt{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;dur;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.dur=1e3/120,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.dur,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.dur,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=Ns(It(this.startDegree),this.radius),{dx:n,dy:i}=Ns(It(this.endDegree),this.radius);return[["M",this.x,this.y],["l",t,e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,It(this.startDegree),It(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=ha(this.x,this.y,t,e),i=ze(Nn(this.x,this.y,t,e));return n<this.radius&&i>this.startDegree&&i<this.endDegree}}class Lg extends rs{showFlame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=gt.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,...t}),this.flame=gt.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,...t,isShow:this.showFlame}),this.addShape(this.ship),this.addShape(this.flame),this.frameUpdate()}frameUpdate(){this.flame.isShow=this.showFlame}}let th=class extends rs{min;max;step;value;percent;barWidth;barHeight;barColor;handleSize;handleColor;realBarWidth;constructor(t){super(t),this.min=t?.min||0,this.max=t?.max||100,this.step=t?.step||1,this.stepNumber=Nm(this.min,this.max,this.step),this.value=this.stepNumber(t?.defaultValue||this.min),this.percent=this.value/(this.max-this.min),this.barColor=t?.barColor||ot.colorGrayF5,this.handleColor=t?.handleColor||ot.colorPrimary,this.barWidth=t?.barWidth||100,this.barHeight=t?.barHeight||4,this.handleSize=t?.handleSize||20,this.realBarWidth=this.barWidth-this.handleSize,this.fullRect=new de({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 de({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=gt.fromSVGPathData([["M",this.x+this.handleSize*.5,this.y],["l",this.realBarWidth,0]]),this.handle=new Ee({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y,radius:this.handleSize*.5,enableDrag:!0,autoRender:t?.autoRender,alongPath:this.alongPath,attrs:{fill:this.handleColor}}),this.addShape(this.handle),this.frameUpdate()}frameUpdate(){const t=this.handle.x-this.x-this.handleSize*.5;this.realBarWidth=this.barWidth-this.handleSize,this.percent=t/this.realBarWidth,this.fullRect.width=t+this.handleSize*.5,this.emptyRect.x=this.handle.x,this.emptyRect.width=this.barWidth-this.fullRect.width;const e=this.stepNumber(this.percent*(this.max-this.min)+this.min);e!=this.value&&(this.value=e,this.emit("change",this.value))}};class Si extends ys{constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.addShape([gt.fromShape(new de({...t,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,...t}),gt.fromShape(new Ee({...t,x:this.x,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t}),gt.fromShape(new Ee({...t,x:this.x+this.width,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t})])}frameUpdate(){super.frameUpdate()}getPin(){return{x:this.x+Math.cos(It(this.degree))*this.width,y:this.y+Math.sin(It(this.degree))*this.width}}}class Oa extends Jt{constructor(t){super(t),this.update(t)}update(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*1.5;this.radius=e-e*Math.abs(Math.sin(It(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(It(this.extendDegree))),this.startDegree=180+t.startDegree,this.endDegree=180+t.endDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.colorGradient||t.color||"none"})}frameUpdate(){}toSVGPathData(){const{dx:t,dy:e}=Ns(It(this.startDegree),this.radius),{dx:n,dy:i}=Ns(It(this.endDegree),this.radius);return[["M",this.x+t,this.y+e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,It(this.startDegree),It(this.endDegree),!1)}}class Fg extends rs{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:d,ticks:m,colors:v,scalar:_,flat:E}=aa(n||{},{shape:Ju,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:rg,scalar:1,flat:!1}),D=t*r,N=e*o,k=It(l),tt=It(c);let R=a;for(;R--;){const U=new i({x:D,y:N,transformBaseOnSelfInRenderGroup:!0,scaleOnOrigin:_,attrs:{fill:v[R%v.length]}});this.addShape(U),this.fettis.push({shape:U,x:D,y:N,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-k+(.5*tt-Math.random()*tt),tiltAngle:(Math.random()*(.75-.25)+.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:_,flat:E})}}frameUpdate(){super.frameUpdate(),this.fettis.length&&(this.fettis=this.fettis.filter(t=>this.updateFetti(t)))}updateFetti(t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.shape.x=t.x,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.shape.y=t.y,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);const e=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,r=t.wobbleX+t.random*t.tiltCos,o=t.wobbleY+t.random*t.tiltSin;return t.shape.setAttr("fill",Er(t.shape.getAttr("fill"),1-e)),t.shape.scalexOnOrigin=Math.abs(r-n)*.1*t.shape.prevScalexOnOrigin,t.shape.scaleyOnOrigin=Math.abs(o-i)*.1*t.shape.prevScalexOnOrigin,t.shape.degree=ze(Math.PI/10*t.wobble),t.shape.x=t.x,t.shape.y=t.y,t.tick<t.totalTicks}}class eh{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Sa(this.app.container,this.app.width,this.app.height,e),this.app.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 Jt&&(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(t){t instanceof gt||(t instanceof ke||this.ctx.translate(t.x,t.y),this.ctx.rotate(It(t.degree),t.cX,t.cY),this.ctx.scale(t.scalexOnOrigin,t.scaleyOnOrigin,t.cX,t.cY))}_addShape(t){t instanceof rs?(t.frameUpdate(),t.shapes.forEach(e=>{e instanceof rs?this._addShape(e):this.shapes.push(e)})):this.shapes.push(t)}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addShape(e)});for(let e of this.shapes)if(e.isShow){if(this.ctx.save(),H.attrsToCanvas(this.ctx,e.attrs),e.followMouse&&(!pi(e.x,this.app.mousePoint.x,5)||!pi(e.y,this.app.mousePoint.y,5))&&(e.rotateTo(this.app.mousePoint),e.followTo(this.app.mousePoint)),e.targetToAfterDragFree&&(this.isMouseDown||e.nextFrameEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==e.id){const{dx:n,dy:i}=e.centerDiff,r=e.x,o=e.y;if(e.x=this.app.mousePoint.x-n,e.y=this.app.mousePoint.y-i,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x,e.y=a.point.y}e.isDragging=!0,e.emit("moving",e.x-r,e.y-o)}else e.isDragging=!1;e.frameUpdate(),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),e.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof gt&&(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)&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=Zs(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 Gg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const zg=ct({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("span",{class:"icon",style:W(["color: "+e.color])},[pt(Ft(Cm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),k_="",ut=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},xn=ut(zg,[["__scopeId","data-v-8789b4ce"]]),jg={class:"loading-11",ref:"loading11"},Bg={class:"container container-1"},Yg={class:"container container-2"},Xg={class:"container container-3"},Hg=ct({__name:"Loading11",props:{color:{default:ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(F(),X("div",jg,[S("div",{class:"loading-11-inner",style:W({width:t.width,height:t.width})},[S("div",Bg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)]),S("div",Yg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)]),S("div",Xg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)])],4)],512))}}),T_="",Pa=ut(Hg,[["__scopeId","data-v-f95fac77"]]),Ug={key:0,class:"loading"},Wg=ct({customOptions:{Loading11:Pa},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(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(n.borderColor),a=V(n.bgColor),l=V(n.fontColor),c=V(n.borderColor),u=V(n.bgColor);function h(k){switch(k){case"outline":o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorGrayFF,l.value=n.fontColor??ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorPrimary,l.value=n.fontColor??ot.colorGrayFF,c.value=o.value,u.value=a.value;break}}Dt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=V(n.isDisabled?"0.6":"1"),d=V(n.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{n.isDisabled||(m=!0,o.value=vi(c.value,10),a.value=vi(u.value,10))},_=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},E=V(!1),N=Rm(()=>{n.isDisabled||E.value||(o.value=vi(c.value,-10),a.value=vi(u.value,-10),setTimeout(()=>{m?v():_()},150),i("ceClick"),i("click"),n.asyncClick&&(E.value=!0,n.asyncClick().then(()=>{E.value=!1}).catch(()=>{E.value=!1})))},500);return t({el:r}),(k,tt)=>(F(),X("div",{ref_key:"el",ref:r,class:"button",style:W([`opacity: ${f.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${d.value}`,"user-select: none"]),onMouseover:v,onMouseleave:_,onClick:tt[0]||(tt[0]=(...R)=>Ft(N)&&Ft(N)(...R))},[S("label",{class:"label truncate",style:W({padding:"0 "+k.padding,cursor:d.value})},[E.value?(F(),X("div",Ug,[pt(Pa,{color:l.value},null,8,["color"])])):qt("",!0),Gt(k.$slots,"default",{},()=>[k.icon&&k.iconPosition==="left"?(F(),Ie(xn,{key:0,icon:k.icon,color:l.value,style:W({marginRight:Ft(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):qt("",!0),S("span",{style:W({cursor:d.value})},kt(k.label),5),k.icon&&k.iconPosition==="right"?(F(),Ie(xn,{key:1,icon:k.icon,color:l.value,style:W({marginLeft:Ft(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):qt("",!0)],!0)],4)],36))}}),O_="",ve=ut(Wg,[["__scopeId","data-v-ea027c50"]]),qg=["onClick","value"],Zg={class:"option-inner"},Kg=ct({customOptions:{Icon:xn,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;Bs(()=>{H.setStyleSheet(`
52
+ * Licensed under the MIT license */(function(s){(function(t,e,n,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,_){return setTimeout($(p,_),g)}function d(p,g,_){return Array.isArray(p)?(m(p,_[g],_),!0):!1}function m(p,g,_){var I;if(p)if(p.forEach)p.forEach(g,_);else if(p.length!==i)for(I=0;I<p.length;)g.call(_,p[I],I,p),I++;else for(I in p)p.hasOwnProperty(I)&&g.call(_,p[I],I,p)}function f(p,g,_){var I="DEPRECATED METHOD: "+g+`
53
+ `+_+` AT
54
+ `;return function(){var Q=new Error("get-stack-trace"),ft=Q&&Q.stack?Q.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Rt=t.console&&(t.console.warn||t.console.log);return Rt&&Rt.call(t.console,I,ft),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 _=Object(g),I=1;I<arguments.length;I++){var Q=arguments[I];if(Q!==i&&Q!==null)for(var ft in Q)Q.hasOwnProperty(ft)&&(_[ft]=Q[ft])}return _}:v=Object.assign;var b=f(function(g,_,I){for(var Q=Object.keys(_),ft=0;ft<Q.length;)(!I||I&&g[Q[ft]]===i)&&(g[Q[ft]]=_[Q[ft]]),ft++;return g},"extend","Use `assign`."),S=f(function(g,_){return b(g,_,!0)},"merge","Use `assign`.");function F(p,g,_){var I=g.prototype,Q;Q=p.prototype=Object.create(I),Q.constructor=p,Q._super=I,_&&v(Q,_)}function $(p,g){return function(){return p.apply(g,arguments)}}function O(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function K(p,g){return p===i?g:p}function st(p,g,_){m(k(g),function(I){p.addEventListener(I,_,!1)})}function J(p,g,_){m(k(g),function(I){p.removeEventListener(I,_,!1)})}function gt(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function x(p,g){return p.indexOf(g)>-1}function k(p){return p.trim().split(/\s+/g)}function P(p,g,_){if(p.indexOf&&!_)return p.indexOf(g);for(var I=0;I<p.length;){if(_&&p[I][_]==g||!_&&p[I]===g)return I;I++}return-1}function E(p){return Array.prototype.slice.call(p,0)}function D(p,g,_){for(var I=[],Q=[],ft=0;ft<p.length;){var Rt=g?p[ft][g]:p[ft];P(Q,Rt)<0&&I.push(p[ft]),Q[ft]=Rt,ft++}return _&&(g?I=I.sort(function(be,Oe){return be[g]>Oe[g]}):I=I.sort()),I}function Y(p,g){for(var _,I,Q=g[0].toUpperCase()+g.slice(1),ft=0;ft<r.length;){if(_=r[ft],I=_?_+Q:g,I in p)return I;ft++}return i}var nt=1;function q(){return nt++}function X(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||t}var it=/mobile|tablet|ip(ad|hone|od)|android/i,B="ontouchstart"in t,V=Y(t,"PointerEvent")!==i,yt=B&&it.test(navigator.userAgent),A="touch",W="pen",L="mouse",te="kinect",oe=25,It=1,ae=2,zt=4,ie=8,Fe=1,ze=2,Ne=4,y=8,w=16,R=ze|Ne,z=y|w,j=R|z,et=["x","y"],at=["clientX","clientY"];function U(p,g){var _=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(I){O(p.options.enable,[p])&&_.handler(I)},this.init()}U.prototype={handler:function(){},init:function(){this.evEl&&st(this.element,this.evEl,this.domHandler),this.evTarget&&st(this.target,this.evTarget,this.domHandler),this.evWin&&st(X(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&J(this.element,this.evEl,this.domHandler),this.evTarget&&J(this.target,this.evTarget,this.domHandler),this.evWin&&J(X(this.element),this.evWin,this.domHandler)}};function ot(p){var g,_=p.options.inputClass;return _?g=_:V?g=qa:yt?g=Ar:B?g=Za:g=Pe,new g(p,Z)}function Z(p,g,_){var I=_.pointers.length,Q=_.changedPointers.length,ft=g&It&&I-Q===0,Rt=g&(zt|ie)&&I-Q===0;_.isFirst=!!ft,_.isFinal=!!Rt,ft&&(p.session={}),_.eventType=g,ht(p,_),p.emit("hammer.input",_),p.recognize(_),p.session.prevInput=_}function ht(p,g){var _=p.session,I=g.pointers,Q=I.length;_.firstInput||(_.firstInput=Ct(g)),Q>1&&!_.firstMultiple?_.firstMultiple=Ct(g):Q===1&&(_.firstMultiple=!1);var ft=_.firstInput,Rt=_.firstMultiple,fe=Rt?Rt.center:ft.center,be=g.center=Mt(I);g.timeStamp=u(),g.deltaTime=g.timeStamp-ft.timeStamp,g.angle=ke(fe,be),g.distance=Qt(fe,be),_t(_,g),g.offsetDirection=jt(g.deltaX,g.deltaY);var Oe=Ft(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Oe.x,g.overallVelocityY=Oe.y,g.overallVelocity=c(Oe.x)>c(Oe.y)?Oe.x:Oe.y,g.scale=Rt?Dr(Rt.pointers,I):1,g.rotation=Rt?Bs(Rt.pointers,I):0,g.maxPointers=_.prevInput?g.pointers.length>_.prevInput.maxPointers?g.pointers.length:_.prevInput.maxPointers:g.pointers.length,vt(_,g);var os=p.element;gt(g.srcEvent.target,os)&&(os=g.srcEvent.target),g.target=os}function _t(p,g){var _=g.center,I=p.offsetDelta||{},Q=p.prevDelta||{},ft=p.prevInput||{};(g.eventType===It||ft.eventType===zt)&&(Q=p.prevDelta={x:ft.deltaX||0,y:ft.deltaY||0},I=p.offsetDelta={x:_.x,y:_.y}),g.deltaX=Q.x+(_.x-I.x),g.deltaY=Q.y+(_.y-I.y)}function vt(p,g){var _=p.lastInterval||g,I=g.timeStamp-_.timeStamp,Q,ft,Rt,fe;if(g.eventType!=ie&&(I>oe||_.velocity===i)){var be=g.deltaX-_.deltaX,Oe=g.deltaY-_.deltaY,os=Ft(I,be,Oe);ft=os.x,Rt=os.y,Q=c(os.x)>c(os.y)?os.x:os.y,fe=jt(be,Oe),p.lastInterval=g}else Q=_.velocity,ft=_.velocityX,Rt=_.velocityY,fe=_.direction;g.velocity=Q,g.velocityX=ft,g.velocityY=Rt,g.direction=fe}function Ct(p){for(var g=[],_=0;_<p.pointers.length;)g[_]={clientX:l(p.pointers[_].clientX),clientY:l(p.pointers[_].clientY)},_++;return{timeStamp:u(),pointers:g,center:Mt(g),deltaX:p.deltaX,deltaY:p.deltaY}}function Mt(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var _=0,I=0,Q=0;Q<g;)_+=p[Q].clientX,I+=p[Q].clientY,Q++;return{x:l(_/g),y:l(I/g)}}function Ft(p,g,_){return{x:g/p||0,y:_/p||0}}function jt(p,g){return p===g?Fe:c(p)>=c(g)?p<0?ze:Ne:g<0?y:w}function Qt(p,g,_){_||(_=et);var I=g[_[0]]-p[_[0]],Q=g[_[1]]-p[_[1]];return Math.sqrt(I*I+Q*Q)}function ke(p,g,_){_||(_=et);var I=g[_[0]]-p[_[0]],Q=g[_[1]]-p[_[1]];return Math.atan2(Q,I)*180/Math.PI}function Bs(p,g){return ke(g[1],g[0],at)+ke(p[1],p[0],at)}function Dr(p,g){return Qt(g[0],g[1],at)/Qt(p[0],p[1],at)}var fn={mousedown:It,mousemove:ae,mouseup:zt},Rr="mousedown",_e="mousemove mouseup";function Pe(){this.evEl=Rr,this.evWin=_e,this.pressed=!1,U.apply(this,arguments)}F(Pe,U,{handler:function(g){var _=fn[g.type];_&It&&g.button===0&&(this.pressed=!0),_&ae&&g.which!==1&&(_=zt),this.pressed&&(_&zt&&(this.pressed=!1),this.callback(this.manager,_,{pointers:[g],changedPointers:[g],pointerType:L,srcEvent:g}))}});var Nr={pointerdown:It,pointermove:ae,pointerup:zt,pointercancel:ie,pointerout:ie},ib={2:A,3:W,4:L,5:te},kh="pointerdown",Ph="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(kh="MSPointerDown",Ph="MSPointerMove MSPointerUp MSPointerCancel");function qa(){this.evEl=kh,this.evWin=Ph,U.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}F(qa,U,{handler:function(g){var _=this.store,I=!1,Q=g.type.toLowerCase().replace("ms",""),ft=Nr[Q],Rt=ib[g.pointerType]||g.pointerType,fe=Rt==A,be=P(_,g.pointerId,"pointerId");ft&It&&(g.button===0||fe)?be<0&&(_.push(g),be=_.length-1):ft&(zt|ie)&&(I=!0),!(be<0)&&(_[be]=g,this.callback(this.manager,ft,{pointers:_,changedPointers:[g],pointerType:Rt,srcEvent:g}),I&&_.splice(be,1))}});var rb={touchstart:It,touchmove:ae,touchend:zt,touchcancel:ie},ob="touchstart",ab="touchstart touchmove touchend touchcancel";function Oh(){this.evTarget=ob,this.evWin=ab,this.started=!1,U.apply(this,arguments)}F(Oh,U,{handler:function(g){var _=rb[g.type];if(_===It&&(this.started=!0),!!this.started){var I=lb.call(this,g,_);_&(zt|ie)&&I[0].length-I[1].length===0&&(this.started=!1),this.callback(this.manager,_,{pointers:I[0],changedPointers:I[1],pointerType:A,srcEvent:g})}}});function lb(p,g){var _=E(p.touches),I=E(p.changedTouches);return g&(zt|ie)&&(_=D(_.concat(I),"identifier",!0)),[_,I]}var cb={touchstart:It,touchmove:ae,touchend:zt,touchcancel:ie},ub="touchstart touchmove touchend touchcancel";function Ar(){this.evTarget=ub,this.targetIds={},U.apply(this,arguments)}F(Ar,U,{handler:function(g){var _=cb[g.type],I=hb.call(this,g,_);I&&this.callback(this.manager,_,{pointers:I[0],changedPointers:I[1],pointerType:A,srcEvent:g})}});function hb(p,g){var _=E(p.touches),I=this.targetIds;if(g&(It|ae)&&_.length===1)return I[_[0].identifier]=!0,[_,_];var Q,ft,Rt=E(p.changedTouches),fe=[],be=this.target;if(ft=_.filter(function(Oe){return gt(Oe.target,be)}),g===It)for(Q=0;Q<ft.length;)I[ft[Q].identifier]=!0,Q++;for(Q=0;Q<Rt.length;)I[Rt[Q].identifier]&&fe.push(Rt[Q]),g&(zt|ie)&&delete I[Rt[Q].identifier],Q++;if(fe.length)return[D(ft.concat(fe),"identifier",!0),fe]}var db=2500,Ih=25;function Za(){U.apply(this,arguments);var p=$(this.handler,this);this.touch=new Ar(this.manager,p),this.mouse=new Pe(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}F(Za,U,{handler:function(g,_,I){var Q=I.pointerType==A,ft=I.pointerType==L;if(!(ft&&I.sourceCapabilities&&I.sourceCapabilities.firesTouchEvents)){if(Q)fb.call(this,_,I);else if(ft&&pb.call(this,I))return;this.callback(g,_,I)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function fb(p,g){p&It?(this.primaryTouch=g.changedPointers[0].identifier,Mh.call(this,g)):p&(zt|ie)&&Mh.call(this,g)}function Mh(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var _={x:g.clientX,y:g.clientY};this.lastTouches.push(_);var I=this.lastTouches,Q=function(){var ft=I.indexOf(_);ft>-1&&I.splice(ft,1)};setTimeout(Q,db)}}function pb(p){for(var g=p.srcEvent.clientX,_=p.srcEvent.clientY,I=0;I<this.lastTouches.length;I++){var Q=this.lastTouches[I],ft=Math.abs(g-Q.x),Rt=Math.abs(_-Q.y);if(ft<=Ih&&Rt<=Ih)return!0}return!1}var Dh=Y(o.style,"touchAction"),Rh=Dh!==i,Nh="compute",Ah="auto",Ka="manipulation",pn="none",gi="pan-x",yi="pan-y",Lr=gb();function Qa(p,g){this.manager=p,this.set(g)}Qa.prototype={set:function(p){p==Nh&&(p=this.compute()),Rh&&this.manager.element.style&&Lr[p]&&(this.manager.element.style[Dh]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return m(this.manager.recognizers,function(g){O(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),mb(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,_=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var I=this.actions,Q=x(I,pn)&&!Lr[pn],ft=x(I,yi)&&!Lr[yi],Rt=x(I,gi)&&!Lr[gi];if(Q){var fe=p.pointers.length===1,be=p.distance<2,Oe=p.deltaTime<250;if(fe&&be&&Oe)return}if(!(Rt&&ft)&&(Q||ft&&_&R||Rt&&_&z))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function mb(p){if(x(p,pn))return pn;var g=x(p,gi),_=x(p,yi);return g&&_?pn:g||_?g?gi:yi:x(p,Ka)?Ka:Ah}function gb(){if(!Rh)return!1;var p={},g=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(_){p[_]=g?t.CSS.supports("touch-action",_):!0}),p}var Fr=1,Xe=2,On=4,zs=8,ws=zs,vi=16,rs=32;function Cs(p){this.options=v({},this.defaults,p||{}),this.id=q(),this.manager=null,this.options.enable=K(this.options.enable,!0),this.state=Fr,this.simultaneous={},this.requireFail=[]}Cs.prototype={defaults:{},set:function(p){return v(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(d(p,"recognizeWith",this))return this;var g=this.simultaneous;return p=$r(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return d(p,"dropRecognizeWith",this)?this:(p=$r(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(d(p,"requireFailure",this))return this;var g=this.requireFail;return p=$r(p,this),P(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(d(p,"dropRequireFailure",this))return this;p=$r(p,this);var g=P(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,_=this.state;function I(Q){g.manager.emit(Q,p)}_<zs&&I(g.options.event+Lh(_)),I(g.options.event),p.additionalEvent&&I(p.additionalEvent),_>=zs&&I(g.options.event+Lh(_))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=rs},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(rs|Fr)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!O(this.options.enable,[this,g])){this.reset(),this.state=rs;return}this.state&(ws|vi|rs)&&(this.state=Fr),this.state=this.process(g),this.state&(Xe|On|zs|vi)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Lh(p){return p&vi?"cancel":p&zs?"end":p&On?"move":p&Xe?"start":""}function Fh(p){return p==w?"down":p==y?"up":p==ze?"left":p==Ne?"right":""}function $r(p,g){var _=g.manager;return _?_.get(p):p}function Ze(){Cs.apply(this,arguments)}F(Ze,Cs,{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,_=p.eventType,I=g&(Xe|On),Q=this.attrTest(p);return I&&(_&ie||!Q)?g|vi:I||Q?_&zt?g|zs:g&Xe?g|On:Xe:rs}});function Vr(){Ze.apply(this,arguments),this.pX=null,this.pY=null}F(Vr,Ze,{defaults:{event:"pan",threshold:10,pointers:1,direction:j},getTouchAction:function(){var p=this.options.direction,g=[];return p&R&&g.push(yi),p&z&&g.push(gi),g},directionTest:function(p){var g=this.options,_=!0,I=p.distance,Q=p.direction,ft=p.deltaX,Rt=p.deltaY;return Q&g.direction||(g.direction&R?(Q=ft===0?Fe:ft<0?ze:Ne,_=ft!=this.pX,I=Math.abs(p.deltaX)):(Q=Rt===0?Fe:Rt<0?y:w,_=Rt!=this.pY,I=Math.abs(p.deltaY))),p.direction=Q,_&&I>g.threshold&&Q&g.direction},attrTest:function(p){return Ze.prototype.attrTest.call(this,p)&&(this.state&Xe||!(this.state&Xe)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Fh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Ja(){Ze.apply(this,arguments)}F(Ja,Ze,{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&Xe)},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 tl(){Cs.apply(this,arguments),this._timer=null,this._input=null}F(tl,Cs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ah]},process:function(p){var g=this.options,_=p.pointers.length===g.pointers,I=p.distance<g.threshold,Q=p.deltaTime>g.time;if(this._input=p,!I||!_||p.eventType&(zt|ie)&&!Q)this.reset();else if(p.eventType&It)this.reset(),this._timer=h(function(){this.state=ws,this.tryEmit()},g.time,this);else if(p.eventType&zt)return ws;return rs},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===ws&&(p&&p.eventType&zt?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function el(){Ze.apply(this,arguments)}F(el,Ze,{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&Xe)}});function sl(){Ze.apply(this,arguments)}F(sl,Ze,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:R|z,pointers:1},getTouchAction:function(){return Vr.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,_;return g&(R|z)?_=p.overallVelocity:g&R?_=p.overallVelocityX:g&z&&(_=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(_)>this.options.velocity&&p.eventType&zt},emit:function(p){var g=Fh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Gr(){Cs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}F(Gr,Cs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ka]},process:function(p){var g=this.options,_=p.pointers.length===g.pointers,I=p.distance<g.threshold,Q=p.deltaTime<g.time;if(this.reset(),p.eventType&It&&this.count===0)return this.failTimeout();if(I&&Q&&_){if(p.eventType!=zt)return this.failTimeout();var ft=this.pTime?p.timeStamp-this.pTime<g.interval:!0,Rt=!this.pCenter||Qt(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!Rt||!ft?this.count=1:this.count+=1,this._input=p;var fe=this.count%g.taps;if(fe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=ws,this.tryEmit()},g.interval,this),Xe):ws}return rs},failTimeout:function(){return this._timer=h(function(){this.state=rs},this.options.interval,this),rs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ws&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Ss(p,g){return g=g||{},g.recognizers=K(g.recognizers,Ss.defaults.preset),new nl(p,g)}Ss.VERSION="2.0.7",Ss.defaults={domEvents:!1,touchAction:Nh,enable:!0,inputTarget:null,inputClass:null,preset:[[el,{enable:!1}],[Ja,{enable:!1},["rotate"]],[sl,{direction:R}],[Vr,{direction:R},["swipe"]],[Gr],[Gr,{event:"doubletap",taps:2},["tap"]],[tl]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var yb=1,$h=2;function nl(p,g){this.options=v({},Ss.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=ot(this),this.touchAction=new Qa(this,this.options.touchAction),Vh(this,!0),m(this.options.recognizers,function(_){var I=this.add(new _[0](_[1]));_[2]&&I.recognizeWith(_[2]),_[3]&&I.requireFailure(_[3])},this)}nl.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?$h:yb},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var _,I=this.recognizers,Q=g.curRecognizer;(!Q||Q&&Q.state&ws)&&(Q=g.curRecognizer=null);for(var ft=0;ft<I.length;)_=I[ft],g.stopped!==$h&&(!Q||_==Q||_.canRecognizeWith(Q))?_.recognize(p):_.reset(),!Q&&_.state&(Xe|On|zs)&&(Q=g.curRecognizer=_),ft++}},get:function(p){if(p instanceof Cs)return p;for(var g=this.recognizers,_=0;_<g.length;_++)if(g[_].options.event==p)return g[_];return null},add:function(p){if(d(p,"add",this))return this;var g=this.get(p.options.event);return g&&this.remove(g),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(d(p,"remove",this))return this;if(p=this.get(p),p){var g=this.recognizers,_=P(g,p);_!==-1&&(g.splice(_,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var _=this.handlers;return m(k(p),function(I){_[I]=_[I]||[],_[I].push(g)}),this}},off:function(p,g){if(p!==i){var _=this.handlers;return m(k(p),function(I){g?_[I]&&_[I].splice(P(_[I],g),1):delete _[I]}),this}},emit:function(p,g){this.options.domEvents&&vb(p,g);var _=this.handlers[p]&&this.handlers[p].slice();if(!(!_||!_.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var I=0;I<_.length;)_[I](g),I++}},destroy:function(){this.element&&Vh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Vh(p,g){var _=p.element;if(_.style){var I;m(p.options.cssProps,function(Q,ft){I=Y(_.style,ft),g?(p.oldCssProps[I]=_.style[I],_.style[I]=Q):_.style[I]=p.oldCssProps[I]||""}),g||(p.oldCssProps={})}}function vb(p,g){var _=e.createEvent("Event");_.initEvent(p,!0,!0),_.gesture=g,g.target.dispatchEvent(_)}v(Ss,{INPUT_START:It,INPUT_MOVE:ae,INPUT_END:zt,INPUT_CANCEL:ie,STATE_POSSIBLE:Fr,STATE_BEGAN:Xe,STATE_CHANGED:On,STATE_ENDED:zs,STATE_RECOGNIZED:ws,STATE_CANCELLED:vi,STATE_FAILED:rs,DIRECTION_NONE:Fe,DIRECTION_LEFT:ze,DIRECTION_RIGHT:Ne,DIRECTION_UP:y,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:R,DIRECTION_VERTICAL:z,DIRECTION_ALL:j,Manager:nl,Input:U,TouchAction:Qa,TouchInput:Ar,MouseInput:Pe,PointerEventInput:qa,TouchMouseInput:Za,SingleTouchInput:Oh,Recognizer:Cs,AttrRecognizer:Ze,Tap:Gr,Pan:Vr,Swipe:sl,Pinch:Ja,Rotate:el,Press:tl,on:st,off:J,each:m,merge:S,extend:b,assign:v,inherit:F,bindFn:$,prefixed:Y});var _b=typeof t<"u"?t:typeof self<"u"?self:{};_b.Hammer=Ss,typeof i=="function"&&i.amd?i(function(){return Ss}):s.exports?s.exports=Ss:t[n]=Ss})(window,document,"Hammer")})(ih);var Yg=ih.exports;const Bg=Gg(Yg);class zg{constructor(){}static getFormatKeyNames(t){const e=gg(),n=[];return t.ctrl&&n.push(e?"Cmd":"Ctrl"),t.shift&&n.push("Shift"),t.alt&&n.push("Alt"),typeof t.key=="string"?n.push(Qo(t.key)):Array.isArray(t.key)&&(t.key.map(i=>Qo(i)),n.push(...t.key)),n}static matchKeyScheme(t,e){const n=t.ctrl??!1,i=t.shift??!1,r=t.alt??!1;if(t.exact)return(n===e.metaKey||n===e.ctrlKey)&&i===e.shiftKey&&r===e.altKey;const o=[];return n&&o.push(n===e.metaKey||n===e.ctrlKey),i&&o.push(i===e.shiftKey),r&&o.push(r===e.altKey),o.every(a=>a)}static on(t,e){if(t?.key===void 0||t?.key===null)return e;const n=t?.target??window;let i=!1;const r=this.getFormatKeyNames(t),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(t,a)){a.preventDefault();const l=e(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),n.removeEventListener("keyup",c)};n.addEventListener("keyup",c)}};return e.title=t?.title??"",e.formatedKeyNames=r,e.pause=()=>i=!0,e.restart=()=>i=!1,e.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),e}}class xs extends lr{container;width;height;mousePoint;hammer;removes=[];constructor(t=document.documentElement,e=!0,n){super(),this.container=t,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.hammer=new Bg(this.container),this.mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0},e&&this.start(n)}emitDebounce=rg((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=A=>{this.emit("mouseDown",A)},e=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)},d=A=>{this.emit("touchCancel",A)},m=A=>{this.emit("touchMove",A)},f=A=>{this.emit("pointerDown",A)},v=A=>{this.emit("pointerUp",A)},b=A=>{this.emit("pointerCancel",A)},S=A=>{this.emit("pointerMove",A)},F=A=>{this.emit("pan",A)},$=A=>{this.emit("panStart",A)},O=A=>{this.emit("panMove",A)},K=A=>{this.emit("panEnd",A)},st=A=>{this.emit("panCancel",A)},J=A=>{this.emit("panLeft",A)},gt=A=>{this.emit("panRight",A)},x=A=>{this.emit("panUp",A)},k=A=>{this.emit("panDown",A)},P=A=>{this.emit("pinch",A)},E=A=>{this.emit("press",A)},D=A=>{this.emit("rotate",A)},Y=A=>{this.emit("swipe",A)},nt=A=>{this.emit("swipeLeft",A)},q=A=>{this.emit("swipeRight",A)},X=A=>{this.emit("swipeUp",A)},it=A=>{this.emit("swipeDown",A)},B=A=>{this.emit("tap",A)},V=A=>{!A.target||this.container==A.target||this.container.contains(A.target)||this.emit("tapOutSide",A)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),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",d),this.container.addEventListener("touchmove",m),this.container.addEventListener("pointerdown",f),this.container.addEventListener("pointerup",v),this.container.addEventListener("pointercancel",b),this.container.addEventListener("pointermove",S),this.hammer.on("pan",F),this.hammer.on("panstart",$),this.hammer.on("panmove",O),this.hammer.on("panend",K),this.hammer.on("pancancel",st),this.hammer.on("panleft",J),this.hammer.on("panright",gt),this.hammer.on("panup",x),this.hammer.on("pandown",k),this.hammer.on("pinch",P),this.hammer.on("press",E),this.hammer.on("rotate",D),this.hammer.on("swipe",Y),this.hammer.on("swipeleft",nt),this.hammer.on("swiperight",q),this.hammer.on("swipeup",X),this.hammer.on("swipedown",it),this.hammer.on("tap",B),document.addEventListener("pointerdown",V,!1);const yt=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),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",d),this.container.removeEventListener("touchmove",m),this.container.removeEventListener("pointerdown",f),this.container.removeEventListener("pointerup",v),this.container.removeEventListener("pointercancel",b),this.container.removeEventListener("pointermove",S),this.hammer.off("pan",F),this.hammer.off("panstart",$),this.hammer.off("panmove",O),this.hammer.off("panend",K),this.hammer.off("pancancel",st),this.hammer.off("panleft",J),this.hammer.off("panright",gt),this.hammer.off("panup",x),this.hammer.off("pandown",k),this.hammer.off("pinch",P),this.hammer.off("press",E),this.hammer.off("rotate",D),this.hammer.off("swipe",Y),this.hammer.off("swipeleft",nt),this.hammer.off("swiperight",q),this.hammer.off("swipeup",X),this.hammer.off("swipedown",it),this.hammer.off("tap",B),document.removeEventListener("pointerdown",V,!1),document.removeEventListener("touchstart",V,!1),document.removeEventListener("mousedown",V,!1)};return this.addRemoves(yt),yt}registerInputEventListeners(){const t=l=>{this.emit("inputChange",l,this.container.files)},e=l=>{this.emit("dragstart",l)},n=l=>{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.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",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",t,!1),this.container.removeEventListener("dragstart",e,!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.addRemoves(a),a}registerTransitionEventListeners(){const t=i=>{this.emit("transitionstart",i)},e=i=>{this.emit("transitionend",i)};this.container.addEventListener("transitionstart",t),this.container.addEventListener("transitionend",e);const n=()=>{this.container.removeEventListener("transitionstart",t),this.container.removeEventListener("transitionend",e)};return this.addRemoves(n),n}registerAnimationEventListeners(){const t=i=>{this.emit("animationstart",i)},e=i=>{this.emit("animationend",i)};this.container.addEventListener("animationstart",t),this.container.addEventListener("animationend",e);const n=()=>{this.container.removeEventListener("animationstart",t),this.container.removeEventListener("animationend",e)};return this.addRemoves(n),n}registerKeyDown(t,e,n){const i=zg.on(t,o=>(e(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addRemoves(r),r}registerResizeObserver(){const t=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});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},n=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addRemoves(i),i}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureMove({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullDowning",i.dStartY)},end:(n,i)=>{i.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureMove({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullUping",i.dStartY)},end:(n,i)=>{i.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||(()=>{}),n=t?.move||(()=>{}),i=t?.end||(()=>{});return this.captureMoveStarts.push(e),this.captureMoveMoves.push(n),this.captureMoveEnds.push(i),this.isRunningSingletonCaptureMove||(this.isRunningSingletonCaptureMove=!0,this.captureMoveUsePointer(),this.addRemoves(()=>{this.captureMoveStarts=[],this.captureMoveMoves=[],this.captureMoveEnds=[]})),()=>{this.captureMoveStarts=this.captureMoveStarts.filter(r=>r!=e),this.captureMoveMoves=this.captureMoveMoves.filter(r=>r!=n),this.captureMoveEnds=this.captureMoveEnds.filter(r=>r!=i)}}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 n=a=>{e=_s(a);const l={...e};t=l,this.setMousePoint(l),this.captureMoveStarts.forEach(c=>{c(a,l)})},i=a=>{e=_s(a);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(a,l)}),t=null},r=a=>{const l={...e};e=_s(a);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(a,c)})};this.on("pointerDown",n),this.on("pointerUp",i),this.on("pointerCancel",i),this.on("pointerMove",r);const o=()=>{this.off("pointerDown",n),this.off("pointerUp",i),this.off("pointerCancel",i),this.off("pointerMove",r)};return this.addRemoves(o),o}captureMoveUseMouse(){let t,e;const n=a=>{document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",i,!1),e=_s(a);const l={...e};t=l,this.setMousePoint(l),this.captureMoveStarts.forEach(c=>{c(a,l)})},i=a=>{document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",i,!1),e=_s(a);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(a,l)}),t=null},r=a=>{const l={...e};e=_s(a);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(a,c)})};this.on("mouseDown",n);const o=()=>{this.off("mouseDown",n)};return this.addRemoves(o),o}captureMoveUseTouch(){let t,e;const n=a=>{const l=a.changedTouches[0];e=_s(l);const c={...e};t=c,this.setMousePoint(c),this.captureMoveStarts.forEach(u=>{u(l,c)})},i=a=>{const l=a.changedTouches[0];e=_s(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},r=a=>{const l=a.changedTouches[0],c={...e};e=_s(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(h=>{h(l,u)})};this.on("touchStart",n),this.on("touchEnd",i),this.on("touchCancel",i),this.on("touchMove",r);const o=()=>{this.off("touchStart",n),this.off("touchEnd",i),this.off("touchCancel",i),this.off("touchMove",r)};return this.addRemoves(o),o}simulateMouseEvent(t,e){if(t.touches.length>1)return;const n=t.changedTouches[0],i=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});t.target?.dispatchEvent(i)}}const Ce=new xs(document.documentElement,!0,[()=>Xg("(prefers-color-scheme: dark)"),jg,Ug,Hg]);Ce.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{cg().then(s=>ug(s[0])).then(s=>{Ce.emit("openFile",s)}).catch(s=>{Ce.emit("openFileError",s)})});function Xg(s){let t="";switch(s){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=s;break}const e=n=>{Ce.emit(t,n.matches)};return window.matchMedia(s).addEventListener("change",e),()=>{window.matchMedia(s).removeEventListener("change",e)}}function jg(){let s="";const t=new MutationObserver(i=>{location.href!==s&&(s=location.href,Ce.emit("urlchange",location.href))});t.observe(document,{attributes:!0,childList:!0,subtree:!0});const e=()=>{Ce.emit("hashchange",location.hash)};window.addEventListener("hashchange",e);const n=()=>{Ce.emit("popstate")};return window.addEventListener("popstate",n),()=>{t.disconnect(),window.removeEventListener("hashchange",e),window.removeEventListener("popstate",n)}}function Hg(){const s=r=>{Ce.emit("beforeunload",r)};window.addEventListener("beforeunload",s);const t=r=>{Ce.emit("pagehide",r)};window.addEventListener("pagehide",t);const e=r=>{Ce.emit("windowFocus",r)};window.addEventListener("focus",e);const n=r=>{Ce.emit("windowBlur",r)};window.addEventListener("blur",n);const i=r=>{document.hidden?Ce.emit("windowVisibilityChangeHide",r):Ce.emit("windowVisibilityChangeShow",r)};return document.addEventListener("visibilitychange",i),()=>{window.removeEventListener("beforeunload",s),window.removeEventListener("pagehide",t),window.removeEventListener("focus",e),window.removeEventListener("blur",n),document.removeEventListener("visibilitychange",i)}}function Ug(){const s=t=>{Ce.emit("scroll",t)};return document.addEventListener("scroll",s),()=>{document.removeEventListener("scroll",s)}}class ba{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",e=>{e.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const e=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(n),setTimeout(()=>{e.width="15"}),setTimeout(()=>{e.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(e=>{t.play().then(()=>{t.autoplay=!0,e(!0)}).catch(()=>{ba.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 Wg extends lr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Iu(this.source);if(t===0){this.emit("finish");return}let e,n,i=Mu(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=Mu(this.source,r),this.raw+=n,n&&this.step(n,i,e);i&&this.step(i,void 0,n),this.emit("finish")}step(t,e,n){t==`
55
+ `&&this.emit("newline"),this.act(t,e,n)}act(t,e,n){switch(this.mode){case"text":switch(t){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t;break}break;case"entity":gs("whitespace",t)?(this.textchunk+=tt.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=tt.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(n=="!"&&t=="-"&&e=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&t=="["){this.mode="cdata",this.textchunk="";break}if(t==">"||t=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=t;break;case"cdata":if(n=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,n)),this.textchunk+=t;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":e==">"||t=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":t=="-"&&n=="-"&&e==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):t=="eof"?this.emit("comment",this.textchunk):this.textchunk+=t;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(t=="?"&&e==">"){this.mode="declaration end";break}t=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=t;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(t=="eof"){this.emit("text","<");break}if(!gs("whitespace",t)){if(this.mode="tag name",t=="/"){this.mode="close tag name start";break}else if(t=="!"){this.mode="special",this.textchunk="";break}else if(t=="?"){this.mode="declaration";break}this.act(t,e,n)}break;case"close tag name start":gs("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(gs("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(gs("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":gs("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(gs("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(!gs("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,n)}break;case"attr value":if(gs("whitespace",t)&&!this.quote)this.mode="attr start";else if(t==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(t){case'"':case"'":this.quote==t&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function rh(s,t,e){if(typeof t<"u")window.localStorage.setItem(s,JSON.stringify({value:t,expires:typeof e=="number"?e:-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}}}Ce.on("matchMediaChangePrefersColorSchemeDark",s=>{xa(s?"dark":"light")}),qg();function xa(s){rh("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function qg(){const s=rh("colorScheme");if(s=="dark"||s=="light")return xa(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return xa(t),t}}const dt={safeAreaTop:tt.getCSSVar("--safe-area-inset-top"),safeAreaRight:tt.getCSSVar("--safe-area-inset-right"),safeAreaBottom:tt.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:tt.getCSSVar("--safe-area-inset-left"),colorPrimary:tt.getCSSVar("--color-primary")||"#5078f0",colorRed:tt.getCSSVar("--color-red")||"#ff5050",colorOrange:tt.getCSSVar("--color-orange")||"#fa8c00",colorYellow:tt.getCSSVar("--color-yellow")||"#fadc32",colorGreen:tt.getCSSVar("--color-green")||"#00c878",colorBlue:tt.getCSSVar("--color-blue")||"#00b4fa",colorPurple:tt.getCSSVar("--color-purple")||"#6464fa",colorBlack:tt.getCSSVar("--color-black")||"#001428",colorGray00:tt.getCSSVar("--color-gray-00")||"#000000",colorGray33:tt.getCSSVar("--color-gray-33")||"#333333",colorGray66:tt.getCSSVar("--color-gray-66")||"#666666",colorGray99:tt.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:tt.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:tt.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:tt.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:tt.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:tt.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:tt.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:tt.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:tt.getCSSVar("--font-line-height")||"1,4",fontSize32:tt.getCSSVar("--font-size-32")||"32px",fontSize24:tt.getCSSVar("--font-size-24")||"24px",fontSize20:tt.getCSSVar("--font-size-20")||"20px",fontSize18:tt.getCSSVar("--font-size-18")||"18px",fontSize16:tt.getCSSVar("--font-size-16")||"16px",fontSize14:tt.getCSSVar("--font-size-14")||"14px",fontSize12:tt.getCSSVar("--font-size-12")||"12px",fontSize11:tt.getCSSVar("--font-size-11")||"11px",gap4:tt.getCSSVar("--gap-4")||"4px",gap8:tt.getCSSVar("--gap-8")||"8px",gap12:tt.getCSSVar("--gap-12")||"12px",gap16:tt.getCSSVar("--gap-16")||"16px",gap20:tt.getCSSVar("--gap-20")||"20px",gap40:tt.getCSSVar("--gap-40")||"40px",height44:tt.getCSSVar("--height-44")||"44px",height32:tt.getCSSVar("--height-32")||"32px",borderRadius:tt.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 Vs(s,t){if(Object.prototype.hasOwnProperty.call(s,"r")&&Object.prototype.hasOwnProperty.call(s,"g")&&Object.prototype.hasOwnProperty.call(s,"b"))return s.r=Math.round(Ve(s.r,0,255)),s.g=Math.round(Ve(s.g,0,255)),s.b=Math.round(Ve(s.b,0,255)),Object.prototype.hasOwnProperty.call(s,"a")?s.a=typeof t=="number"?t:s.a:s.a=typeof t=="number"?t:1,s.a=Ve(s.a,0,1),s;const e={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]&&(e.a=Te(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(e.a=Te(parseInt(s.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+s);return n>=0&&(e.r=n>>16&255,e.g=n>>8&255,e.b=n&255),typeof t=="number"&&(e.a=t),e.a=Ve(e.a,0,1),e}function Kg(s,t=!1,e="#000000",n="#ffffff"){let i=Vs(s);return t?i=Vs(i.r*.299+i.g*.587+i.b*.114>186?e:n):(i.r=255-i.r,i.g=255-i.g,i.b=255-i.b),i}function wa(s,t){const e=Vs(s,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function vr(s){return Gm(s.toString(16),2,"0","left")}function ui(s,t){const e=Vs(s,t),n=`#${vr(e.r)}${vr(e.g)}${vr(e.b)}`;return e.a===1?n:n+`${vr(Math.ceil(e.a*255))}`}function oh(s,t=!1,e="#000000",n="#ffffff"){return ui(Kg(s,t,e,n))}const Qg=()=>Math.random()*16777215,$t=()=>ui(Qg());function hi(s,t){const e=Vs(s);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(Ve(e.r,0,255)),e.g=Math.round(Ve(e.g,0,255)),e.b=Math.round(Ve(e.b,0,255)),ui(e)}function ah(s,t,e){try{const n=Vs(s),i=Vs(t);return ui({r:(i.r-n.r)*e+n.r,g:(i.g-n.g)*e+n.g,b:(i.b-n.b)*e+n.b,a:(i.a-n.a)*e+n.a})}catch{return t}}function lh(s,t,e,n,i){const r=t/e;let o=0,a=0;switch(s){case"aspectFit":r>=1?(o=n,a=o/r,a>i&&(a=i,o=a*r)):(a=i,o=a*r,o>n&&(o=n,a=o/r));break;case"aspectFill":r>=1?(a=i,o=a*r):(o=n,a=o/r);break;case"widthFix":o=n,a=o/r;break;case"heightFix":a=i,o=a*r;break;case"scaleToFill":default:o=n,a=i;break}return{width:o,height:a}}const _r=new Map;async function Jg(s){return new Promise((t,e)=>{t0(s,(n,i)=>n?e(n):t({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const t0=(s,t)=>{if(_r.has(s))return t(null,_r.get(s));const e=new Image;e.onload=function(){_r.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,_r.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class is extends Ht{shapesCountChange=!1;constructor(t){super(t)}shapeInit(){}frameStart(t){return this.shapesCountChange&&(this.shapesCountChange=!1,this.shapes.forEach(e=>{e.parent=this,e.initPathD()}),this.pathd=this.initPathD(),this.shapes.forEach(e=>{!e.forceCXY&&!e.independentTransformInGroup&&(e.cX=this.cX-e.diffXInGroup,e.cY=this.cY-e.diffYInGroup)})),super.frameStart(t)}frameUpdate(t,e){this.shapes.forEach(n=>{!n.independentTransformInGroup&&!n.isDragging&&(n.x=this.x+n.diffXInGroup,n.y=this.y+n.diffYInGroup,n.degree=this.degree+n.diffDegreeInGroup,n.scalarX=this.scalarX*n.diffScalarXInGroup,n.scalarY=this.scalarY*n.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(n=>n.id==e.id)==-1&&(e.on("draging",(n,i)=>{this.enableDrag&&(this.x+=n,this.y+=i,this.emit("draging",n,i,e))}),this.shapes.push(e),this.shapesCountChange=!0)})}getBoundingClientRect(){const t=[],e=[];this.shapes.forEach(l=>{const c=l.getBoundingClientRect();c&&(t.push(c.x,c.x+c.width),e.push(c.y,c.y+c.height))});const n=this.pathd?.getBoundingClientRect();if(n&&(n.width||n.height)&&(t.push(n.x,n.x+n.width),e.push(n.y,n.y+n.height)),t.length==0||e.length==0)return null;const i=Math.min.apply(0,t),r=Math.min.apply(0,e),o=Math.max.apply(0,t),a=Math.max.apply(0,e);return{x:i,y:r,width:o-i,height:a-r}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(n=>{n.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(n=>{n.setAttr(t,e)}))}sortPathD(){this.shapes=this.shapes.map(t=>{const e=t.initPathD();return{shape:t,perimeter:e.perimeterPoints()}}).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.shape)}expendFill(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.expendFill(this);for(let i=n;i<e;i++){const o=t.shapes[i].initPathD().polymorphPoints,a=o[0],l=o[1],c=[["M",a,l]];for(let u=2;u+5<o.length;u+=6)c.push(["C",a,l,a,l,a,l]);this.addShape(new Ht({attrs:{...t.shapes[i].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const n=this.shapes.length-1;this.shapes.forEach((a,l)=>{a.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==n&&e?.onGroupComplete?.()}})});break;case"parallel":default:const i=new qe({frameDuration:t}),r={},o={};this.shapes.forEach((a,l)=>{const c=Te(a.getTotalLength(),0);r[`offset_${l}`]=c,o[`offset_${l}`]=0,a.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),i.addTween(r,o,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(a,l)=>{for(let c in a){const u=ys(c).number;this.shapes[u].setAttr("strokeDashoffset",""+Te(a[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),i.play();break}}}const Cn=is;class ce extends Ht{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,n=this.toY-this.y;return new Proxy(this,{set(i,r,o,a){switch(r){case"x":i.toX=o+e;break;case"y":i.toY=o+n;break;case"toX":e=o-i.x;break;case"toY":n=o-i.y;break}return Reflect.set(i,r,o,a)}})}toSVGPathData(){return[["m",0,0],["l",this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.lineTo(this.toX-this.x,this.toY-this.y)}intersection(t){const e=new Wu({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),n=new Wu({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(n)}}class br extends Ht{cx;cy;toX;toY;isLineThrough;constructor(t){super(t),this.cx=t?.cx||0,this.cy=t?.cy||0,this.toX=t?.toX||0,this.toY=t?.toY||0,this.isLineThrough=typeof t?.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["m",0,0],["q",t-this.x,e-this.y,this.toX-this.x,this.toY-this.y]]}else return[["m",0,0],["q",this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){if(t.beginPath(),t.moveTo(0,0),this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,n=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,n-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}class e0 extends Wg{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,n)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,n)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const n=ag(e);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: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(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,Ta)}switch(this.processAttrs(e,n),e){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(t,e){let n=[],i;switch(t){case"svg":let r="",o="";if(e.width&&e.height)r=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(r=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}r&&o&&this.items.push({type:"viewbox",width:r,height:o});break;case"line":typeof e.x1=="number"&&typeof e.y1=="number"&&typeof e.x2=="number"&&typeof e.y2=="number"&&(this.currentItem.path="M"+[e.x1,e.y1,e.x2,e.y2]);break;case"stop":i={},e.style&&Sa(e.style,i),i.offset=i.offset||e.offset,i.color=i["stop-color"]||e["stop-color"],i.opacity=i["stop-opacity"]||e["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+Ca(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":n=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in e){const o=e[r];if(Ta.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,Ta),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,t,e,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Ca(s,t,i,r)-Ca(e,n,i,r)}function Sa(s,t,e){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()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const Ta=["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 s0{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,n){this.app=t,this.rootEl=re.createSVGElement("svg"),tt.empty(this.app.container),tt.insert(this.app.container,this.rootEl),e&&n?this.setSize(e,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.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:(i,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let i of this.shapes)if(this.currentMouseInShape==i){i.emit("clicked");let r=i.parent;for(;r;)r.emit("clicked",i),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"}setSize(t,e){return tt.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return re.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof is&&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&&(tt.remove(e.el),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof wr?e.el=this.text(e.text,e.x,e.y,Lu(e.getAttrs(),(i,r)=>typeof r=="string")):(e.el=re.createSvgPath(e.toSVGPathD(),e.id),tt.insert(this.rootEl,e.el))),e.followMouse&&(!ar(e.x,this.app.mousePoint.x,5)||!ar(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e instanceof wr&&(e.setAttr("x",String(e.x)),e.setAttr("y",String(e.y))),e.frameUpdate(this.app.mousePoint);const n=e.toSVGPathD();if(this.attr(e,Lu(e.getAttrs(),(i,r)=>typeof r=="string")),this.attr(e,"d",n),!this.currentMouseInShape){const i=e.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||e.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint)}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}delete(t){(Array.isArray(t)?t:[t]).forEach(e=>{e.el&&tt.remove(e.el),delete e.el,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&tt.remove(t.el),delete t.el}),tt.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?tt.attribute(i):typeof e=="string"&&n===void 0?tt.attribute(i,$e(e))||"":(typeof e=="object"?tt.attribute(i,e):typeof e=="string"&&n!==void 0&&tt.attribute(i,$e(e),n),this):this}circle(t,e,n){return this.path(new Ut({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=re.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return tt.insert(this.rootEl,i),i}ellipse(t,e,n,i){return this.path(new uh({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=re.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return tt.insert(this.rootEl,r),r}rect(t,e,n,i){return this.path(new ye({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=re.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return tt.insert(this.rootEl,r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=re.createSVGElement("text",{x:String(e),y:String(n)});return tt.html(r,t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),tt.insert(this.rootEl,r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=re.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
56
+ `).forEach((a,l)=>{if(a.trim()){const c=re.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});tt.html(c,a),tt.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),tt.insert(this.rootEl,o),o}}class n0 extends Cn{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new e0(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!re.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=re.absolutizeSVGPath(re.parseSVGPath(r.path)),l=[];let c=[];for(let u=0,h=a.length;u<h;u++){const d=a[u];c.push(d),d[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=nh(r.transform??"");h.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new Ht({...t,attrs:{...o,...t?.attrs||{}},d:u,originMatrix:h}))})}}shapeInit(){this.trim()}}class Ut extends Ht{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}toSVGPathData(){return this.radius?[["m",0,-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["m",0,0]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return la(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=ns(-r,e,n),l=ns(-r,this.vx,this.vy),c=ns(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),d=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*d,a.x+=c.x/h*d;const m=ns(r,o.x,o.y),f=ns(r,a.x,a.y);t.x=this.x+f.x,t.y=this.y+f.y,this.x=this.x+m.x,this.y=this.y+m.y;const v=ns(r,l.x,l.y),b=ns(r,c.x,c.y);this.vx=v.x,this.vy=v.y,t.vx=b.x,t.vy=b.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,n=t.wall.x,i=t.wall.y,r=t.wall.x+t.wall.width,o=t.wall.y+t.wall.height;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=e):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=e),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=e):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=e)}}class ch extends Ht{points;isStraight;constructor(t){if(super(t),this.points=t.points,this.points.length<3)throw new Error("points length must >= 3");this.isStraight=typeof t?.isStraight=="boolean"?t.isStraight:!0}toSVGPathData(){const t=[],e=this.points.length;if(this.isStraight){t.push(["M",this.points[0].x,this.points[0].y]);for(let n=1;n<=e-1;n++)t.push(["L",this.points[n].x,this.points[n].y]);t.push(["Z"])}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",n,i]);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.push(["Q",this.points[r].x,this.points[r].y,o,a])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,n,i])}return t}toCanvasContext(t){t.beginPath();const e=this.points.length;if(this.isStraight){t.moveTo(this.points[0].x,this.points[0].y);for(let n=1;n<=e-1;n++)t.lineTo(this.points[n].x,this.points[n].y);t.closePath()}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(n,i);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.quadraticCurveTo(this.points[r].x,this.points[r].y,o,a)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,n,i)}}isContainPoint(t,e){const n=this.points.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const d=(u-l)/(h-c),m=l+d*(e-c);if(m===t||Math.abs(m-t)<r)return!0;m>t&&(i=!i)}}return i}[Symbol.iterator](){let t=-1;return{next:()=>({value:t<=this.points.length-1?this.points[++t]:void 0,done:t>=this.points.length})}}}class ye extends Ht{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,n,i,r,o,a,l){const c=new cn({x:t,y:e,c1x:n,c1y:i,c2x:r,c2y:o,toX:a,toY:l});return new ye(c.getBoundingClientRect())}getBoundingClientRect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}toSVGPathData(){return this.borderRadius?[["m",this.borderRadius,0],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["m",0,0],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}class uh extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return{x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2}}toSVGPathData(){return[["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class xr extends Ht{constructor(t){super(t)}toSVGPathData(){return[["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class Ea extends Ht{constructor(t){super(t)}toSVGPathData(){return[["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class i0 extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||10,this.ry=t?.ry||10}toSVGPathData(){return[["m",0,0],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]]}}class r0 extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50}toSVGPathData(){return[["m",0,0+this.ry*.3],["C",0,0,0-this.rx/2,0,0-this.rx/2,0+this.ry*.3],["C",0-this.rx/2,0+(this.ry+this.ry*.3)/2,0,0+(this.ry+this.ry*.3)/1.4,0,0+this.ry],["C",0,0+(this.ry+this.ry*.3)/1.8,0+this.rx/2,0+(this.ry+this.ry*.3)/2,0+this.rx/2,0+this.ry*.3],["C",0+this.rx/2,0,0,0,0,0+this.ry*.3],["z"]]}}class o0 extends Ht{r;constructor(t){super(t),this.r=t?.r||20}toSVGPathData(){const t=[["m",0,-this.r]];for(let e=0;e<6;e+=1){const n=288+e*144,i=this.r*Math.cos(Nt(n)),r=this.r*Math.sin(Nt(n));t.push(["l",i,r])}return t}}class a0 extends Ht{constructor(t){super(t)}toSVGPathData(){return[["M",0,0],["C",15,0,15,-40,5,-30],["L",0,0],["C",-15,0,-15,-40,-5,-30],["L",0,0],["a",15,15,0,1,1,0,2*15],["a",15,15,0,1,1,0,-2*15]]}}class l0 extends Ht{constructor(t){super(t),this.originD="m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z"}}class c0 extends Cn{constructor(t){super(t);const e=new ce({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),n=30+Math.random()*30,i=new ce({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),r=60+Math.random()*40,o=new ce({...t,x:this.x,y:this.y-r,diffYInGroup:-r,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,i,o])}}class wr extends Ht{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.getAttrs()});const e=ys(this.getAttr("fontSize"),10).number,n=ys(this.getAttr("fontWeight"),400).number,i=tt.measureText(this.text,e,n);this.width=i.width,this.height=i.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class u0 extends Cn{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 wr({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:oh(this.bg,!0),textAnchor:"start"}}),this.bgShape=new ye({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.getAttrs(),fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}shapeInit(){Jo(()=>{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 hh extends is{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Ut;p1Offset=10;p2=new Ut;p2Offset=40;p3=new Ut;p3Offset=10;p4=new Ut;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 h0({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 ce({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new ce({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new wr({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 u0({x:0,y:0,text:this.tip,isShow:!1}),this.tip&&this.addShape(this.tipShape)}frameUpdate(t){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sectorArc.isMouseIn,this.line23.isShow=this.sectorArc.isMouseIn,this.textShape.isShow=this.sectorArc.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:n,dy:i}=bs(Nt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+n,this.p1.y=this.y+i;const{dx:r,dy:o}=bs(Nt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+r,this.p2.y=this.y+o,this.line12.x=this.p1.x,this.line12.y=this.p1.y,this.line12.toX=this.p2.x,this.line12.toY=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.x=this.p2.x,this.line23.y=this.p2.y,this.line23.toX=this.p3.x,this.line23.toY=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sectorArc.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=t.x,this.tipShape.y=t.y):(this.tipShape.isShow=!1,this.tipShape.x=t.x,this.tipShape.y=t.y)}}class h0 extends Ht{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;durationTime;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.durationTime=1e3/120,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}=bs(Nt(this.startDegree),this.radius),{dx:n,dy:i}=bs(Nt(this.endDegree),this.radius);return[["m",0,0],["l",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Nt(this.startDegree),Nt(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=ca(this.x,this.y,t,e),i=De(xn(this.x,this.y,t,e));return n<=this.radius&&i>=this.startDegree&&i<=this.endDegree}}class d0 extends is{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new Ht({...t,d:[["M",10,0],["L",-10,10],["L",-5,0],["L",-10,-10],["L",10,0],["Z"]]}),this.addShape(this.ship),this.flame=new Ht({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Jo(()=>{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})}}let dh=class extends Cn{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,n=t?.max||100,i=t?.step||1,r=Km(e,n,i);this.value=r(typeof t?.defaultValue=="number"?Ve(t.defaultValue,e,n):e);const o=this.value/(n-e),a=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,h=t?.barColor||dt.colorGrayF5,d=t?.handleColor||dt.colorPrimary;this.backgroundRect=new ye({x:this.x,y:this.y,width:a,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new ye({x:this.x,y:this.y,width:a*o,height:l,borderRadius:u,attrs:{fill:d},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new Ut({x:this.x+a*o,y:this.y+u,diffXInGroup:a*o,diffYInGroup:u,radius:c,alongPath:new Ae({x:this.x,y:this.y+u,d:[["m",0,0],["l",a,0]]}),attrs:{fill:d},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",m=>{this.occupyRect.width=Ve(this.occupyRect.width+m,0,a),this.value=r((this.handle.x-this.x)/a*(n-e)+e),this.emit("change",this.value)})}};class Sn extends Cn{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 Ut({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new ye({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,diffXInGroup:-this.cornerRadius,diffYInGroup:-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),this.rightPoint=new Ut({...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(Nt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Nt(this.controlPoint.degree))*this.width}}}class ka extends Ht{extendDegree;radius;startDegree;endDegree;diffDegree;constructor(t){super(t),this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth;this.radius=e-e*Math.abs(Math.sin(Nt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Nt(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}=bs(Nt(this.startDegree),this.radius),{dx:n,dy:i}=bs(Nt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Nt(this.startDegree),Nt(this.endDegree),!1)}}let fh=class extends Cn{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,n=t?.endDegree||180,i=t?.extendDegree||15,r=t?.lineWidth||12;this.bgColor=t?.bgColor||"#B3C6E7",this.startColor=t?.startColor||"#5A82F0",this.endColor=t?.endColor||"#66B3FF",this.percent=t?.percent||0,this.indicatorLineCount=22+1;const o=20,a=2,l=17;this.ringBg=new ka({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new ka({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+o;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new ce({...t,centerX:this.ringBg.x,centerY:this.ringBg.y,x:this.ringBg.x,y:c,toX:this.ringBg.x,toY:c+l,degree:this.ringBg.startDegree+90+(n-e+i*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(a),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,n)=>{this.shapes.forEach(i=>{i!=n&&(i.x+=t,i.y+=e)})})}frameUpdate(t,e){const n=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),i=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const r=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+n,-i,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:r})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let r=0;r<this.indicatorLineCount;r++){const o=r/(this.indicatorLineCount-1)<=this.percent;this.lines[r].setAttr({stroke:o&&e?e.createLinearGradient(0,0,this.lines[r].toX-this.lines[r].x,this.lines[r].toY-this.lines[r].y,{0:this.startColor,1:this.endColor}):o?this.startColor:this.bgColor})}}};class f0 extends is{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:d,drift:m,ticks:f,colors:v,scalar:b,flat:S}=Au(n||{},{shape:ye,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}),F=Nt(l),$=Nt(c);let O=a;for(;O--;){const K=new i({x:t*r,y:e*o,width:10,height:10,scalar:b,attrs:{fill:v[O%v.length]},independentTransformInGroup:!0});this.addShape(K),this.fettis.push({shape:K,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-F+(.5*$-Math.random()*$),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,tick:0,totalTicks:f,decay:h,drift:m,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d*3,scalar:b,flat:S})}}frameUpdate(t){this.fettis.length&&(this.fettis=this.fettis.filter(e=>{e.shape.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.shape.x+10*e.scalar,e.wobbleY=e.shape.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.shape.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.shape.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);const n=e.tick++/e.totalTicks,i=e.shape.x+e.random*e.tiltCos,r=e.shape.y+e.random*e.tiltSin,o=e.wobbleX+e.random*e.tiltCos,a=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",wa(e.shape.getAttr("fill"),1-n)),e.shape.degree=De(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(o-i)*.1,e.shape.scalarY=Math.abs(a-r)*.1,e.tick<e.totalTicks}))}}class Re{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(n=>{n.run(),t?.wall&&n.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let n=0,i=e-1;n<i;n++)for(let r=n+1;r<e;r++)this.shapes[n].checkCollision(this.shapes[r])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,n)=>{e.run();for(let i=n+1;i<t;i++)e.checkCollision(this.shapes[i]),e.gravitateTo(this.shapes[i])})}springChain(t){this.shapes.forEach((e,n)=>{n>0&&e.runSpringTo(this.shapes[n-1],t)})}springConnect(t){const e=Ls(t?.springLength,100);this.shapes.forEach(n=>{n.isDragging||this.shapes.filter(i=>i.id!==n.id).forEach(i=>{const r=xn(n.x,n.y,i.x,i.y);n.runSpringTo({x:i.x-Math.cos(r)*e,y:i.y-Math.sin(r)*e},t)})})}springMass(t,e){const n=this.shapes.length,i=[];return this.shapes.forEach((r,o)=>{r.run(e),r.x>t.x+t.width?r.x=t.x:r.x<t.x&&(r.x=t.x+t.width),r.y>t.y+t.height?r.y=t.y:r.y<t.y&&(r.y=t.y+t.height);for(let a=o+1;a<n;a++)i.push([r.x,r.y,this.shapes[a].x,this.shapes[a].y,r.springMassTo(this.shapes[a],e)])}),i}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let i=0;i<t;i++){const r=this.shapes[i].initPathD();this.shapes[i].frameStart();const o=this.shapes[i+1].initPathD();this.shapes[i+1].frameStart();const a=Math.max(r.polymorphPoints.length,o.polymorphPoints.length);e[i]=Ae.getPathInterpolator(r.expendFill(a),o.expendFill(a))}const n=new Ht({d:e[0](0)});return i=>{const r=Te(t*i,6),o=Math.min(Math.floor(r),t-1),a=Te(r-o,6);n.originD=e[o](a);const l=this.shapes[o].getAttr("fill","none"),c=this.shapes[o+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&n.setAttr("fill",ah(l,c,a));const u=this.shapes[o].getAttr("stroke","none"),h=this.shapes[o+1].getAttr("stroke","none");return typeof u=="string"&&typeof h=="string"&&n.setAttr("stroke",ah(u,h,a)),n}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const n=[];this.shapes.forEach(a=>{let l;a instanceof is?(l=a,l.sortPathD()):(l=new is,l.addShape(a)),n.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),n.forEach(a=>{a!==e&&a.expendFill(e)});const i=[];n.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>{r.push(new Re(a).polymorph())});const o=new is;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}polymorphTween(t=6e3,e){const n=this.shapes.findIndex(a=>a instanceof is)>=0?this.polymorphGroup():this.polymorph(),i=n(0),r=e?.onUpdate,o=new qe({frameDuration:t});o.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(a,l)=>{n(a.t),r?.(a,l),e?.draw?.(i)}})),o.play()}static generatePointsShape(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=bs(a,n);r.push({x:t+l,y:e+c})}return new ch({points:r})}static generateRosettaShape(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=[],a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.push(new fa({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),o.push(new fa({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Ht({d:Ae.fromLines(o)})}}class ph{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 da(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:(n,i)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=i.dx,this.dragDy+=i.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let i=n.parent;for(;i;)i.emit("clicked",n),i=i.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t.usePathDtoCanvasContext||(this.ctx.translate(t.x,t.y),this.ctx.rotate(Nt(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 is&&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),tt.attrsToCanvas(this.ctx,e.getAttrs()),e.followMouse&&(!ar(e.x,this.app.mousePoint.x,5)||!ar(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e.frameUpdate(this.app.mousePoint,this.ctx),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill();const n=this.ctx.currentPath2D;if(!this.currentMouseInShape){const i=this.ctx.isPointInPath(n,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(n,this.app.mousePoint.x,this.app.mousePoint.y)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint),this.ctx.restore()}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=Vs(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,d=this.app.mousePoint.x+Math.cos(u)*h|0,m=this.app.mousePoint.y+Math.sin(u)*h|0,f=(d+m*o.width)*4;a[f]=l.r,a[f+1]=l.g,a[f+2]=l.b,a[f+3]=255}this.ctx.putImageData(o)}}});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 p0{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const m0=ct({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:dt.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),H("span",{class:"icon",style:G(["color: "+e.color])},[mt(At($m),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),Cb="",pt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},hn=pt(m0,[["__scopeId","data-v-8789b4ce"]]),g0={class:"loading-11",ref:"loading11"},y0={class:"container container-1"},v0={class:"container container-2"},_0={class:"container container-3"},b0=ct({__name:"Loading11",props:{color:{default:dt.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(N(),H("div",g0,[C("div",{class:"loading-11-inner",style:G({width:t.width,height:t.width})},[C("div",y0,[C("div",{class:"dot dot-1",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-2",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-3",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-4",style:G({backgroundColor:t.color})},null,4)]),C("div",v0,[C("div",{class:"dot dot-1",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-2",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-3",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-4",style:G({backgroundColor:t.color})},null,4)]),C("div",_0,[C("div",{class:"dot dot-1",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-2",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-3",style:G({backgroundColor:t.color})},null,4),C("div",{class:"dot dot-4",style:G({backgroundColor:t.color})},null,4)])],4)],512))}}),Sb="",Pa=pt(b0,[["__scopeId","data-v-f95fac77"]]),x0={key:0,class:"loading"},w0=ct({customOptions:{Loading11:Pa},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(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(n.borderColor),a=M(n.bgColor),l=M(n.fontColor),c=M(n.borderColor),u=M(n.bgColor);function h(O){switch(O){case"outline":o.value=n.borderColor??dt.colorPrimary,a.value=n.bgColor??dt.colorGrayFF,l.value=n.fontColor??dt.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??dt.colorPrimary,a.value=n.bgColor??dt.colorPrimary,l.value=n.fontColor??dt.colorGrayFF,c.value=o.value,u.value=a.value;break}}Et(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const d=M(n.isDisabled?"0.6":"1"),m=M(n.isDisabled?"not-allowed":"pointer");let f=!1;const v=()=>{n.isDisabled||(f=!0,o.value=hi(c.value,10),a.value=hi(u.value,10))},b=()=>{n.isDisabled||(f=!1,o.value=c.value,a.value=u.value)},S=M(!1),$=ig(()=>{n.isDisabled||S.value||(o.value=hi(c.value,-10),a.value=hi(u.value,-10),setTimeout(()=>{f?v():b()},150),i("ceClick"),i("click"),n.asyncClick&&(S.value=!0,n.asyncClick().then(()=>{S.value=!1}).catch(()=>{S.value=!1})))},500);return t({el:r}),(O,K)=>(N(),H("div",{ref_key:"el",ref:r,class:"button",style:G([`opacity: ${d.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${m.value}`,"user-select: none"]),onMouseover:v,onMouseleave:b,onClick:K[0]||(K[0]=(...st)=>At($)&&At($)(...st))},[C("label",{class:"label truncate",style:G({padding:"0 "+O.padding,cursor:m.value})},[S.value?(N(),H("div",x0,[mt(Pa,{color:l.value},null,8,["color"])])):Yt("",!0),Tt(O.$slots,"default",{},()=>[O.icon&&O.iconPosition==="left"?(N(),Gt(hn,{key:0,icon:O.icon,color:l.value,style:G({marginRight:At(dt).gap4,cursor:m.value})},null,8,["icon","color","style"])):Yt("",!0),C("span",{style:G({cursor:m.value})},St(O.label),5),O.icon&&O.iconPosition==="right"?(N(),Gt(hn,{key:1,icon:O.icon,color:l.value,style:G({marginLeft:At(dt).gap4,cursor:m.value})},null,8,["icon","color","style"])):Yt("",!0)],!0)],4)],36))}}),Tb="",ve=pt(w0,[["__scopeId","data-v-ea027c50"]]),C0=["onClick","value"],S0={class:"option-inner"},T0=ct({customOptions:{Icon:hn,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;rn(()=>{tt.setStyleSheet(`
57
57
  :root {
58
- --select-option-bg-color: ${ot.colorGrayFF};
59
- --select-option-bg-color-hover: ${ot.colorGrayF5};
58
+ --select-option-bg-color: ${dt.colorGrayFF};
59
+ --select-option-bg-color-hover: ${dt.colorGrayF5};
60
60
  }
61
- `)});const i=V(!1),r=V(e.initIndex);Dt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(F(),X("div",{class:"select",style:W(["font-size:"+l.fontSize])},[S("div",{onClick:o},[Gt(l.$slots,"button",{selectedIndex:r.value},()=>[pt(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),ks(S("div",{class:"options",style:W({border:"1px solid "+Ft(ot).colorGrayCC})},[(F(!0),X(zt,null,Ce(l.options,(u,h)=>(F(),X("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:W({borderTop:(h==0?"0":"1px")+" solid "+Ft(ot).colorGrayCC})},[S("div",Zg,[Gt(l.$slots,"default",{item:u,index:h},()=>[S("span",null,kt(u),1),h==r.value?(F(),Ie(xn,{key:0,icon:"mingcute:check-fill",class:"icon"})):qt("",!0)],!0)])],12,qg))),128))],4),[[ms,i.value]])],4))}}),P_="",Qg=ut(Kg,[["__scopeId","data-v-8bb25be3"]]),Jg=["width","height"],t0=["fill"],e0=ct({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:ot.colorGrayCC}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:t.color},null,8,t0)],8,Jg))}}),D_="",Ci=ut(e0,[["__scopeId","data-v-b1f2ae20"]]),s0={class:"button-default"},n0={class:"truncate"},i0=["onClick","value"],r0=ct({customOptions:{SVGDown:Ci},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:ot.colorGrayFF},hoverColor:{default:ot.colorGrayF5},selectedColor:{default:ot.colorPrimary},fontColor:{default:ot.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;Bs(()=>{H.setStyleSheet(`
61
+ `)});const i=M(!1),r=M(e.initIndex);Et(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(N(),H("div",{class:"select",style:G(["font-size:"+l.fontSize])},[C("div",{onClick:o},[Tt(l.$slots,"button",{selectedIndex:r.value},()=>[mt(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),sn(C("div",{class:"options",style:G({border:"1px solid "+At(dt).colorGrayCC})},[(N(!0),H(Lt,null,ge(l.options,(u,h)=>(N(),H("div",{onClick:d=>a(h),class:"option",key:h,value:h,style:G({borderTop:(h==0?"0":"1px")+" solid "+At(dt).colorGrayCC})},[C("div",S0,[Tt(l.$slots,"default",{item:u,index:h},()=>[C("span",null,St(u),1),h==r.value?(N(),Gt(hn,{key:0,icon:"mingcute:check-fill",class:"icon"})):Yt("",!0)],!0)])],12,C0))),128))],4),[[As,i.value]])],4))}}),Eb="",E0=pt(T0,[["__scopeId","data-v-8bb25be3"]]),k0=["width","height"],P0=["fill"],O0=ct({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:dt.colorGrayCC}},setup(s){const t=s;return(e,n)=>(N(),H("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("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,P0)],8,k0))}}),kb="",di=pt(O0,[["__scopeId","data-v-b1f2ae20"]]),I0={class:"button-default"},M0={class:"truncate"},D0=["onClick","value"],R0=ct({customOptions:{SVGDown:di},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:dt.colorGrayFF},hoverColor:{default:dt.colorGrayF5},selectedColor:{default:dt.colorPrimary},fontColor:{default:dt.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;rn(()=>{tt.setStyleSheet(`
62
62
  :root {
63
63
  --select-option-bg-color: ${e.bgColor};
64
64
  --select-option-bg-color-hover: ${e.hoverColor};
65
65
  }
66
- `)});const i=V(!1),r=V(e.initIndex);Dt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=V("rotate(-180deg)");return Ql(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),X("div",{class:"select-absolute",style:W({fontSize:e.fontSize,backgroundColor:e.bgColor})},[S("div",{class:"select-absolute-button",onClick:o},[Gt(c.$slots,"button",{selectedIndex:r.value},()=>[S("div",s0,[S("div",n0,kt(c.options[r.value]),1),pt(Ci,{class:"icon-down",width:"20px",style:W({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),S("div",{class:"options",style:W({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(F(!0),X(zt,null,Ce(c.options,(h,f)=>(F(),X("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Gt(c.$slots,"default",{item:h,index:f},()=>[S("div",{class:"option-default",style:W({color:r.value==f?e.selectedColor:e.fontColor})},kt(h),5)],!0)],8,i0))),128))],4)],4))}}),I_="",o0=ut(r0,[["__scopeId","data-v-5096cb20"]]),a0=ct({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ot.colorPrimary},colorBgOn:{default:ot.colorGrayEF},colorBgOff:{default:ot.colorGrayF5}},emits:["change"],setup(s,{emit:t}){const e=s,n=Ws(e.width),i=Ws(e.height),r=Ws(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-Ws(a).number-Ws(o).number+n.suffix,c=t,u=V(e.init);Dt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(F(),X("div",{class:"switch",onClick:h,style:W(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[S("span",{class:"round",style:W(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Ft(vi)(e.colorPrimary,30)),"transform: translate("+(u.value?l:Ft(a))+", 0)"])},null,4)],4))}}),N_="",l0=ut(a0,[["__scopeId","data-v-45b7e06e"]]),c0=["onClick"],u0=["stroke","fill"],h0=["stroke","fill"],d0=["stroke"],f0=ct({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=V(e.initIndex??0);Dt(i,function(){n("change",e.options[i.value])});const r=function(o){e.disabledIndexs&&e.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(F(!0),X(zt,null,Ce(o.options,(l,c)=>(F(),X("div",{class:ye(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:W(["margin-left:"+(c>0?e.itemPadding:0)])},[Gt(o.$slots,"default",{label:l,index:c},()=>[(F(),X("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:W(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?qt("",!0):(F(),X("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i)==c?o.colorBgSelected:o.colorBg},null,8,u0)),e.isRounded?(F(),X("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i)==c?o.colorBgSelected:o.colorBg},null,8,h0)):qt("",!0),Ft(i)==c?(F(),X("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,d0)):qt("",!0)],4)),S("span",{style:W(["font-size:"+e.fontSize])},kt(l),5)],!0)],14,c0))),128))}}),M_="",Da=ut(f0,[["__scopeId","data-v-15ba52e8"]]),p0=["onClick"],m0=["stroke","fill"],g0=["stroke","fill"],y0=["stroke"],v0=ct({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=Pe(e.initIndexs??[]);Dt(i,function(){n("change",i.map(o=>e.options[o]))});const r=function(o){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(F(!0),X(zt,null,Ce(o.options,(l,c)=>(F(),X("div",{class:ye(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:W(["margin-left:"+(c>0?e.itemPadding:0)])},[Gt(o.$slots,"default",{label:l,index:c},()=>[(F(),X("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:W(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?qt("",!0):(F(),X("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,m0)),e.isRounded?(F(),X("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,g0)):qt("",!0),Ft(i).findIndex(u=>u===c)>=0?(F(),X("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,y0)):qt("",!0)],4)),S("span",{style:W(["font-size:"+e.fontSize])},kt(l),5)],!0)],14,p0))),128))}}),A_="",Mr=ut(v0,[["__scopeId","data-v-96939a11"]]),_0=["width","height"],b0=["fill"],x0=["fill"],w0=["fill"],S0=ct({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ot.colorRed}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12ZM19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z",fill:t.color},null,8,b0),S("path",{d:"M12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4665 15.4946 11.4665 15.2001L11.4665 10.9334C11.4665 10.6388 11.7053 10.4001 11.9999 10.4001C12.2944 10.4001 12.5332 10.6388 12.5332 10.9334L12.5332 15.2001Z",fill:t.color},null,8,x0),S("path",{d:"M12.5332 8.80006C12.5332 9.09462 12.2944 9.3334 11.9999 9.3334C11.7053 9.3334 11.4665 9.09462 11.4665 8.80006C11.4665 8.50551 11.7053 8.26673 11.9999 8.26673C12.2944 8.26673 12.5332 8.50551 12.5332 8.80006Z",fill:t.color},null,8,w0)],8,_0))}}),R_="",sh=ut(S0,[["__scopeId","data-v-41294f60"]]),C0={class:"wrap"},E0=["type","required"],k0={class:"ellipsis"},T0={key:1,style:{}},O0=ct({customOptions:{SVGPrompt:sh},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ot.colorPrimary},errorColor:{default:ot.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(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=V(!1),l=V(""),c=V("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),d()}function f(m){c.value=m.target.value,d()}function d(){if(c.value&&n.validator){const m=n.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return re(()=>{}),t({}),(m,v)=>(F(),X("div",C0,[S("input",{type:n.type,required:n.required,autocomplete:"off",style:W({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value?n.bgColor:"transparent",transition:n.duration+"ms"}),class:ye([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,E0),S("div",{class:"placeholder",style:W({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderJump?"":n.duration+"ms",transform:n.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(F(),X("div",{key:0,style:W({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[pt(sh,{class:"icon"}),S("div",k0,kt(l.value),1)],4)):qt("",!0),!l.value&&!n.placeholderJump?(F(),X("div",T0,kt(n.placeholder),1)):qt("",!0),!l.value&&n.placeholderJump?(F(!0),X(zt,{key:2},Ce(Ft(r),(_,E)=>(F(),X("span",{key:E,style:W({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*E}ms`,transform:a.value||c.value?`translateX(${100*E}%) translateY(-100%)`:`translateX(${100*E}%)`}),class:"single"},kt(_),5))),128)):qt("",!0)],4),S("div",{class:"bg",style:W({transition:n.duration+"ms",backgroundColor:a.value||c.value?"transparent":n.bgColor,height:a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)]))}}),$_="",P0=ut(O0,[["__scopeId","data-v-e02afc20"]]),D0=["max","min","step","value","autofocus"],I0={key:0,class:"label"},N0=ct({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:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(n.defaultValue),o=V(qe((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=qe(u.target.value,2),o.value=qe((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
66
+ `)});const i=M(!1),r=M(e.initIndex);Et(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=M("rotate(-180deg)");return Jl(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(N(),H("div",{class:"select-absolute",style:G({fontSize:e.fontSize,backgroundColor:e.bgColor})},[C("div",{class:"select-absolute-button",onClick:o},[Tt(c.$slots,"button",{selectedIndex:r.value},()=>[C("div",I0,[C("div",M0,St(c.options[r.value]),1),mt(di,{class:"icon-down",width:"20px",style:G({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),C("div",{class:"options",style:G({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(N(!0),H(Lt,null,ge(c.options,(h,d)=>(N(),H("div",{onClick:m=>a(d),class:"option",key:d,value:d},[Tt(c.$slots,"default",{item:h,index:d},()=>[C("div",{class:"option-default",style:G({color:r.value==d?e.selectedColor:e.fontColor})},St(h),5)],!0)],8,D0))),128))],4)],4))}}),Pb="",N0=pt(R0,[["__scopeId","data-v-5096cb20"]]),A0=ct({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:dt.colorPrimary},colorBgOn:{default:dt.colorGrayEF},colorBgOff:{default:dt.colorGrayF5}},emits:["change"],setup(s,{emit:t}){const e=s,n=ys(e.width),i=ys(e.height),r=ys(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-ys(a).number-ys(o).number+n.suffix,c=t,u=M(e.init);Et(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(d,m)=>(N(),H("div",{class:"switch",onClick:h,style:G(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[C("span",{class:"round",style:G(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:At(hi)(e.colorPrimary,30)),"transform: translate("+(u.value?l:At(a))+", 0)"])},null,4)],4))}}),Ob="",L0=pt(A0,[["__scopeId","data-v-45b7e06e"]]),F0=["onClick"],$0=["stroke","fill"],V0=["stroke","fill"],G0=["stroke"],Y0=ct({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:dt.colorGrayFF},colorBgSelected:{default:dt.colorPrimary},colorBgDisabled:{default:dt.colorGrayCC},colorBorder:{default:dt.colorGrayCC},colorBorderSelected:{default:dt.colorPrimary},colorBorderDisabled:{default:dt.colorGrayCC},colorPath:{default:dt.colorGrayFF},colorPathDisabled:{default:dt.colorGrayFF},fontSize:{default:dt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=M(e.initIndex??0);Et(i,function(){n("change",e.options[i.value])});const r=function(o){e.disabledIndexs&&e.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(N(!0),H(Lt,null,ge(o.options,(l,c)=>(N(),H("div",{class:Jt(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:G(["margin-left:"+(c>0?e.itemPadding:0)])},[Tt(o.$slots,"default",{label:l,index:c},()=>[(N(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:G(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Yt("",!0):(N(),H("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:At(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:At(i)==c?o.colorBgSelected:o.colorBg},null,8,$0)),e.isRounded?(N(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:At(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:At(i)==c?o.colorBgSelected:o.colorBg},null,8,V0)):Yt("",!0),At(i)==c?(N(),H("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,G0)):Yt("",!0)],4)),C("span",{style:G(["font-size:"+e.fontSize])},St(l),5)],!0)],14,F0))),128))}}),Ib="",Oa=pt(Y0,[["__scopeId","data-v-c6c82238"]]),B0=["onClick"],z0=["stroke","fill"],X0=["stroke","fill"],j0=["stroke"],H0=ct({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:dt.colorGrayFF},colorBgSelected:{default:dt.colorPrimary},colorBgDisabled:{default:dt.colorGrayCC},colorBorder:{default:dt.colorGrayCC},colorBorderSelected:{default:dt.colorPrimary},colorBorderDisabled:{default:dt.colorGrayCC},colorPath:{default:dt.colorGrayFF},colorPathDisabled:{default:dt.colorGrayFF},fontSize:{default:dt.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=Zt(e.initIndexs??[]);Et(i,function(){n("change",i.map(o=>e.options[o]))});const r=function(o){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(N(!0),H(Lt,null,ge(o.options,(l,c)=>(N(),H("div",{class:Jt(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:G(["margin-left:"+(c>0?e.itemPadding:0)])},[Tt(o.$slots,"default",{label:l,index:c},()=>[(N(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:G(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Yt("",!0):(N(),H("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:At(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:At(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,z0)),e.isRounded?(N(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:At(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:At(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,X0)):Yt("",!0),At(i).findIndex(u=>u===c)>=0?(N(),H("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,j0)):Yt("",!0)],4)),C("span",{style:G(["font-size:"+e.fontSize])},St(l),5)],!0)],14,B0))),128))}}),Mb="",Cr=pt(H0,[["__scopeId","data-v-22ae8adc"]]),U0=["width","height"],W0=["fill"],q0=["fill"],Z0=["fill"],K0=ct({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:dt.colorRed}},setup(s){const t=s;return(e,n)=>(N(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("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,W0),C("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,q0),C("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,Z0)],8,U0))}}),Db="",mh=pt(K0,[["__scopeId","data-v-41294f60"]]),Q0={class:"input"},J0=["type","required"],ty={class:"ellipsis"},ey={key:1,style:{}},sy=ct({customOptions:{SVGPrompt:mh},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:dt.colorPrimary},errorColor:{default:dt.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(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=M(!1),l=M(""),c=M("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),m()}function d(f){c.value=f.target.value,m()}function m(){if(c.value&&n.validator){const f=n.validator(c.value);if(!f.valid){l.value=f.errors[0];return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return ue(()=>{}),t({}),(f,v)=>(N(),H("div",Q0,[C("input",{class:Jt(["input-raw",a.value||c.value?"focus":"blur"]),type:n.type,required:n.required,autocomplete:"off",style:G({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value?n.bgColor:"transparent",transition:n.duration+"ms"}),onFocus:u,onBlur:h,onInput:d,onChange:d},null,46,J0),C("div",{class:"placeholder",style:G({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderJump?"":n.duration+"ms",transform:n.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(N(),H("div",{key:0,style:G({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[mt(mh,{class:"icon"}),C("div",ty,St(l.value),1)],4)):Yt("",!0),!l.value&&!n.placeholderJump?(N(),H("div",ey,St(n.placeholder),1)):Yt("",!0),!l.value&&n.placeholderJump?(N(!0),H(Lt,{key:2},ge(At(r),(b,S)=>(N(),H("span",{key:S,style:G({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*S}ms`,transform:a.value||c.value?`translateX(${100*S}%) translateY(-100%)`:`translateX(${100*S}%)`}),class:"single"},St(b),5))),128)):Yt("",!0)],4),C("div",{class:"bg",style:G({transition:n.duration+"ms",backgroundColor:a.value||c.value?"transparent":n.bgColor,height:a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)]))}}),Rb="",ny=pt(sy,[["__scopeId","data-v-205aa39b"]]),iy=["max","min","step","value","autofocus"],ry={key:0,class:"label"},oy=ct({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:dt.colorPrimary},barColor:{default:dt.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=M(Te((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=Te(u.target.value,2),o.value=Te((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
67
67
  :root {
68
68
  --input-range-color: ${n.color};
69
69
  --input-range-thumb-size: ${n.handleSize};
@@ -74,32 +74,14 @@ Expected function or array of functions, received type ${typeof s}.`),ae)}functi
74
74
  --input-range-thumb-size: ${n.handleSize};
75
75
  --input-range-track-size: ${n.barHeight};
76
76
  }
77
- `,c=V();return Dt(c,()=>{c.value&&H.setStyleSheet(l,c.value)}),re(()=>{}),t({}),(u,h)=>(F(),X("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[S("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:W({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,D0),u.showValue?(F(),X("label",I0,kt(r.value)+kt(n.unit),1)):qt("",!0)],512))}}),V_="",Js=ut(N0,[["__scopeId","data-v-75b06946"]]),M0=ct({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V();Dt(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new me(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new Cg(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return re(()=>{o?.destroy()}),t({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(F(),X("div",{ref_key:"svgRef",ref:r,class:"svg",style:W({backgroundColor:n.bgColor})},null,4))}}),L_="",Ar=ut(M0,[["__scopeId","data-v-933ab3a5"]]),A0={class:"input-range-svg"},R0={key:0,class:"label"},$0=ct({customOptions:{SVG:Ar},inheritAttrs:!0,__name:"InputRangeSvg",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(n.defaultValue),o=f=>{r.value=f,i("change",f)},a=Ws(n.handleSize,20).number;let l;const c=()=>{l=new th({x:0,y:a*.5,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:u,handleSize:a,autoRender:!0}),l.on("change",o)};let u=0;const h=V();return Dt(h,()=>{h.value&&h.value.getSVG().then(f=>{u=f.app.width,f.clear(),c(),f.path(l),f.app.on("resize",d=>{u=d,f.clear(),c(),f.path(l)})})}),re(()=>{}),t({}),(f,d)=>(F(),X("div",A0,[S("div",{class:"input",style:W({height:n.handleSize})},[pt(Ar,{ref_key:"svgRef",ref:h},null,512)],4),f.showValue?(F(),X("div",R0,kt(r.value)+kt(n.unit),1)):qt("",!0)]))}}),F_="",V0=ut($0,[["__scopeId","data-v-1360472b"]]),L0=["width","height"],F0=["fill"],G0=ct({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[S("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,F0)],8,L0))}}),G_="",Ia=ut(G0,[["__scopeId","data-v-4747d4a7"]]),z0=ct({customOptions:{SVGDelete:Ia},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:ot.colorGrayFF},deleteColor:{default:ot.colorRed},fontColor:{default:ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(!1),o=()=>{i("delete"),r.value=!1};let a;const l=V();return Dt(l,()=>{l.value&&(a=new me(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),re(()=>{a?.destroy()}),t({}),(c,u)=>(F(),X("div",{class:"parent",ref_key:"item",ref:l,style:W({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[S("div",{class:"content",style:W({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[Gt(c.$slots,"default",{},void 0,!0)],4),S("div",{class:"delete",onClick:o,style:W({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[pt(Ia,{color:n.fontColor},null,8,["color"])],4)],4))}}),z_="",j0=ut(z0,[["__scopeId","data-v-244215c2"]]),B0=s=>{const t={};for(const e of s.attributes)t[e.name]=e.value;return t},Y0={class:"overlay-content",style:W(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},X0=ct({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Er(ot.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=V();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 Dt(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),t({}),(o,a)=>n.visible?(F(),X("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:W([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[S("div",Y0,[Gt(o.$slots,"default",{},void 0,!0)])],4)):qt("",!0)}}),j_="",Vn=ut(X0,[["__scopeId","data-v-fbdcceee"]]),H0=(s=>(On("data-v-0dd2379f"),s=s(),Pn(),s))(()=>S("div",null,null,-1)),U0=ct({customOptions:{Overlay:Vn},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:t,emit:e}){const n=s,i=e,r=V();let o;const a=Pe({}),l=Pe({});function c(){switch(di(a),di(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}}Dt(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new fe,h=(E=!0)=>{!o||!r.value||(E?(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()}}))};Dt(r,()=>{r.value&&h(!0)},{});const f=V(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function _(E){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(E.target)&&n.closeWhenClickOverlay&&v():r.value&&!r.value.contains(E.target)&&n.closeWhenClickOverlay&&m()}return t({open:d,close:m}),(E,D)=>(F(),Ie(Vn,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:he(()=>[S("div",{class:"pop-parent",style:W([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[S("div",{ref_key:"pop",ref:r,class:"pop",style:W([{position:"absolute","z-index":"3000"},l])},[Gt(E.$slots,"default",{},()=>[H0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),Y_="",Qe=ut(U0,[["__scopeId","data-v-0dd2379f"]]),W0={class:"dialog-parent"},q0={key:0,class:"title"},Z0={key:0,class:"title-inner truncate"},K0={class:"custom-content"},Q0={class:"custom-content-default"},J0={key:1,class:"btns"},ty=ct({customOptions:{Overlay:Vn,Pop:Qe,Icon:xn,Button:ve},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:t,emit:e}){const n=s,i=e,r=V(),o=V(""),a=V(""),l=V(!1),c=V(""),u=V("");let h,f,d;function m(D){o.value=D?.title||"",a.value=D?.content||"",l.value=typeof D?.showClose=="boolean"?D?.showClose:!1,c.value=D?.cancelText||"",u.value=D?.confirmText||"",r.value.open(),h=D?.onClose,f=D?.onCancel,d=D?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function _(){v(),f?.(),i("cancel")}function E(){v(),d?.(),i("confirm")}return t({open:m,close:v}),(D,N)=>(F(),Ie(Qe,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:he(()=>[S("div",W0,[S("div",{class:"dialog",style:W({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(F(),X("div",q0,[o.value?(F(),X("div",Z0,kt(o.value),1)):qt("",!0),l.value?(F(),X("div",{key:1,class:"close",onClick:v},[pt(xn,{icon:"ic:baseline-close",color:Ft(ot).colorGrayCC},null,8,["color"])])):qt("",!0)])):qt("",!0),S("div",K0,[Gt(D.$slots,"default",{},()=>[S("div",Q0,kt(a.value),1)],!0)]),c.value||u.value?(F(),X("div",J0,[c.value?(F(),Ie(ve,{key:0,onClick:_,class:"btn",bgColor:Ft(ot).colorGrayE6,borderColor:Ft(ot).colorGrayE6,fontColor:Ft(ot).colorGray33,borderRadius:"0"},{default:he(()=>[Kt(kt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):qt("",!0),u.value?(F(),Ie(ve,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:he(()=>[Kt(kt(u.value),1)]),_:1})):qt("",!0)])):qt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),X_="",Ei=ut(ty,[["__scopeId","data-v-6bd255c9"]]),ey={class:"toast"},sy={class:"content"},ny=ct({customOptions:{Overlay:Vn,Pop:Qe,Dialog:Ei},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(F(),Ie(Ei,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:he(()=>[S("div",ey,[S("div",sy,kt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),H_="",nh=ut(ny,[["__scopeId","data-v-50ed852e"]]),iy={class:"loading-8"},ry={viewBox:"25 25 50 50"},oy=ct({__name:"Loading8",props:{color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("div",iy,[(F(),X("svg",ry,[S("circle",{cx:"50",cy:"50",r:"20",style:W(["stroke: "+t.color])},null,4)]))]))}}),U_="",Na=ut(oy,[["__scopeId","data-v-e5e3cf4c"]]),ay={class:"loading"},ly={class:"icon"},cy={style:{width:"8em"}},uy={key:0,class:"content"},hy=ct({customOptions:{Overlay:Vn,Pop:Qe,Dialog:Ei,Loading8:Na},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(F(),Ie(Ei,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:he(()=>[S("div",ay,[S("div",ly,[Gt(c.$slots,"default",{},()=>[S("div",cy,[pt(Na)])],!0)]),o.value?(F(),X("div",uy,kt(o.value),1)):qt("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),W_="",dy=ut(hy,[["__scopeId","data-v-cb469a6c"]]),Ma=s=>(On("data-v-85491020"),s=s(),Pn(),s),fy=[Ma(()=>S("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Ma(()=>S("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Ma(()=>S("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],py=ct({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{style:W(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},fy,4))}}),Q_="",Rr=ut(py,[["__scopeId","data-v-85491020"]]),my=["data-number"],gy=["data-number","data-unactive"],yy=["data-number"],vy=["data-number","data-unactive"],_y=ct({customOptions:{Pop:Qe,SVGCleanUp:Rr},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(0),a=Pe([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&u()}Dt(()=>[...n.initPlates],()=>{fi(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=E=>{if(E.target.dataset.unactive||"")return;let N=E.target.dataset.number;N&&(a.push(N),l(),i("plates",a))};t({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"],_=["港","澳","学","警","使","领","挂","应","急"];return(E,D)=>(F(),Ie(Qe,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:he(()=>[S("div",{class:"popup-plate",style:W({paddingBottom:Ft(ot).safeAreaBottom})},[S("div",null,[S("div",{onClick:u},"关闭")]),S("div",{class:ye(["step",o.value==0?"":"hide"])},[(F(),X(zt,null,Ce(d,N=>S("div",{key:N,class:"popitem",onClick:f,"data-number":N},kt(N),9,my)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[pt(Rr,{width:"16px"})])],2),S("div",{class:ye(["step",o.value!=0?"":"hide"])},[(F(),X(zt,null,Ce(m,N=>S("div",{key:N,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":o.value!=2?"unactive":""},kt(N),11,gy)),64)),(F(),X(zt,null,Ce(v,N=>S("div",{key:N,class:"popitem",onClick:f,"data-number":N},kt(N),9,yy)),64)),(F(),X(zt,null,Ce(_,N=>S("div",{key:N,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":o.value!=2?"unactive":""},kt(N),11,vy)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[pt(Rr,{width:"16px"})])],2)],4)]),_:1},512))}}),J_="",ih=ut(_y,[["__scopeId","data-v-bade3529"]]),rh=document.getElementById("teleport")||document.documentElement;function oh(s,t){{const e=Ge(nh,{});hr(e,rh),e.component?.exposed?.open(s,t)}}function by(s,t="bottom"){let e;s instanceof HTMLElement?e=Ge(Qe,{directionFrom:t},()=>Ge("div",{...B0(s),innerHTML:s.innerHTML})):e=Ge(Qe,{directionFrom:t},()=>s),hr(e,document.getElementById("teleport")||document.documentElement),e.component?.exposed?.open();const n=()=>{e.component?.exposed?.close()};return n.vnode=e,n}function xy(s){return by(s,"absolute")}function wy(s){{const t=Ge(ih,s);return hr(t,rh),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Sy={class:"content"},Cy=ct({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(!1),a=Pe({});let l=Pe({}),c=Pe({}),u=1,h;Dt(r,()=>{!r.value||h||(d(),h=new me(r.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const _=Math.min(m,v);c.width=l.width=_+"px",c.height=l.height=_+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,d()}),h.start())});function f(){H.copyToClipboard(H.getInnerText(r.value)).then(()=>{oh("复制成功")}).catch(m=>{oh(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?`
78
- inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
79
- inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
80
- inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
81
- inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)`:`
82
- inset ${l.width} 0 0 ${Ks(n.coverColor,.2)},
83
- inset 0 ${l.width} 0 ${Ks(n.coverColor,.2)},
84
- inset -${l.width} 0 0 ${Ks(n.coverColor,.2)},
85
- inset 0 -${l.width} 0 ${Ks(n.coverColor,.2)}`,l.transition="box-shadow 0.75s";break}}return re(()=>{h?.destroy()}),t({}),(m,v)=>(F(),X("div",{ref_key:"mouseOverContainer",ref:r,class:"mouse-over",style:W(a),onClick:f},[S("div",{class:"before",style:W({backgroundColor:n.coverColor,...Ft(l)})},null,4),S("div",Sy,[Gt(m.$slots,"default",{},void 0,!0)]),S("div",{class:"after",style:W({backgroundColor:n.coverColor,...Ft(c)})},null,4)],4))}}),tb="",eb="",Ey=ut(Cy,[["__scopeId","data-v-fe4ebfe5"]]),ky=ct({customOptions:{SVGDown:Ci},inheritAttrs:!0,__name:"Accordion",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:t,emit:e}){const n=s,i=e,r=V(Number.MAX_SAFE_INTEGER+"px"),o=V(),a=V(!0);let l;Dt(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new me(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=V("rotate(0deg)");return Ql(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),re(()=>{l?.destroy()}),t({}),(h,f)=>(F(),X("div",{class:"wrap",style:W({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[S("div",{class:"title",onClick:c,style:W({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}`})},[Gt(h.$slots,"title",{},()=>[Kt("title")],!0),pt(Ci,{class:"arrow",style:W({transition:`transform ${n.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),S("div",{ref_key:"content",ref:o,class:"content",style:W({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[Gt(h.$slots,"content",{},void 0,!0)],4)],4))}}),sb="",Ty=ut(ky,[["__scopeId","data-v-9ced806f"]]),Oy=ct({__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(s,{expose:t,emit:e}){const n=s,i=e,r=V(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);fe.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 t({start:o,goto:a}),(l,c)=>(F(),X("div",{class:"wrap",style:W({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[S("div",{class:"bar",style:W({width:r.value+"%",backgroundColor:n.progressColor})},kt(n.showText?r.value+"%":""),5)],4))}}),nb="",ki=ut(Oy,[["__scopeId","data-v-77dcb1dd"]]),Py=["width","height"],Dy=["src","type"],Iy={class:"bar-wrap"},Ny=ct({customOptions:{ProgressBar:ki},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const n=s;function i(){fe.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{o.value?.start()},onUpdate:l=>{o.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const r=V(),o=V();Dt(r,()=>{r.value&&(r.value.addEventListener("play",i),n.autoplay&&ma.tryAutoPlayOrAutoPlayAfterClick(r.value))}),re(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return t({play:a}),(l,c)=>(F(),X("div",{class:"wrap",style:W({width:n.width,height:n.height}),onClick:a},[S("video",{ref_key:"video",ref:r,width:n.width,height:n.height,preload:"metadata"},[S("source",{src:n.src,type:n.type},null,8,Dy)],8,Py),S("div",Iy,[pt(ki,{ref_key:"bar",ref:o,width:n.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),ib="",My=ut(Ny,[["__scopeId","data-v-2bcf5d2e"]]),Ay=ct({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(),a=V(0),l=V(0),c=V(0),u=V(0),h=V(1),f=V(0),d=V(0);hg(n.src).then(tt=>{c.value=tt.width,u.value=tt.height,h.value=tt.aspectRatio,D()});let m;Dt(r,()=>{r.value&&(m=new me(r.value,!1),m.on("resize",(tt,R)=>{a.value=tt,l.value=R,D()}),m.start())});let v=!1;const _={x:0,y:0,width:0,height:0};let E;function D(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(n.mode){case"aspectFit":h.value>=1?(f.value=a.value,d.value=f.value/h.value,d.value>l.value&&(d.value=l.value,f.value=d.value*h.value)):(d.value=l.value,f.value=d.value*h.value,f.value>a.value&&(f.value=a.value,d.value=f.value/h.value));break;case"aspectFill":h.value>=1?(d.value=l.value,f.value=d.value*h.value):(f.value=a.value,d.value=f.value/h.value);break;case"widthFix":f.value=a.value,d.value=f.value/h.value;break;case"heightFix":d.value=l.value,f.value=d.value*h.value;break;case"scaleToFill":default:f.value=a.value,d.value=l.value;break}$l(()=>{const tt=o.value.getBoundingClientRect();i("settled",tt.x,tt.y,f.value,d.value),v&&E(_.x,_.y,_.width,_.height)})}}function N(tt,R,U,vt){const bt=($t,se,ne,ue,Yt,xt,wt,it,q)=>{if(!Yt||!xt||!wt||!it){const $=Rt.vnode.el.getBoundingClientRect(),Ut=$.width,ge=$.height;let Ae=0,Re=0;h.value>=1?(Ae=Ut,Re=Ae/h.value,Re>ge&&(Re=ge,Ae=Re*h.value)):(Re=ge,Ae=Re*h.value,Ae>Ut.value&&(Ae=Ut.value,Re=Ae/h.value)),Yt=(Ut-Ae)/2,xt=(ge-Re)/2,wt=Ae,it=Re}const Et=200;fe.toTween({left:$t,top:se,width:ne,height:ue},{left:Yt,top:xt,width:wt,height:it},{duration:Et,onStart(){},onUpdate($){Ct.el.style.left=$.left+"px",Ct.el.style.top=$.top+"px",Ct.el.style.width=$.width+"px",Ct.el.style.height=$.height+"px"},onComplete($){_.x=$.left,_.y=$.top,_.width=$.width,_.height=$.height,q?.()}}).startAuto()},Ct=Ge("div",{style:`
86
- position:absolute;
87
- left:${tt}px;
88
- top:${R}px;
89
- width: ${U}px;
90
- height: ${vt}px;
91
- background-image: url(${n.src});
92
- background-repeat: no-repeat;
93
- background-position: center center;
94
- background-size: 100% 100%`,onVnodeMounted:()=>{bt(tt,R,U,vt)}}),Rt=xy(Ge("div",{style:`
95
- position:absolute;
96
- width: 100%;
97
- height: 100%;
98
- background-color: transparent;
99
- display: flex;
100
- justify-content: center;
101
- align-items: center;
102
- `,onClick:()=>{const{x:$t,y:se,width:ne,height:ue}=o.value.getBoundingClientRect();bt(_.x,_.y,_.width,_.height,$t,se,ne,ue,()=>{Rt(),v=!1})}},Ct));return bt}function k(){if(!r.value||!n.openImageViewWhenClick)return;v=!0;const{x:tt,y:R,width:U,height:vt}=o.value.getBoundingClientRect();E=N(tt,R,U,vt)}return re(()=>{m?.destroy()}),t({}),(tt,R)=>(F(),X("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:W({backgroundColor:n.bgColor}),onClick:k},[S("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:W({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),ob="",Aa=ut(Ay,[["__scopeId","data-v-34d166d5"]]),Ry=ct({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V();let o=[],a;const l=new fe;let c=0,u=!1;const h={};function f(){switch(di(h),n.direction){case"none":a="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":a="slideDown";break;case"leftToRight":a="slideRight";break;case"rightToLeft":a="slideLeft";break;case"bottomToTop":a="slideUp";break}}f();function d(){r.value&&(hr(Ge("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(R=>Ge("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Ge(R.component,{...R.attributes,style:{...R.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=R=>{if(!(!a||u||!o.length)){if(u=!0,R.push&&(c=o.length-1),R.pop){if(!o.length){u=!1;return}c=o.length-1}if(R.reset&&(c=0),R.forward){if(c>=o.length-1){u=!1;return}c++}if(R.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:n.easeName,dur:R?.dur??n.duration,direction:R.back||R.pop?"reverse":"normal",onComplete:()=>{(R.back||R.pop)&&c--,R.pop&&(o.pop(),d()),i("finish",c),u=!1,R?.onComplete?.()}},c)}};function v(R=[],U){o=[],R.forEach(vt=>o.push({component:vt.component,attributes:vt.attributes??{}})),d(),m({reset:!0,onComplete:U})}function _(R,U={}){o.push({component:R,attributes:U}),d(),m({push:!0})}function E(){m({pop:!0})}function D(){m({forward:!0})}function N(){m({back:!0})}function k(R,U){R>o.length-1||R<0||R==c||(U||(U=n.duration/Math.abs(R-c)),c<R?m({forward:!0,dur:U,onComplete:()=>{setTimeout(()=>{k(R,U)})}}):m({back:!0,dur:U,onComplete:()=>{setTimeout(()=>{k(R,U)})}}))}function tt(){d(),m({resize:!0})}return Bs(()=>{me.page.on("resize",tt)}),re(()=>{me.page.off("resize",tt)}),t({reset:v,push:_,pop:E,forward:D,back:N,goto:k}),(R,U)=>(F(),X("div",{ref_key:"routesContainerRef",ref:r,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),ab="",ah=ut(Ry,[["__scopeId","data-v-e9c68065"]]),$y={style:{position:"absolute",width:"100%",height:"100%"}},Vy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Ly=ct({customOptions:{Image:Aa},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(s,{expose:t,emit:e}){const n=s,i=V(),r=V(),o=V(),a=V(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}Dt(r,()=>{r.value&&(l?.destroy(),l=new me(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),Dt(o,()=>{o.value&&o.value.reset(n.urls.map(m=>({component:Ge("div",{style:"position:absolute;width:100%;height:100%"},Ge(Aa,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return re(()=>{l?.destroy()}),t({open:f,close:d}),(m,v)=>(F(),Ie(Qe,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:he(()=>[S("div",$y,[n.urls.length>1?(F(),X("div",Vy,kt(a.value+1)+" / "+kt(n.urls.length),1)):qt("",!0),S("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[pt(ah,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),lb="",Fy=ut(Ly,[["__scopeId","data-v-be51d205"]]),cb="",Gy={class:"page"},zy={class:"header"},jy={class:"main"},By={class:"main-scroll"},Yy={class:"footer"},Xy=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return qm(s.designWidth),t({}),(i,r)=>(F(),X("div",Gy,[S("header",zy,[Gt(i.$slots,"header",{},void 0,!0)]),S("div",jy,[S("div",By,[Gt(i.$slots,"main",{},void 0,!0)])]),S("footer",Yy,[Gt(i.$slots,"footer",{},void 0,!0)])]))}}),ub="",Hy=ut(Xy,[["__scopeId","data-v-3904d6b5"]]),Uy=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=Pe({}),r=Pe({});function o(){switch(di(i),di(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(),re(()=>{}),t({}),(a,l)=>(F(),X("div",{class:"layout-center",style:W(i)},[S("div",{style:W(r)},[Gt(a.$slots,"default",{},void 0,!0)],4)],4))}}),hb="",Wy=ut(Uy,[["__scopeId","data-v-a768b36f"]]),qy=(s=>(On("data-v-d02782ac"),s=s(),Pn(),s))(()=>S("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Zy=ct({customOptions:{Pop:Qe,Button:ve},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const t=s,e=V(),n=V(),i=V(),r=Pe({left:"0",top:"0"});Dt(n,()=>{o()}),Dt(i,()=>{o()});function o(){if(!n.value||!i.value)return;const l=Fu(),c=n.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+t.gap,m=c.y;d=Math.max(t.gap,Math.min(d,l.width-h-t.gap)),m=Math.max(t.gap,Math.min(m,l.height-f-t.gap)),r.left=`${d}px`,r.top=`${m}px`}function a(){e.value.open()}return(l,c)=>(F(),X(zt,null,[S("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[Gt(l.$slots,"button",{},()=>[pt(ve,null,{default:he(()=>[Kt("popover-default-button")]),_:1})],!0)],512),pt(Qe,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:he(()=>[S("div",{ref_key:"popoverPanelRef",ref:i,style:W([{display:"inline-block",position:"absolute"},r])},[Gt(l.$slots,"panel",{},()=>[qy],!0)],4)]),_:3},8,["isGlobal"])],64))}}),fb="",Ra=ut(Zy,[["__scopeId","data-v-d02782ac"]]),Ky={class:"tab"},Qy=ct({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(F(),X("div",Ky,[Gt(e.$slots,"default",{},void 0,!0)]))}}),pb="",Jy=ut(Qy,[["__scopeId","data-v-6589e7fa"]]),tv={class:"tabs"},ev=["onClick"],sv={class:"content"},nv=ct({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(n.initIndex),o=Pe([]),a=V(),l=V(0),c=V(0),u=V(0),h=V([]),f=[],d=cf(),m=d.default&&d.default();m&&(fi(o,m),E(r.value));const v=(N,k)=>{if(N){if(f.push({index:k,el:N}),f.length<o.length)return;h.value=f}};Dt([a,h],()=>{_()});function _(){if(a.value&&h.value.length){const N=a.value.getBoundingClientRect(),k=h.value[r.value].el.getBoundingClientRect();l.value=k.x-N.x,c.value=k.y-N.y+k.height-2,u.value=k.width}}function E(N){r.value=N,i("changedIndex",N),_(),D.value.goto(N)}const D=V();return Dt(D,()=>{D.value&&D.value.reset(n.pages,()=>{D.value.goto(n.initIndex)})}),t({}),(N,k)=>(F(),X("div",tv,[S("div",{class:"header",ref_key:"headerRef",ref:a},[(F(!0),X(zt,null,Ce(n.labels,(tt,R)=>(F(),X("div",{key:tt,class:ye(R==r.value?"active":""),onClick:U=>E(R)},[S("div",{ref_for:!0,ref:U=>v(U,R)},kt(tt),513)],10,ev))),128)),S("div",{class:"indicator",style:W({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),S("div",sv,[pt(ah,{ref_key:"routesRef",ref:D,direction:"rightToLeft",duration:200},null,512)])]))}}),mb="",iv=ut(nv,[["__scopeId","data-v-e74e266d"]]),rv=["width","height"],ov=ct({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=V();return Dt(r,()=>{if(!r.value)return;const o=new me(r.value),a=new eh(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{_n.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(F(),X("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:W([`border: 1px solid ${o.borderColor}`])},null,12,rv))}}),av={class:"wrap",style:{}},lv=ct({customOptions:{ProgressBar:ki},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=()=>{const a=Bm();i("progress",a),r.value?.goto(a)};return me.page.registerGlobalScrollChange(o),re(()=>{me.page.removeGlobalScrollChange(o)}),t({}),(a,l)=>(F(),X("div",av,[pt(ki,{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"])]))}}),gb="",cv=ut(lv,[["__scopeId","data-v-2e31cfe2"]]),uv=["fill"],hv=["fill"],dv=ct({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("svg",{style:W(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:t.color},null,8,uv),S("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:t.color},null,8,hv)],4))}}),yb="",$a=ut(dv,[["__scopeId","data-v-987aed3d"]]),$r=s=>(On("data-v-5f064292"),s=s(),Pn(),s),fv=$r(()=>S("div",{class:"title"},"车牌颜色",-1)),pv={class:"plate-types"},mv=["onClick"],gv=$r(()=>S("div",{class:"title"},"车牌号码",-1)),yv={class:"plate-numbers"},vv=$r(()=>S("div",{class:"dot"},"·",-1)),_v=["onClick"],bv=$r(()=>S("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),xv=ct({customOptions:{SVGCheck:$a},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],o=V(0),a=Pe([]),l=V(-1);function c(){wy({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{fi(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")):fi(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{fi(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return t({}),(f,d)=>(F(),X("div",Ro(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[fv,S("div",pv,[(F(),X(zt,null,Ce(r,(m,v)=>S("div",{key:v,class:ye(v==o.value?"checked":""),onClick:_=>u(v)},[S("div",{style:W(m.style)},null,4),S("div",null,kt(m.name),1),S("div",null,[pt($a,{color:"#ffffff",width:"0.14rem"})])],10,mv)),64))]),gv,S("div",yv,[S("div",{onClick:d[0]||(d[0]=m=>h(0)),class:ye(l.value==0?"current":"")},kt(a[0]),3),S("div",{onClick:d[1]||(d[1]=m=>h(1)),class:ye(l.value==1?"current":"")},kt(a[1]),3),vv,(F(!0),X(zt,null,Ce(r[o.value].completePlateLength-2,m=>(F(),X("div",{key:m,class:ye(m+1==l.value?"current":""),onClick:v=>h(m+1)},kt(a[m+1]),11,_v))),128))]),bv],16))}}),vb="",wv=ut(xv,[["__scopeId","data-v-5f064292"]]),Sv={class:"parent"},Cv=ct({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=i.filter(d=>d.name===h);return f.length?f[0]:o("未知")}const a=r(n.plate),l=V(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,f)=>(F(),X("div",Sv,[S("div",{class:ye(["leading",n.displayType]),style:W(l.value.style)},kt(l.value.name),7),S("div",{class:"text",style:W({color:Ft(c),"font-size":Ft(u)})},kt(Ft(a)),5)]))}}),_b="",Ev=ut(Cv,[["__scopeId","data-v-11a104c3"]]),Ln=(s,t=0,e=1)=>s>e?e:s<t?t:s,_e=(s,t=0,e=Math.pow(10,t))=>Math.round(e*s)/e,kv=s=>Dv(Va(s)),Va=s=>(s[0]==="#"&&(s=s.substring(1)),s.length<6?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?_e(parseInt(s[3]+s[3],16)/255,2):1}:{r:parseInt(s.substring(0,2),16),g:parseInt(s.substring(2,4),16),b:parseInt(s.substring(4,6),16),a:s.length===8?_e(parseInt(s.substring(6,8),16)/255,2):1}),Tv=s=>Pv(Ov(s)),lh=({h:s,s:t,v:e,a:n})=>{const i=(200-t)*e/100;return{h:_e(s),s:_e(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:_e(i/2),a:_e(n,2)}},La=s=>{const{h:t,s:e,l:n}=lh(s);return`hsl(${t}, ${e}%, ${n}%)`},Fa=s=>{const{h:t,s:e,l:n,a:i}=lh(s);return`hsla(${t}, ${e}%, ${n}%, ${i})`},Ov=({h:s,s:t,v:e,a:n})=>{s=s/360*6,t=t/100,e=e/100;const i=Math.floor(s),r=e*(1-t),o=e*(1-(s-i)*t),a=e*(1-(1-s+i)*t),l=i%6;return{r:_e([e,o,r,r,a,e][l]*255),g:_e([a,e,e,o,r,r][l]*255),b:_e([r,r,a,e,e,o][l]*255),a:_e(n,2)}},Vr=s=>{const t=s.toString(16);return t.length<2?"0"+t:t},Pv=({r:s,g:t,b:e,a:n})=>{const i=n<1?Vr(_e(n*255)):"";return"#"+Vr(s)+Vr(t)+Vr(e)+i},Dv=({r:s,g:t,b:e,a:n})=>{const i=Math.max(s,t,e),r=i-Math.min(s,t,e),o=r?i===s?(t-e)/r:i===t?2+(e-s)/r:4+(s-t)/r:0;return{h:_e(60*(o<0?o+6:o)),s:_e(i?r/i*100:0),v:_e(i/255*100),a:n}},ch=(s,t)=>{if(s===t)return!0;for(const e in s)if(s[e]!==t[e])return!1;return!0},Iv=(s,t)=>s.toLowerCase()===t.toLowerCase()?!0:ch(Va(s),Va(t)),uh={},hh=s=>{let t=uh[s];return t||(t=document.createElement("template"),t.innerHTML=s,uh[s]=t),t},Ga=(s,t,e)=>{s.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let Fn=!1;const za=s=>"touches"in s,Nv=s=>Fn&&!za(s)?!1:(Fn||(Fn=za(s)),!0),dh=(s,t)=>{const e=za(t)?t.touches[0]:t,n=s.el.getBoundingClientRect();Ga(s.el,"move",s.getMove({x:Ln((e.pageX-(n.left+window.pageXOffset))/n.width),y:Ln((e.pageY-(n.top+window.pageYOffset))/n.height)}))},Mv=(s,t)=>{const e=t.keyCode;e>40||s.xy&&e<37||e<33||(t.preventDefault(),Ga(s.el,"move",s.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class ja{constructor(t,e,n,i){const r=hh(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=i,this.nodes=[o.firstChild,o]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Fn?"touchmove":"mousemove",this),e(Fn?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!Nv(t)||!Fn&&t.button!=0)return;this.el.focus(),dh(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),dh(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Mv(this,t);break}}style(t){t.forEach((e,n)=>{for(const i in e)this.nodes[n].style.setProperty(i,e[i])})}}class Av extends ja{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:La({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${_e(t)}`)}getMove(t,e){return{h:e?Ln(this.h+t.x*360,0,360):360*t.x}}}class Rv extends ja{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:La(t)},{"background-color":La({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${_e(t.s)}%, Brightness ${_e(t.v)}%`)}getMove(t,e){return{s:e?Ln(this.hsva.s+t.x*100,0,100):t.x*100,v:e?Ln(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const $v=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',Vv="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",Lv="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",Lr=Symbol("same"),Ba=Symbol("color"),fh=Symbol("hsva"),Ya=Symbol("update"),ph=Symbol("parts"),Fr=Symbol("css"),Gr=Symbol("sliders");let Fv=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Fr](){return[$v,Vv,Lv]}get[Gr](){return[Rv,Av]}get color(){return this[Ba]}set color(t){if(!this[Lr](t)){const e=this.colorModel.toHsva(t);this[Ya](e),this[Ba]=t}}constructor(){super();const t=hh(`<style>${this[Fr].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[ph]=this[Gr].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[Lr](i)||(this.color=i)}handleEvent(t){const e=this[fh],n={...e,...t.detail};this[Ya](n);let i;!ch(n,e)&&!this[Lr](i=this.colorModel.fromHsva(n))&&(this[Ba]=i,Ga(this,"color-changed",{value:i}))}[Lr](t){return this.color&&this.colorModel.equal(t,this.color)}[Ya](t){this[fh]=t,this[ph].forEach(e=>e.update(t))}};class Gv extends ja{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const e=Fa({...t,a:0}),n=Fa({...t,a:1}),i=t.a*100;this.style([{left:`${i}%`,color:Fa(t)},{"--gradient":`linear-gradient(90deg, ${e}, ${n}`}]);const r=_e(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(t,e){return{a:e?Ln(this.hsva.a+t.x):t.x}}}const zv=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class jv extends Fv{get[Fr](){return[...super[Fr],zv]}get[Gr](){return[...super[Gr],Gv]}}const Bv={defaultColor:"#0001",toHsva:kv,fromHsva:Tv,equal:Iv,fromAttr:s=>s};class Yv extends jv{get colorModel(){return Bv}}class Xv extends Yv{}customElements.define("hex-alpha-color-picker",Xv);const Hv=ct({customOptions:{Popover:Ra},__name:"ColorPicker",props:{color:{default:ot.colorPrimary}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=V(e.color);Dt(i,(a,l)=>{a!==l&&n("change",a)});const r=V(),o=a=>{i.value=a.detail.value};return Dt(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Gd("hex-alpha-color-picker");return F(),Ie(Ra,null,{button:he(()=>[Gt(a.$slots,"default",{},()=>[S("span",{class:"button",style:W({backgroundColor:i.value})},null,4)],!0)]),panel:he(()=>[pt(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),bb="",Uv=ut(Hv,[["__scopeId","data-v-ac12603f"]]),xb="",Wv={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",ca&&this.$el.appendChild(s),s.data="about:blank",ca||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&&(!ca&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},qv={class:"resize-observer",tabindex:"-1"};function Zv(s,t,e,n,i,r){return F(),X("div",qv)}const Kv=ut(Wv,[["render",Zv],["__scopeId","data-v-d5987ae1"]]),Qv=ct({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=V(n.mapWidth),r=V(n.mapHeight);let o;const a=V();return Dt(a,()=>{a.value&&(o=new me(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),Bs(()=>{H.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Gg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),re(()=>{o.destroy()}),t({}),(l,c)=>(F(),X("div",Ro({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Gt(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),wb="",Jv=ut(Qv,[["__scopeId","data-v-e5da8598"]]);var Ti=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new Ti.Panel("FPS","#0ff","#002")),l=e(new Ti.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new Ti.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:t,setMode:n}};Ti.Panel=function(s,t,e){var n=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,f=15*o,d=74*o,m=30*o,v=document.createElement("canvas");v.width=a,v.height=l,v.style.cssText="width:80px;height:48px";var _=v.getContext("2d");return _.font="bold "+9*o+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=e,_.fillRect(0,0,a,l),_.fillStyle=t,_.fillText(s,c,u),_.fillRect(h,f,d,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h,f,d,m),{dom:v,update:function(E,D){n=Math.min(n,E),i=Math.max(i,E),_.fillStyle=e,_.globalAlpha=1,_.fillRect(0,0,a,f),_.fillStyle=t,_.fillText(r(E)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),_.drawImage(v,h+o,f,d-o,m,h,f,d-o,m),_.fillRect(h+d-o,f,o,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h+d-o,f,o,r((1-E/D)*m))}}};const t1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=V();return Bs(()=>{const n=new Ti,i=n.domElement.style;i.margin="1em",e.value.appendChild(n.domElement),jt.run(()=>(n.update(),!0))}),t({}),(n,i)=>(F(),X("div",{ref_key:"containerRef",ref:e},null,512))}}),e1=["width","height"],s1=ct({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(),o=V(),a=V(0),l=V(0);let c;Dt(r,()=>{r.value&&(c=new me(r.value,!1),c.on("resize",(v,_)=>{const E=Fu();a.value=Math.min(v,E.width),l.value=Math.min(_,E.height),d()}),c.start())}),Dt(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new me(o.value,!1),u.on("resize",(v,_)=>{h=new eh(u),i("resize",v,_),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return re(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:m}),(v,_)=>(F(),X("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[S("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:W({backgroundColor:n.bgColor})},null,12,e1)],512))}}),Cb="",tn=ut(s1,[["__scopeId","data-v-d6a232ce"]]),n1={class:"ease-graph"},i1=ct({customOptions:{Button:ve,Canvas:tn},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V();let o;Dt(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;fe.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),fe.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 re(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(F(),X("div",n1,[S("div",null,"缓动:"+kt(u.easeName),1),S("div",null,[S("div",null,[pt(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:he(()=>[Kt(" 开始 ")]),_:1})]),S("div",null,[pt(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:he(()=>[Kt(" 选择 ")]),_:1},8,["stylePattern"])])]),S("div",{style:W({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[pt(tn,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Eb="",Xa=ut(i1,[["__scopeId","data-v-5c401464"]]),r1=2e3,o1=ct({customOptions:{EaseGraphDisplay:Xa},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:dt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:dt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:dt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:dt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:dt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:dt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:dt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:dt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:dt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:dt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:dt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:dt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:dt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:dt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:dt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:dt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:dt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:dt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:dt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:dt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:dt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:dt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:dt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:dt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:dt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:dt.Easing.Back.In},{easeName:"BackOut",easeFunction:dt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:dt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:dt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:dt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:dt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:dt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:dt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:dt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:dt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:dt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:dt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:dt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:dt.Easing.swing},{easeName:"causeSeizures",easeFunction:dt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(f,d){f&&(r[d]={el:f})}const a=new Au(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=V("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",dt.Easing.Linear.None),t({}),(f,d)=>(F(),X("div",null,[(F(!0),X(zt,null,Ce(n.easeList,m=>(F(),X("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(F(),Ie(Xa,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:r1,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"])):qt("",!0)]))),128))]))}}),kb="",a1=ut(o1,[["__scopeId","data-v-fa7ba01d"]]),l1={class:"interpolation-graph"},mh=1/6,gh=5/6,c1=ct({customOptions:{Button:ve,Canvas:tn},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V();let o;Dt(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*gh,n.canvasWidth/2],u=[n.canvasHeight*mh,n.canvasHeight*gh],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 _=!1,E=!1;const D={x:a,y:l,old:{x:a,y:l}};fe.toTween(D,{x:c,y:u},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:k=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(k.old.x,k.old.y),o.ctx.lineTo(k.x,k.y),o.ctx.closePath(),o.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{_=!0,_&&E&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const N={x:a,y:l,old:{x:a,y:l}};fe.toTween(N,{x:h,y:f},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:k=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(k.old.x,k.old.y),o.ctx.lineTo(k.x,k.y),o.ctx.closePath(),o.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{E=!0,_&&E&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return re(()=>{o.app.off("showInParent",m)}),t({start:m}),(v,_)=>(F(),X("div",l1,[S("div",null,[Kt(" 插值:"+kt(v.interpolationName)+" ",1),pt(ve,{stylePattern:"outline",height:"32px",onClick:m},{default:he(()=>[Kt(" 开始 ")]),_:1})]),S("div",{style:W({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[pt(tn,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Tb="",Ha=ut(c1,[["__scopeId","data-v-eb70b61a"]]),u1=2e3,h1=ct({customOptions:{InterpolationGraphDisplay:Ha},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:dt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:dt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:dt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Au(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(F(),X("div",null,[(F(!0),X(zt,null,Ce(n.interpolationList,h=>(F(),X("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[pt(Ha,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:u1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Ob="",d1=ut(h1,[["__scopeId","data-v-6e8312e3"]]),f1='<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>',p1={class:"btns"},m1={class:"btns"},g1={class:"btns sub-btns"},y1={class:"btns sub-btns"},v1={class:"btns sub-btns"},_1={style:{width:"100%"}},b1={style:{width:"100%"}},x1={style:{height:"400px"}},w1={style:{height:"400px"}},S1={style:{height:"400px"},class:"css-area"},C1={class:"animate-to-css-group"},E1={class:"animate-to-css-group"},k1=ct({customOptions:{Button:ve,InputRange:Js,SVG:Ar,Canvas:tn},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:dt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=V();let i=0,r=0;Dt(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(C,w)=>{i=C,r=w})})});const o=V(),a=V(),l=V(),c=V(),u=V(),h=V(),f=V(),d=V(""),m=V("");function v(O){switch(m.value=O,d.value){case"AnimateToCSS":z();break;case"AnimateToTweenCSS":rt();break}}const _=new ys({svg:f1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0});function E(O,C,w=30){return new Ee({x:O,y:C,radius:w,attrs:{fill:Ne()}})}function D(O,C,w=3){const G=[];for(let M=0;M<w;M++)G.push(new Ee({x:Math.random()*O,y:Math.random()*C,radius:10,attrs:{fill:Ne()},enableDrag:!0}));return G}function N(){return new Nr({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Ne()}})}function k(O,C){return new ke({x:O,y:C,attrs:{"stroke-width":"1",stroke:"#666666"}})}const tt=E(0,0,8),R=E(0,0,5);function U(){const O="PathDGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;let C=[_,tt,R];n.value.getSVG().then(w=>{o.value.getCanvas().then(G=>{let M,B;const nt=Wt=>{B&&w.delete(B),M&&M?.restore(),M=Wt,Wt.save(),Wt.attrs.fill="pink",Wt.attrs.stroke="green",C=[_,tt,R],B=Wt.getBoundingClientRect(),B&&(B.attrs.fill="none",B.attrs.strokeWidth="4",B.attrs.stroke="#0000ff",C.push(B))},j=w.click(Wt=>{nt(Wt)}),et=G.click(Wt=>{nt(Wt)});let yt=0,Tt=_.shapes[yt].getTotalLength(),oe=0;const Be=.01;w.clear(),jt.run(()=>{if(d.value!==O)return j(),et(),M&&(M.restore(),w.delete(M)),!1;oe>1&&(yt++,oe=0,yt>_.shapes.length-1&&(yt=0),Tt=_.shapes[yt].getTotalLength()),G.ctx.clearRect();let{x:Wt,y:Je}=_.shapes[yt].interpolate(oe);tt.x=Wt,tt.y=Je;let{x:Zt,y:be}=_.shapes[yt].getPointAtLength(oe*Tt);return R.x=Zt,R.y=be,w.path(C),G.draw(C),oe+=Be,!0})})})}function vt(){const O="Shapes";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Nr({x:ee(0,i),y:ee(0,r),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),w=new de({x:ee(0,i),y:ee(0,r),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new Ta({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),M=new Dg({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Ig({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new Ju({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),j=new Ng({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),et=new Mg({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),yt=new Ag({x:ee(0,i),y:ee(0,r),degree:30,scaleOnOrigin:.5,attrs:{strokeWidth:"2",stroke:Ne(),fill:"none"},enableDrag:!0}),Tt=new Lg({x:ee(0,i),y:ee(0,r),degree:0,scaleOnOrigin:2,showFlame:!0,attrs:{stroke:Ne()},enableDrag:!0}),oe=new th({x:100,y:100,min:0,max:200,step:2,defaultValue:10,barWidth:200});oe.on("change",Gn=>{console.log(`slider change: ${Gn}`)});const Be=new Si({x:100,y:120,width:200,height:20,degree:30,attrs:{stroke:Ne()},enableDrag:!0});C.group(M);const Wt=ee(0,i-100),Je=ee(0,r-100),Zt=new ke({fromX:Wt,fromY:Je,x:Wt+100,y:Je+100,attrs:{stroke:"#666666"}}),be=new ke({fromX:Wt+100,fromY:Je,x:Wt,y:Je+100,attrs:{stroke:"#666666"}}),We=E(0,0,10),wn=Zt.intersection(be);wn&&(We.x=wn.x,We.y=wn.y);const Oi=new Oa({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ne(),enableDrag:!0}),vs=[C,w,G,M,B,nt,j,et,yt,Tt,oe,Be,Zt,be,We,Oi];n.value.getSVG().then(Gn=>{o.value.getCanvas().then(zr=>{Gn.clear(),jt.run(()=>d.value!==O?!1:(Gn.path(vs),zr.ctx.clearRect(),zr.draw(vs),!0))})})}function bt(){const O="Arrow";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{const w=N(),G=k(C.app.width/2,C.app.height/2);C.clear(),jt.run(()=>d.value!==O?!1:(G.fromX=w.x,G.fromY=w.y,C.path([G,w]),!0))}),o.value.getCanvas().then(C=>{const w=N(),G=k(C.app.width/2,C.app.height/2);jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),G.fromX=w.x,G.fromY=w.y,C.draw([G,w]),!0))}))}function Ct(){const O="PointEase";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=E(C.app.width/2,C.app.height/2);w.enableDrag=!0,w.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},C.clear(),jt.run(()=>d.value!==O?!1:(C.path(w),!0))}),o.value.getCanvas().then(C=>{const w=E(C.app.width/2,C.app.height/2);w.enableDrag=!0,w.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),C.draw(w),!0))}))}function Rt(){const O="BallCollision";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=E(50,C.app.height/2);w.mass=2,w.vx=2;const G=E(C.app.width-50,C.app.height/2);G.mass=1,G.vx=-2,C.clear(),o.value.getCanvas().then(M=>{jt.run(()=>d.value!=O?!1:(w.checkCollision(G),w.nextFrame(),G.nextFrame(),C.path([w,G]),M.ctx.clearRect(),M.draw([w,G]),!0))})}))}function $t(){const O="Balls";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const M=[];for(let nt=0;nt<15;nt++){const j=Math.random()*20+15,et=E(Math.random()*C.app.width,Math.random()*C.app.height,j);et.mass=j,et.vx=Math.random()*10-5,et.vy=Math.random()*10-5,M.push(et)}const B=new de({x:0,y:0,width:C.app.width,height:C.app.height});C.clear(),jt.run(()=>d.value!=O?!1:(Ee.comboMove(M,B),C.path(M),w.ctx.clearRect(),w.draw(M),!0))})}))}function se(){const O="Gravitate";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const M=[];for(let B=0;B<30;B++){const nt=Math.random()*25+5,j=E(Math.random()*C.app.width,Math.random()*C.app.height,nt);j.mass=nt,M.push(j)}C.clear(),jt.run(()=>d.value!=O?!1:(Jt.comboGravitate(M),C.path(M),w.ctx.clearRect(),w.draw(M),!0))})}))}function ne(){const O="SunPlanet";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=E(C.app.width*.5,C.app.height*.5,50);G.mass=1e4;const M=E(C.app.width*.5+200,C.app.height*.5,10);M.mass=1,M.vy=7;const B=[G,M];C.clear(),jt.run(()=>d.value!=O?!1:(Jt.comboGravitate(B),C.path(B),w.ctx.clearRect(),w.draw(B),!0))})}))}function ue(){const O="SpringMass";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=[];for(let et=0;et<30;et++){const yt=Math.random()*10+2,Tt=E(Math.random()*w.app.width,Math.random()*w.app.height,yt);Tt.vx=Math.random()*6-3,Tt.vy=Math.random()*6-3,Tt.mass=yt,G.push(Tt)}const B=new de({x:0,y:0,width:w.app.width,height:w.app.height}),nt=[];Jt.comboSpringMass(G,B,{spring:5e-4}).forEach(([et,yt,Tt,oe,Be])=>{nt.push(new ke({fromX:et,fromY:yt,x:Tt,y:oe,attrs:{strokeWidth:"1",stroke:Er("#666666",Be)}}))});const j=[...nt,...G];C.clear(),C.path(j),jt.run(()=>d.value!=O?!1:(Jt.comboSpringMass(G,B,{spring:5e-4}).forEach(([et,yt,Tt,oe,Be],Wt)=>{nt[Wt].fromX=et,nt[Wt].fromY=yt,nt[Wt].x=Tt,nt[Wt].y=oe,nt[Wt].setAttr("stroke",Er("#666666",Be))}),C.path(j),w.ctx.clearRect(),w.draw(j),!0))})}))}function Yt(){const O="WalkMan";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=new Si({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),M=new Si({width:50,height:10,attrs:{stroke:"#666666"}}),B=new Si({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),nt=new Si({width:50,height:10,attrs:{stroke:"#666666"}});let j=0,et=0;function yt(){et+=.2,G.groupTranslate(j,et),B.groupTranslate(j,et)}const Tt=-Math.PI/2;function oe(Zt,be,We){const wn=Math.sin(We)*45+90,Oi=Math.sin(We+Tt)*45+45,vs=be.getPin();Zt.groupRotateTo(wn),be.groupRotateTo(Zt.degree+Oi),be.groupTranslateTo(Zt.getPin().x,Zt.getPin().y),be.vx=be.getPin().x-vs.x,be.vy=be.getPin().y-vs.y}function Be(Zt){const be=Zt.getPin().y+Zt.height/2;if(be>w.app.height){const We=be-w.app.height;G.groupTranslate(0,-We),M.groupTranslate(0,-We),B.groupTranslate(0,-We),nt.groupTranslate(0,-We),j-=Zt.vx,et-=Zt.vy}}function Wt(){const Zt=w.app.width+200;G.x>w.app.width+100?(G.groupTranslate(-Zt,0),M.groupTranslate(-Zt,0),B.groupTranslate(-Zt,0),nt.groupTranslate(-Zt,0)):G.x<-100&&(G.groupTranslate(Zt,0),M.groupTranslate(Zt,0),B.groupTranslate(Zt,0),nt.groupTranslate(Zt,0))}let Je=0;C.clear(),jt.run(()=>d.value!=O?!1:(Je+=.06,yt(),oe(G,M,Je),oe(B,nt,Je+Math.PI),Be(M),Be(nt),Wt(),C.path([G,M,B,nt]),w.ctx.clearRect(),w.draw([G,M,B,nt]),!0))})}))}function xt(){const O="Sector";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new $g({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(w=>{w.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(w.path(C),G.ctx.clearRect(),G.draw(C),!0))})})}function wt(){const O="RectGame";if(d.value==O)return;d.value=O;function C(nt){return new de({x:Math.random()*nt,y:0,width:50,height:50,attrs:{fill:Ne()},enableDrag:!0})}const w=.2,G=[];function M(){const nt=C(i);return G.push(nt),nt}let B=M();n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(j=>{jt.run(()=>d.value!=O?!1:(j.ctx.clearRect(),nt.isMouseDown||j.isMouseDown?(nt.path(G),j.draw(G)):(B&&B.nextFrame({gravity:w}),B&&B.y+B.height>=j.ctx.canvas.height&&(B.y=j.ctx.canvas.height-B.height,B=M()),G.forEach(et=>(B&&B!==et&&B.isIntersectRect(et)&&(B.y=et.y-B.height,B.y>=B.height?B=M():B=null),et)),nt.path(G),j.draw(G)),!0))})})}function it(){const O="PointWater";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[];for(let G=0;G<80;G++){const M=E(C.app.width/2,C.app.height,2);M.vx=Math.random()*2-1,M.vy=Math.random()*-10-10,w.push(M)}C.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(w.forEach(M=>{M.nextFrame({gravity:.5}),(M.x-M.radius>C.app.width||M.x+M.radius<0||M.y-M.radius>C.app.height||M.y+M.radius<0)&&(M.x=C.app.width/2,M.y=C.app.height,M.vx=Math.random()*2-1,M.vy=Math.random()*-10-10)}),C.path(w),G.ctx.clearRect(),G.draw(w),!0))})}))}function q(){const O="PointSpringChain";if(d.value==O)return;d.value=O;function C(M,B){const nt=[];for(let j=0;j<3;j++)nt.push(E(M,B,20));return nt}function w(){const M=[];for(let B=0;B<3;B++)M.push(new ke({attrs:{"stroke-width":"1",stroke:"#666666"}}));return M}const G={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(M=>{const B=w(),nt=C(M.app.width/2,M.app.height/2);M.clear(),jt.run(()=>d.value!==O?!1:(Jt.comboSpringChain([M.app.mousePoint,...nt],G),nt.forEach((j,et)=>{if(et===0)B[et].fromX=M.app.mousePoint.x,B[et].fromY=M.app.mousePoint.y,B[et].x=j.x,B[et].y=j.y;else{const yt=nt[et-1];B[et].fromX=yt.x,B[et].fromY=yt.y,B[et].x=j.x,B[et].y=j.y}}),M.path(B),M.path(nt),!0))}),o.value.getCanvas().then(M=>{const B=w(),nt=C(M.app.width/2,M.app.height/2);jt.run(()=>d.value!=O?!1:(M.ctx.clearRect(),Jt.comboSpringChain([M.app.mousePoint,...nt],G),nt.forEach((j,et)=>{if(et===0)B[et].fromX=M.app.mousePoint.x,B[et].fromY=M.app.mousePoint.y,B[et].x=j.x,B[et].y=j.y;else{const yt=nt[et-1];B[et].fromX=yt.x,B[et].fromY=yt.y,B[et].x=j.x,B[et].y=j.y}}),M.draw(B),M.draw(nt),!0))})}function Et(){const O="PointSpringMulti";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[k(0,0),k(0,0),k(0,0)],G=D(C.app.width,C.app.height),M=new Ee({radius:20,attrs:{fill:"#ff0000"}});C.clear(),o.value.getCanvas().then(B=>{jt.run(()=>d.value!=O?!1:(M.nextFrameSpringTo(G,{spring:.03}),G.forEach((nt,j)=>{w[j].fromX=M.x,w[j].fromY=M.y,w[j].x=nt.x,w[j].y=nt.y}),C.path([...w,...G,M]),B.ctx.clearRect(),B.draw([...w,...G,M]),!0))})}))}function $(){const O="PointSpringConnect";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[k(0,0),k(0,0),k(0,0)],G=D(C.app.width,C.app.height);C.clear(),o.value.getCanvas().then(M=>{jt.run(()=>d.value!=O?!1:(Jt.comboSpringConnect(G,{springLength:120}),w[0].x=G[0].x,w[0].y=G[0].y,w[0].fromX=G[1].x,w[0].fromY=G[1].y,w[1].x=G[1].x,w[1].y=G[1].y,w[1].fromX=G[2].x,w[1].fromY=G[2].y,w[2].x=G[2].x,w[2].y=G[2].y,w[2].fromX=G[0].x,w[2].fromY=G[0].y,C.path([...w,...G]),M.ctx.clearRect(),M.draw([...w,...G]),!0))})}))}function Ut(){const O="QuadraticBezierCurve";if(d.value==O)return;d.value=O;const C=50;n.value.getSVG().then(w=>{const G=new bn({x:C,y:w.app.height-C,fromX:w.app.width-C,fromY:w.app.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),M=new bn({x:C,y:w.app.height-C,fromX:w.app.width-C,fromY:w.app.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});w.clear(),jt.run(()=>d.value!==O?!1:(M.cx=G.cx=w.app.mousePoint.x,M.cy=G.cy=w.app.mousePoint.y,w.path(G),w.path(M),!0))}),o.value.getCanvas().then(w=>{const G=new bn({x:C,y:w.ctx.canvas.height-C,fromX:w.ctx.canvas.width-C,fromY:w.ctx.canvas.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),M=new bn({x:C,y:w.ctx.canvas.height-C,fromX:w.ctx.canvas.width-C,fromY:w.ctx.canvas.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});jt.run(()=>d.value!=O?!1:(w.ctx.clearRect(),M.cx=G.cx=w.app.mousePoint.x,M.cy=G.cy=w.app.mousePoint.y,w.draw([G,M]),!0))})}function ge(){const O="PointsRandom";d.value=O;function C(w,G){const M=[];for(let B=0;B<10;B++){const nt=new Ee({x:Math.random()*w,y:Math.random()*G,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});M.push(nt)}return M}n.value.getSVG().then(w=>{const G=C(w.app.width,w.app.height),M=G.map((B,nt)=>new de({x:B.x,y:B.y,width:6,height:6,attrs:{fill:nt==0?"#ff0000":"#666666"}}));w.clear(),w.path(M),w.path(new $n(G)),o.value.getCanvas().then(B=>{B.ctx.clearRect(),B.draw([...M,new $n(G)])})})}function Ae(){const O="InterpolatePath";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Nr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),w=new de({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),G=new Ta({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),M=$n.generatePoints(100,100,100,3),B=$n.generatePoints(100,100,100,6);M.attrs.stroke="#666666",B.attrs.stroke="#7EEDFF";const nt=gt.polymorph([gt.fromShape(M),gt.fromShape(B),gt.fromShape(C),gt.fromShape(w),gt.fromShape(G)]),j=nt(0);j.enableDrag=!0,n.value.getSVG().then(et=>{et.clear(),o.value.getCanvas().then(yt=>{const Tt=fe.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:oe=>{d.value===O&&(nt(oe.t),et.path(j),yt.ctx.clearRect(),yt.draw(j))},onComplete:()=>{}});Tt.tween.start(),jt.run(()=>d.value!==O?!1:(Tt.tween.update()||(et.path(j),yt.ctx.clearRect(),yt.draw(j)),!0))})})}function Re(){const O="InterpolatePathGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Nr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),w=new de({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),G=new Ta({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),M=ys.polymorph([ys.fromShape(C),ys.fromShape(w),_,ys.fromShape(G)]),B=M(0);n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(j=>{fe.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:et=>{d.value===O&&(M(et.t),nt.path(B),j.ctx.clearRect(),j.draw(B))},onComplete:()=>{}}).startAuto()})})}const Nt=gt.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"),$e=+Nt.getTotalLength().toFixed(0),Lt=V($e),ie=V(Math.floor($e/2));function Ue(O){Lt.value=O,Nt.setAttr("strokeDasharray",`${Lt.value} ${Lt.value}`),n.value.getSVG().then(C=>{C.path(Nt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Nt)})}function os(O){ie.value=O,Nt.setAttr("strokeDashoffset",`${ie.value}`),n.value.getSVG().then(C=>{C.path(Nt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Nt)})}function as(){const O="StrokeDash";d.value==O||!n.value||!o.value||(d.value=O,Nt.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Lt.value} ${Lt.value}`,strokeDashoffset:`${ie.value}`}),n.value.getSVG().then(C=>{C.clear(),C.path(Nt)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(Nt)}))}function y(){const O="StrokeDashAuto";d.value==O||!n.value||!o.value||(d.value=O,Nt.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(C=>{C.clear(),o.value.getCanvas().then(w=>{Nt.strokeDashToTween({duration:4e3,easeFunction:e.easeFunction,onUpdate:()=>{C.path(Nt),w.ctx.clearRect(),w.draw(Nt)}}).startAuto()})}))}function x(){const O="StrokeDashGroupParallelAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(w=>{w.ctx.clearRect(),_.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),w.ctx.clearRect(),w.draw(_)}}).startAuto()})}))}function I(){const O="StrokeDashGroupSequenceAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(w=>{w.ctx.clearRect(),_.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),w.ctx.clearRect(),w.draw(_)}}).startAuto()})}))}const A=new fe,L=new fe;function J(){const O="AnimateToCSS";d.value=O,A.fromDOM([a.value,l.value,c.value]),L.fromDOM([u.value])}let K=0;function z(){switch(m.value){case"slideLeft":A.toCSS("slideLeft",{},++K%3),L.toCSS("slideLeft",{direction:K%2==0?"normal":"reverse"});break;case"slideRight":A.toCSS("slideRight",{easeName:"ease",dur:1e3},--K%3),L.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":A.toCSS("slideDown",{easeName:"ease-out",dur:500},++K%3),L.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":A.toCSS("slideUp",{easeName:"ease-in",dur:500},++K%3),L.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":A.toCSS("flipLeft",{easeName:"linear",dur:1e3},++K%3),L.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":A.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++K%3),L.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":A.toCSS("flipDown",{easeName:"ease",dur:1e3},++K%3),L.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":A.toCSS("flipUp",{easeName:"ease",dur:1e3},++K%3),L.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":A.toCSS("popIn",{easeName:"ease",dur:1e3},++K%3),L.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":A.toCSS("popOut",{easeName:"ease",dur:1e3},++K%3),L.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":A.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},K++%3),L.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let Q;function Y(){const O="AnimateToTweenCSS";d.value=O,H.setStyle(f.value,{transform:""})}function rt(){Q||(Q=new me(h.value));const O=50,C=0,w=0,G=0,M=Q.width-O,B=Q.height-O,nt=Q.height-O,j=Q.width/2-O/2,et=Q.height/2-O/2,yt={},Tt={};switch(m.value){case"translateTo":Object.assign(yt,{translateTo:[C,w]}),Object.assign(Tt,{translateTo:[M,B]});break;case"translateXTo":Object.assign(yt,{translateXTo:C}),Object.assign(Tt,{translateXTo:M});break;case"translateYTo":Object.assign(yt,{translateYTo:w}),Object.assign(Tt,{translateYTo:B});break;case"translateZTo":Object.assign(yt,{translateTo:[j,et],translateZTo:G}),Object.assign(Tt,{translateTo:[j,et],translateZTo:nt});break;case"translate3dTo":Object.assign(yt,{translate3dTo:[j-50,et-50,G]}),Object.assign(Tt,{translate3dTo:[j+50,et+50,nt]});break;case"rotateTo":Object.assign(yt,{translateTo:[j,et],rotateTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateTo:360});break;case"rotateXTo":Object.assign(yt,{translateTo:[j,et],rotateXTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateXTo:180});break;case"rotateYTo":Object.assign(yt,{translateTo:[j,et],rotateYTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateYTo:180});break;case"rotateZTo":Object.assign(yt,{translateTo:[j,et],rotateZTo:0}),Object.assign(Tt,{translateTo:[j,et],rotateZTo:360});break;case"rotate3dTo":Object.assign(yt,{translateTo:[j,et],rotate3dTo:[0,0,0]}),Object.assign(Tt,{translateTo:[j,et],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(yt,{translateTo:[j,et],scaleTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleTo:3});break;case"scaleXTo":Object.assign(yt,{translateTo:[j,et],scaleXTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleXTo:3});break;case"scaleYTo":Object.assign(yt,{translateTo:[j,et],scaleYTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleYTo:3});break;case"scaleZTo":Object.assign(yt,{translateTo:[j,et],scaleZTo:1}),Object.assign(Tt,{translateTo:[j,et],scaleZTo:3});break;case"scale3dTo":Object.assign(yt,{translateTo:[j,et],scale3dTo:[1,1,1]}),Object.assign(Tt,{translateTo:[j,et],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(yt,{translateTo:[j,et],skewTo:0}),Object.assign(Tt,{translateTo:[j,et],skewTo:30});break;case"skewXTo":Object.assign(yt,{translateTo:[j,et],skewXTo:0}),Object.assign(Tt,{translateTo:[j,et],skewXTo:30});break;case"skewYTo":Object.assign(yt,{translateTo:[j,et],skewYTo:0}),Object.assign(Tt,{translateTo:[j,et],skewYTo:30});break;case"perspective":Object.assign(yt,{translateTo:[j,et],perspective:0}),Object.assign(Tt,{translateTo:[j,et],perspective:1e3});break}fe.toTweenCSS(f.value,yt,Tt,{duration:2e3,easeFunction:e.easeFunction,onUpdate:oe=>{}}).startAuto()}function ft(){const O="Rosetta";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=gt.generateRosetta(120,120,55,35,6);G.setAttr({stroke:"none",fill:"none"});const M=new de({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),B=new gt({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});C.clear(),w.ctx.clearRect(),fe.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:nt=>{if(d.value!==O)return;const j=G.trailPath(B,nt.progress);M.x=j.x,M.y=j.y,M.degree=j.alpha+90,C.path([B,M]),w.ctx.clearRect(),w.draw([B,M])}}).startAuto()})}))}function ht(){const O="Confetti_"+ee();d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{C.clear();const G=new Fg(w.app.width,w.app.height,{scalar:1});jt.run(()=>d.value!==O?!1:(C.path(G),w.ctx.clearRect(),w.draw(G),!0))})})}const _t=[{name:"PathDGroup",type:"PathDGroup",onClick:U},{name:"Shapes",type:"Shapes",onClick:vt},{name:"Arrow",type:"Arrow",onClick:bt},{name:"targetToAfterDragFree",type:"PointEase",onClick:Ct},{name:"ballCollision",type:"BallCollision",onClick:Rt},{name:"balls",type:"Balls",onClick:$t},{name:"万有引力",type:"Gravitate",onClick:se},{name:"行星",type:"SunPlanet",onClick:ne},{name:"SpringMass",type:"SpringMass",onClick:ue},{name:"WalkMan",type:"WalkMan",onClick:Yt},{name:"俄罗斯方块",type:"RectGame",onClick:wt},{name:"喷泉",type:"PointWater",onClick:it},{name:"链式弹簧",type:"PointSpringChain",onClick:q},{name:"多点弹簧",type:"PointSpringMulti",onClick:Et},{name:"连接弹簧",type:"PointSpringConnect",onClick:$},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:Ut},{name:"Points - random",type:"PointsRandom",onClick:ge},{name:"线条动画",type:"InterpolatePath",onClick:Ae},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:Re},{name:"strokeDash",type:"StrokeDash",onClick:as},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:y},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:x},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:I},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:J},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:Y},{name:"扇形",type:"Sector",onClick:xt},{name:"rosetta",type:"Rosetta",onClick:ft},{name:"Confetti",type:"Confetti",onClick:ht}],Ot=[{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")}],Vt=[{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 Xt(){return new Promise(O=>{o.value.getCanvas().then(C=>{_n.downloadFromSVGString(C.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{O()},3e3)})})})}return re(()=>{}),t({}),(O,C)=>(F(),X(zt,null,[S("div",p1,[pt(ve,{asyncClick:Xt},{default:he(()=>[Kt(" downloadFromCanvasToSVG ")]),_:1})]),S("div",m1,[(F(),X(zt,null,Ce(_t,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:d.value.indexOf(w.type)>=0?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),ks(S("div",g1,[(F(),X(zt,null,Ce(Ot,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:m.value==w.type?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ms,d.value=="AnimateToCSS"]]),ks(S("div",null," 当前缓动函数:"+kt(e.easeName),513),[[ms,d.value=="AnimateToTweenCSS"]]),ks(S("div",y1,[(F(),X(zt,null,Ce(Vt,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:m.value==w.type?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ms,d.value=="AnimateToTweenCSS"]]),ks(S("div",v1,[S("div",_1,[S("div",null,"stroke-dasharray: "+kt(Lt.value)+","+kt(Lt.value),1),pt(Js,{max:988,defaultValue:Lt.value,onChange:Ue},null,8,["defaultValue"])]),S("div",b1,[S("div",null,"stroke-dashoffset: "+kt(ie.value),1),pt(Js,{max:988,defaultValue:ie.value,onChange:os},null,8,["defaultValue"])])],512),[[ms,d.value=="StrokeDash"]]),ks(S("div",x1,[pt(Ar,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[ms,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),ks(S("div",w1,[pt(tn,{ref_key:"canvasRef",ref:o,bgColor:"#333333"},null,512)],512),[[ms,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),ks(S("div",S1,[S("div",C1,[S("div",{ref_key:"divOneRef",ref:a},"1",512),S("div",{ref_key:"divTwoRef",ref:l},"2",512),S("div",{ref_key:"divThreeRef",ref:c},"3",512)]),S("div",E1,[S("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[ms,d.value=="AnimateToCSS"]]),ks(S("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[S("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[ms,d.value=="AnimateToTweenCSS"]])],64))}}),Pb="",T1=ut(k1,[["__scopeId","data-v-1386da9c"]]),O1={class:"loading-1"},P1=ct({__name:"Loading1",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),X("div",O1,[S("div",{class:"rect1",style:e}),S("div",{class:"rect2",style:e}),S("div",{class:"rect3",style:e}),S("div",{class:"rect4",style:e}),S("div",{class:"rect5",style:e})]))}}),Db="",D1=ut(P1,[["__scopeId","data-v-48b10c9a"]]),I1={class:"loading-2"},N1=ct({__name:"Loading2",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),X("div",I1,[S("div",{class:"dot1",style:e}),S("div",{class:"dot2",style:e})]))}}),Ib="",M1=ut(N1,[["__scopeId","data-v-79f9930f"]]),A1=ct({__name:"Loading3",props:{fromColor:{default:ot.colorPrimary},toColor:{default:ot.colorRed}},setup(s){const t=s,e=`
77
+ `,c=M();return Et(c,()=>{c.value&&tt.setStyleSheet(l,c.value)}),ue(()=>{}),t({}),(u,h)=>(N(),H("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[C("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:G({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,iy),u.showValue?(N(),H("label",ry,St(r.value)+St(n.unit),1)):Yt("",!0)],512))}}),Nb="",Gs=pt(oy,[["__scopeId","data-v-75b06946"]]),ay=ct({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r,o,a;const l=M();Et(l,()=>{r||!l.value||(r=new xs(l.value,!1),r.on("resize",(u,h)=>{i("resize",u,h),o=new s0(r),a?.(o),i("ready",o)}),r.start())});function c(){return new Promise(u=>{if(o)return u(o);a=u})}return ue(()=>{r?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(N(),H("div",{class:"svg",ref_key:"svgRef",ref:l,style:G({backgroundColor:n.bgColor})},null,4))}}),Ab="",Sr=pt(ay,[["__scopeId","data-v-132e642b"]]),ly={class:"input-range-svg"},cy={key:0,class:"label"},uy=ct({customOptions:{SVG:Sr},inheritAttrs:!0,__name:"InputRangeSvg",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:dt.colorPrimary},barColor:{default:dt.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=d=>{r.value=d,i("change",d)},a=ys(n.handleSize,20).number;let l;const c=()=>{l=new dh({x:0,y:a*.5,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:u,handleRadius:a}),l.on("change",o)};let u=0;const h=M();return Et(h,()=>{h.value&&h.value.getSVG().then(d=>{u=d.app.width,d.clear(),c(),d.path(l),d.app.on("resize",m=>{u=m,d.clear(),c(),d.path(l)})})}),ue(()=>{}),t({}),(d,m)=>(N(),H("div",ly,[C("div",{class:"input",style:G({height:n.handleSize})},[mt(Sr,{ref_key:"svgRef",ref:h},null,512)],4),d.showValue?(N(),H("div",cy,St(r.value)+St(n.unit),1)):Yt("",!0)]))}}),Lb="",hy=pt(uy,[["__scopeId","data-v-7e387689"]]),dy=["width","height"],fy=["fill"],py=ct({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:dt.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[C("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,fy)],8,dy))}}),Fb="",Ia=pt(py,[["__scopeId","data-v-4747d4a7"]]),my=ct({customOptions:{SVGDelete:Ia},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:dt.colorGrayFF},deleteColor:{default:dt.colorRed},fontColor:{default:dt.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{i("delete"),r.value=!1};let a;const l=M();return Et(l,()=>{l.value&&(a=new xs(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),ue(()=>{a?.destroy()}),t({}),(c,u)=>(N(),H("div",{class:"parent",ref_key:"item",ref:l,style:G({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[C("div",{class:"content",style:G({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[Tt(c.$slots,"default",{},void 0,!0)],4),C("div",{class:"delete",onClick:o,style:G({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[mt(Ia,{color:n.fontColor},null,8,["color"])],4)],4))}}),$b="",gy=pt(my,[["__scopeId","data-v-244215c2"]]),yy=ct({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},styleSheets:{},supportCopyText:{type:Boolean,default:!1}},emits:["ready","resize","start","end"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},l=()=>{r=="start"?a():o()},c=()=>{r=="start"?o():a()};let u=!1,h,d;const m=M();Et(m,()=>{if(!(!m.value||h)){if(n.styleSheets){let b="";for(let S in n.styleSheets)b+=`${S}: ${n.styleSheets[S]};`;tt.setStyleSheet(`
78
+ :root {
79
+ ${b}
80
+ }
81
+ :host {
82
+ ${b}
83
+ }
84
+ `,m.value)}h=new xs(m.value,!1),h.on("resize",(b,S)=>{i("resize",b,S,m.value.getBoundingClientRect()),d?.(h),u||(u=!0,n.effectTriggerTiming!=="manual"&&o(),i("ready",h),n.effectTriggerTiming=="immediate"&&l())}),h.on("mouseOver",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseOut",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&tt.copyToClipboard(tt.getInnerText(m.value)).then(()=>{}).catch(b=>{})}),h.start()}});const f=()=>new Promise(b=>{if(h)return b(h);d=b}),v=()=>f().then(()=>m.value.getBoundingClientRect());return ue(()=>{h?.destroy()}),t({getElement:()=>m.value,getApp:f,getSize:v,getStatus:()=>r,startEffect:o,endEffect:a,nextEffect:l,repeatEffect:c}),(b,S)=>(N(),H("div",{ref_key:"containerRef",ref:m,class:Jt(["container",[n.type]]),style:G({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[Tt(b.$slots,"default",{},void 0,!0)],6))}}),Vb="",kt=pt(yy,[["__scopeId","data-v-9860aaf1"]]),vy=ct({customOptions:{Container:kt,SVGDown:di},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=(h,d)=>{i("resize",h,d)},o=M(Number.MAX_SAFE_INTEGER+"px"),a=M(),l=M(!0);Et(a,()=>{a.value&&(o.value=a.value.getBoundingClientRect().height+"px",l.value=n.initOpen)});function c(){l.value=!l.value,l.value?i("open"):i("close")}const u=M(0);return Jl(()=>{u.value=l.value?0:-90}),t({}),(h,d)=>(N(),Gt(kt,{onResize:r},{default:Ot(()=>[C("div",{class:"accordion",style:G({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[C("div",{class:"accordion-title",onClick:c,style:G({height:n.titleHeight,lineHeight:n.titleHeight,margin:`0 ${n.padding}`,transitionDelay:`${l.value?0:n.duration}ms`,borderBottom:`${l.value?1:0}px solid ${n.borderColor}`})},[Tt(h.$slots,"title",{},()=>[Kt("title")],!0),mt(di,{class:"arrow",style:G({transition:`transform ${n.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),C("div",{class:"accordion-content",ref_key:"content",ref:a,style:G({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[Tt(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),Gb="",_y=pt(vy,[["__scopeId","data-v-6c9d636f"]]),by=ct({__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(s,{expose:t,emit:e}){const n=s,i=M(0);function r(o){i.value=Math.min(Math.max(0,o),100)}return t({goto:r}),(o,a)=>(N(),H("div",{class:"bar",style:G({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[C("div",{class:"bar-inner",style:G({width:i.value+"%",backgroundColor:n.progressColor})},St(n.showText?i.value+"%":""),5)],4))}}),Yb="",fi=pt(by,[["__scopeId","data-v-c3648a91"]]),xy=["width","height"],wy=["src","type"],Cy={class:"video-progress-bar"},Sy=ct({customOptions:{ProgressBar:fi},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e;function r(c){const u=new qe({frameDuration:this.duration*1e3});u.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{i("start"),a.value?.goto(0)},onUpdate:h=>{a.value?.goto(h.x)},onComplete:()=>{i("complete")}}),u.play()}const o=M(),a=M();Et(o,()=>{o.value&&(o.value.addEventListener("play",r),n.autoplay&&ba.tryAutoPlayOrAutoPlayAfterClick(o.value))}),ue(()=>{o.value?.removeEventListener(r)});function l(){o.value?.play()}return t({play:l}),(c,u)=>(N(),H("div",{class:"video",style:G({width:n.width,height:n.height}),onClick:l},[C("video",{ref_key:"video",ref:o,width:n.width,height:n.height,preload:"metadata"},[C("source",{src:n.src,type:n.type},null,8,wy)],8,xy),C("div",Cy,[mt(fi,{ref_key:"bar",ref:a,width:n.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),Bb="",Ty=pt(Sy,[["__scopeId","data-v-beef6ed8"]]),Tn=ct({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:wa("#000000",.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=M(),r=document.documentElement.style.overflow,o=document.body.style.overflow;return Et(()=>n.visible,()=>{n.isGlobal?n.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=r,document.body.style.overflow=o):i.value&&(n.visible?i.value.parentElement.style.overflow="hidden":i.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(a,l)=>n.visible?(N(),H("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:i,style:G([`background-color: ${n.color}`,`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[Tt(a.$slots,"default")],4)):Yt("",!0)}}),Ey=C("div",null,null,-1),Be=ct({customOptions:{Overlay:Tn,Container:kt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{},popPercent:{default:50},popBgColor:{default:"rgba(255,255,255,0)"}},emits:["open","close","resize","clickOverlay"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new qe({frameDuration:n.dur}),o=Zt({backgroundColor:n.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),a=M("full");Et(()=>[n.directionFrom,n.popValue],()=>{r.clear();const v=n.popValue?n.popValue:n.popPercent,b=n.popValue?"px":"%";switch(n.directionFrom){case"left":o.height="100%",o.width=`${v}${b}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:v},{left:0},{easeFunction:ut.Quadratic.Out,onUpdate(S){o.left=`-${S.left}${b}`},onComplete:u});break;case"right":o.height="100%",o.width=`${v}${b}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:v},{right:0},{easeFunction:ut.Quadratic.Out,onUpdate(S){o.right=`-${S.right}${b}`},onComplete:u});break;case"top":o.width="100%",o.height=`${v}${b}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:v},{top:0},{easeFunction:ut.Quadratic.Out,onUpdate(S){o.top=`-${S.top}${b}`},onComplete:u});break;case"bottom":o.width="100%",o.height=`${v}${b}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:v},{bottom:0},{easeFunction:ut.Quadratic.Out,onUpdate(S){o.bottom=`-${S.bottom}${b}`},onComplete:u});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:ut.Quadratic.Out,onUpdate(S){o.transform=`translate(-50%, -50%) scale(${S.scale})`,o.opacity=`${S.opacity}`},onComplete:u});break;case"absolute":o.width=n.absoluteWidth,o.height=n.absoluteHeight,o.left=n.absoluteLeft,o.top=n.absoluteTop,delete o.right,delete o.bottom;break}switch(n.directionFrom){case"center":a.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":a.value="shrink",delete o.transform,delete o.opacity;break;default:a.value="full",delete o.transform,delete o.opacity;break}},{immediate:!0}),Et(()=>n.absoluteLeft,()=>{switch(n.directionFrom){case"absolute":o.left=n.absoluteLeft;break}}),Et(()=>n.absoluteTop,()=>{switch(n.directionFrom){case"absolute":o.top=n.absoluteTop;break}}),Et(()=>n.absoluteWidth,()=>{switch(n.directionFrom){case"absolute":o.width=n.absoluteWidth;break}}),Et(()=>n.absoluteHeight,()=>{switch(n.directionFrom){case"absolute":o.height=n.absoluteHeight;break}});const l=(v,b,S)=>{i("resize",v,b,S)};let c="open";function u(){c=="open"?i("open"):(h.value=!1,i("close"))}const h=M(!1);function d(){h.value=!0,c="open",r.play()}function m(){switch(c="close",n.directionFrom){case"absolute":u();break;default:r.reverse();break}}function f(v){const b=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";v.target&&tt.hasClass(v.target,b)&&(n.closeWhenClickOverlay&&m(),i("clickOverlay"))}return t({open:d,close:m}),(v,b)=>(N(),Gt(Tn,{visible:h.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:Ot(()=>[C("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:f},[mt(kt,{class:"pop-content",type:a.value,style:G(o),onResize:l},{default:Ot(()=>[Tt(v.$slots,"default",{},()=>[Ey])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),ky=ct({...{},name:"Image",customOptions:{Container:kt,Pop:Be},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new qe({frameDuration:n.dur}),o=M(0),a=M(0),l=M(0),c=M(0),u=M(0),h=M(0),d=M(0),m=M(0),f=M(0),v=M(0);Jg(n.src).then(E=>{f.value=E.width,v.value=E.height,K()});const b=M(0),S=M(0),F=(E,D)=>{b.value=E,S.value=D,K()},$=M(0),O=M(0);function K(){if(!b.value||!S.value||!f.value||!v.value)return;const E=lh(n.mode,f.value,v.value,b.value,S.value);$.value=E.width,O.value=E.height;const{width:D,height:Y}=oa(),nt=lh("aspectFit",f.value,v.value,D,Y);d.value=nt.width,m.value=nt.height,u.value=(D-d.value)/2,h.value=(Y-m.value)/2}const st=(E,D,Y)=>{i("settled",Y.x,Y.y,Y.width,Y.height)};let J=!1;const gt=M(),x=M();async function k(){if(!n.openImageDetailWhenClick)return;const E=await gt.value.getSize();r.clear(),r.addTween({left:E.x,top:E.y,width:E.width,height:E.height},{left:u.value,top:h.value,width:d.value,height:m.value},{easeFunction:ut.Quadratic.Out,onUpdate(D){o.value=D.left,a.value=D.top,l.value=D.width,c.value=D.height},onComplete(){J&&x.value.close(),J=!J}}),J||(x.value.open(),r.play())}function P(){J&&r.reverse()}return t({}),(E,D)=>(N(),Gt(kt,{class:"image",type:"full",style:G({backgroundColor:n.bgColor}),onResize:F,onClick:k},{default:Ot(()=>[mt(kt,{class:"image-inner",ref_key:"imageRef",ref:gt,type:"shrink",style:G({width:$.value+"px",height:O.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${$.value}px ${O.value}px`}),onResize:st},null,8,["style"]),mt(Be,{ref_key:"popRef",ref:x,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:P},{default:Ot(()=>[C("div",{class:"image-pop",style:G({width:"100%",height:"100%",backgroundImage:`url(${n.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Xb="",Ma=pt(ky,[["__scopeId","data-v-48bcfc9f"]]),Da=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=Zt({}),o=Zt({});let a=n.name,l=n.duration,c=n.timingFunction,u=n.delay,h=n.repeat,d=n.direction;function m(){switch(a){case"superRainbow":l=n.duration||15e3;break;case"heartBeat":l=n.duration||1300;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=n.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=n.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=n.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=n.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=n.duration||600;break;default:l=n.duration||500;break}switch(a){case"superRainbow":c=n.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=n.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=n.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":c=n.timingFunction||"ease-in-out";break;default:c=n.timingFunction||"ease";break}switch(a){default:u=n.delay||0;break}switch(a){case"superRainbow":h=n.repeat||"infinite";break;default:h=n.repeat||1;break}switch(a){case"superRainbow":d=n.direction||"alternate";break;default:d=n.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}Et(()=>n.name,()=>{a=n.name,m()},{immediate:!0});const f=M(),v=M(),b=x=>{i("cssanimationstart",x.animationName)},S=x=>{i("cssanimationend",x.animationName)},F=x=>{r.perspective=n.perspective,x.on("animationstart",k=>{b(k)}),x.on("animationend",k=>{S(k)})};function $(){v.value.style.animation="none",v.value.offsetHeight,v.value.style.animation=null}const O=()=>{o.animation="none"},K=()=>{$(),o.animation=`${l}ms ${c} ${u}ms ${h} ${d} ${n.fillMode} ${n.playState} ${a}`};return t({trigger:x=>{x&&(a=x,m()),f.value.startEffect(),d="normal",f.value.endEffect()},triggerReverse:x=>{x&&(a=x,m()),f.value.startEffect(),d="reverse",f.value.endEffect()},clear:()=>{o.animation="none"}}),(x,k)=>(N(),Gt(kt,{class:"css-animation",ref_key:"containerRef",ref:f,type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,onStart:O,onEnd:K,onReady:F,style:G(r)},{default:Ot(()=>[C("div",{class:"css-animation-inner",ref_key:"animationRef",ref:v,style:G({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[Tt(x.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),jb="",Ra=ct({customOptions:{Container:kt,CSSAnimation:Da},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ut.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=Zt({}),a=()=>{i("ready",st,J)},l=()=>{v()},c=M();let u="rotateRightSideFirst",h=n.effect;function d(gt,x){switch(h){case"static":x();break;default:gt();break}}let m=!1;const f=new qe,v=()=>{const gt={},x={};f.clear(),f.frameDuration=n.duration,d(()=>{u=h},()=>{f.addTween(gt,x,{delay:n.delay/n.duration,easeFunction:n.easeFunction,onStart:()=>{i(m?"pageCloseStart":"pageOpenStart")},onUpdate:k=>{o.transform="","x"in k&&(o.transform+=` translateX(${k.x}%)`),"y"in k&&(o.transform+=` translateY(${k.y}%)`),"rx"in k&&(o.transform+=` rotateX(${k.rx}deg)`),"ry"in k&&(o.transform+=` rotateY(${k.ry}deg)`),"scale"in k&&(o.transform+=` scale(${k.scale})`),"opacity"in k&&(o.opacity=`${k.opacity}`)},onComplete:()=>{i(m?"pageCloseEnd":"pageOpenEnd")}})})};Et(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{h=n.effect,v()},{immediate:!0});const b=()=>{i(m?"pageCloseStart":"pageOpenStart")},S=()=>{i(m?"pageCloseEnd":"pageOpenEnd")},F=()=>{d(()=>{c.value.trigger(u)},()=>{f.play()})},$=()=>{d(()=>{c.value.triggerReverse(u)},()=>{f.reverse()})},O=()=>{o.transform="none",o.opacity="1"};function K(){d(()=>{O()},()=>{c.value?.clear()})}const st=gt=>{gt&&(h=gt,v()),m=!1,K(),r.value.startEffect()},J=gt=>{gt&&(h=gt,v()),m=!0,K(),r.value.endEffect()};return t({open:st,close:J,clear:O,getElement:()=>r.value.getElement()}),(gt,x)=>(N(),Gt(kt,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onResize:l,onStart:F,onEnd:$},{default:Ot(()=>[mt(Da,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:b,onCssanimationend:S},{default:Ot(()=>[C("div",{class:"page-inner",style:G({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[Tt(gt.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Tr=ct({customOptions:{Page:Ra,Container:kt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ut.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=-1,o=-1,a;const l=[];let c=[],u=[],h=[];function d(W){return W>=0&&W<c.length}function m(){return o>r}function f(W,L,te){switch(W){case r:return m()?L:te;case o:return m()?te:L;default:return"static"}}function v(W,L){switch(W){case"moveToLeft":return f(L,"moveToLeft","moveFromRight");case"moveToRight":return f(L,"moveToRight","moveFromLeft");case"moveToTop":return f(L,"moveToTop","moveFromBottom");case"moveToBottom":return f(L,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return f(L,"fade","moveFromLeft");case"moveFromRightPrevFade":return f(L,"fade","moveFromRight");case"moveFromTopPrevFade":return f(L,"fade","moveFromTop");case"moveFromBottomPrevFade":return f(L,"fade","moveFromBottom");case"moveToLeftFade":return f(L,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return f(L,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return f(L,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return f(L,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return f(L,"moveToLeft","moveFromRight");case"moveToRightEasing":return f(L,"moveToRight","moveFromLeft");case"moveToTopEasing":return f(L,"moveToTop","moveFromBottom");case"moveToBottomEasing":return f(L,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return f(L,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return f(L,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return f(L,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return f(L,"scaleToSmall","moveFromBottom");case"scaleSmall":return f(L,"scaleToSmall","scaleFromLarge");case"scaleLarge":return f(L,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return f(L,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return f(L,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return f(L,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return f(L,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return f(L,"moveToBottom","scaleFromSmall");case"glueToLeft":return f(L,"rotateRightSideFirst","moveFromRight");case"glueToRight":return f(L,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return f(L,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return f(L,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return f(L,"flipOutLeft","flipInRight");case"flipToRight":return f(L,"flipOutRight","flipInLeft");case"flipToTop":return f(L,"flipOutTop","flipInBottom");case"flipToBottom":return f(L,"flipOutBottom","flipInTop");case"rotateFall":return f(L,"rotateFall","scaleFromSmall");case"newspaper":return f(L,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return f(L,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return f(L,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return f(L,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return f(L,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return f(L,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return f(L,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return f(L,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return f(L,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return f(L,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return f(L,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return f(L,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return f(L,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return f(L,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return f(L,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return f(L,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return f(L,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return f(L,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return f(L,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return f(L,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return f(L,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return f(L,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return f(L,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return f(L,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return f(L,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return f(L,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return f(L,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return f(L,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return f(L,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return f(L,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return f(L,"rotateSlideOut","rotateSlideIn")}}function b(W,L=600,te=600){switch(W){case r:return L;case o:return te;default:return n.duration}}function S(W,L){switch(W){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return b(L,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return b(L,700,600);case"scaleSmall":return b(L,700,500);case"scaleLarge":return b(L,500,700);case"scaleToLargePrevScaleToSmall":return b(L,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return b(L,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return b(L,800,600);default:return n.duration}}let F=n.timingFunction;function $(W){switch(W){default:return n.easeFunction}}function O(W,L){switch(W){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(L){case r:F=m()?"ease-in-out":"ease";break;case o:default:F=m()?"ease":"ease-in-out"}return $(L);default:return F=n.timingFunction,n.easeFunction}}function K(W,L=300){switch(W){case o:return n.delay+L;default:return n.delay}}function st(W,L){switch(W){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return K(L,500);case"scaleSmall":case"scaleLarge":return K(L,300);case"scaleToLargePrevScaleToSmall":return K(L,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return K(L,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return K(L,180);default:return n.delay}}let J=2,gt=2;const x=()=>{J=2,gt=2},k=()=>{J=2,gt=3},P=()=>{J=3,gt=2};function E(W){switch(n.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":P();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":m()?P():k();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":m()?k():P();break;default:x();break}d(r)&&r==W&&(h[r].style.zIndex=`${J}`,h[r].style.visibility="visible"),d(o)&&o==W&&(h[o].style.zIndex=`${gt}`,h[o].style.visibility="visible")}function D(W){k(),W==r&&(h[r].style.zIndex=`${J}`,h[r].style.visibility="hidden"),W==o&&(h[o].style.zIndex=`${gt}`,h[o].style.visibility="visible",l.shift()?.(),i("routeChangeEnd",r,o,c.length),r=o)}const Y=M();function nt(W=0,L=!1){if(!Y.value)return;let te=0;Zc(ms("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((oe,It)=>{const ae=v(n.effect,It);return ms("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==It?"visible":"hidden",zIndex:L?"1":"0"}},oe.pageKey?{key:oe.pageKey}:{}),ms(Ra,{effect:ae,duration:S(n.effect,It),easeFunction:O(n.effect,It),timingFunction:F,delay:st(n.effect,It),onReady:(zt,ie)=>{u[It]={open:zt,close:ie},++te==W&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{E(It)},onPageOpenEnd:()=>{D(It)},onPageCloseStart:()=>{E(It)},onPageCloseEnd:()=>{D(It)}},{default:()=>oe.component instanceof HTMLElement?ms("div",{...oe.attributes,innerHTML:oe.component.innerHTML}):ms(oe.component,oe.attributes,()=>oe.child)}))})),Y.value),h=Y.value.children[0].children}Et(()=>n.effect,()=>{nt()});function q(W=[]){c=[...W],c.forEach(L=>{L.pageKey=L.pageKey||ni()}),a=()=>{r=-1,A(0)},nt(c.length,!0)}function X(W){W.pageKey=W.pageKey||ni(),c.push(W),a=()=>{A(c.length-1)},nt(1,c.length==1)}function it(){c.length<=1||A(c.length-2,()=>{c.splice(c.length-1,1),r=c.length-1,nt()})}function B(){A(r+1)}function V(){A(r-1)}const yt=new cr(1);function A(W,L){yt.addTask(()=>new Promise(te=>{const oe=()=>{L?.(),te()};if(!d(W)){oe();return}if(o=W,o==r){oe();return}l.push(oe),nt(),i("routeChangeStart",r,o,c.length),m()?(d(r)&&u[r].open(),d(o)&&u[o].open()):(d(r)&&u[r].close(),d(o)&&u[o].close())}))}return t({reset:q,push:X,pop:it,forward:B,back:V,goto:A,currentPageIndex:()=>r,totalPages:()=>c.length}),(W,L)=>(N(),H("div",{class:"routes",ref_key:"routesRef",ref:Y,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),Py={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Oy=ct({customOptions:{Image:Ma,Container:kt,Routes:Tr},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(d,m){i.value=m}const o=M(),a=d=>{d.on("panLeft",()=>{o.value?.forward()}),d.on("panRight",()=>{o.value?.back()}),o.value.reset(n.urls.map(m=>({component:ms(Ma,{mode:"aspectFit",src:m,openImageDetailWhenClick:!1})})))},l=M();function c(){l.value?.open()}function u(){l.value?.close()}const h=d=>{d.target&&tt.hasClass(d.target,"image")&&u()};return t({open:c,close:u}),(d,m)=>(N(),Gt(Be,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:Ot(()=>[n.urls.length>1?(N(),H("div",Py,St(i.value+1)+" / "+St(n.urls.length),1)):Yt("",!0),mt(kt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:Ot(()=>[mt(Tr,{ref_key:"routesRef",ref:o,effect:n.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),Hb="",Iy={class:"page"},My={class:"header"},Dy={class:"main"},Ry={class:"main-scroll"},Ny={class:"footer"},Ay=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return vg(s.designWidth),t({}),(i,r)=>(N(),H("div",Iy,[C("header",My,[Tt(i.$slots,"header",{},void 0,!0)]),C("div",Dy,[C("div",Ry,[Tt(i.$slots,"main",{},void 0,!0)])]),C("footer",Ny,[Tt(i.$slots,"footer",{},void 0,!0)])]))}}),Ub="",Ly=pt(Ay,[["__scopeId","data-v-3904d6b5"]]),Fy=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=Zt({}),r=Zt({});function o(){switch(Fu(i),Fu(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(),ue(()=>{}),t({}),(a,l)=>(N(),H("div",{class:"layout-center",style:G(i)},[C("div",{style:G(r)},[Tt(a.$slots,"default",{},void 0,!0)],4)],4))}}),Wb="",$y=pt(Fy,[["__scopeId","data-v-37646611"]]),Vy=C("div",{style:{"background-color":"#ffffff"}},"...",-1),Na=ct({customOptions:{Pop:Be,Button:ve,Container:kt},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const t=s,e=M();function n(){e.value.open()}const i=M(),r=M(0),o=M(0),a=M(0),l=M(0),c=(u,h)=>{if(a.value=u,l.value=h,!i.value)return;const d=oa(),m=i.value.getBoundingClientRect();r.value=Math.max(t.gap,Math.min(m.x+m.width+t.gap,d.width-u-t.gap)),o.value=Math.max(t.gap,Math.min(m.y,d.height-h-t.gap))};return(u,h)=>(N(),H(Lt,null,[C("div",{ref_key:"popoverButtonRef",ref:i,class:"popover-button",style:{display:"inline-block"},onClick:n},[Tt(u.$slots,"button",{},()=>[mt(ve,null,{default:Ot(()=>[Kt("popover")]),_:1})])],512),mt(Be,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:Ot(()=>[C("div",{style:G({position:"absolute",left:r.value+"px",top:o.value+"px",width:a.value+"px",height:l.value+"px"})},[mt(kt,{type:"shrink",onResize:c},{default:Ot(()=>[Tt(u.$slots,"panel",{},()=>[Vy])]),_:3})],4)]),_:3},8,["isGlobal"])],64))}}),Gy={class:"dialog-parent"},Yy={key:0,class:"title"},By={key:0,class:"title-inner truncate"},zy={class:"custom-content"},Xy={class:"custom-content-default"},jy={key:1,class:"btns"},Hy=ct({customOptions:{Overlay:Tn,Pop:Be,Icon:hn,Button:ve},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,d,m;const f=()=>{i("open")},v=()=>{h?.(),i("close")};function b(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||"",h=O?.onClose,d=O?.onCancel,m=O?.onConfirm,r.value.open()}function S(){r.value.close()}function F(){S(),d?.(),i("cancel")}function $(){S(),m?.(),i("confirm")}return t({open:b,close:S}),(O,K)=>(N(),Gt(Be,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:n.overlayBgColor,onOpen:f,onClose:v},{default:Ot(()=>[C("div",Gy,[C("div",{class:"dialog",style:G({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(N(),H("div",Yy,[o.value?(N(),H("div",By,St(o.value),1)):Yt("",!0),l.value?(N(),H("div",{key:1,class:"close",onClick:S},[mt(hn,{icon:"ic:baseline-close",color:At(dt).colorGrayCC},null,8,["color"])])):Yt("",!0)])):Yt("",!0),C("div",zy,[Tt(O.$slots,"default",{},()=>[C("div",Xy,St(a.value),1)],!0)]),c.value||u.value?(N(),H("div",jy,[c.value?(N(),Gt(ve,{key:0,onClick:F,class:"btn",bgColor:At(dt).colorGrayE6,borderColor:At(dt).colorGrayE6,fontColor:At(dt).colorGray33,borderRadius:"0"},{default:Ot(()=>[Kt(St(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Yt("",!0),u.value?(N(),Gt(ve,{key:1,onClick:$,class:"btn",borderRadius:"0"},{default:Ot(()=>[Kt(St(u.value),1)]),_:1})):Yt("",!0)])):Yt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),qb="",pi=pt(Hy,[["__scopeId","data-v-f9df8635"]]),Uy={class:"loading-8"},Wy={viewBox:"25 25 50 50"},qy=ct({__name:"Loading8",props:{color:{default:dt.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),H("div",Uy,[(N(),H("svg",Wy,[C("circle",{cx:"50",cy:"50",r:"20",style:G(["stroke: "+t.color])},null,4)]))]))}}),Zb="",Aa=pt(qy,[["__scopeId","data-v-e5e3cf4c"]]),Zy={class:"loading"},Ky={class:"icon"},Qy={style:{width:"8em"}},Jy={key:0,class:"content"},tv=ct({customOptions:{Overlay:Tn,Pop:Be,Dialog:pi,Loading8:Aa},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h){o.value=h||"",r.value.open()}function u(){r.value.close()}return t({open:c,close:u}),(h,d)=>(N(),Gt(pi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,onOpen:a,onClose:l},{default:Ot(()=>[C("div",Zy,[C("div",Ky,[Tt(h.$slots,"default",{},()=>[C("div",Qy,[mt(Aa)])],!0)]),o.value?(N(),H("div",Jy,St(o.value),1)):Yt("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),Kb="",ev=pt(tv,[["__scopeId","data-v-e707960a"]]),sv={class:"toast"},nv={class:"content"},iv=ct({customOptions:{Overlay:Tn,Pop:Be,Dialog:pi},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h,d=1500){o.value=h,r.value.open(),setTimeout(()=>{u()},d)}function u(){r.value.close()}return t({open:c,close:u}),(h,d)=>(N(),Gt(pi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:a,onClose:l},{default:Ot(()=>[C("div",sv,[C("div",nv,St(o.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),Qb="",rv=pt(iv,[["__scopeId","data-v-7a82fa25"]]),ov={class:"tab"},av=ct({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(N(),H("div",ov,[Tt(e.$slots,"default",{},void 0,!0)]))}}),Jb="",lv=pt(av,[["__scopeId","data-v-6589e7fa"]]),cv={class:"tabs"},uv=["onClick"],hv={class:"content"},dv=ct({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.initIndex),o=Zt([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),d=[],m=wf(),f=m.default&&m.default();f&&(ri(o,f),S(r.value));const v=($,O)=>{if($){if(d.push({index:O,el:$}),d.length<o.length)return;h.value=d}};Et([a,h],()=>{b()});function b(){if(a.value&&h.value.length){const $=a.value.getBoundingClientRect(),O=h.value[r.value].el.getBoundingClientRect();l.value=O.x-$.x,c.value=O.y-$.y+O.height-2,u.value=O.width}}function S($){r.value=$,i("changedIndex",$),b(),F.value.goto($)}const F=M();return Et(F,()=>{F.value&&F.value.reset(n.pages,()=>{F.value.goto(n.initIndex)})}),t({}),($,O)=>(N(),H("div",cv,[C("div",{class:"header",ref_key:"headerRef",ref:a},[(N(!0),H(Lt,null,ge(n.labels,(K,st)=>(N(),H("div",{key:K,class:Jt(st==r.value?"active":""),onClick:J=>S(st)},[C("div",{ref_for:!0,ref:J=>v(J,st)},St(K),513)],10,uv))),128)),C("div",{class:"indicator",style:G({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),C("div",hv,[mt(Tr,{ref_key:"routesRef",ref:F},null,512)])]))}}),tx="",fv=pt(dv,[["__scopeId","data-v-cb33ca53"]]),pv=["width","height"],mv=ct({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=M();return Et(r,()=>{if(!r.value)return;const o=new xs(r.value),a=new ph(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{re.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(N(),H("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:G([`border: 1px solid ${o.borderColor}`])},null,12,pv))}}),gv={class:"page-vertical-scroll-progress-bar"},yv=ct({customOptions:{ProgressBar:fi},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();return Ce.on("scroll",()=>{const o=fg();i("progress",o),r.value?.goto(o)}),ue(()=>{}),t({}),(o,a)=>(N(),H("div",gv,[mt(fi,{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"])]))}}),ex="",vv=pt(yv,[["__scopeId","data-v-6a57a80a"]]),_v=["fill"],bv=["fill"],xv=ct({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:dt.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),H("svg",{style:G(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[C("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,_v),C("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,bv)],4))}}),sx="",La=pt(xv,[["__scopeId","data-v-987aed3d"]]),Fa=s=>(Gn("data-v-85491020"),s=s(),Yn(),s),wv=[Fa(()=>C("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)),Fa(()=>C("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)),Fa(()=>C("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))],Cv=ct({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:dt.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),H("svg",{style:G(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},wv,4))}}),ox="",Er=pt(Cv,[["__scopeId","data-v-85491020"]]),Sv=["data-number"],Tv=["data-number","data-unactive"],Ev=["data-number"],kv=["data-number","data-unactive"],Pv=ct({customOptions:{Pop:Be,SVGCleanUp:Er,Container:kt},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(0),a=Zt([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&d()}Et(()=>[...n.initPlates],()=>{ri(a,n.initPlates),l()},{immediate:!0});const c=M(0),u=($,O)=>{c.value=O},h=()=>{r.value.open(),i("open")},d=()=>{r.value.close(),i("close")},m=()=>{a.pop(),l(),i("plates",a)},f=$=>{if($.target.dataset.unactive||"")return;let K=$.target.dataset.number;K&&(a.push(K),l(),i("plates",a))};t({open:h,close:d});const v=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],b=["1","2","3","4","5","6","7","8","9","0"],S=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],F=["港","澳","学","警","使","领","挂","应","急"];return($,O)=>(N(),Gt(Be,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:Ot(()=>[mt(kt,{class:"popup-plate",style:G({paddingBottom:At(dt).safeAreaBottom}),onResize:u},{default:Ot(()=>[C("div",null,[C("div",{onClick:d},"关闭")]),C("div",{class:Jt(["step",o.value==0?"":"hide"])},[(N(),H(Lt,null,ge(v,K=>C("div",{key:K,class:"popitem",onClick:f,"data-number":K},St(K),9,Sv)),64)),C("div",{class:"popitem popitem-clear",onClick:m},[mt(Er,{width:"16px"})])],2),C("div",{class:Jt(["step",o.value!=0?"":"hide"])},[(N(),H(Lt,null,ge(b,K=>C("div",{key:K,class:Jt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":K,"data-unactive":o.value!=2?"unactive":""},St(K),11,Tv)),64)),(N(),H(Lt,null,ge(S,K=>C("div",{key:K,class:"popitem",onClick:f,"data-number":K},St(K),9,Ev)),64)),(N(),H(Lt,null,ge(F,K=>C("div",{key:K,class:Jt(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":K,"data-unactive":o.value!=2?"unactive":""},St(K),11,kv)),64)),C("div",{class:"popitem popitem-clear",onClick:m},[mt(Er,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),ax="",gh=pt(Pv,[["__scopeId","data-v-7865d42e"]]),Ov=document.getElementById("teleport")||document.documentElement;function Iv(s){{const t=ms(gh,s);return Zc(t,Ov),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const kr=s=>(Gn("data-v-7f69a9fe"),s=s(),Yn(),s),Mv=kr(()=>C("div",{class:"title"},"车牌颜色",-1)),Dv={class:"plate-types"},Rv=["onClick"],Nv=kr(()=>C("div",{class:"title"},"车牌号码",-1)),Av={class:"plate-numbers"},Lv=kr(()=>C("div",{class:"dot"},"·",-1)),Fv=["onClick"],$v=kr(()=>C("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Vv=ct({customOptions:{SVGCheck:La},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],o=M(0),a=Zt([]),l=M(-1);function c(){Iv({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:d=>{ri(a,d),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=d=>{o.value=d,l.value<=r[d].completePlateLength&&a.length<r[d].completePlateLength?(l.value=a.length,c(),i("clear")):ri(a,a.slice(0,r[d].completePlateLength)),r[d].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=d=>{ri(a,a.slice(0,d)),l.value=Math.min(Math.max(0,l.value),d),c(),i("clear")};return t({}),(d,m)=>(N(),H("div",Oo(d.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[Mv,C("div",Dv,[(N(),H(Lt,null,ge(r,(f,v)=>C("div",{key:v,class:Jt(v==o.value?"checked":""),onClick:b=>u(v)},[C("div",{style:G(f.style)},null,4),C("div",null,St(f.name),1),C("div",null,[mt(La,{color:"#ffffff",width:"0.14rem"})])],10,Rv)),64))]),Nv,C("div",Av,[C("div",{onClick:m[0]||(m[0]=f=>h(0)),class:Jt(l.value==0?"current":"")},St(a[0]),3),C("div",{onClick:m[1]||(m[1]=f=>h(1)),class:Jt(l.value==1?"current":"")},St(a[1]),3),Lv,(N(!0),H(Lt,null,ge(r[o.value].completePlateLength-2,f=>(N(),H("div",{key:f,class:Jt(f+1==l.value?"current":""),onClick:v=>h(f+1)},St(a[f+1]),11,Fv))),128))]),$v],16))}}),lx="",Gv=pt(Vv,[["__scopeId","data-v-7f69a9fe"]]),Yv={class:"parent"},Bv=ct({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const d=i.filter(m=>m.name===h);return d.length?d[0]:o("未知")}const a=r(n.plate),l=M(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,d)=>(N(),H("div",Yv,[C("div",{class:Jt(["leading",n.displayType]),style:G(l.value.style)},St(l.value.name),7),C("div",{class:"text",style:G({color:At(c),"font-size":At(u)})},St(At(a)),5)]))}}),cx="",zv=pt(Bv,[["__scopeId","data-v-11a104c3"]]),En=(s,t=0,e=1)=>s>e?e:s<t?t:s,de=(s,t=0,e=Math.pow(10,t))=>Math.round(e*s)/e,Xv=s=>Wv($a(s)),$a=s=>(s[0]==="#"&&(s=s.substring(1)),s.length<6?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?de(parseInt(s[3]+s[3],16)/255,2):1}:{r:parseInt(s.substring(0,2),16),g:parseInt(s.substring(2,4),16),b:parseInt(s.substring(4,6),16),a:s.length===8?de(parseInt(s.substring(6,8),16)/255,2):1}),jv=s=>Uv(Hv(s)),yh=({h:s,s:t,v:e,a:n})=>{const i=(200-t)*e/100;return{h:de(s),s:de(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:de(i/2),a:de(n,2)}},Va=s=>{const{h:t,s:e,l:n}=yh(s);return`hsl(${t}, ${e}%, ${n}%)`},Ga=s=>{const{h:t,s:e,l:n,a:i}=yh(s);return`hsla(${t}, ${e}%, ${n}%, ${i})`},Hv=({h:s,s:t,v:e,a:n})=>{s=s/360*6,t=t/100,e=e/100;const i=Math.floor(s),r=e*(1-t),o=e*(1-(s-i)*t),a=e*(1-(1-s+i)*t),l=i%6;return{r:de([e,o,r,r,a,e][l]*255),g:de([a,e,e,o,r,r][l]*255),b:de([r,r,a,e,e,o][l]*255),a:de(n,2)}},Pr=s=>{const t=s.toString(16);return t.length<2?"0"+t:t},Uv=({r:s,g:t,b:e,a:n})=>{const i=n<1?Pr(de(n*255)):"";return"#"+Pr(s)+Pr(t)+Pr(e)+i},Wv=({r:s,g:t,b:e,a:n})=>{const i=Math.max(s,t,e),r=i-Math.min(s,t,e),o=r?i===s?(t-e)/r:i===t?2+(e-s)/r:4+(s-t)/r:0;return{h:de(60*(o<0?o+6:o)),s:de(i?r/i*100:0),v:de(i/255*100),a:n}},vh=(s,t)=>{if(s===t)return!0;for(const e in s)if(s[e]!==t[e])return!1;return!0},qv=(s,t)=>s.toLowerCase()===t.toLowerCase()?!0:vh($a(s),$a(t)),_h={},bh=s=>{let t=_h[s];return t||(t=document.createElement("template"),t.innerHTML=s,_h[s]=t),t},Ya=(s,t,e)=>{s.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let kn=!1;const Ba=s=>"touches"in s,Zv=s=>kn&&!Ba(s)?!1:(kn||(kn=Ba(s)),!0),xh=(s,t)=>{const e=Ba(t)?t.touches[0]:t,n=s.el.getBoundingClientRect();Ya(s.el,"move",s.getMove({x:En((e.pageX-(n.left+window.pageXOffset))/n.width),y:En((e.pageY-(n.top+window.pageYOffset))/n.height)}))},Kv=(s,t)=>{const e=t.keyCode;e>40||s.xy&&e<37||e<33||(t.preventDefault(),Ya(s.el,"move",s.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class za{constructor(t,e,n,i){const r=bh(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=i,this.nodes=[o.firstChild,o]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(kn?"touchmove":"mousemove",this),e(kn?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!Zv(t)||!kn&&t.button!=0)return;this.el.focus(),xh(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),xh(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Kv(this,t);break}}style(t){t.forEach((e,n)=>{for(const i in e)this.nodes[n].style.setProperty(i,e[i])})}}class Qv extends za{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:Va({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${de(t)}`)}getMove(t,e){return{h:e?En(this.h+t.x*360,0,360):360*t.x}}}class Jv extends za{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:Va(t)},{"background-color":Va({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${de(t.s)}%, Brightness ${de(t.v)}%`)}getMove(t,e){return{s:e?En(this.hsva.s+t.x*100,0,100):t.x*100,v:e?En(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const t1=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',e1="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",s1="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",Or=Symbol("same"),Xa=Symbol("color"),wh=Symbol("hsva"),ja=Symbol("update"),Ch=Symbol("parts"),Ir=Symbol("css"),Mr=Symbol("sliders");let n1=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Ir](){return[t1,e1,s1]}get[Mr](){return[Jv,Qv]}get color(){return this[Xa]}set color(t){if(!this[Or](t)){const e=this.colorModel.toHsva(t);this[ja](e),this[Xa]=t}}constructor(){super();const t=bh(`<style>${this[Ir].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[Ch]=this[Mr].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[Or](i)||(this.color=i)}handleEvent(t){const e=this[wh],n={...e,...t.detail};this[ja](n);let i;!vh(n,e)&&!this[Or](i=this.colorModel.fromHsva(n))&&(this[Xa]=i,Ya(this,"color-changed",{value:i}))}[Or](t){return this.color&&this.colorModel.equal(t,this.color)}[ja](t){this[wh]=t,this[Ch].forEach(e=>e.update(t))}};class i1 extends za{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const e=Ga({...t,a:0}),n=Ga({...t,a:1}),i=t.a*100;this.style([{left:`${i}%`,color:Ga(t)},{"--gradient":`linear-gradient(90deg, ${e}, ${n}`}]);const r=de(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(t,e){return{a:e?En(this.hsva.a+t.x):t.x}}}const r1=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class o1 extends n1{get[Ir](){return[...super[Ir],r1]}get[Mr](){return[...super[Mr],i1]}}const a1={defaultColor:"#0001",toHsva:Xv,fromHsva:jv,equal:qv,fromAttr:s=>s};class l1 extends o1{get colorModel(){return a1}}class c1 extends l1{}customElements.define("hex-alpha-color-picker",c1);const u1=ct({customOptions:{Popover:Na},__name:"ColorPicker",props:{color:{default:dt.colorPrimary}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=M(e.color);Et(i,(a,l)=>{a!==l&&n("change",a)});const r=M(),o=a=>{i.value=a.detail.value};return Et(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Jd("hex-alpha-color-picker");return N(),Gt(Na,null,{button:Ot(()=>[Tt(a.$slots,"default",{},()=>[C("span",{class:"button",style:G({backgroundColor:i.value})},null,4)],!0)]),panel:Ot(()=>[mt(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),ux="",h1=pt(u1,[["__scopeId","data-v-ac12603f"]]),hx="",d1={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",aa&&this.$el.appendChild(s),s.data="about:blank",aa||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&&(!aa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},f1={class:"resize-observer",tabindex:"-1"};function p1(s,t,e,n,i,r){return N(),H("div",f1)}const m1=pt(d1,[["render",p1],["__scopeId","data-v-d5987ae1"]]),g1=ct({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=M(n.mapWidth),r=M(n.mapHeight);let o;const a=M();return Et(a,()=>{a.value&&(o=new xs(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),rn(()=>{tt.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new p0(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),ue(()=>{o.destroy()}),t({}),(l,c)=>(N(),H("div",Oo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Tt(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),dx="",y1=pt(g1,[["__scopeId","data-v-e5da8598"]]);var mi=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new mi.Panel("FPS","#0ff","#002")),l=e(new mi.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new mi.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:t,setMode:n}};mi.Panel=function(s,t,e){var n=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,d=15*o,m=74*o,f=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=e,b.fillRect(0,0,a,l),b.fillStyle=t,b.fillText(s,c,u),b.fillRect(h,d,m,f),b.fillStyle=e,b.globalAlpha=.9,b.fillRect(h,d,m,f),{dom:v,update:function(S,F){n=Math.min(n,S),i=Math.max(i,S),b.fillStyle=e,b.globalAlpha=1,b.fillRect(0,0,a,d),b.fillStyle=t,b.fillText(r(S)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),b.drawImage(v,h+o,d,m-o,f,h,d,m-o,f),b.fillRect(h+m-o,d,o,f),b.fillStyle=e,b.globalAlpha=.9,b.fillRect(h+m-o,d,o,r((1-S/F)*f))}}};const v1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=M();return rn(()=>{const n=new mi;n.domElement.style.margin="1em",e.value.appendChild(n.domElement),Wt(()=>(n.update(),!0))}),t({}),(n,i)=>(N(),H("div",{ref_key:"containerRef",ref:e},null,512))}}),_1=["width","height"],b1=ct({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(),a=M(0),l=M(0);let c;Et(r,()=>{r.value&&(c=new xs(r.value,!1),c.on("resize",(v,b)=>{const S=oa();a.value=Math.min(v,S.width),l.value=Math.min(b,S.height),m()}),c.start())}),Et(o,()=>{o.value&&m()});let u,h,d;function m(){u||!o.value||!a.value||!l.value||(u=new xs(o.value,!1),u.on("resize",(v,b)=>{i("resize",v,b),h=new ph(u,n.enableCustomContext),d?.(h),i("ready",h)}),u.start())}function f(){return new Promise(v=>{if(h)return v(h);d=v})}return ue(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:f}),(v,b)=>(N(),H("div",{class:"canvas",ref_key:"canvasOutterRef",ref:r},[C("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:G({backgroundColor:n.bgColor})},null,12,_1)],512))}}),px="",Ys=pt(b1,[["__scopeId","data-v-1fc03287"]]),x1={class:"ease-graph"},w1=ct({customOptions:{Button:ve,Canvas:Ys},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Et(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},d=()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},m=new qe({frameDuration:n.easeDuration});m.addTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,onUpdate:f=>{u.x=f.x},onComplete:()=>{}}),m.addTween(u,{y:n.graphVerticalGap},{frames:1,delay:0,easeFunction:n.easeFunction,onUpdate:f=>{u.y=f.y,d()},onComplete:()=>{i("onCompleted",n.easeName),a=!1}}),m.play()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return ue(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(N(),H("div",x1,[C("div",null,"缓动:"+St(u.easeName),1),C("div",null,[C("div",null,[mt(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Ot(()=>[Kt(" 开始 ")]),_:1})]),C("div",null,[mt(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Ot(()=>[Kt(" 选择 ")]),_:1},8,["stylePattern"])])]),C("div",{style:G({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[mt(Ys,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),mx="",Ha=pt(w1,[["__scopeId","data-v-e8afe7ba"]]),C1=2e3,S1=ct({customOptions:{EaseGraphDisplay:Ha},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:bt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:bt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:bt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:bt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:bt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:bt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:bt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:bt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:bt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:bt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:bt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:bt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:bt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:bt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:bt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:bt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:bt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:bt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:bt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:bt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:bt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:bt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:bt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:bt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:bt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:bt.Easing.Back.In},{easeName:"BackOut",easeFunction:bt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:bt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:bt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:bt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:bt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:bt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:bt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:bt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:bt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:bt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:bt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:bt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:bt.Easing.swing},{easeName:"causeSeizures",easeFunction:bt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(d,m){d&&(r[m]={el:d})}const a=new cr(10);function l(d){a.addTask(()=>(r[d].el.start(),new Promise(m=>{r[d].resolve=m})))}function c(d){r[d].resolve?.()}const u=M("Linear");function h(d,m){u.value=d,i("selectedEaseFunction",d,m)}return h("Linear",bt.Easing.Linear.None),t({}),(d,m)=>(N(),H("div",null,[(N(!0),H(Lt,null,ge(n.easeList,f=>(N(),H("div",{key:f.easeName,class:"ease-graph-wrap"},[f.easeFunction?(N(),Gt(Ha,{key:0,easeName:f.easeName,easeFunction:f.easeFunction,easeDuration:C1,isSelected:u.value==f.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:v=>o(v,f.easeName)},null,8,["easeName","easeFunction","isSelected"])):Yt("",!0)]))),128))]))}}),gx="",T1=pt(S1,[["__scopeId","data-v-fa7ba01d"]]),E1={class:"interpolation-graph"},Sh=1/6,Th=5/6,k1=ct({customOptions:{Button:ve,Canvas:Ys},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Et(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",n.interpolationName),o.app.on("showInParent",f)})});const a=n.canvasWidth*Sh,l=n.canvasHeight/2,c=[n.canvasWidth*Th,n.canvasWidth/2],u=[n.canvasHeight*Sh,n.canvasHeight*Th],h=[...c,a],d=[...u,l];let m=!1;const f=()=>{if(!o||m)return;m=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var v=0;v<c.length;v++)o.ctx.fillRect(c[v]-2,u[v]-2,4,4);const b=new qe({frameDuration:n.interpolationDuration});b.addTween({x:a,y:l,old:{x:a,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate: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.addTween({x:a,y:l,old:{x:a,y:l}},{x:h,y:d},{frames:1,delay:0,easeFunction:bt.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:()=>{i("onCompleted",n.interpolationName),m=!1}}),b.play()};return ue(()=>{o.app.off("showInParent",f)}),t({start:f}),(v,b)=>(N(),H("div",E1,[C("div",null,[Kt(" 插值:"+St(v.interpolationName)+" ",1),mt(ve,{stylePattern:"outline",height:"32px",onClick:f},{default:Ot(()=>[Kt(" 开始 ")]),_:1})]),C("div",{style:G({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[mt(Ys,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),yx="",Ua=pt(k1,[["__scopeId","data-v-17bd4dde"]]),P1=2e3,O1=ct({customOptions:{InterpolationGraphDisplay:Ua},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:bt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:bt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:bt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new cr(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(N(),H("div",null,[(N(!0),H(Lt,null,ge(n.interpolationList,h=>(N(),H("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[mt(Ua,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:P1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:d=>r(d,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),vx="",I1=pt(O1,[["__scopeId","data-v-6e8312e3"]]),M1='<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>',D1={class:"btns"},R1={class:"btns"},N1={class:"btns sub-btns"},A1={class:"btns sub-btns"},L1={style:{width:"100%"}},F1={style:{width:"100%"}},$1={style:{height:"400px"}},V1={style:{height:"400px"}},G1=ct({customOptions:{Button:ve,InputRange:Gs,SVG:Sr,Canvas:Ys},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:bt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=M();let i=0,r=0;Et(n,()=>{n.value&&n.value.getSVG().then(x=>{i=x.app.width,r=x.app.height,x.app.on("resize",(k,P)=>{i=k,r=P})})});const o=M(),a=M(),l=M(),c=M(""),u=M("");let h;function d(x){switch(u.value=x,c.value){case"AnimateToTweenCSS":J();break}}const m=new n0({svg:M1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),f=new Ht({d:"M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"}),v=+f.getTotalLength().toFixed(0),b=M(v),S=M(Math.floor(v/2));function F(x){b.value=x,f.setAttr("strokeDasharray",`${b.value} ${b.value}`)}function $(x){S.value=x,f.setAttr("strokeDashoffset",`${S.value}`)}const O=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new Sn({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:$t()},enableDrag:!0});x.clear(),h=Wt(()=>(k.ctx.clearRect(),x.path([P]),k.draw([P]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!n.value||!o.value)return;h?.();const x=new ce({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),k=new ce({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),P=Xt(0,i-100),E=Xt(0,r-100),D=new ce({attrs:{stroke:"#666666"}});D.x=P,D.y=E,D.toX=P+100,D.toY=E+100;const Y=new ce({attrs:{stroke:"#666666"}});Y.x=P+100,Y.y=E,Y.toX=P,Y.toY=E+100;const nt=D.intersection(Y),q=new Ut({x:0,y:0,radius:10,attrs:{fill:$t()}});nt&&(q.x=nt.x,q.y=nt.y);const X=new xr({x:Xt(0,i),y:Xt(0,r),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),it=new ye({x:Xt(0,i),y:Xt(0,r),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new i0({x:Xt(0,i),y:Xt(0,r),scalar:.99,degree:-1,attrs:{fill:$t(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new r0({x:Xt(0,i),y:Xt(0,r),scalar:.99,degree:-1,attrs:{fill:$t(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),yt=new o0({x:Xt(0,i),y:Xt(0,r),scalar:1,degree:0,attrs:{fill:$t()},enableDrag:!0}),A=new Ea({x:Xt(0,i),y:Xt(0,r),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),W=new a0({x:Xt(0,i),y:Xt(0,r),scalar:1,degree:0,attrs:{fill:$t(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),L=new l0({x:Xt(0,i),y:Xt(0,r),scalar:1,degree:0,attrs:{fill:$t()},enableDrag:!0}),te=new c0({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:$t(),fill:"none"},enableDrag:!0}),oe=new d0({x:Xt(0,i),y:Xt(0,r),degree:30,scalar:2,showFlame:!0,attrs:{stroke:$t()},enableDrag:!0}),It=new Sn({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:$t()},enableDrag:!0}),ae=new dh({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ae.on("change",Ne=>{console.log(`slider change: ${Ne}`)});const zt=new ka({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:$t(),enableDrag:!0}),ie=new fh({x:Xt(0,i),y:Xt(0,r),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),Fe=new uh({x:Xt(0,i),y:Xt(0,r),rx:50,ry:10,enableDrag:!0,attrs:{fill:$t()}}),ze=[x,k,D,Y,q,X,it,B,V,yt,A,W,L,te,oe,It,ae,zt,ie,Fe];n.value.getSVG().then(Ne=>{o.value.getCanvas().then(y=>{Ne.clear(),h=Wt(()=>(Ne.path(ze),y.ctx.clearRect(),y.draw(ze),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new xr({scalar:.5,followMouse:!0,attrs:{fill:$t()}}),E=P.clone(),D=new ce({x:x.app.width/2,y:x.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),Y=D.clone();x.clear(),h=Wt(()=>(k.ctx.clearRect(),D.toX=P.x,D.toY=P.y,Y.toX=E.x,Y.toY=E.y,x.path([D,P]),k.draw([Y,E]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new Ut({x:x.app.width/2,y:x.app.height/2,radius:30,attrs:{fill:$t()}});P.enableDrag=!0,P.targetToAfterDragFree={targetX:x.app.width/2,targetY:x.app.height/2};const E=P.clone();x.clear(),h=Wt(()=>(x.path(P),k.ctx.clearRect(),k.draw(E),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new Ut({x:50,y:x.app.height/2,radius:30,attrs:{fill:$t()}});P.mass=2,P.vx=2;const E=new Ut({x:x.app.width-50,y:x.app.height/2,radius:30,attrs:{fill:$t()}});E.mass=1,E.vx=-2,x.clear(),h=Wt(()=>(P.checkCollision(E),P.run(),E.run(),x.path([P,E]),k.ctx.clearRect(),k.draw([P,E]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const E=[];for(let nt=0;nt<15;nt++){const q=Math.random()*20+15,X=new Ut({x:Math.random()*x.app.width,y:Math.random()*x.app.height,radius:q,attrs:{fill:$t()}});X.mass=q,X.vx=Math.random()*10-5,X.vy=Math.random()*10-5,E.push(X)}const D=new ye({x:0,y:0,width:x.app.width,height:x.app.height}),Y=new Re(E);x.clear(),h=Wt(()=>(Y.run({wall:D}),x.path(E),k.ctx.clearRect(),k.draw(E),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const E=[];for(let Y=0;Y<30;Y++){const nt=Math.random()*25+5,q=new Ut({x:Math.random()*x.app.width,y:Math.random()*x.app.height,radius:nt,attrs:{fill:$t()}});q.mass=nt,E.push(q)}const D=new Re(E);x.clear(),h=Wt(()=>(D.gravitate(),x.path(E),k.ctx.clearRect(),k.draw(E),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new Ut({x:x.app.width*.5,y:x.app.height*.5,radius:50,attrs:{fill:$t()}});P.mass=1e4;const E=new Ut({x:x.app.width*.5+200,y:x.app.height*.5,radius:10,attrs:{fill:$t()}});E.mass=1,E.vy=7;const D=[P,E],Y=new Re(D);x.clear(),h=Wt(()=>(Y.gravitate(),x.path(D),k.ctx.clearRect(),k.draw(D),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=[];for(let q=0;q<30;q++){const X=Math.random()*10+2,it=new Ut({x:Math.random()*k.app.width,y:Math.random()*k.app.height,radius:X,attrs:{fill:$t()}});it.vx=Math.random()*6-3,it.vy=Math.random()*6-3,it.mass=X,P.push(it)}const D=new Re(P),Y=new ye({x:0,y:0,width:k.app.width,height:k.app.height});let nt=[];x.clear(),h=Wt(()=>(x.delete(nt),nt=[],D.springMass(Y,{spring:5e-4}).forEach(([q,X,it,B,V])=>{V>0&&nt.push(new ce({x:q,y:X,toX:it,toY:B,attrs:{strokeWidth:"1",stroke:wa("#666666",V)}}))}),x.path(nt),x.path(P),k.ctx.clearRect(),k.draw(nt),k.draw(P),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new Ut({x:0,y:0,radius:8,attrs:{fill:$t()}}),E=new Ut({x:0,y:0,radius:5,attrs:{fill:$t()}});let D=[m,P,E],Y,nt;m.on("clicked",V=>{nt&&x.delete(nt),Y&&Y.restore(),Y=V,V.save(),V.setAttr({fill:"pink",stroke:"green"}),D=[m,P,E];const yt=V.getBoundingClientRect();yt&&(nt=new ye(yt),nt.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),D.push(nt))});let q=0,X=m.shapes[q].getTotalLength(),it=0;const B=.01;x.clear(),h=Wt(()=>{it>1&&(q++,it=0,q>m.shapes.length-1&&(q=0),X=m.shapes[q].getTotalLength()),k.ctx.clearRect();let{x:V,y:yt}=m.shapes[q].interpolate(it);P.x=V,P.y=yt;let{x:A,y:W}=m.shapes[q].getPointAtLength(it*X);return E.x=A,E.y=W,x.path(D),k.draw(D),it+=B,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new Sn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),E=new Sn({width:50,height:10,attrs:{stroke:"#666666"}}),D=new Sn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),Y=new Sn({width:50,height:10,attrs:{stroke:"#666666"}});let nt=0,q=0;function X(){q+=.2,P.x+=nt,P.y+=q,D.x+=nt,D.y+=q}const it=-Math.PI/2;function B(W,L,te){const oe=Math.sin(te)*45+90,It=Math.sin(te+it)*45+45,ae=L.getPin();W.degree=oe,L.degree=W.degree+It,L.x=W.getPin().x,L.y=W.getPin().y,L.vx=L.getPin().x-ae.x,L.vy=L.getPin().y-ae.y}function V(W){const L=W.getPin().y+W.height/2;if(L>k.app.height){const te=L-k.app.height;P.y-=te,E.y-=te,D.y-=te,Y.y-=te,nt-=W.vx,q-=W.vy}}function yt(){const W=k.app.width+200;P.x>k.app.width+100?(P.x-=W,E.x-=W,D.x-=W,Y.x-=W):P.x<-100&&(P.x+=W,E.x+=W,D.x+=W,Y.x+=W)}let A=0;x.clear(),h=Wt(()=>(k.ctx.clearRect(),A+=.06,X(),B(P,E,A),B(D,Y,A+Math.PI),V(E),V(Y),yt(),x.path([P,E,D,Y]),k.draw([P,E,D,Y]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!n.value||!o.value)return;h?.();function x(Y){return new ye({x:Math.random()*Y,y:0,width:50,height:50,attrs:{fill:$t()},enableDrag:!0})}const k=.2,P=[];function E(){const Y=x(i);return P.push(Y),Y}let D=E();n.value.getSVG().then(Y=>{o.value.getCanvas().then(nt=>{Y.clear(),h=Wt(()=>(nt.ctx.clearRect(),Y.isMouseDown||nt.isMouseDown?(Y.path(P),nt.draw(P)):(D&&D.run({gravity:k}),D&&D.y+D.height>=nt.ctx.canvas.height&&(D.y=nt.ctx.canvas.height-D.height,D=E()),P.forEach(q=>(D&&D!==q&&D.isIntersectRect(q)&&(D.y=q.y-D.height,D.y>=D.height?D=E():D=null),q)),Y.path(P),nt.draw(P)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=[];for(let E=0;E<80;E++){const D=new Ut({x:x.app.width/2,y:x.app.height,radius:2,attrs:{fill:$t()}});D.vx=Math.random()*2-1,D.vy=Math.random()*-10-10,P.push(D)}x.clear(),h=Wt(()=>(P.forEach(E=>{E.run({gravity:.5}),(E.x-E.radius>x.app.width||E.x+E.radius<0||E.y-E.radius>x.app.height||E.y+E.radius<0)&&(E.x=x.app.width/2,E.y=x.app.height,E.vx=Math.random()*2-1,E.vy=Math.random()*-10-10)}),x.path(P),k.ctx.clearRect(),k.draw(P),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!n.value||!o.value)return;h?.();function x(E,D){const Y=[];for(let nt=0;nt<3;nt++)Y.push(new Ut({x:E,y:D,radius:20,attrs:{fill:$t()}}));return Y}function k(){const E=[];for(let D=0;D<3;D++)E.push(new ce({attrs:{"stroke-width":"1",stroke:"#666666"}}));return E}const P={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(E=>{o.value.getCanvas().then(D=>{const Y=k(),nt=x(E.app.width/2,E.app.height/2),q=new Ut({x:0,y:0}),X=k(),it=x(D.app.width/2,D.app.height/2),B=new Ut({x:0,y:0}),V=new Re([q,...nt]),yt=new Re([B,...it]);E.clear(),h=Wt(()=>(D.ctx.clearRect(),q.x=E.app.mousePoint.x,q.y=E.app.mousePoint.y,V.springChain(P),nt.forEach((A,W)=>{if(W===0)Y[W].x=E.app.mousePoint.x,Y[W].y=E.app.mousePoint.y,Y[W].toX=A.x,Y[W].toY=A.y;else{const L=nt[W-1];Y[W].x=L.x,Y[W].y=L.y,Y[W].toX=A.x,Y[W].toY=A.y}}),E.path(Y),E.path(nt),B.x=D.app.mousePoint.x,B.y=D.app.mousePoint.y,yt.springChain(P),it.forEach((A,W)=>{if(W===0)X[W].x=D.app.mousePoint.x,X[W].y=D.app.mousePoint.y,X[W].toX=A.x,X[W].toY=A.y;else{const L=it[W-1];X[W].x=L.x,X[W].y=L.y,X[W].toX=A.x,X[W].toY=A.y}}),D.draw(X),D.draw(it),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=[new ce({attrs:{stroke:"#666666"}}),new ce({attrs:{stroke:"#666666"}}),new ce({attrs:{stroke:"#666666"}})],E=[];for(let Y=0;Y<3;Y++)E.push(new Ut({x:Math.random()*x.app.width,y:Math.random()*x.app.height,radius:10,attrs:{fill:$t()},enableDrag:!0}));const D=new Ut({radius:20,attrs:{fill:"#ff0000"}});x.clear(),h=Wt(()=>(k.ctx.clearRect(),D.runSpringTo(E,{spring:.03}),E.forEach((Y,nt)=>{P[nt].x=D.x,P[nt].y=D.y,P[nt].toX=Y.x,P[nt].toY=Y.y}),x.path([...P,...E,D]),k.draw([...P,...E,D]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=[new ce({attrs:{stroke:"#666666"}}),new ce({attrs:{stroke:"#666666"}}),new ce({attrs:{stroke:"#666666"}})],E=[];for(let Y=0;Y<3;Y++)E.push(new Ut({x:Math.random()*x.app.width,y:Math.random()*x.app.height,radius:10,attrs:{fill:$t()},enableDrag:!0}));const D=new Re(E);x.clear(),h=Wt(()=>(D.springConnect({springLength:120}),P[0].x=E[0].x,P[0].y=E[0].y,P[0].toX=E[1].x,P[0].toY=E[1].y,P[1].x=E[1].x,P[1].y=E[1].y,P[1].toX=E[2].x,P[1].toY=E[2].y,P[2].x=E[2].x,P[2].y=E[2].y,P[2].toX=E[0].x,P[2].toY=E[0].y,x.path([...P,...E]),k.ctx.clearRect(),k.draw([...P,...E]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const E=new br({x:50,y:x.app.height-50,toX:x.app.width-50,toY:x.app.height-50,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),D=new br({x:50,y:x.app.height-50,toX:x.app.width-50,toY:x.app.height-50,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),Y=new br({x:50,y:k.ctx.canvas.height-50,toX:k.ctx.canvas.width-50,toY:k.ctx.canvas.height-50,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),nt=new br({x:50,y:k.ctx.canvas.height-50,toX:k.ctx.canvas.width-50,toY:k.ctx.canvas.height-50,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});x.clear(),h=Wt(()=>(k.ctx.clearRect(),D.cx=E.cx=x.app.mousePoint.x,D.cy=E.cy=x.app.mousePoint.y,x.path(E),x.path(D),nt.cx=Y.cx=k.app.mousePoint.x,nt.cy=Y.cy=k.app.mousePoint.y,k.draw([Y,nt]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{x.clear(),k.ctx.clearRect();const P=[];for(let Y=0;Y<10;Y++)P.push({x:Math.random()*x.app.width,y:Math.random()*x.app.height});const E=P.map((Y,nt)=>new ye({x:Y.x,y:Y.y,width:6,height:6,attrs:{fill:nt==0?"#ff0000":nt==P.length-1?"#00ff00":"#666666"}})),D=new ch({points:P,attrs:{stroke:"#ff0000"},isStraight:!0});D.isStraight=!0,x.path(E),x.path(D),D.isStraight=!1,k.draw([...E,D])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!n.value||!o.value)return;h?.();const x=new hh({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),k=new hh({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(P=>{o.value.getCanvas().then(E=>{P.clear(),h=Wt(()=>(E.ctx.clearRect(),P.path(x),E.draw(k),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!n.value||!o.value)&&(h?.(),f.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${b.value} ${b.value}`,strokeDashoffset:`${S.value}`}),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{x.clear(),h=Wt(()=>(k.ctx.clearRect(),x.path(f),k.draw(f),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!n.value||!o.value)&&(h?.(),f.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{x.clear(),f.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{x.path(f),k.ctx.clearRect(),k.draw(f)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{x.clear(),k.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:$t()})},onGroupUpdate:()=>{x.path(m),k.ctx.clearRect(),k.draw(m)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{x.clear(),k.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:$t()})},onGroupUpdate:()=>{x.path(m),k.ctx.clearRect(),k.draw(m)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!n.value||!o.value)return;h?.();const x=new xr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),k=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),P=new Ea({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),E=Re.generatePointsShape(100,100,100,3);E.x=100,E.y=100,E.setAttr({stroke:"#666666"});const D=Re.generatePointsShape(100,100,100,6);D.x=50,D.y=50,D.setAttr({stroke:"#7EEDFF"});const Y=new Re([E,D,x,k,P]);n.value.getSVG().then(nt=>{o.value.getCanvas().then(q=>{nt.clear(),Y.polymorphTween(6e3,{draw:X=>{nt.path(X),q.ctx.clearRect(),q.draw(X)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!n.value||!o.value)return;h?.();const x=new xr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),k=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),P=new Ea({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),E=new Re([x,k,m,P]);n.value.getSVG().then(D=>{o.value.getCanvas().then(Y=>{D.clear(),E.polymorphTween(6e3,{draw:nt=>{D.path(nt),Y.ctx.clearRect(),Y.draw(nt)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!n.value||!o.value)&&(h?.(),tt.setStyle(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=Re.generateRosettaShape(120,120,55,35,6);P.setAttr({stroke:"none",fill:"none"});const E=new ye({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),D=new Ht({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});x.clear(),k.ctx.clearRect();const Y=new qe({frameDuration:15e3});Y.addTween({progress:0},{progress:1},{onUpdate:nt=>{const q=P.trailPath(D,nt.progress);E.x=q.x,E.y=q.y,E.degree=q.alpha+90,x.path([D,E]),k.ctx.clearRect(),k.draw([D,E])}}),Y.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(x=>{o.value.getCanvas().then(k=>{const P=new f0(k.app.width,k.app.height,{angle:Xt(55,125),spread:Xt(50,70),particleCount:Xt(50,100)});x.clear(),h=Wt(()=>(k.ctx.clearRect(),x.path(P),k.draw(P),!0))})}))}}],K=[{type:"translateTo",onClick:()=>d("translateTo")},{type:"translateXTo",onClick:()=>d("translateXTo")},{type:"translateYTo",onClick:()=>d("translateYTo")},{type:"translateZTo",onClick:()=>d("translateZTo")},{type:"translate3dTo",onClick:()=>d("translate3dTo")},{type:"rotateTo",onClick:()=>d("rotateTo")},{type:"rotateXTo",onClick:()=>d("rotateXTo")},{type:"rotateYTo",onClick:()=>d("rotateYTo")},{type:"rotateZTo",onClick:()=>d("rotateZTo")},{type:"rotate3dTo",onClick:()=>d("rotate3dTo")},{type:"scaleTo",onClick:()=>d("scaleTo")},{type:"scaleXTo",onClick:()=>d("scaleXTo")},{type:"scaleYTo",onClick:()=>d("scaleYTo")},{type:"scaleZTo",onClick:()=>d("scaleZTo")},{type:"scale3dTo",onClick:()=>d("scale3dTo")},{type:"skewTo",onClick:()=>d("skewTo")},{type:"skewXTo",onClick:()=>d("skewXTo")},{type:"skewYTo",onClick:()=>d("skewYTo")},{type:"perspective",onClick:()=>d("perspective")}];let st;function J(){st||(st=new xs(a.value));const x=50,k=0,P=0,E=0,D=st.width-x,Y=st.height-x,nt=st.height-x,q=st.width/2-x/2,X=st.height/2-x/2,it={},B={};switch(u.value){case"translateTo":Object.assign(it,{translateTo:[k,P]}),Object.assign(B,{translateTo:[D,Y]});break;case"translateXTo":Object.assign(it,{translateXTo:k}),Object.assign(B,{translateXTo:D});break;case"translateYTo":Object.assign(it,{translateYTo:P}),Object.assign(B,{translateYTo:Y});break;case"translateZTo":Object.assign(it,{translateTo:[q,X],translateZTo:E}),Object.assign(B,{translateTo:[q,X],translateZTo:nt});break;case"translate3dTo":Object.assign(it,{translate3dTo:[q-50,X-50,E]}),Object.assign(B,{translate3dTo:[q+50,X+50,nt]});break;case"rotateTo":Object.assign(it,{translateTo:[q,X],rotateTo:0}),Object.assign(B,{translateTo:[q,X],rotateTo:360});break;case"rotateXTo":Object.assign(it,{translateTo:[q,X],rotateXTo:0}),Object.assign(B,{translateTo:[q,X],rotateXTo:180});break;case"rotateYTo":Object.assign(it,{translateTo:[q,X],rotateYTo:0}),Object.assign(B,{translateTo:[q,X],rotateYTo:180});break;case"rotateZTo":Object.assign(it,{translateTo:[q,X],rotateZTo:0}),Object.assign(B,{translateTo:[q,X],rotateZTo:360});break;case"rotate3dTo":Object.assign(it,{translateTo:[q,X],rotate3dTo:[0,0,0]}),Object.assign(B,{translateTo:[q,X],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(it,{translateTo:[q,X],scaleTo:1}),Object.assign(B,{translateTo:[q,X],scaleTo:3});break;case"scaleXTo":Object.assign(it,{translateTo:[q,X],scaleXTo:1}),Object.assign(B,{translateTo:[q,X],scaleXTo:3});break;case"scaleYTo":Object.assign(it,{translateTo:[q,X],scaleYTo:1}),Object.assign(B,{translateTo:[q,X],scaleYTo:3});break;case"scaleZTo":Object.assign(it,{translateTo:[q,X],scaleZTo:1}),Object.assign(B,{translateTo:[q,X],scaleZTo:3});break;case"scale3dTo":Object.assign(it,{translateTo:[q,X],scale3dTo:[1,1,1]}),Object.assign(B,{translateTo:[q,X],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(it,{translateTo:[q,X],skewTo:0}),Object.assign(B,{translateTo:[q,X],skewTo:30});break;case"skewXTo":Object.assign(it,{translateTo:[q,X],skewXTo:0}),Object.assign(B,{translateTo:[q,X],skewXTo:30});break;case"skewYTo":Object.assign(it,{translateTo:[q,X],skewYTo:0}),Object.assign(B,{translateTo:[q,X],skewYTo:30});break;case"perspective":Object.assign(it,{translateTo:[q,X],perspective:0}),Object.assign(B,{translateTo:[q,X],perspective:1e3});break}const V=new qe({frameDuration:2e3});V.addTween(it,B,{easeFunction:e.easeFunction,onUpdate:yt=>{tt.setStyle(l.value,tt.convertAttrs(l.value,yt))}}),V.play()}function gt(){return new Promise(x=>{o.value.getCanvas().then(k=>{re.downloadFromSVGString(k.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{x()},3e3)})})})}return ue(()=>{}),t({}),(x,k)=>(N(),H(Lt,null,[C("div",D1,[mt(ve,{asyncClick:gt},{default:Ot(()=>[Kt(" downloadFromCanvasToSVG ")]),_:1})]),C("div",R1,[(N(),H(Lt,null,ge(O,P=>mt(ve,{key:P.type,item:P,onClick:P.onClick,stylePattern:c.value==P.type?"fullfilled":"outline"},{default:Ot(()=>[Kt(St(P.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),sn(C("div",null," 当前缓动函数:"+St(e.easeName),513),[[As,c.value=="AnimateToTweenCSS"]]),sn(C("div",N1,[(N(),H(Lt,null,ge(K,P=>mt(ve,{key:P.type,item:P,onClick:P.onClick,stylePattern:u.value==P.type?"fullfilled":"outline"},{default:Ot(()=>[Kt(St(P.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[As,c.value=="AnimateToTweenCSS"]]),sn(C("div",A1,[C("div",L1,[C("div",null,"stroke-dasharray: "+St(b.value)+","+St(b.value),1),mt(Gs,{max:988,defaultValue:b.value,onChange:F},null,8,["defaultValue"])]),C("div",F1,[C("div",null,"stroke-dashoffset: "+St(S.value),1),mt(Gs,{max:988,defaultValue:S.value,onChange:$},null,8,["defaultValue"])])],512),[[As,c.value=="StrokeDash"]]),sn(C("div",$1,[mt(Sr,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[As,c.value!=="AnimateToTweenCSS"]]),sn(C("div",V1,[mt(Ys,{ref_key:"canvasRef",ref:o,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[As,c.value!=="AnimateToTweenCSS"]]),sn(C("div",{ref_key:"tweenCSSContainerRef",ref:a,style:{height:"400px"},class:"css-area"},[C("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[As,c.value=="AnimateToTweenCSS"]])],64))}}),_x="",Y1=pt(G1,[["__scopeId","data-v-c6c9745f"]]),B1={class:"svg"},z1=[Jf('<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)],X1=ct({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(N(),H("svg",B1,z1))}}),xx="",Wa=pt(X1,[["__scopeId","data-v-7ee5c19e"]]),j1={class:"loading-1"},H1=ct({__name:"Loading1",props:{color:{default:dt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),H("div",j1,[C("div",{class:"rect1",style:e}),C("div",{class:"rect2",style:e}),C("div",{class:"rect3",style:e}),C("div",{class:"rect4",style:e}),C("div",{class:"rect5",style:e})]))}}),wx="",U1=pt(H1,[["__scopeId","data-v-48b10c9a"]]),W1={class:"loading-2"},q1=ct({__name:"Loading2",props:{color:{default:dt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),H("div",W1,[C("div",{class:"dot1",style:e}),C("div",{class:"dot2",style:e})]))}}),Cx="",Z1=pt(q1,[["__scopeId","data-v-79f9930f"]]),K1=ct({__name:"Loading3",props:{fromColor:{default:dt.colorPrimary},toColor:{default:dt.colorRed}},setup(s){const t=s,e=`
103
85
  @keyframes snake {
104
86
  0% {
105
87
  opacity: 0.3;
@@ -118,19 +100,29 @@ Expected function or array of functions, received type ${typeof s}.`),ae)}functi
118
100
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
119
101
  }
120
102
  }
121
- `,n={backgroundColor:t.fromColor,width:"20%"},i=V();return Dt(i,()=>{i.value&&H.setStyleSheet(e,i.value)}),Bs(()=>{}),re(()=>{}),(r,o)=>(F(),X("div",{class:"loading-3",ref_key:"loading3",ref:i},[S("div",{class:"dot",style:W({...n,left:"0"})},null,4),S("div",{class:"dot",style:W({...n,left:"20%"})},null,4),S("div",{class:"dot",style:W({...n,left:"40%"})},null,4),S("div",{class:"dot",style:W({...n,left:"60%"})},null,4),S("div",{class:"dot",style:W({...n,left:"80%"})},null,4)],512))}}),Nb="",R1=ut(A1,[["__scopeId","data-v-718133c0"]]),$1={class:"loading-4"},V1=ct({__name:"Loading4",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),X("div",$1,[S("div",{class:"rect",style:e})]))}}),Mb="",L1=ut(V1,[["__scopeId","data-v-9028c8cf"]]),F1={class:"loading-5"},G1=ct({__name:"Loading5",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),X("div",F1,[S("div",{class:"cube1",style:e}),S("div",{class:"cube2",style:e})]))}}),Ab="",z1=ut(G1,[["__scopeId","data-v-6f68ee6f"]]),j1={class:"loading-6"},B1=ct({__name:"Loading6",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),X("div",j1,[S("div",{style:e}),S("div",{style:e}),S("div",{style:e})]))}}),Rb="",Y1=ut(B1,[["__scopeId","data-v-e397194b"]]),X1=[(s=>(On("data-v-58741a38"),s=s(),Pn(),s))(()=>S("div",null,null,-1))],H1=ct({__name:"Loading7",props:{color:{default:ot.colorPrimary}},setup(s){const t=s,e=`
103
+ `,n={backgroundColor:t.fromColor,width:"20%"},i=M();return Et(i,()=>{i.value&&tt.setStyleSheet(e,i.value)}),rn(()=>{}),ue(()=>{}),(r,o)=>(N(),H("div",{class:"loading-3",ref_key:"loading3",ref:i},[C("div",{class:"dot",style:G({...n,left:"0"})},null,4),C("div",{class:"dot",style:G({...n,left:"20%"})},null,4),C("div",{class:"dot",style:G({...n,left:"40%"})},null,4),C("div",{class:"dot",style:G({...n,left:"60%"})},null,4),C("div",{class:"dot",style:G({...n,left:"80%"})},null,4)],512))}}),Sx="",Q1=pt(K1,[["__scopeId","data-v-37830b28"]]),J1={class:"loading-4"},t_=ct({__name:"Loading4",props:{color:{default:dt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),H("div",J1,[C("div",{class:"rect",style:e})]))}}),Tx="",e_=pt(t_,[["__scopeId","data-v-9028c8cf"]]),s_={class:"loading-5"},n_=ct({__name:"Loading5",props:{color:{default:dt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),H("div",s_,[C("div",{class:"cube1",style:e}),C("div",{class:"cube2",style:e})]))}}),Ex="",i_=pt(n_,[["__scopeId","data-v-6f68ee6f"]]),r_={class:"loading-6"},o_=ct({__name:"Loading6",props:{color:{default:dt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(N(),H("div",r_,[C("div",{style:e}),C("div",{style:e}),C("div",{style:e})]))}}),kx="",a_=pt(o_,[["__scopeId","data-v-e397194b"]]),l_=[(s=>(Gn("data-v-58741a38"),s=s(),Yn(),s))(()=>C("div",null,null,-1))],c_=ct({__name:"Loading7",props:{color:{default:dt.colorPrimary}},setup(s){const t=s,e=`
122
104
  :root {
123
105
  --loading-7-bg-color: ${t.color}
124
106
  }
125
107
  :host {
126
108
  --loading-7-bg-color: ${t.color}
127
109
  }
128
- `,n=V();return Dt(n,()=>{n.value&&H.setStyleSheet(e,n.value)}),Bs(()=>{}),re(()=>{}),(i,r)=>(F(),X("div",{class:"loading-7",ref_key:"loading7",ref:n},X1,512))}}),Lb="",U1=ut(H1,[["__scopeId","data-v-58741a38"]]),W1={class:"loading-9"},q1=ct({__name:"Loading9",props:{color:{default:ot.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(F(),X("div",W1,[S("div",{style:e})]))}}),Fb="",Z1=ut(q1,[["__scopeId","data-v-a563aaa4"]]),K1={class:"loading-10"},Q1={viewBox:"0 0 50 50"},J1=ct({__name:"Loading10",props:{color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),X("div",K1,[(F(),X("svg",Q1,[S("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:W(["stroke: rgba(0,0,0,0.1)"])},null,4),S("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:W(["fill: "+t.color])},null,4)]))]))}}),Gb="",t_=ut(J1,[["__scopeId","data-v-361d898a"]]),e_={class:"face front"},s_={class:"face back"},n_=ct({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=V(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(F(),X("div",{class:"card-flip-scene",style:W({perspective:n.perspective})},[S("div",{class:ye(["card",[n.type,{flip:r.value}]]),style:W({transition:`transform ${n.dur}ms`}),onClick:o},[S("div",e_,[Gt(a.$slots,"front",{},()=>[Kt("front")],!0)]),S("div",s_,[Gt(a.$slots,"back",{},()=>[Kt("back")],!0)])],6)],4))}}),zb="",i_=ut(n_,[["__scopeId","data-v-e37e840a"]]),r_=ct({customOptions:{RadioGroup:Da,CheckboxGroup:Mr,InputRange:Js},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=V(Math.floor(n.width/2)),r=`
110
+ `,n=M();return Et(n,()=>{n.value&&tt.setStyleSheet(e,n.value)}),rn(()=>{}),ue(()=>{}),(i,r)=>(N(),H("div",{class:"loading-7",ref_key:"loading7",ref:n},l_,512))}}),Ix="",u_=pt(c_,[["__scopeId","data-v-58741a38"]]),h_={class:"loading-9"},d_=ct({__name:"Loading9",props:{color:{default:dt.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(N(),H("div",h_,[C("div",{style:e})]))}}),Mx="",f_=pt(d_,[["__scopeId","data-v-a563aaa4"]]),p_={class:"loading-10"},m_={viewBox:"0 0 50 50"},g_=ct({__name:"Loading10",props:{color:{default:dt.colorPrimary}},setup(s){const t=s;return(e,n)=>(N(),H("div",p_,[(N(),H("svg",m_,[C("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:G(["stroke: rgba(0,0,0,0.1)"])},null,4),C("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:G(["fill: "+t.color])},null,4)]))]))}}),Dx="",y_=pt(g_,[["__scopeId","data-v-361d898a"]]),v_={class:"face front"},__={class:"face back"},b_=ct({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(N(),H("div",{class:"card-flip-scene",style:G({perspective:n.perspective})},[C("div",{class:Jt(["card",[n.type,{flip:r.value}]]),style:G({transition:`transform ${n.dur}ms`}),onClick:o},[C("div",v_,[Tt(a.$slots,"front",{},()=>[Kt("front")],!0)]),C("div",__,[Tt(a.$slots,"back",{},()=>[Kt("back")],!0)])],6)],4))}}),Rx="",x_=pt(b_,[["__scopeId","data-v-e37e840a"]]),w_=ct({customOptions:{RadioGroup:Oa,CheckboxGroup:Cr,InputRange:Gs},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=M(Math.floor(n.width/2)),r=`
129
111
  :root {
130
112
  --spin-cube-z: -${i.value}px;
131
113
  }
132
114
  :host {
133
115
  --spin-cube-z: -${i.value}px;
134
116
  }
135
- `,o=V();Dt(o,()=>{o.value&&H.setStyleSheet(r,o.value)});const a=V(n.perspective+"px"),l=k=>{a.value=k==2e3?"none":k+"px"},c=V("50%"),u=k=>{c.value=k+"%"},h=V("50%"),f=k=>{h.value=k+"%"},d=`translateZ(-${i.value}px)`,m=V(d),v=k=>{switch(k){case"front":m.value=d+" rotateY(0deg)";break;case"right":m.value=d+" rotateY(-90deg)";break;case"back":m.value=d+" rotateY(-180deg)";break;case"left":m.value=d+" rotateY(90deg)";break;case"top":m.value=d+" rotateX(-90deg)";break;case"bottom":m.value=d+" rotateX(90deg)";break;default:m.value=d;break}},_=V(!1),E=k=>{k.length?_.value=!0:_.value=!1},D=V("visible"),N=k=>{k.length?D.value="visible":D.value="hidden"};return t({}),(k,tt)=>(F(),X("div",{ref_key:"container",ref:o},[S("div",{class:"cube-scene",style:W({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[S("div",{class:ye(["cube",{spinning:_.value}]),style:W({transformStyle:"preserve-3d",transform:m.value,transition:`transform ${n.dur}ms`})},[S("div",{class:"face front",style:W({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"front",{},()=>[Kt("front")],!0)],4),S("div",{class:"face back",style:W({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"back",{},()=>[Kt("back")],!0)],4),S("div",{class:"face right",style:W({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"right",{},()=>[Kt("right")],!0)],4),S("div",{class:"face left",style:W({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"left",{},()=>[Kt("left")],!0)],4),S("div",{class:"face top",style:W({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"top",{},()=>[Kt("top")],!0)],4),S("div",{class:"face bottom",style:W({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"bottom",{},()=>[Kt("bottom")],!0)],4)],6)],4),S("div",null,[pt(Da,{options:["front","right","back","left","top","bottom"],onChange:v})]),S("div",null,[pt(Mr,{options:["Backface visible"],onChange:N})]),S("div",null,[pt(Mr,{options:["spin cube"],onChange:E})]),S("div",null,[Kt(" perspective: "),pt(Js,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),S("div",null,[Kt(" perspective-origin x: "),pt(Js,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),S("div",null,[Kt(" perspective-origin y: "),pt(Js,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),jb="",o_=ut(r_,[["__scopeId","data-v-f15fa1e3"]]),a_=s=>(On("data-v-1cc7cc3a"),s=s(),Pn(),s),l_={class:"ring-indicator"},c_={class:"ring-text"},u_=a_(()=>S("span",null,"%",-1)),h_=1e3/20,Ms=15,Ua=22+1,d_=20,f_=2,yh=17,p_=ct({customOptions:{Canvas:tn},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=An(),i=V(0);const r=()=>{if(An()-n>=h_){n=An();const h=Math.ceil(Xe(e.percent,0,100));i.value<h?i.value++:i.value>h&&i.value--}return qe(i.value/100,2)},o=V(0),a=V(0),l=(180+Ms*2)/(Ua-1),c=(h,f)=>{o.value=h,a.value=f},u=V();return Dt(u,()=>{u.value&&u.value.getCanvas().then(h=>{jt.run(()=>{h.ctx.clearRect();const f=new Oa({width:o.value,height:a.value,startDegree:0-Ms,endDegree:180+Ms,extendDegree:Ms,lineWidth:e.lineWidth,color:e.bgColor}),d=f.radius-f.radius*Math.cos(Math.PI*r()),m=f.radius*Math.sin(Math.PI*r()),v=h.ctx.createLinearGradient(f.x-f.radius,f.y,f.x-f.radius+d,f.y-m,{0:e.startColor,1:e.endColor}),_=new Oa({width:o.value,height:a.value,startDegree:0-Ms,endDegree:(180+Ms*2)*r()-Ms,extendDegree:Ms,lineWidth:e.lineWidth,colorGradient:v}),E=[];for(let D=0;D<Ua;D++){const N=f.y-f.radius+d_,k=new ke({cX:f.x,cY:f.y,fromX:f.x,fromY:N,x:f.x,y:N+yh,degree:-Ms-90+l*D}),tt=D/Ua<r();k.setAttr({"stroke-linecap":"round","stroke-width":String(f_),stroke:tt?h.ctx.createLinearGradient(f.x,N,f.x,N+yh,{0:e.startColor,1:e.endColor}):e.bgColor}),E.push(k)}return h.draw([f,_,...E]),!0})})}),t({}),(h,f)=>(F(),X("div",l_,[pt(tn,{ref_key:"canvasRef",ref:u,onResize:c},null,512),S("div",c_,[S("span",null,kt(Ft(i)),1),u_])]))}}),Bb="",m_=ut(p_,[["__scopeId","data-v-1cc7cc3a"]]);lt.Accordion=Ty,lt.Button=ve,lt.CardFlip=i_,lt.CheckboxGroup=Mr,lt.ColorPicker=Uv,lt.Cube=o_,lt.Dialog=Ei,lt.DialogLoading=dy,lt.DialogToast=nh,lt.EaseGraphDisplay=Xa,lt.EaseGroupGraphDisplay=a1,lt.FPSStats=t1,lt.HandWritePanel=ov,lt.Icon=xn,lt.Image=Aa,lt.ImageView=Fy,lt.Input=P0,lt.InputRange=Js,lt.InputRangeSvg=V0,lt.InterpolationGraphDisplay=Ha,lt.InterpolationGroupGraphDisplay=d1,lt.LayoutCenter=Wy,lt.LayoutMobile=Hy,lt.Loading1=D1,lt.Loading10=t_,lt.Loading11=Pa,lt.Loading2=M1,lt.Loading3=R1,lt.Loading4=L1,lt.Loading5=z1,lt.Loading6=Y1,lt.Loading7=U1,lt.Loading8=Na,lt.Loading9=Z1,lt.MapTianditu=Jv,lt.MouseOver=Ey,lt.Overlay=Vn,lt.PageVerticalScrollProgressBar=cv,lt.PlateDisplay=Ev,lt.PlateKeyboard=ih,lt.PlateMobile=wv,lt.Pop=Qe,lt.Popover=Ra,lt.ProgressBar=ki,lt.RadioGroup=Da,lt.ResizeObserver=Kv,lt.RingIndicator=m_,lt.SVGAndCanvas=T1,lt.SVGCheck=$a,lt.SVGCleanUp=Rr,lt.SVGDelete=Ia,lt.SVGDown=Ci,lt.Select=Qg,lt.SelectAbsolute=o0,lt.SlideLeftItem=j0,lt.Switch=l0,lt.Tab=Jy,lt.Tabs=iv,lt.Video=My,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})});
117
+ `,o=M();Et(o,()=>{o.value&&tt.setStyleSheet(r,o.value)});const a=M(n.perspective+"px"),l=O=>{a.value=O==2e3?"none":O+"px"},c=M("50%"),u=O=>{c.value=O+"%"},h=M("50%"),d=O=>{h.value=O+"%"},m=`translateZ(-${i.value}px)`,f=M(m),v=O=>{switch(O){case"front":f.value=m+" rotateY(0deg)";break;case"right":f.value=m+" rotateY(-90deg)";break;case"back":f.value=m+" rotateY(-180deg)";break;case"left":f.value=m+" rotateY(90deg)";break;case"top":f.value=m+" rotateX(-90deg)";break;case"bottom":f.value=m+" rotateX(90deg)";break;default:f.value=m;break}},b=M(!1),S=O=>{O.length?b.value=!0:b.value=!1},F=M("visible"),$=O=>{O.length?F.value="visible":F.value="hidden"};return t({}),(O,K)=>(N(),H("div",{ref_key:"container",ref:o},[C("div",{class:"cube-scene",style:G({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[C("div",{class:Jt(["cube",{spinning:b.value}]),style:G({transformStyle:"preserve-3d",transform:f.value,transition:`transform ${n.dur}ms`})},[C("div",{class:"face front",style:G({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:F.value})},[Tt(O.$slots,"front",{},()=>[Kt("front")],!0)],4),C("div",{class:"face back",style:G({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:F.value})},[Tt(O.$slots,"back",{},()=>[Kt("back")],!0)],4),C("div",{class:"face right",style:G({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:F.value})},[Tt(O.$slots,"right",{},()=>[Kt("right")],!0)],4),C("div",{class:"face left",style:G({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:F.value})},[Tt(O.$slots,"left",{},()=>[Kt("left")],!0)],4),C("div",{class:"face top",style:G({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:F.value})},[Tt(O.$slots,"top",{},()=>[Kt("top")],!0)],4),C("div",{class:"face bottom",style:G({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:F.value})},[Tt(O.$slots,"bottom",{},()=>[Kt("bottom")],!0)],4)],6)],4),C("div",null,[mt(Oa,{options:["front","right","back","left","top","bottom"],onChange:v})]),C("div",null,[mt(Cr,{options:["Backface visible"],onChange:$})]),C("div",null,[mt(Cr,{options:["spin cube"],onChange:S})]),C("div",null,[Kt(" perspective: "),mt(Gs,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),C("div",null,[Kt(" perspective-origin x: "),mt(Gs,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),C("div",null,[Kt(" perspective-origin y: "),mt(Gs,{min:0,max:100,defaultValue:50,unit:"%",onChange:d})])],512))}}),Nx="",C_=pt(w_,[["__scopeId","data-v-2d64fc3a"]]),S_=s=>(Gn("data-v-a75d012f"),s=s(),Yn(),s),T_={class:"ring-indicator"},E_={class:"ring-text"},k_=S_(()=>C("span",null,"%",-1)),P_=ct({customOptions:{Canvas:Ys},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=M(0);const i=Pg(()=>{const c=Ve(Math.floor(e.percent),0,100);return n.value<c?n.value=Math.min(n.value+1,c):n.value>c&&(n.value=Math.max(n.value-1,c)),Te(n.value/100,2)},20),r=M(0),o=M(0),a=(c,u)=>{r.value=c,o.value=u},l=M();return Et(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new fh({width:r.value,height:o.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});Wt(()=>(c.ctx.clearRect(),u.setPercent(i()),c.draw(u),!0))})}),t({}),(c,u)=>(N(),H("div",T_,[mt(Ys,{ref_key:"canvasRef",ref:l,onResize:a},null,512),C("div",E_,[C("span",null,St(At(n)),1),k_])]))}}),Ax="",O_=pt(P_,[["__scopeId","data-v-a75d012f"]]),Eh=s=>(Gn("data-v-8e39fba1"),s=s(),Yn(),s),I_=[Eh(()=>C("div",{class:"left"},null,-1)),Eh(()=>C("div",{class:"right"},null,-1))],M_={key:0},D_={key:1},dn=10,Pn=4,R_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"RingText",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,n=M(0),i=(r,o)=>{n.value=Math.floor(Math.min(r,o))};return t({}),(r,o)=>(N(),Gt(kt,{onResize:i,type:"full"},{default:Ot(()=>[C("div",{class:"ring",style:G({width:n.value+"px",height:n.value+"px",padding:dn+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[C("div",{class:"ring-rotate",style:G({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-dn-Pn}px, #000 ${n.value/2-dn-Pn}px)`})},I_,4),C("div",{class:"ring-content",style:G({top:dn+Pn+"px",left:dn+Pn+"px",width:n.value-(dn+Pn)*2+"px",height:n.value-(dn+Pn)*2+"px"})},[e.text?(N(),H("div",M_,St(e.text),1)):Yt("",!0),e.secondText?(N(),H("div",D_,St(e.secondText),1)):Yt("",!0)],4)],4)]),_:1}))}}),$x="",Vx="",N_=pt(R_,[["__scopeId","data-v-8e39fba1"]]),A_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"ClockFlipper",props:{startTime:{default:"00:00:00"},initStart:{type:Boolean,default:!0},creaseType:{default:"increase"},flipDirection:{default:"down"},dur:{default:800},bgColor:{default:"#5a82f0"},textColor:{default:"#ffffff"},borderRadius:{default:8},gap:{default:1},perspective:{default:400}},setup(s,{expose:t}){const e=s,n=M(),i=M(40),r=M(20),o=M(20),a=(S,F)=>{i.value=Math.floor(S/(6+1)),r.value=Math.floor(F),o.value=Math.max(12,r.value)},l=()=>{e.initStart&&v(e.startTime)};let c;const u=()=>{c?.()},h=Zt([0,0,0,0,0,0]),d=Zt([0,0,0,0,0,0]),m=[0,0,0,0,0,0];let f=0;const v=S=>{S&&(ng(sg(S),m),m.forEach((F,$)=>{h[$]=F,d[$]=F})),u(),f=0,b(he(),0,!1),c=kg((F,$,O)=>{b(F,$,O)},1e3)},b=(S,F,$)=>{if($)f=F;else{if(f>0){m.forEach((K,st)=>{h[st]=K,d[st]=K});const O=f+1;e.creaseType=="increase"?(sa(h,O),sa(d,O+1)):(na(h,O),na(d,O+1)),f=0}else e.creaseType=="increase"?sa(d,1):na(d,1);ma(()=>{d.forEach((O,K)=>{h[K]=O})},e.dur)}};return t({start:v,pause:u}),(S,F)=>(N(),Gt(kt,{ref_key:"containerRef",ref:n,type:"full",overflow:"visible","style-sheets":{"--yz-clock-flipper-bg-color":e.bgColor,"--yz-clock-flipper-text-color":e.textColor,"--yz-clock-flipper-border-radius":e.borderRadius+"px","--yz-clock-flipper-gap":e.gap+"px","--yz-clock-flipper-gap-double":e.gap*2+"px","--yz-clock-flipper-gap-four":e.gap*4+"px","--yz-clock-flipper-animation-duration":e.dur+"ms","--yz-clock-flipper-perspective":e.perspective+"px"},onResize:a,onReady:l},{default:Ot(()=>[C("div",{class:"clock-flipper",style:G({fontSize:o.value+"px",lineHeight:r.value+"px"})},[(N(!0),H(Lt,null,ge(h,($,O)=>(N(),H(Lt,{key:O},[C("div",{class:Jt(["flip",[e.flipDirection,d[O]!=$?"go":""]]),style:G({width:i.value+"px"})},[C("div",{class:Jt(["front digital",[`flipper_${O}`,`number_${$}`]])},null,2),C("div",{class:Jt(["back digital",[`number_${d[O]}`]])},null,2)],6),O==1||O==3?(N(),H("div",{key:0,class:"gap",style:G({fontSize:Math.floor(o.value*.6)+"px",lineHeight:0})}," : ",4)):Yt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),Gx="",Yx="",L_=pt(A_,[["__scopeId","data-v-8d77ae6d"]]),F_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"TextBackgroundClip",props:{text:{default:"文字背景为图片"},bgImageUrl:{default:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/181794/kl-deer.png"}},setup(s,{expose:t}){const e=s;return t({}),(n,i)=>(N(),Gt(kt,null,{default:Ot(()=>[C("div",{style:G({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},St(e.text),5)]),_:1}))}}),$_={class:"slide"},V_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"Slide",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Zt({}),i=()=>{switch(e.direction){case"left":n.transformOrigin="center left",n.transform="scaleX(0)";break;case"right":n.transformOrigin="center right",n.transform="scaleX(0)";break;case"down":n.transformOrigin="center bottom",n.transform="scaleY(0)";break;case"up":n.transformOrigin="center top",n.transform="scaleY(0)";break}},r=()=>{switch(e.direction){case"left":n.transformOrigin="center right",n.transform="scaleX(1)";break;case"right":n.transformOrigin="center left",n.transform="scaleX(1)";break;case"down":n.transformOrigin="center top",n.transform="scaleY(1)";break;case"up":n.transformOrigin="center bottom",n.transform="scaleY(1)";break}};return t({}),(o,a)=>(N(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r,style:{overflow:"hidden"}},{default:Ot(()=>[C("div",{class:"slide-before",style:G({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),C("div",$_,[Tt(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),Bx="",G_=pt(V_,[["__scopeId","data-v-4b23f270"]]),Y_={class:"slide-corner"},B_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"SlideCorner",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,n=Zt({});let i=1,r=i*2;const o=(c,u)=>{i=Math.ceil(Math.max(c,u)/Math.min(c,u)),r=i*2,n.width=n.height=Math.ceil(Math.min(c,u))+"px"},a=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":n.top="50%",n.left="50%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform=`translate(50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break}};return t({}),(c,u)=>(N(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:l,onResize:o,style:{overflow:"hidden"}},{default:Ot(()=>[C("div",{class:"slide-corner-before",style:G({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*At(i)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),C("div",Y_,[Tt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),zx="",z_=pt(B_,[["__scopeId","data-v-e47546e1"]]),X_={class:"line-single"},j_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineSingle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"underline"},direction:{default:"right"}},setup(s,{expose:t}){const e=s;let n=1;const i=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},r=Zt({});switch(e.location){case"underline":r.bottom="0";break;case"overline":r.top="0";break;case"through":r.top="50%";break}const o=()=>{switch(e.direction){case"right":r.transformOrigin="bottom right",r.transform="scaleX(0)";break;case"left":r.transformOrigin="bottom left",r.transform="scaleX(0)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(0)";break}},a=()=>{switch(e.direction){case"right":r.transformOrigin="bottom left",r.transform="scaleX(1)";break;case"left":r.transformOrigin="bottom right",r.transform="scaleX(1)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(1)";break}};return t({}),(l,c)=>(N(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:i},{default:Ot(()=>[C("div",{class:"line-single-before",style:G({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*At(n)}ms ease-in-out`,...r})},null,4),C("div",X_,[Tt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),Xx="",H_=pt(j_,[["__scopeId","data-v-8b261cbf"]]),U_={class:"line-double"},W_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineDouble",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"horizontal"},direction:{default:"toEnd"}},setup(s,{expose:t}){const e=s;let n=1;const i=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},r=Zt({}),o=Zt({}),a=Zt({});switch(e.location){case"horizontal":r.width="100%",r.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":r.width=e.lineHeight+"px",r.height="100%",o.left="0",a.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":o.right="0",o.transformOrigin="center right",a.left="0",a.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":o.left="0",o.transformOrigin="center left",a.right="0",a.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(N(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:i},{default:Ot(()=>[C("div",{class:"line-double-before",style:G({backgroundColor:e.color,transition:`transform ${e.timeGap*At(n)}ms ease-in-out`,...r,...o})},null,4),C("div",U_,[Tt(u.$slots,"default",{},void 0,!0)]),C("div",{class:"line-double-after",style:G({backgroundColor:e.color,transition:`transform ${e.timeGap*At(n)}ms ease-in-out`,...r,...a})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),jx="",q_=pt(W_,[["__scopeId","data-v-ac519c85"]]),Z_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"Float",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Zt({willChange:"box-shadow, transform"}),i=()=>{switch(n.boxShadow="none",e.direction){case"left":n.transform="translateX(0)";break;case"right":n.transform="translateX(0)";break;case"down":n.transform="translateY(0)";break;case"up":n.transform="translateY(0)";break}},r=()=>{switch(n.boxShadow=e.boxShadow,e.direction){case"left":n.transform=`translateX(-${e.distance}px)`;break;case"right":n.transform=`translateX(${e.distance}px)`;break;case"down":n.transform=`translateY(${e.distance}px)`;break;case"up":n.transform=`translateY(-${e.distance}px)`;break}};return t({}),(o,a)=>(N(),Gt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Ot(()=>[C("div",{class:"float",style:G({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[Tt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),Hx="",K_=pt(Z_,[["__scopeId","data-v-2cdf6499"]]),Q_={class:"circle"},J_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"Circle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,n=M(),i=Zt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),r=(l,c)=>{i.width=i.height=Math.ceil(Math.max(l,c))+"px",n.value?.repeatEffect?.()},o=()=>{const l=ui(e.color,.2);i.boxShadow=`
118
+ inset ${i.width} 0 0 ${l},
119
+ inset 0 ${i.width} 0 ${l},
120
+ inset -${i.width} 0 0 ${l},
121
+ inset 0 -${i.width} 0 ${l}
122
+ `},a=()=>{i.boxShadow=`
123
+ inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
124
+ inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
125
+ inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
126
+ inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
127
+ `};return t({}),(l,c)=>(N(),Gt(kt,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:r},{default:Ot(()=>[C("div",{class:"circle-before",style:G(i)},null,4),C("div",Q_,[Tt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),Ux="",tb=pt(J_,[["__scopeId","data-v-c7311fde"]]),eb=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"BorderFocusText",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"manual"},text:{default:""},textSize:{default:12},borderColor:{default:"#5a82f0"},borderWidth:{default:2},borderRadius:{default:8}},setup(s,{expose:t}){const e=s,n=M(!0),i=()=>{n.value=!0},r=()=>{n.value=!1};return t({}),(o,a)=>(N(),Gt(kt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Ot(()=>[n.value?(N(),H("div",{key:0,class:"text",style:G({fontSize:`${o.textSize}px`,top:`${-Math.ceil(o.textSize/2)-4}px`,padding:"4px 12px",backgroundColor:o.borderColor,borderRadius:`${o.textSize}px 0 ${o.textSize}px 0`,color:At(oh)(o.borderColor,!0,"#333333","#ffffff")})},St(e.text),5)):Yt("",!0),C("div",{class:"inner",style:G(n.value?{border:`${o.borderWidth}px solid ${o.borderColor}`,borderRadius:`${o.borderRadius}px`}:{})},[Tt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),Wx="",sb=pt(eb,[["__scopeId","data-v-acf8ccd6"]]),nb=ct({customOptions:{Container:kt,SVGMaskNapkin:Wa},inheritAttrs:!0,__name:"ImageMask",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,n=M(0),i=M(0),r=(o,a)=>{n.value=o,i.value=a};return t({}),(o,a)=>(N(),H("div",{style:G({width:`${n.value}px`,height:`${i.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[Tt(o.$slots,"mask",{},()=>[mt(Wa)]),mt(kt,{type:"shrink",onResize:r},{default:Ot(()=>[Tt(o.$slots,"default")]),_:3})],4))}});lt.Accordion=_y,lt.BorderFocusText=sb,lt.Button=ve,lt.CSSAnimation=Da,lt.CardFlip=x_,lt.CheckboxGroup=Cr,lt.Circle=tb,lt.ClockFlipper=L_,lt.ColorPicker=h1,lt.Container=kt,lt.Cube=C_,lt.Dialog=pi,lt.DialogLoading=ev,lt.DialogToast=rv,lt.EaseGraphDisplay=Ha,lt.EaseGroupGraphDisplay=T1,lt.FPSStats=v1,lt.Float=K_,lt.HandWritePanel=mv,lt.Icon=hn,lt.Image=Ma,lt.ImageMask=nb,lt.ImageView=Oy,lt.Input=ny,lt.InputRange=Gs,lt.InputRangeSvg=hy,lt.InterpolationGraphDisplay=Ua,lt.InterpolationGroupGraphDisplay=I1,lt.LayoutCenter=$y,lt.LayoutMobile=Ly,lt.LineDouble=q_,lt.LineSingle=H_,lt.Loading1=U1,lt.Loading10=y_,lt.Loading11=Pa,lt.Loading2=Z1,lt.Loading3=Q1,lt.Loading4=e_,lt.Loading5=i_,lt.Loading6=a_,lt.Loading7=u_,lt.Loading8=Aa,lt.Loading9=f_,lt.MapTianditu=y1,lt.Overlay=Tn,lt.Page=Ra,lt.PageVerticalScrollProgressBar=vv,lt.PlateDisplay=zv,lt.PlateKeyboard=gh,lt.PlateMobile=Gv,lt.Pop=Be,lt.Popover=Na,lt.ProgressBar=fi,lt.RadioGroup=Oa,lt.ResizeObserver=m1,lt.RingIndicator=O_,lt.RingText=N_,lt.Routes=Tr,lt.SVGAndCanvas=Y1,lt.SVGCheck=La,lt.SVGCleanUp=Er,lt.SVGDelete=Ia,lt.SVGDown=di,lt.SVGMaskNapkin=Wa,lt.Select=E0,lt.SelectAbsolute=N0,lt.Slide=G_,lt.SlideCorner=z_,lt.SlideLeftItem=gy,lt.Switch=L0,lt.Tab=lv,lt.Tabs=fv,lt.TextBackgroundClip=F_,lt.Video=Ty,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})});
136
128
  //# sourceMappingURL=zyzgroup_core_vue.umd.cjs.map